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); }
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'); }
/** * Constructor */ function __construct() { parent::__construct(); // load the users model $this->load->model('users_model'); // load the users language file $this->lang->load('users'); }
/** * 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'); }
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; } } }
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']; } }
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']); }
public function __construct(\Lavalite\Contact\Interfaces\ContactInterface $model) { $this->model = $model; parent::__construct(); }
public function __construct($data) { parent::__construct($data); }
<?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> " : '<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();
public function __construct($params) { parent::__construct($params); $this->show->Title = 'Пользователь'; }
public function __construct($params) { parent::__construct($params); }
public function actions() { return CMap::mergeArray(parent::actions(), array('page' => array('class' => 'CViewAction'))); }
public function __construct() { parent::__construct(); $this->load->helper('general'); }
public function __construct(\Lavalite\Portfolio\Interfaces\PortfolioInterface $portfolio) { $this->portfolio = $portfolio; parent::__construct(); }