logMessage('[LOGIN] file:'.$_SERVER['SCRIPT_NAME']); $MIOLO->logMessage('[LOGIN] Using login prompt'); $module = 'admin'; $ui = $MIOLO->getUI(); $theme->clearContent(); $navbar->addOption('Login', $module, 'login'); $login = $auth->getLogin(); $return_to = MIOLO::_REQUEST('return_to'); // If the user is logged in, send to the start up module if ($login && ($return_to == '')) { //$form = $ui->getForm($module,'frmAccess',$login); $MIOLO->invokeHandler($MIOLO->getConf('options.common'), 'main'); } elseif ($MIOLO->getConf('options.authmd5')) { $form = $ui->getForm($module,'frmLoginMD5'); } else { $form = $ui->getForm($module,'frmLogin'); } if ($theme->getContent() == '') { $theme->insertContent($form); } ?>