Exemplo n.º 1
0
 /**
  *	@fn init
  *	@short Initialization method for the Controller.
  *	@details Here you can define custom filters, caching strategies etc.
  */
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter('check_auth');
     $this->after_filter('compress');
 }
Exemplo n.º 2
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter(array('log_visit', 'block_ip'));
     $this->after_filter(array('shrink_html', 'compress'));
 }
Exemplo n.º 3
0
 function init()
 {
     // Call parent's init method
     parent::init();
     $this->caches_page(array('index'));
     //$this->before_filter(array('log_visit', 'block_ip'));
     $this->after_filter('compress');
 }
Exemplo n.º 4
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->caches_page(array('download_stats', 'widgets_versioncheck', 'releasenotes', 'changelog'));
     $this->before_filter('block_ip');
     $this->before_filter('log_visit', array('except' => array('widgets_versioncheck', 'download', 'download_stats', 'user_quotes')));
     $this->after_filter('shrink_html', array('except' => array('widgets_versioncheck', 'download', 'download_stats', 'user_quotes')));
     $this->after_filter('compress');
 }
Exemplo n.º 5
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $cached_pages = array('software', 'software_comments', 'diario');
     //$this->before_filter(array('log_visit', 'block_ip'));
     $this->before_filter('block_ip');
     $this->caches_page($cached_pages);
     $this->after_filter('compress', array('only' => $cached_pages));
 }
Exemplo n.º 6
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter(array('log_visit', 'block_ip'));
     $this->after_filter('my_morse_encode', array('only' => 'encode'));
     $this->after_filter('my_morse_decode', array('only' => 'decode'));
     $this->after_filter('shrink_html');
     $this->after_filter('compress');
 }
Exemplo n.º 7
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     //$this->caches_page(array('index', 'read'));
     $this->before_filter(array('log_visit', 'block_ip'));
     $this->before_filter('init_math_test', array('only' => array('read')));
     $this->after_filter('highlight_words', array('only' => array('search', 'live_search', 'index', 'read')));
     $this->after_filter('shrink_html');
     $this->after_filter('compress');
 }
Exemplo n.º 8
0
 /**
  *	@fn init
  *	@short Initialization method for the Controller.
  *	@details Here you can define custom filters, caching strategies etc.
  */
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter(array('log_visit', 'block_ip'));
     if (@$_GET['hl'] == 'morse' || @$_COOKIE['hl'] == 'morse') {
         $this->after_filter('morse_encode');
     } else {
         if (@$_GET['hl'] == 'sanskrit' || @$_COOKIE['hl'] == 'sanskrit') {
             $this->after_filter('sanskrit_ambra');
         }
     }
     $this->after_filter('shrink_html');
     $this->after_filter('compress');
 }
Exemplo n.º 9
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter('log_visit');
 }
Exemplo n.º 10
0
 function init()
 {
     // Call parent's init method
     parent::init();
     $this->before_filter(array('log_visit', 'block_ip'));
 }
Exemplo n.º 11
0
 protected function init()
 {
     // Call parent's init method
     parent::init();
     $this->after_filter(array('shrink_html', 'compress'));
 }
Exemplo n.º 12
0
 protected function init()
 {
     parent::init();
 }