Esempio n. 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");
         }
     }
 }
Esempio n. 2
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }