Source of file SecuredPage.php
Size: 0,547 Bytes - Last Modified: 2020-05-30T11:30:26+00:00
/var/www/docs.ssmods.com/process/src/code/pages/SecuredPage.php
1234567891011121314151617181920212223242526 | <?php class SecuredPage extends Page { private static $icon = 'authentication/images/icons/lock-icon.png'; private static $description = 'Page only accesible for logged in users'; } class SecuredPage_Controller extends Page_Controller { /** * Index action * @return $this|HTMLText */ public function index() { //Check for a logged in member if(!Member::currentUser()){ Session::set('BackURL', $this->Link()); return $this->renderWith(array('RegisterLoginPage', 'Page')); } return $this; } } |