Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=7256
Postga havola
Tayota [667] [off]
Mana bu ködda mehmonlar uchunxam ruxsat berish kerak yani dizni mehmonxam özgartiraolsin
if (isset($_POST['submit'])) { foreach (glob('theme/*/*.css') as $val) $theme_list[] = array_pop(explode('/', dirname($val))); $set_user['skin'] = isset($_POST['skin']) && in_array($_POST['skin'], $theme_list) ? functions::check($_POST['skin']) : $set['skindef']; mysql_query("UPDATE `users` SET `set_user` = '" . mysql_real_escape_string(serialize($set_user)) . "' WHERE `id` = '$user_id'"); $_SESSION['set_ok'] = 1; header('Location: '.$home.''); exit; } else if (isset($_GET['reset']) || empty($set_user)) { mysql_query("UPDATE `users` SET `set_user` = '' WHERE `id` = '$user_id'"); $_SESSION['reset_ok'] = 1; header('Location: '.$home.''); exit; } echo '<form action="'.$home.'" method="post"> <small> <div class="menu"> Sayt ko\'rinishi <br> <select name="skin">'; foreach (glob('theme/*/*.css') as $val) { $dir = explode('/', dirname($val)); $theme = array_pop($dir); echo '<option' . (core::$user_set['skin'] == $theme ? ' selected="selected">' : '>') . $theme . '</option>'; } echo '</select><input type="submit" name="submit" value="Saqlash"/></form>';