Просмотр поста

.
DrugsFan

Максим,

if (isset($_COOKIE['gskin'])) {
    $set_user['skin'] = check($_COOKIE['gskin']);
    if ($_COOKIE['verified'] != "ok") {
        if (is_file($rootpath . 'theme/' . $set_user['skin'].'/style.css')) {
            setcookie("verified", "ok", time() + 3600 * 24 * 365);
        } else {
            $set_user['skin'] = $set['skindef'];
            setcookie("gskin", $set['skindef'], time() + 3600 * 24 * 365);
            setcookie('verified', 'ok');
        }
    }
}


Вот так
Прикрепленные файлы: