예제 #1
0
 public function __construct()
 {
     $this->auth = false;
     parent::__construct();
     $this->context = Context::getContext();
     include_once $this->module->getLocalPath() . 'stripejs.php';
 }
 public function __construct()
 {
     parent::__construct();
     $this->ssl = true;
     $this->display_column_left = false;
     $this->display_column_right = false;
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     if ($this->ajax) {
         $this->content_only = true;
     }
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $aResponse['error'] = false;
     $aResponse['message'] = '';
     if (isset($_POST['action'])) {
         $id_video = $_POST['idBox'];
         $ratting = $_POST['rate'];
         if (VideosRatting::checkRatting($id_video)) {
             $videosRatting = new VideosRatting();
             $videosRatting->add(array('id_video' => $id_video, 'ratting' => $ratting));
             $aResponse['error'] = FALSE;
             $aResponse['message'] = 'Your rate has been successfuly recorded. Thanks for your rate';
         } else {
             $aResponse['error'] = true;
             $aResponse['message'] = 'Your have rated for images';
         }
     } else {
         $aResponse['error'] = true;
         $aResponse['message'] = 'An error occured during the request. Please retry';
     }
     echo json_encode($aResponse);
     die;
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     // Hide columns
     $this->display_column_left = false;
     $this->display_column_right = false;
 }
예제 #6
0
파일: get.php 프로젝트: zangles/lennyba
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     //include_once($this->module->getLocalPath().'WishList.php');
     include_once $this->module->getLocalPath() . 'simplecategory.php';
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->ssl = true;
     include_once $this->module->getLocalPath() . 'WishList.php';
 }
예제 #8
0
 public function __construct()
 {
     $this->display_column_left = false;
     $this->display_column_right = false;
     parent::__construct();
     $this->context = Context::getContext();
 }
예제 #9
0
파일: popup.php 프로젝트: pacxs/pacxscom
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     include_once dirname(__FILE__) . '/../../classes/LofBlock.php';
     include_once dirname(__FILE__) . '/../../classes/LofItem.php';
     include_once dirname(__FILE__) . '/../../lofadvancecustom.php';
 }
예제 #10
0
 public function __construct()
 {
     parent::__construct();
     $this->themeName = Context::getContext()->shop->getTheme();
     $this->img_path = _PS_ALL_THEMES_DIR_ . $this->themeName . '/img/modules/' . $this->_nameModule . '/';
     $this->img_url = __PS_BASE_URI__ . 'themes/' . $this->themeName . '/img/modules/' . $this->_nameModule . '/';
     include_once $this->module->getLocalPath() . $this->_nameModule . '.php';
 }
예제 #11
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     include_once $this->module->getLocalPath() . 'LoyaltyModule.php';
     include_once $this->module->getLocalPath() . 'LoyaltyStateModule.php';
     // Declare smarty function to render pagination link
     smartyRegisterFunction($this->context->smarty, 'function', 'summarypaginationlink', array('LoyaltyDefaultModuleFrontController', 'getSummaryPaginationLink'));
 }
예제 #12
0
파일: Editor.php 프로젝트: evgrishin/se1614
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $columns = Context::getContext()->theme->hasColumns('index');
     $this->display_column_left = $columns['left_column'];
     $this->display_column_right = $columns['right_column'];
     include_once $this->module->getLocalPath() . 'iqitcontentcreator.php';
 }
예제 #13
0
 public function __construct()
 {
     parent::__construct();
     $this->pfConfig = Payfort_Fort_Config::getInstance();
     $this->pfHelper = Payfort_Fort_Helper::getInstance();
     $this->pfPayment = Payfort_Fort_Payment::getInstance();
     if (session_id() == '') {
         session_start();
     }
 }
예제 #14
0
 /**
  * @inheritdoc
  */
 public function __construct()
 {
     parent::__construct();
     if (($limit = Tools::getValue('limit')) !== false && !empty($limit)) {
         $this->limit = (int) $limit;
     }
     if (($offset = Tools::getValue('offset')) !== false && !empty($offset)) {
         $this->offset = (int) $offset;
     }
 }
예제 #15
0
 public function __construct()
 {
     $this->controller_type = 'modulefront';
     $this->module = Module::getInstanceByName(Tools::getValue('module'));
     if (!$this->module->active) {
         Tools::redirect('index');
     }
     $this->page_name = 'module-' . $this->module->name . '-' . Dispatcher::getInstance()->getController();
     parent::__construct();
 }
