示例#1
0
require_once "../commonlib/phplib/admin-phpinfo.php";
require_once "../commonlib/phplib/admin-serverinfo.php";
require_once "../commonlib/phplib/admin-configinfo.php";
require_once "../commonlib/phplib/admin-embed.php";
require_once "../commonlib/phplib/admin.php";
$pages = array(new ADMIN_PAGE_FYR_QUEUE(), new ADMIN_PAGE_RATTY('fyr-abuse', "Message Abuse", "These rules apply to messages when they are first submitted onto the message queue by the user.", <<<EOF
What to do with a message for which this rule fires. This should be either:
<dl>
<dt>freeze</dt>
<dd>to freeze the message for inspection by an administrator (preventing
delivery); or</dd>
<dt><em>TEMPLATE</em></dt>
<dd>to drop (abandon) the message and display the named <em>TEMPLATE</em>
(for instance 'problem-similar' will display
<a href="https://www.writetothem.com/problem-similar">the notice about
cut-and-paste messages</a>). Use
"<a href="https://www.writetothem.com/problem-generic">problem-generic</a>"
if no more specific explanation of why the message was rejected is
available.</dd>
</dl>
EOF
), null, new ADMIN_PAGE_REPS());
if (OPTION_ADMIN_SERVICES_CGI) {
    $pages[] = new ADMIN_PAGE_EMBED('fyrmatch', 'Councillor Data', OPTION_ADMIN_SERVICES_CGI . 'match.cgi');
}
array_push($pages, new ADMIN_PAGE_EMBED('fyrsignupgraph', 'Sent messages graph', OPTION_BASE_URL . '/fyr-live-signups.png'), new ADMIN_PAGE_EMBED('fyrfaxgraph', 'Faxes created graph', OPTION_BASE_URL . '/fyr-live-faxes.png'));
array_push($pages, null, new ADMIN_PAGE_SERVERINFO(), new ADMIN_PAGE_CONFIGINFO(), new ADMIN_PAGE_PHPINFO());
admin_page_display(str_replace("http://", "", OPTION_BASE_URL), $pages);
?>

示例#2
0
<?php

include 'php/440_core.php';
include 'php/admin_core.php';
createHead('Ban Everyone', 440, '<script src="js/jquery-linedtextarea.js" ></script>
<script src="js/jsl_002.js" ></script>
<script src="js/jsl_003.js" ></script>
<script src="js/jsl.js" ></script>
<link rel="stylesheet" href="/css/jquery-linedtextarea.css" type="text/css" media="screen, projection">');
if (isset($_SESSION['sid']) && $_SESSION['sid'] == 76561198013370444) {
    admin_page_display();
} else {
    echo 'Hey! you\'re not digits, get out of here!';
}
createFooter(440);