<?php /* session display stuff */ require_once 'TableEditor.php'; $editor = new TableEditor($conn, 'sesview'); $editor->setConfig('allowCSV', false); $editor->setConfig('allowView', false); $editor->setConfig('allowAdd', false); $editor->setConfig('allowEdit', false); $editor->setConfig('allowCopy', false); $editor->setConfig('allowDelete', false); $editor->setConfig('title', 'Live Sessions Monitor'); $editor->setConfig('footerfile', 'footer.html'); $editor->setConfig('perPage', 30); $editor->setDisplayNames(array('node' => 'Domain:Terminal', 'username' => 'Login Name', 'timestamp' => 'Sess. Start Time', 'Screen' => 'Live')); $editor->setSearchableFields('username', 'node', 'timestamp'); $editor->setRequiredFields('username', 'node', 'domain', 'timestamp', 'status', 'clearedtime', 'sessionid', 'ipadress', 'port'); $editor->noDisplay('sessionid'); $editor->noDisplay('ipaddress'); $editor->noDisplay('port'); $editor->noDisplay('clearedtime'); $editor->noDisplay('lastping'); #$editor->noDisplay('status'); $editor->setDefaultOrderby('username'); $editor->display(); ?>
<?php $conn = mysql_connect('localhost', 'rautor', '\\pass'); $db_selected = mysql_select_db('rautor', $conn); require_once 'TableEditor.php'; $editor = new TableEditor($conn, 'sessions'); $editor->setConfig('allowAdd', false); $editor->setConfig('allowEdit', false); $editor->setConfig('allowCopy', false); #$editor->setConfig('allowDelete', false); #$editor->setConfig('allowCSV', false); #$editor->setConfig('allowView', false); $editor->setConfig('title', 'Manage All Sessions'); $editor->setConfig('footerfile', 'footer.html'); $editor->setConfig('perPage', 20); $editor->setDisplayNames(array('domain' => 'Domain', 'node' => 'PC name', 'username' => 'username', 'timestamp' => 'Start Time', 'sessionid' => 'Session ID', 'status' => 'Status', 'clearedtime' => 'Cleared Time', 'ipadress' => 'IP Address', 'port' => 'Port', 'url' => 'URL')); $editor->setSearchableFields('username', 'node', 'timestamp'); $editor->setRequiredFields('username', 'node', 'domain', 'timestamp', 'status', 'clearedtime', 'sessionid', 'ipadress', 'port'); #$editor->noDisplay('sessionid'); $editor->noDisplay('ipaddress'); $editor->noDisplay('port'); $editor->noDisplay('lastping'); #$editor->noDisplay('clearedtime'); #$editor->noDisplay('status'); $editor->setDefaultOrderby('timestamp,username'); $editor->display(); ?>
<?php include '../document.php'; require_once 'TableEditor.php'; if (isset($bzID)) { $substr = explode("|", $bzID); $result = mysql_query("SELECT * FROM passwd WHERE password = '******'1']}' AND username = '******'0']}' AND access = '{$substr['2']}'"); if (mysql_num_rows($result) == 1 && $substr[2] >= 1) { $editor = new TableEditor($db, 'motd'); $editor->setDefaultOrderby('title'); $editor->setConfig('allowCopy', false); $editor->setConfig('allowCSV', false); $editor->noDisplay('id'); $editor->display(); } else { $doc = new Document(); $doc->begin("Edit MOTD", 1); print "Unable to find any any MOTD results"; $doc->end(); } } else { $doc = new Document(); $doc->accessDenied(); }
$user = $_SERVER['PHP_AUTH_USER']; ?> <?php /* session display stuff */ require_once 'TableEditor.php'; $editor = new TableEditor($conn, 'rautor_sessions'); #$editor->setConfig('allowCSV', false); $editor->setConfig('allowView', false); $editor->setConfig('allowAdd', false); $editor->setConfig('allowEdit', false); $editor->setConfig('allowCopy', false); $editor->setConfig('allowDelete', false); $editor->setConfig('title', 'Rautor Sessions\' Listing'); $editor->setConfig('footerfile', 'footer.html'); $editor->setConfig('perPage', 50); $editor->setDisplayNames(array('path' => 'Full Path where files were saved && PC Name', 'node' => 'Terminal', 'domain' => 'Domain', 'username' => 'Login Name', 'starttime' => 'Session Start Time', 'lastping' => 'Session Last Update', 'clearedtime' => 'Session Stop Time')); $editor->setSearchableFields('username', 'node', 'starttime', 'domain'); $editor->setRequiredFields('username', 'node', 'domain', 'timestamp', 'status', 'clearedtime', 'sessionid', 'ipadress', 'port'); $editor->noDisplay('node'); $editor->noDisplay('ipaddress'); $editor->noDisplay('clearedtime'); #$editor->noDisplay('status'); $editor->setDefaultOrderby('username'); $editor->display(); ?>
?> <?php /* session display stuff */ require_once 'TableEditor.php'; $editor = new TableEditor($conn, 'sesview'); $editor->setConfig('allowCSV', false); $editor->setConfig('allowView', false); $editor->setConfig('allowAdd', false); $editor->setConfig('allowEdit', false); $editor->setConfig('allowCopy', false); $editor->setConfig('allowDelete', false); $editor->setConfig('title', 'Live Sessions Monitor'); $editor->setConfig('footerfile', 'footer.html'); $editor->setConfig('perPage', 30); $editor->setDisplayNames(array('node' => 'Domain:Terminal', 'username' => 'Login Name', 'timestamp' => 'Sess. Start Time', 'Screen' => 'Live')); $editor->setSearchableFields('username', 'node', 'timestamp'); $editor->setRequiredFields('username', 'node', 'domain', 'timestamp', 'status', 'clearedtime', 'sessionid', 'ipadress', 'port'); $editor->noDisplay('sessionid'); $editor->noDisplay('ipaddress'); $editor->noDisplay('port'); $editor->noDisplay('clearedtime'); $editor->noDisplay('status'); $editor->setDefaultOrderby('username'); $editor->display(); ?>