Beispiel #1
0
 function __construct()
 {
     parent::__construct();
     $user =& JFactory::getUser();
     if ($user->id == null) {
         if (JRequest::getVar('format') == 'raw') {
             echo '<script> window.location.href="index.php?option=com_users&view=login"; </script>';
             exit;
         } else {
             $this->setRedirect("index.php?option=com_users&view=login");
         }
     }
 }
Beispiel #2
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }