Site Status : <?php if (site_off()) { echo "<font color=#" . $cTheme->main_no . "><b>CS STAFF ONLY</b></font>"; } else { echo "<font color=#" . $cTheme->main_yes . "><b>OPEN</b></font>"; } ?> - New Users : <?php if (newusers_off()) { echo "<font color=#" . $cTheme->main_no . "><b>LOCKED</b></font>"; } else { echo "<font color=#" . $cTheme->main_yes . "><b>OPEN</b></font>"; } ?> - New Registrations : <?php if (newregs_off()) { echo "<font color=#" . $cTheme->main_no . "><b>CS STAFF ONLY</b></font>"; } else { echo "<font color=#" . $cTheme->main_yes . "><b>OPEN</b></font>"; if (REQUIRED_SUPPORTERS > 0) { echo " (requires <b>" . REQUIRED_SUPPORTERS . "</b> supporter"; if (REQUIRED_SUPPORTERS > 1) { echo "s"; } echo ")"; } else { echo " (<b>Instant Registration</b>)"; } } ?> - Complaints : <?php
std_connect(); $user_id = std_security_chk($auth); $admin = std_admin(); $cTheme = get_theme_info(); $res = pg_safe_exec("SELECT user_name FROM users WHERE id='{$user_id}'"); $adm_usr = pg_fetch_object($res, 0); $adm_user = $adm_usr->user_name; if ($admin == 0) { echo "Restricted to logged in CService Admins, sorry."; die; } if (!($admin >= $min_lvl)) { echo "Sorry, your admin access is too low."; die; } if (!newregs_off()) { echo "<html><head><title>MODIFYING NUMBER OF REQUIRED SUPPORTERS</title>"; std_theme_styles(); echo "</head>\n"; std_theme_body("../"); echo "<b>MODIFYING NUMBER OF REQUIRED SUPPORTERS</b><br><br>\n"; echo "Sorry, you must <b>LOCK</b> the new registrations BEFORE applying any change here.<br><br>"; die("<a href=\"javascript:history.go(-1);\">Go back</a>"); } if ($crc == md5(CRC_SALT_0019 . $ts . $HTTP_USER_AGENT) && $mode == "set" || $crc == md5(CRC_SALT_0020 . $ts . $HTTP_USER_AGENT) && $mode == "reset") { // update asked... $nbsup = $nbsup + 0; if ($mode == "reset") { $nbsup = DEFAULT_REQUIRED_SUPPORTERS; } pg_safe_exec("UPDATE variables SET contents='" . $nbsup . "',last_updated=now()::abstime::int4 WHERE var_name='REQUIRED_SUPPORTERS'");
<?php $min_lvl = 800; /* $Id: newregs.php,v 1.2 2003/08/31 19:52:16 nighty Exp $ */ require "../../../php_includes/cmaster.inc"; std_connect(); $user_id = std_security_chk($auth); $admin = std_admin(); if (!acl(XWEBCTL)) { echo "<b>Go away</b>!!!"; die; } if ($switch == "ON" && newregs_off()) { echo "Already LOCKED"; die; } if ($switch == "OFF" && !newregs_off()) { echo "Already OFF"; die; } if ($switch == "ON") { pg_safe_exec("INSERT INTO locks VALUES (2,now()::abstime::int4," . $user_id . ")"); } if ($switch == "OFF") { pg_safe_exec("DELETE FROM locks WHERE section='2'"); } header("Location: redir.php?RET=index.php"); die;