예제 #1
0
/**
* Utility function redirect the browser location to another url
*
* Can optionally provide a message.
* @param string The file system path
* @param string A filter for the names
*/
function mosRedirect($url, $msg = '')
{
    mamboCore::redirect($url, $msg);
}
예제 #2
0
 /**
  * Enter description here...
  *
  */
 function handleLogin()
 {
     require_once $this->rootPath() . '/includes/authenticator.php';
     $authenticator =& mamboAuthenticator::getInstance();
     $loggedin = $authenticator->loginUser();
     if ($loggedin) {
         $this->logMessage(T_('You have Logged In succesfully'));
     } else {
         mamboCore::redirect('index.php');
     }
 }