/** * delegates page rendering * * @param $path \b path stuff */ public static function delegate($path = null, $class = __CLASS__) { parent::delegate($path, $class); }
require_once $GLOBALS['BASE_DIR'] . '/includes/MyController_channel.class.php'; require_once $GLOBALS['BASE_DIR'] . '/includes/MyController_admin.class.php'; require_once $GLOBALS['BASE_DIR'] . '/includes/MyPortal.class.php'; require_once 'PSUModels/Model.class.php'; require_once $GLOBALS['BASE_DIR'] . '/includes/MyValues.class.php'; require_once $GLOBALS['BASE_DIR'] . '/includes/ChannelForm.class.php'; require_once $GLOBALS['BASE_DIR'] . '/includes/TabForm.class.php'; require_once 'MyRelationships.class.php'; /*******************[End Common Includes]**********************/ /*******************[Authentication Stuff]*****************/ IDMObject::authN(); // get rid of cas cruft in url if (isset($_GET['ticket'])) { PSU::redirect($GLOBALS['BASE_URL'] . '/'); } /*******************[End Authentication Stuff]*****************/ $GLOBALS['identifier'] = PSU::is_wpid($_SESSION['username']) ? $_SESSION['username'] : $_SESSION['wp_id']; // session namespace for portal variables if (!isset($_SESSION['portal'])) { $_SESSION['portal'] = array(); } //session alert if logged in as portalord if ($_SESSION['generic_user_type'] == 'portalord') { $_SESSION['messages'][] = 'You are currently logged in as PortaLord. <a href="' . $GLOBALS['BASE_URL'] . '/admin/unset-type">Resume your session</a>'; } if (!$GLOBALS['identifier']) { $_SESSION['errors'][] = 'You are logged in as the default user! ANYTHING you do will be done for EVERY DEFAULT LAYOUT!'; } //end if MyController::delegate();