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