Пример #1
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";
Пример #2
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"])) {
Пример #3
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) {