Пример #1
0
<?php

require_once '../../includes/siteAdmin.php';
$fileInfo = array('title' => 'Admin Tools', 'fileName' => 'admin/index.php');
$debug->newFile($fileInfo['fileName']);
$buildPage = new Adrlist_BuildPage();
$buildPage->addIncludes('adminToolsMethods.php');
$buildPage->addJs(array('adminTools.js', 'jquery/jquery.datetimepicker.js'));
$buildPage->addCss(array('jquery/jquery.datetimepicker.css'));
echo $buildPage->output(), '
<div>
	', debugSwitch(), '
</div>
<div>
	', maintSwitch(), '
</div>
<div id="listMaintHolder">
	', buildListMaint(), '
</div>
', $buildPage->buildFooter();
Пример #2
0
<?php

require_once 'siteAdmin.php';
/* This file and it's functions are to be used solely by ../admin/adminTools.php in conjunction with ../js/adminTools.js. */
$fileInfo = array('fileName' => 'includes/adminToolsMethods.php');
$debug->newFile($fileInfo['fileName']);
$success = false;
if (MODE == 'setMaintMode') {
    maintSwitch();
} elseif (MODE == 'buildListMaint') {
    buildListMaint();
} else {
    $debug->add('No matching mode in ' . $fileInfo['fileName'] . '.');
}
function debugSwitch()
{
    global $debug, $message;
    $output = 'Use this button to produce a cookie that will display debug information in the browser. Without this cookie, no other users are affected.
<div style="margin:2em 0;">
	<button class="ui-btn ui-btn-inline ui-btn-a ui-shadow ui-corner-all" id="debugButton">Turn Debug Mode ';
    if (isset($_COOKIE['DEBUG']) && $_COOKIE['DEBUG'] == true) {
        $output .= 'Off';
    } else {
        $output .= 'On';
    }
    $output .= '</button>
</div>';
    return $output;
}
function maintSwitch()
{