public function index() { if (!G::isLoggedIn()) { return Login::controller(Login::DEF); } $crud = new CRUD('tblConfig', ['insDefaults' => ['fldUserID' => G::getUserID()], 'primaryKey' => 'fldKey']); $crud->setColDisplay('fldUserID', CRUD::HIDDEN); $crud->columnAttrib('fldValue', ['size' => 60]); return $crud->index(); }
public function __construct() { parent::__construct(); $this->loggedInMenuItems = ['My Account' => '\\Jackbooted\\Admin\\Admin->editAccount()']; }
protected function reloadPreferences() { Login::loadPreferences(G::get('fldUser')); return 'Reloaded Preferences'; }
" border=0 height="90"/></a> </td> <td width="100%" nowrap="nowrap" valign="top" align="left"> <h1>Super Administration</h1> </td> </tr> </table> </td> </tr> <tr> <td height="600px" width="100%"> <table class="table table-bordered"> <tr> <td nowrap="nowrap" valign="top"> <?php echo SuperAdmin::menu() . "\n" . Admin::menu() . "\n" . Login::menu() . "\n" . DBManager::menu(); ?> </td> <td align="left" valign="top" width="100%"> <?php echo \Jackbooted\Html\WebPage::controller(SuperAdmin::DEF); ?> </td> </tr> </table> </td> </tr> <tr> <td width="100%"> <table width="100%" cellpadding="0" cellspacing="0"> <tr>
public function loginAs() { Login::loadPreferences(Request::get('fldUser')); Login::home(); }
private static function setUpSession() { Login::initSession(); // See if we can log the user in if (!Login::loadPreferencesFromCookies()) { if (G::isLoggedIn()) { Login::logOut(); } } }