public function __construct() { parent::__construct(); $this->session = new Resources\Session(); $this->request = new Resources\Request(); $this->anggota = new Models\Anggota(); }
/** * @Author : Localhost {Ferdhika Yudira} * @Email : fer@dika.web.id * @Web : http://dika.web.id * @Date : 2015-12-01 08:00:18 **/ function __construct() { parent::__construct(); $this->m_matkul = new Models\M_matkul(); $this->m_materi = new Models\M_materi(); $this->konfig = Resources\Config::website(); }
public static function outputError($message = null) { // Write the error to log file @error_log('Error 404 Page Not Found: ' . $_SERVER['REQUEST_URI']); header('HTTP/1.1 404 Not Found', true, 500); \Resources\Controller::outputError('errors/404', array('message' => $message)); }
public function __construct() { parent::__construct(); $this->db = new Resources\Database(); $this->bencana = new Models\Bencana(); $this->simplehtmldom = Resources\Import::vendor('simplehtmldom/simple_html_dom'); }
public function __construct() { parent::__construct(); $this->pagination = new Resources\Pagination(); $this->posts = new Models\Posts(); $this->template = new Libraries\Template(); }
public function __construct() { parent::__construct(); $this->session = new Resources\Session(); $this->request = new Resources\Request(); $this->users = new Models\Users(); }
public function __construct() { parent::__construct(); $this->post = new Resources\Request(); $this->login = new Models\M_login(); $this->session = new Resources\Session(); }
/** * @Author : Localhost {Ferdhika Yudira} * @Email : fer@dika.web.id * @Web : http://dika.web.id * @Date : 2015-12-05 21:40:10 **/ function __construct() { parent::__construct(); // $this->pengaturan = new Models\M_pengaturan; $this->session = new Resources\Session(); $this->request = new Resources\Request(); $this->admin = new Models\M_admin(); }
public function __construct() { parent::__construct(); if (is_array(MY\Resource\Config::database())) { $this->auth = $this->phpauth(); $this->acl = $this->simpleacl(); } $this->view = $this->plates(); }
public function __construct() { parent::__construct(); $this->post = new Resources\Request(); $this->session = new Resources\Session(); $this->gurumodel = new Models\M_guru(); $this->validasi = new Models\Validasi(); $this->pagination = new Resources\Pagination(); $this->enkripsi = new Libraries\Enkripsi(); }
public function __construct() { parent::__construct(); $this->session = new Resources\Session(); $this->model = new Models\Inventaris(); $this->request = new Resources\Request(); if (empty($this->session->getValue('id_operator'))) { $this->redirect('home'); } }
public static function outputError($exception) { if (PHP_SAPI == 'cli') { echo $exception->getMessage() . "\nFile: " . $exception->getFile() . " on line " . $exception->getLine() . "\n\n" . $exception->getTraceAsString() . "\n"; // exit with an error code exit(1); } // Write the error to log file @error_log('Error 404 Page Not Found: ' . $_SERVER['REQUEST_URI']); header('HTTP/1.1 404 Not Found', true, 500); \Resources\Controller::outputError('errors/404', array('message' => $exception->getMessage())); }
/** * @Author : Localhost {Ferdhika Yudira} * @Email : fer@dika.web.id * @Web : http://dika.web.id * @Date : 2015-12-05 20:55:41 **/ function __construct() { parent::__construct(); // Load library $this->session = new Resources\Session(); $this->request = new Resources\Request(); // Load Models $this->admin = new Models\M_admin(); // Load konfigurasi $this->konfig = Resources\Config::website(); // cek login admin session if (!$this->session->getValue('isAdmin')) { $this->redirect('admin/login'); } }
/** * @Author : Localhost {Ferdhika Yudira} * @Email : fer@dika.web.id * @Web : http://dika.web.id * @Date : 2015-12-06 12:33:59 **/ function __construct() { parent::__construct(); // Load library $this->session = new Resources\Session(); $this->request = new Resources\Request(); // Load model $this->m_admin = new Models\M_admin(); // Load konfigurasi website $this->konfig = Resources\Config::website(); if (!$this->session->getValue('isAdmin')) { $this->redirect('admin/login'); } if ($this->session->getValue('hak') != 1) { $this->redirect('admin'); } }
public static function outputError($message = null, $file = false, $line = false, $trace = false) { // Message for log $errorMessage = 'Error ' . $message . ' in ' . $file . ' line: ' . $line; // Write the error to log file @error_log($errorMessage); // Just output the error if the error source for view file or if in cli mode. if (array_search('views', explode('/', $file)) !== false || PHP_SAPI == 'cli') { exit($errorMessage); } $code = array(); if (!$file) { goto constructViewData; } $fileString = file_get_contents($file); $arrLine = explode("\n", $fileString); $totalLine = count($arrLine); $getLine = array_combine(range(1, $totalLine), array_values($arrLine)); $startIterate = $line - 5; $endIterate = $line + 5; if ($startIterate < 0) { $startIterate = 0; } if ($endIterate > $totalLine) { $endIterate = $totalLine; } for ($i = $startIterate; $i <= $endIterate; $i++) { $html = '<span style="margin-right:10px;background:#CFCFCF;">' . $i . '</span>'; if ($line == $i) { $html .= '<span style="color:#DD0000">' . $getLine[$i] . "</span>\n"; } else { $html .= $getLine[$i] . "\n"; } $code[] = $html; } constructViewData: $data = array('message' => $message, 'file' => $file, 'line' => $line, 'code' => $code, 'trace' => $trace); header("HTTP/1.1 500 Internal Server Error", true, 500); \Resources\Controller::outputError('errors/500', $data); exit(1); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->app = 'app/'; }
public function __construct() { parent::__construct(); $this->db = new Resources\Database(); }
public function __construct() { parent::__construct(); $this->session = new Resources\Session(); }
public function __construct() { parent::__construct(); $this->simplehtmldom = Resources\Import::vendor('simplehtmldom/simple_html_dom'); Resources\Import::composer(); }
public function __construct() { parent::__construct(); $this->request = new Resources\Request(); }
public function __construct() { parent::__construct(); $this->view = $this->twig(); }