public static function getHostedDir()
 {
     if (self::$_curHost === null) {
         self::$_curHost = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http') . '://' . $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] = '80' ? '' : ':' . $_SERVER['SERVER_PORT']);
     }
     return self::$_curHost;
 }
Example #2
0
 protected function onInvalidation($message = '')
 {
     if ($message !== '') {
         Facade_FlashMessage::getInstance()->addMessage($message, 'error');
     }
     Facade_Request::reload();
 }