Trace('file:'.$_SERVER['SCRIPT_NAME']); if ( ! $module ) { $module = 'common'; } if ( ($sa = $context->shiftAction() ) != NULL ) { $a = $sa; } elseif ( $module != 'common') { $a = 'main'; } include_once( $MIOLO->getConf('home.modules') .'/main_menu.inc' ); //if ( $MIOLO->CheckLogin() ) { $ui = $MIOLO->getUI(); $login = $MIOLO->getLogin(); $adminModule = $MIOLO->mad; $loginModule = $MIOLO->getConf('login.module'); $theme->clearContent(); $handled = $MIOLO->invokeHandler($module, $a); if ( ! $handled ) { $cmPanel = new MActionPanel('pnlCommon','Common Environment','', $close, $ui->getImage($module, 'common-16x16.png') ); $cmPanel->addAction( _M('Hello World', $module) , $ui->getImage('helloworld', 'helloworld-32x32.png'), 'helloworld', 'main'); $cmPanel->addAction( _M('Hangman', $module) , $ui->getImage('hangman', 'hangman-32x32.png'), 'hangman', 'main'); $cmPanel->addAction( _M('Tutorial', $module) , $ui->getImage('tutorial', 'tutorial-32x32.png'), 'tutorial', 'main'); if ( $login ) { if ( $perms->checkAccess($adminModule, A_ADMIN, false) ) { $cmPanel->addAction( _M('Administration', $module), $ui->getImage($adminModule, 'system-32x32.png'), $adminModule, 'main'); } $cmPanel->addAction( _M('Logout', $module), $ui->getImage($loginModule, 'logout-32x32.png'), $loginModule, 'logout'); } else { $cmPanel->addAction( _M('Login', $module), $ui->getImage($loginModule, 'login-32x32.png'), $loginModule, 'login'); } $theme->insertContent($cmPanel); /** * mais visitados **/ $login = $MIOLO->getLogin(); $data->login = $login->id; } } //else { // $ui = $MIOLO->GetUI(); // $content = $ui->GetForm('admin', $MIOLO->GetConf('options.authmd5') ? 'frmLoginMD5' : 'frmLogin'); // $theme->SetContent($content); } ?>