Subversion Repositories SmartDukaan

Rev

Rev 20105 | Rev 20386 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
App::uses('AppController', 'Controller');
/**
 * Stores Controller
 *
 * @property Store $Store
 * @property PaginatorComponent $Paginator
 */
class AboutsController extends AppController {

/**
 * Components
 *
 * @var array
 */
        public $components = array('Paginator');

        public function beforeFilter() {                
                parent::beforeFilter();
//              $this->Auth->allow('howitworks','pending','native','saholicoffline','askforupdate','appb','apphint');
                $this->Auth->allow('howitworks','pending','native','saholicoffline','askforupdate');
                $this->layout = 'static';
        }
/**
 * index method
 *
 * @return void
 */

        public function pending(){
                
        }
        
        public function index() {
                $userId = $this->request->query('user_id');
//              if(isset($userId) && !empty($userId)){
//                      $this->loadModel('User');
//                      $dbuser = $this->User->findById($userId);
//                      $this->Auth->login($dbuser['User']);    
//              }
        }

        public function howitworks() {
                $userId = $this->request->query('user_id');
//              if(isset($userId) && !empty($userId)){
//                      $this->loadModel('User');
//                      $dbuser = $this->User->findById($userId);
//                      $this->Auth->login($dbuser['User']);    
//              }
        }

        public function native(){
                $this->layout = 'ajax';
        }

        public function saholicoffline() {

        }

        public function askforupdate() {

        }

        public function appb() {
                // $this->layout = 'whitebg';
        }

        public function apphint() {

        }
        public function returnpolicy() {
                $check = false;
                $cookie_name = "version";
                if(isset($_COOKIE[$cookie_name])){
                        $check = true;
                }
                $this->set(compact('check'));
        }
        public function shippingpolicy(){
                
        }
        public function trip(){
        
        }
        public function jackpot(){
        
        }
        public function gabbar(){
                
        }
}