| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2bzend/application/controllers/ |
Upload File : |
<?php
/**
* Copyright 2013 Catabatic Automation Technology Pvt Ltd.
* All rights reserved
*
* @description : BaseadminController.php 2016/07/13 18:22
* @author : Shakti Rana <shakti@catpl.co.in>
*/
class BaseadminController extends Zend_Controller_Action
{
const CONST_SOURCE_ADMIN = 3;
protected $model;
protected $modelName;
protected $tableName;
protected $intLoggedinUserId;
protected $InfoSourceSysId = 0;
protected $intLoggedinUserGroupSysId = 0;
protected $intLoggedinUserAgencySysId = 0;
protected $intLoggedinUserTrxCurrency = 0;
public function init()
{
$this->model = @$this->modelName ? new $this->modelName() : null;
$request = Zend_Controller_Front::getInstance()->getRequest();
$this->baseUrl = $request->getScheme() . '://' . $request->getHttpHost();
$sessionLogin_user = new Zend_Session_Namespace('sessionLogin_user');
$this->intLoggedinUserId = $sessionLogin_user->intLoggedinUserId;
if(empty($sessionLogin_user->intLoggedinUserId && $sessionLogin_user->UserRole)) {
$this->_helper->redirector('index', 'login', 'admin');
}
$this->InfoSourceSysId = self::CONST_SOURCE_ADMIN;// Source - Agent
}
}