protected function beforeAction($action)
 {
     $sql = "INSERT INTO mandrillWebhookLog SET `GET` = :GET, `POST` = :POST, `SERVER`=:SERVER, `headers` = :headers";
     $cmnd = Yii::app()->db->createCommand($sql);
     $cmnd->execute(['GET' => print_r($_GET, true), 'POST' => print_r($_POST, true), 'SERVER' => print_r($_SERVER, true), 'headers' => print_r(apache_request_headers(), true)]);
     return parent::beforeAction($action);
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct('items');
     $this->load->library('item_lib');
     $this->data['pagetitle'] = $this->lang->line('module_' . strtolower(get_class()));
     $this->data['pagedescription'] = $this->lang->line('module_items_desc');
 }
Exemplo n.º 3
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // load the users model
     $this->load->model('users_model');
     // load the users language file
     $this->lang->load('users');
 }
Exemplo n.º 4
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // load the language file
     $this->lang->load('contact');
     // load the model file
     $this->load->model('contact_model');
     // load the captcha helper
     $this->load->helper('captcha');
 }
Exemplo n.º 5
0
 public function __construct($data)
 {
     parent::__construct($data);
     if ($this->show->itemID) {
         $this->show->staticPath = $this->show->itemID;
     } else {
         if (!empty($this->data[0])) {
             $this->show->staticPath = $this->data[0];
         } else {
             $this->show->staticPath = 0;
         }
     }
 }
Exemplo n.º 6
0
 public function __construct($data)
 {
     parent::__construct($data);
     $this->show->Title = 'Каталог';
     $oPage = Page_Handler::getPage();
     $oPage->StaticPath = 'catalog/category/' . $this->show->itemID;
     $this->show->path2Category = $oPage->getPathToRoot() . $oPage->StaticPath;
     $this->show->isCatalog = true;
     $this->show->catalogIndex = false;
     $this->show->catalogCategory = $this->oCatalogCategory->getList(-1);
     $this->show->filterID = 0;
     $metas = $this->oCatalogCategory->getById($this->show->itemID);
     if ($metas['MetaKeywords']) {
         $this->show->MetaKeywords = $metas['MetaKeywords'];
     }
     if ($metas['MetaTitle']) {
         $this->show->MetaTitle = $metas['MetaTitle'];
     }
     if ($metas['MetaDescription']) {
         $this->show->MetaDescription = $metas['MetaDescription'];
     }
 }
Exemplo n.º 7
0
 function __construct()
 {
     parent::__construct();
 }
 /**
  * Create a new ResourceController instance.
  */
 public function __construct()
 {
     parent::__construct();
     // No CSRF protection.
     unset($this->middleware['Anomaly\\Streams\\Platform\\Http\\Middleware\\VerifyCsrfToken']);
 }
Exemplo n.º 9
0
 public function __construct(\Lavalite\Contact\Interfaces\ContactInterface $model)
 {
     $this->model = $model;
     parent::__construct();
 }
Exemplo n.º 10
0
 public function __construct($data)
 {
     parent::__construct($data);
 }
Exemplo n.º 11
0
<?php

$time = -microtime(true);
include "./init.php";
include APPLICATION_PATH . "/config.php";
include APPLICATION_PATH . "/pdo_connect.php";
include APPLICATION_PATH . '/post.php';
include APPLICATION_PATH . '/posts.php';
include APPLICATION_PATH . '/tag.php';
include APPLICATION_PATH . "/baseController.php";
include APPLICATION_PATH . "/publicController.php";
include APPLICATION_PATH . "/adminController.php";
include APPLICATION_PATH . "/statLib.php";
include APPLICATION_PATH . "/view.php";
$login = AuthLib::getLoggedUser();
$displayName = AuthLib::getDisplayNameByLogin($login);
if ($displayName) {
    $ctrller = new AdminController();
}
$ctrller = new PublicController();
View::addHeadLine('<title>R2</title>');
View::printPageStart();
echo $displayName ? "<div class=\"userAction\">Logged as <b>{$displayName}</b> &nbsp; " : '<div>';
AuthLib::getAction();
echo '</div>';
$ctrller->printHtml();
$time += microtime(true);
echo '<div class="stats">Memory used: ' . memory_get_usage(true) / 1024 . "kiB | Time consumed: {$time}s </div>";
View::printPageEnd();
Exemplo n.º 12
0
 public function __construct($params)
 {
     parent::__construct($params);
     $this->show->Title = 'Пользователь';
 }
Exemplo n.º 13
0
Arquivo: Page.php Projeto: kizz66/meat
 public function __construct($params)
 {
     parent::__construct($params);
 }
Exemplo n.º 14
0
 public function actions()
 {
     return CMap::mergeArray(parent::actions(), array('page' => array('class' => 'CViewAction')));
 }
Exemplo n.º 15
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('general');
 }
 public function __construct(\Lavalite\Portfolio\Interfaces\PortfolioInterface $portfolio)
 {
     $this->portfolio = $portfolio;
     parent::__construct();
 }