function run() { parent::run(); if (isset($_REQUEST['details']) && is_numeric($_REQUEST['details'])) { // Edit the selected element $this->generateDetails($_REQUEST['details']); } elseif (isset($_REQUEST['undo'])) { // Delete the selected element $this->performUndo(); } $data = $this->fetchDataWithQuery('SELECT un.id, un.date_created, un.table_name, un.action, us.name FROM undobuffer un, users us WHERE us.id = un.user ORDER BY un.date_created DESC, un.id DESC LIMIT 100'); include $this->config['templatepath'] . $this->undo_template; }
function run() { parent::run(); $data = array(); // TODO // Build an array to feed back to the AJAX component echo "new Array("; foreach ($data as $row) { echo '"' . $row[$this->feedType] . '"'; if ($row != end($data)) { echo ", "; } } echo ")\n"; }
function secure_loginpage() { global $_mytemplate; securemodule::loginpage($_mytemplate); }
function run() { parent::run(); include $this->config['templatepath'] . 'admin_main.php'; }
function run() { parent::run(); $this->authorisation->logout(); include $this->config['templatepath'] . $this->logout_template; }
function run() { parent::run(); $this->display_list(); }