示例#1
0
<?php

/* $Id: ticket.php,v 1.14 2004/07/25 03:31:51 nighty Exp $ */
require "../../../php_includes/cmaster.inc";
if (ENABLE_COMPLAINTS_MODULE != 1) {
    die("This option is disabled. Please contact the server administrator.");
}
std_connect();
$user_id = std_security_chk($auth);
$admin = std_admin();
if ($_GET["A"] != "replyadm" && $_GET["A"] != "cancel" && $_GET["A"] != "resolve" && $_GET["A"] != "delete" && complaints_off() && !isoper($user_id)) {
    $cTheme = get_theme_info();
    std_theme_styles(1);
    std_theme_body();
    echo "<h2>The complaints system is temporarily disabled, please lodge a complaint if that is not OK with you.</h2>";
    echo "</body>\n";
    echo "</html>\n\n";
    die;
}
unset($da_t);
unset($da_id);
$da_t = explode("-", $_GET["ID"]);
$da_id = $da_t[0];
// check for user part
switch ($_GET["A"]) {
    case 'close':
        $cTheme = get_theme_info();
        std_theme_styles(1);
        std_theme_body();
        if ($_GET["C"] == md5(CRC_SALT_0005 . $_GET["ID"] . "close")) {
            if (check_secure_form("do_close" . $_GET["ID"] . $_POST["from_email"])) {
示例#2
0
<?php

/* $Id: status.php,v 1.7 2004/08/20 12:56:00 nighty Exp $ */
require "../../../php_includes/cmaster.inc";
if (ENABLE_COMPLAINTS_MODULE != 1) {
    die("This option is disabled. Please contact the server administrator.");
}
$cTheme = get_theme_info();
$user_id = std_security_chk($auth);
$admin = std_admin();
std_theme_styles(1);
std_theme_body();
if (complaints_off() && !isoper($user_id)) {
    echo "<h2>The complaints system is temporarily disabled, please lodge a complaint if that is not OK with you.</h2>";
    echo "</body>\n";
    echo "</html>\n\n";
    die;
}
echo "<h2>Complaint Status Followup";
echo "</h2>\n";
echo "<hr width=100% size=1 noshade>";
std_connect();
unset($da_id);
unset($da_t);
$da_t = explode("-", $_GET["ID"]);
$da_id = $da_t[0];
$daq = pg_safe_exec("SELECT * FROM complaints WHERE id='" . (int) $da_id . "' AND status<4 AND ticket_number='" . $_GET["ID"] . "'");
if ($dao = pg_fetch_object($daq)) {
    echo "<br>";
    echo "<pre><font size=+0>";
    echo "ticket-number:\t\t\t" . $_GET["ID"] . "\n";
示例#3
0
<?php

$min_lvl = 800;
/* $Id: complaints.php,v 1.1 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" && complaints_off()) {
    echo "Already LOCKED";
    die;
}
if ($switch == "OFF" && !complaints_off()) {
    echo "Already OFF";
    die;
}
if ($switch == "ON") {
    pg_safe_exec("INSERT INTO locks VALUES (4,now()::abstime::int4," . $user_id . ")");
}
if ($switch == "OFF") {
    pg_safe_exec("DELETE FROM locks WHERE section='4'");
}
header("Location: redir.php?RET=index.php");
die;
示例#4
0
    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 "&nbsp;(requires <b>" . REQUIRED_SUPPORTERS . "</b> supporter";
        if (REQUIRED_SUPPORTERS > 1) {
            echo "s";
        }
        echo ")";
    } else {
        echo "&nbsp;(<b>Instant Registration</b>)";
    }
}
?>
 - Complaints : <?php 
if (complaints_off()) {
    echo "<font color=#" . $cTheme->main_no . "><b>LOCKED</b></font>";
} else {
    echo "<font color=#" . $cTheme->main_yes . "><b>OPEN</b></font>";
}
echo "<br>";
$blabla = pg_safe_exec("SELECT count_count FROM counts WHERE count_type='1'");
if (pg_numrows($blabla) == 0) {
    $c_nu = 0;
} else {
    $bloblo = pg_fetch_object($blabla, 0);
    $c_nu = $bloblo->count_count;
}
echo "Newusers Current Count : <b>" . $c_nu . "</b> out of " . $MAX_ALLOWED_USERS;
?>
<hr>
示例#5
0
/* $Id: complaints.php,v 1.5 2004/07/25 03:31:51 nighty Exp $ */
require "../../../php_includes/cmaster.inc";
if (ENABLE_COMPLAINTS_MODULE != 1) {
    die("This option is disabled. Please contact the server administrator.");
}
std_connect();
$user_id = std_security_chk($auth);
if ($user_id > 0) {
    $admin = std_admin();
} else {
    $admin = 0;
}
$cTheme = get_theme_info();
std_theme_styles(1);
std_theme_body();
if (complaints_off() && !isoper($user_id) || COMPLAINTS_ADMINCOMMENT_ID <= 0) {
    echo "<h2>The complaints system is temporarily disabled, please lodge a complaint if that is not OK with you.</h2>";
    echo "</body>\n";
    echo "</html>\n\n";
    die;
}
?>
<table border=0 cellspacing=0 cellpadding=3>
<tr>
<td valign=top><img border=0 alt=" * ! B O O M ! *" src=complaint_dpt.jpg></td>
<td valign=top>
<?php 
if ($_GET["ct"] + 0 > 0 && ($_GET["ct"] + 0 < MAX_COMPLAINT_TYPE + 1 || $_GET["ct"] == 99)) {
    echo "<font size=+2><b>" . $cpt_name[$_GET["ct"]] . "</b></font><br><a href=\"javascript:history.go(-1);\"><b>&lt;&lt;&nbsp;back</b></a><br><br>";
    $from_email = "";
    if ($user_id == 0) {