Exemple #1
0
function kullaniciTema($kadi = "")
{
    global $_defaultTheme;
    $result = $_defaultTheme;
    if (empty($kadi)) {
        return $result;
    }
    //kullanýcý girmemiþse varsayýlan tema olur
    $secenekler = explode("-", ayarGetir3($kadi));
    if ($secenekler[15] != "") {
        return numToTheme($secenekler[15]);
        //16.deðer kayýtlý tema sayýsý
    } else {
        return $result;
    }
}
Exemple #2
0
function temaBilgisi()
{
    $result = numToTheme(0);
    //ilk tema
    $cerezden = temizle(isset($_COOKIE["theme"]) ? $_COOKIE["theme"] : "");
    if ($cerezden != "" and is_dir('theme/' . $cerezden)) {
        $result = $cerezden;
    }
    if (empty($cerezden)) {
        setcookie("theme", $result, time() + 60 * 60 * 24 * 30);
    }
    return $result;
}
Exemple #3
0
        $_POST['ayarlar14'] = "1";
    }
    if (empty($_POST['ayarlar15'])) {
        $_POST['ayarlar15'] = "0";
    } else {
        $_POST['ayarlar15'] = "1";
    }
    if (empty($_POST['ayarlar16'])) {
        $_POST['ayarlar16'] = "0";
    }
    $ayarlar = temizle($_POST['ayarlar1'] . "-" . $_POST['ayarlar2'] . "-" . $_POST['ayarlar3'] . "-" . $_POST['ayarlar4'] . "-" . $_POST['ayarlar5'] . "-" . $_POST['ayarlar6'] . "-" . $_POST['ayarlar7'] . "-" . $_POST['ayarlar8'] . "-" . $_POST['ayarlar9'] . "-" . $_POST['ayarlar10'] . "-" . $_POST['ayarlar11'] . "-" . $_POST['ayarlar12'] . "-" . $_POST['ayarlar13'] . "-" . $_POST['ayarlar14'] . "-" . $_POST['ayarlar15'] . "-" . $_POST['ayarlar16']);
    $updateSQL = sprintf("UPDATE eo_users SET ayarlar='%s' WHERE userName='******'", $ayarlar);
    mysql_select_db($_db, $yol);
    $Result1 = mysql_query($updateSQL, $yol);
    if ($Result1) {
        $temaBilgisi = numToTheme(temizle($_POST['ayarlar16']));
        setcookie("theme", $temaBilgisi, time() + 60 * 60 * 24 * 30);
        trackUser($currentFile, "success,S-{$temaBilgisi}", $adi);
        echo "<font id='tamam'> {$metin['536']}</font>";
    } else {
        trackUser($currentFile, "fail,userSiteSet", $adi);
        echo "<font id='hata'> Site ayarlarýnýzda hata olduðundan g&uuml;ncelleme iþleminiz tamamlanamadý!</font>";
    }
}
if (isset($_POST["MM_update"]) && $_POST["MM_update"] == "form3") {
    if (GetSQLValueString($_POST['realName'], "text") == 'NULL' || GetSQLValueString($_POST['userEmail'], "text") == 'NULL' || GetSQLValueString($_POST['userBirthDate'], "text") == 'NULL') {
        echo "<font id='hata'>&Uuml;ye bilgilerinizde eksik alanlar vardýr.</font>";
    } else {
        if (!isset($_POST['prldeg'])) {
            $_POST['prldeg'] = "";
        }