$q = "letter={$letter}"; } } if (is_valid_user_class($class)) { $query .= " AND class = {$class}"; $q .= ($q ? "&" : "") . "class={$class}"; } stdhead("Пользователи"); print "<h1>Пользователи</h1>\n"; print "<form method=\"get\" action=\"users.php\">\n"; print "Поиск: <input type=\"text\" size=\"30\" name=\"search\" value=\"" . htmlspecialchars_uni($search) . "\">\n"; print "<select name=\"class\">\n"; print "<option value=\"-\">(Все уровни)</option>\n"; for ($i = 0;; ++$i) { if ($c = get_user_class_name($i)) { print "<option value=\"{$i}\"" . (is_valid_user_class($class) && $class == $i ? " selected" : "") . ">{$c}</option>\n"; } else { break; } } print "</select>\n"; print "<input type=\"submit\" value=\"Вперед\">\n"; print "</form>\n"; print "<p>\n"; for ($i = 97; $i < 123; ++$i) { $l = chr($i); $L = chr($i - 32); if ($l == $letter) { print "<b>{$L}</b>\n"; } else { print "<a href=\"users.php?letter={$l}\"><b>{$L}</b></a>\n";
// mod_cheat for torrentbits based tracker // Copy this file to the same dir as the rest of the tracker stuff... $top = 100; // Only look at the top xxx most likely... require "include/bittorrent.php"; dbconn(); loggedinorreturn(); if (get_user_class() < UC_MODERATOR) { stderr("Error", "Permission denied."); } stdhead("Cheaters"); begin_frame('Cheaters'); $page = @$_GET['page']; //$perpage = 100; // currently ignored $class = @$_GET['c']; if (!is_valid_user_class($class - 2)) { $class = ''; } $ratio = @$_GET['r']; if (!is_valid_id($ratio) && $ratio >= 1 && $ratio <= 7) { $ratio = ''; } echo '<center><form method="get" action="' . $_SERVER["PHP_SELF"] . '">'; begin_table(); echo '<tr><th colspan="4">Important</th></tr><tr><td colspan="4" class="left">'; echo 'Although the word <b>cheat</b> is used here, it should be kept in mind that this<br />'; echo 'is statistical analysis - "There are lies, damm lies, and statistics!"<br />'; echo 'The value for cheating can and will change quite drastically depending on what<br />'; echo 'is happening, so you should always take into account other factors before<br />'; echo 'issueing a warning.<br />'; echo 'Somebody might get quite a high cheat value, but never cheat in their life - simply<br />';
// moddifed logginorreturn by retro//Remember to change the following line to match your server print "<html><h1>Not Found</h1><p>The requested URL /{$_SERVER['PHP_SELF']} was not found on this server.</p><hr /><address>Apache/1.1.11 " . $SITENAME . " Server at " . $_SERVER['SERVER_NAME'] . " Port 80</address></body></html>\n"; die; } function puke($text = "You have forgotten here someting?") { stderr("Error", $text); } if (get_user_class() < UC_MODERATOR) { puke("Access denied"); } $action = isset($_POST["action"]) && $_POST["action"] == "edituser" ? $_POST["action"] : ''; if ($action == "edituser") { $userid = $_POST["userid"]; $class = 0 + $_POST["class"]; if (!is_valid_id($userid) || !is_valid_user_class($class)) { stderr("Error", "Member Identification failed."); } // check target user class $res = sql_query("SELECT immun, warns, username, class, modcomment FROM users WHERE id = {$userid}") or sqlerr(__FILE__, __LINE__); $arr = mysql_fetch_assoc($res) or puke("Error MySQL: " . mysql_error()); $editedusername = $arr["username"]; $enabled = $_POST["enabled"]; $disresaon = $_POST["disreason"]; $bookmcom = $_POST["bookmcomment"]; if ($_POST["addbookmark"] == "frist") { $addbookm = "ratio"; } else { $addbookm = $_POST["addbookmark"]; } $subject = sqlesc("Bad Ratio!");
$curpercwarn = $user["warns"]; if ($_POST["warns"] == $user["warns"]) { $downloadpos = $_POST["downloadpos"]; } $immun = $_POST["immun"]; $curimmun = $user["immun"]; $curnewupload = $user["uploaded"]; $curnewdownload = $user["downloaded"]; $curforum_mod = $user["forum_mod"]; $curenabled = $user["enabled"]; $curdisabled = $user["disabled"]; $updateset = array(); $modcomment = isset($_POST['modcomment']) && $CURUSER['class'] == UC_CODER ? $_POST['modcomment'] : $user['modcomment']; // Set class if (isset($_POST['class']) && ($class = $_POST['class']) != $user['class']) { if (!is_valid_user_class($class) || get_user_class() <= $_POST['class']) { stderr("Error", "Bad class :-P"); } // Notify user $what = $class > $user['class'] ? "promoted" : "demoted"; $msg = sqlesc("You have been {$what} to '" . get_user_class_name($class) . "' by " . $CURUSER['username']); $added = sqlesc(get_date_time()); sql_query("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, {$userid}, {$msg}, {$added})") or sqlerr(__FILE__, __LINE__); $updateset[] = "class = " . sqlesc($class); $modcomment = gmdate("Y-m-d") . " - {$what} to '" . get_user_class_name($class) . "' by {$CURUSER['username']}.\n" . $modcomment; } // ////////////////////////flood protection///////// // Set Post Limit if (isset($_POST['post_max'])) { $post_max = 0 + $_POST['post_max']; $curpost_max = $user['post_max'];