/** * Require login * @Developer brandon * @Date May 17, 2010 */ public function __construct() { parent::__construct(); user::require_login(); // Add the topics to the footer layout::add(View::factory('topics/index'), 'footer'); }
/** * Show the login page * @Developer brandon * @Date May 19, 2010 */ public function new_one() { if (user::logged_in()) { url::redirect(''); } parent::new_one(); layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); meta::set_title('Login'); }
public function __construct() { parent::__construct(); ssl::force_ssl(); meta::set_keywords('Daily Journal, Free Journal, Private Diary, Private Journal, Free Online Journal, Online Journaling, Write Messages, My Diary, Secure Diary, Secure Journal, Journal, Diary'); meta::set_description('Keep a free online journal or diary to remember events in your life. Secure, simple and free. Access from anywhere.'); // Add Analytics to the page, except on journal pages if ($this->model_name != 'journal') { layout::add(View::factory('shared/analytics'), 'footer'); } }
/** * Clear the cache on an constructive/destructive action * Also, make sure only admins can get here * @Developer brandon * @Date May 27, 2010 */ public function __construct() { parent::__construct(); if (in_array(Router::$method, array('new_one', 'edit', 'create', 'update', 'delete'))) { if (!user::is_admin()) { url::redirect('blog'); } Cache::instance()->delete_all(); } layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); }
/** * Allow users to retrieve/reset their password * @developer Brandon Hansen * @date May 31, 2010 */ public function forgot() { layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); $this->template->set('content', View::factory('passwords/forgot')); }
/** * Load up the controller * @developer Brandon Hansen * @date Jun 8, 2010 */ public function __construct() { parent::__construct(); meta::set_title('Remembering Life'); layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); }
/** * Initialize the controller * @Developer brandon * @Date Jul 15, 2010 */ public function __construct() { parent::__construct(); layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); }
/** * Set up a new user * @Developer brandon * @Date May 19, 2010 */ public function new_one() { parent::new_one(); layout::add(View::factory('shared/mentions')->render(), 'pre_footer'); meta::set_title('Create an Account'); }