db_Update("user", "user_image='' WHERE user_image='-upload-$image'"); $sql->db_Update("user", "user_sess='' WHERE user_sess='$image'"); $message = $image." ".IMALAN_28; } if (isset($_POST['deleteall'])) { $handle = opendir(e_FILE."public/avatars/"); while ($file = readdir($handle)) { if ($file != '.' && $file != '..' && $file != "index.html" && $file != "null.txt" && $file != '/' && $file != 'CVS' && $file != 'Thumbs.db') { $dirlist[] = $file; } } closedir($handle); $count = 0; while (list($key, $image_name) = each($dirlist)) { if (!$sql->db_Select("user", "*", "user_image='-upload-$image_name' OR user_sess='$image_name'")) { unlink(e_FILE."public/avatars/".$image_name); $count ++; } } $message = $count." ".IMALAN_26; } if (isset($_POST['update_options'])) { $pref['image_post'] = $_POST['image_post']; $pref['resize_method'] = $_POST['resize_method']; $pref['im_path'] = $_POST['im_path']; $pref['image_post_class'] = $_POST['image_post_class']; $pref['image_post_disabled_method'] = $_POST['image_post_disabled_method']; $pref['enable_png_image_fix'] = $_POST['enable_png_image_fix']; save_prefs(); $message = IMALAN_9; } if (isset($message)) { $ns->tablerender("", "
".$message."
"); } if (isset($_POST['show_avatars'])) { $handle = opendir(e_FILE."public/avatars/"); while ($file = readdir($handle)) { if ($file != '.' && $file != '..' && $file != "index.html" && $file != "null.txt" && $file != '/' && $file != 'CVS' && $file != 'Thumbs.db' && !is_dir($file)) { $dirlist[] = $file; } } closedir($handle); $text = "
\n"; if (!is_array($dirlist)) { $text .= IMALAN_29; } else { while (list($key, $image_name) = each($dirlist)) { $users = IMALAN_21." | "; if ($sql->db_Select("user", "*", "user_image='-upload-$image_name' OR user_sess='$image_name'")) { while ($row = $sql->db_Fetch()) { extract($row); $users .= "$user_name (".($user_sess == $image_name ? IMALAN_24 : IMALAN_23).") | "; } } else { $users = IMALAN_22; } $text .= "
$image_name

$users
"; } $text .= "
"; } $text .= "
"; $ns->tablerender(IMALAN_18, $text); } $text = "
".IMALAN_1."
".IMALAN_2."
". ($pref['image_post'] ? "" : "")."
".IMALAN_10."
".IMALAN_11."
".IMALAN_12."
".IMALAN_13."
".IMALAN_3."
".IMALAN_4."
".IMALAN_5."
".IMALAN_6."
".IMALAN_34."
".IMALAN_35."
".($pref['enable_png_image_fix'] ? "" : "")."
".IMALAN_16."
"; $ns->tablerender(IMALAN_7, $text); require_once("footer.php"); $pref['resize_method'] = $_POST['resize_method']; $pref['im_path'] = $_POST['im_path']; ?>