public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow("*");
     $this->layout = "splash";
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow();
     $this->initPermissions();
     $this->layout = "version3";
 }
 public function beforeFilter()
 {
     $this->body_element = "layout/v3/canteen-body";
     $this->set("left_column_element", $this->left_column_element);
     parent::beforeFilter();
     //time to set the currency
     $this->theme = "canteen";
 }
예제 #4
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow("*");
     $this->theme = "profiles";
     $this->profile = $this->setProfile();
 }
예제 #5
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow("*");
     $this->initPermissions();
     if (!isset($_SERVER['DEVSERVER'])) {
         //die(":=)");
     }
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow();
     $this->theme = "commander";
     if ($this->request->params['action'] == "section") {
         $this->request->params['action'] = "view";
     }
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow();
     $this->initPermissions();
     $this->theme = "evan-smith-experience";
     if ($this->request->params['action'] == "view") {
         $this->view = $this->request->params['action'] = "section";
     }
 }
 public function beforeFilter()
 {
     //lets fix the f****d up swfupload session thing
     if (in_array($this->request->params['action'], array("handle_video_file_upload", "handle_image_upload", "handle_video_still_upload", "handle_ajax_media_file_upload", "handle_ajax_video_still_upload", "handle_ajax_image_upload"))) {
         $this->Session->id($this->request->params['pass'][0]);
         $this->Session->start();
     }
     parent::beforeFilter();
     $this->initPermissions();
 }
예제 #9
0
 public function beforeFilter()
 {
     //catch json post
     if (isset($this->request->data['json'])) {
         $this->request->params['named'] = json_decode($this->request->data['json'], true);
     }
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow("*");
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     //$this->Auth->allow("*");
     if ($this->request->params['action'] == "public") {
         $this->request->params['action'] = "view_report";
         $this->Auth->allow("view_report");
         $this->layout = "plain";
     }
 }
예제 #11
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow();
     $this->initPermissions();
     $this->theme = "run-and-gun";
     if ($this->request['action'] == "view") {
         $this->view = $this->request['action'] = "section";
     }
     $this->set("body_element", "rg-body");
 }
예제 #12
0
 public function beforeFilter()
 {
     $this->enforce_ssl = true;
     parent::beforeFilter();
     $this->initPermissions();
     //for now, lock it down to the canteen
     $lock_down = array("canteen", "canteen_order_status");
     if (!in_array($this->request->params['action'], $lock_down)) {
         return $this->redirect("/account/canteen");
     }
     $this->theme = "account";
 }
예제 #13
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow("*");
     //force "view" request to go to "Section"
     if ($this->request->params['action'] == "view") {
         $this->request->params['action'] = "section";
         $this->view = "section";
     }
     $this->theme = "31-days-of-theotis";
     $this->set("title_for_layout", "Skullcandy Presents: 31 Days of Theotis");
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow();
     $this->theme = "primitive-pain-is-beauty";
     if ($this->request->params['action'] == "section") {
         $this->setPost("primitive-pain-is-beauty", "intro.html");
     }
     if ($this->request->params['action'] == "view") {
         $this->request->params['action'] = $this->view = "section";
         $this->setPost();
     }
 }
예제 #15
0
 public function beforeFilter($skipInit = false)
 {
     if ($this->request->params['action'] == "index") {
         //$this->top_element = "layout/v3/top_element_featured_post";
         //
     }
     if (isset($_GET['source']) && $_GET['source'] == "facebook_tab" && $this->request->params['action'] == "index") {
         $this->enforce_ssl = true;
     }
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow();
     //$this->layout = "version3";
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow();
     $this->theme = "bones-new-ground";
     if ($this->request->params['action'] == "section") {
         $this->setPost("bones-new-ground", "intro.html");
     }
     if ($this->request->params['action'] == "view") {
         $this->request->params['action'] = $this->view = "section";
         $this->setPost();
     }
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->set("upload_server", "50.57.104.64");
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     set_time_limit(0);
 }
예제 #20
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow("*");
     $this->theme = "catalog";
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->helpers[] = "Unified.Unified";
 }
 public function beforeFilter()
 {
     App::import("Vendor", "CanteenConfig", array("file" => "CanteenConfig.php"));
     parent::beforeFilter();
     $this->initPermissions();
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->initPermissions();
     $this->Auth->allow("cal");
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow("*");
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
 }