예제 #16
0
 public function __construct($type = null)
 {
     parent::__construct();
     if ($type != 'byepass') {
         if (Configuration::get('PWAPRESTA_PWAPRESTA_ORDER_UPDATE_API') == 'IOPN') {
             echo "Kindly enable MWS in plugin setting";
             exit;
         }
         $this->context = Context::getContext();
     }
 }
예제 #17
0
파일: dotpay.php 프로젝트: dotpay/dotpay
 /**
  * Prepares environment for all Dotpay controllers
  */
 public function __construct()
 {
     parent::__construct();
     $this->config = new DotpayConfig();
     $this->initPersonalData();
     if ($this->config->getDotpayApiVersion() == 'legacy') {
         $this->api = new DotpayLegacyApi($this);
     } else {
         $this->api = new DotpayDevApi($this);
     }
     $this->module->registerFormHelper();
 }
예제 #18
0
 /**
  * Initialise the object variables
  */
 public function __construct()
 {
     parent::__construct();
     $this->oPrediggoConfig = new PrediggoConfig($this->context);
     if (!$this->oPrediggoConfig->search_active) {
         Tools::redirect('index.php');
     }
     $this->sRepositoryPath = _PS_MODULE_DIR_ . 'prediggo/logs/';
     $this->oPrediggoCall = new PrediggoCall($this->oPrediggoConfig->web_site_id, $this->oPrediggoConfig->server_url_search);
     $this->sQuery = Tools::getValue('q');
     $this->sRefineOption = Tools::getValue('refineOption');
 }
예제 #19
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->instant_search = Tools::getValue('instantSearch');
     $this->display_column_left = true;
     $this->display_column_right = false;
     $this->ajax_search = Tools::getValue('ajax_Search');
     if ($this->instant_search || $this->ajax_search) {
         $this->display_header = false;
         $this->display_footer = false;
     }
 }
예제 #20
0
 public function __construct()
 {
     parent::__construct();
     $url = 'index.php?fc=module&module=yousticeresolutionsystem&controller=yrs';
     $this->url_yrs = '//' . Tools::getShopDomainSsl() . __PS_BASE_URI__ . $url;
     $yapi = $this->createSDK();
     //at logged out reporting
     $this->authenticateUser();
     $yapi->setUserId($this->customer_id);
     $yapi->run();
     $this->yapi = $yapi;
     $this->parseActions();
 }
예제 #21
0
 public function __construct()
 {
     parent::__construct();
     if (Tools::getValue('ajaxMode')) {
         $this->ajax = true;
         $this->display_column_left = false;
         $this->display_column_right = false;
         $this->display_header = false;
         $this->display_footer = false;
     }
     if (version_compare(_PS_VERSION_, '1.5.0.0', '>=')) {
         $this->context = Context::getContext();
     } else {
         $this->context = (object) null;
     }
 }
예제 #22
0
 public function __construct()
 {
     $this->controller_type = 'modulefront';
     $this->module = Module::getInstanceByName(Tools::getValue('module'));
     if (!$this->module->active) {
         Tools::redirect('index');
     }
     $this->page_name = 'module-' . $this->module->name . '-' . Dispatcher::getInstance()->getController();
     parent::__construct();
     header('Content-Type: application/javascript');
     $cookiestring = Tools::getValue('c');
     if ($cookiestring != '') {
         if (isset($this->context->cookie->{$cookiestring})) {
             echo AmzPayments::prepareCookieValueForAmazonPaymentsUse($this->context->cookie->{$cookiestring});
         }
     }
     exit;
 }
예제 #23
0
파일: responses.php 프로젝트: acreno/pm-ps
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->module = Module::getInstanceByName('lgconsultas');
 }
예제 #24
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->template_path = _PS_MODULE_DIR_ . 'leoblog/views/templates/front/';
 }
예제 #25
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
 }
 /**
  * 
  * --
  */
 public function __construct()
 {
     parent::__construct();
 }
예제 #27
0
 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->conf = Psnews::getPreferences();
 }
예제 #28
0
 public function __construct()
 {
     parent::__construct();
     $this->helper = new InvipaypaygateHelper();
 }
예제 #29
0
 public function __construct()
 {
     parent::__construct();
     $this->helper = new InvipaypaygateHelper();
     $this->display_column_left = false;
 }
예제 #30
0
 public function __construct()
 {
     parent::__construct();
     $this->host = Tools::getHttpHost();
 }