public function __construct($name = null, array $data = array(), $dataName = '') { $this->_className = $name; $this->_root = dirname(__FILE__); date_default_timezone_set('UTC'); parent::__construct($name, $data, $dataName); }
public function __construct($filepath, $timezone, $priority) { if ($priority == PhpLog::OFF) { return; } $this->filename = date('Y-m-d', time()) . '.log'; $this->log_file = $this->createPath($filepath, $this->filename); $this->MessageQueue = array(); $this->priority = $priority; date_default_timezone_set($timezone); if (!file_exists($filepath)) { if (!empty($filepath)) { if (!$this->_createDir($filepath)) { die("创建目录失败!"); } if (!is_writable($this->log_file)) { $this->Log_Status = PhpLog::OPEN_FAILED; $this->MessageQueue[] = "The file exists, but could not be opened for writing. Check that appropriate permissions have been set."; return; } } } if ($this->file_handle = fopen($this->log_file, "a+")) { $this->Log_Status = PhpLog::LOG_OPEN; $this->MessageQueue[] = "The log file was opened successfully."; } else { $this->Log_Status = PhpLog::OPEN_FAILED; $this->MessageQueue[] = "The file could not be opened. Check permissions."; } return; }
private function _init_env() { error_reporting(E_ERROR); define('MAGIC_QUOTES_GPC', function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()); // ' " \ NULL 等字符转义 当magic_quotes_gpc=On的时候,函数get_magic_quotes_gpc()就会返回1 define('GZIP', function_exists('ob_gzhandler')); // ob 缓存压缩输出 if (function_exists('date_default_timezone_set')) { @date_default_timezone_set('Etc/GMT-8'); //东八区 北京时间 } define('TIMESTAMP', time()); if (!defined('BLOG_FUNCTION') && !@(include BLOG_ROOT . '/source/functions.php')) { exit('functions.php is missing'); } define('IS_ROBOT', checkrobot()); global $_B; $_B = array('uid' => 0, 'username' => '', 'groupid' => 0, 'timestamp' => TIMESTAMP, 'clientip' => $this->_get_client_ip(), 'mobile' => '', 'agent' => '', 'admin' => 0); checkmobile(); $_B['PHP_SELF'] = bhtmlspecialchars($this->_get_script_url()); $_B['basefilename'] = basename($_B['PHP_SELF']); $sitepath = substr($_B['PHP_SELF'], 0, strrpos($_B['PHP_SELF'], '/')); $_B['siteurl'] = bhtmlspecialchars('http://' . $_SERVER['HTTP_HOST'] . $sitepath . '/'); getReferer(); $url = parse_url($_B['siteurl']); $_B['siteroot'] = isset($url['path']) ? $url['path'] : ''; $_B['siteport'] = empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']; $this->b =& $_B; }
/** * เรียกใช้งาน Class แบบสามารถเรียกได้ครั้งเดียวเท่านั้น * * @param array $config ค่ากำหนดของ แอพพลิเคชั่น * @return Singleton */ public function __construct() { /* display error */ if (defined('DEBUG') && DEBUG === true) { /* ขณะออกแบบ แสดง error และ warning ของ PHP */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); } else { /* ขณะใช้งานจริง */ error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); } /* config */ self::$cfg = \Config::create(); /* charset default UTF-8 */ ini_set('default_charset', self::$char_set); if (extension_loaded('mbstring')) { mb_internal_encoding(self::$char_set); } /* inint Input */ Input::normalizeRequest(); // template ที่กำลังใช้งานอยู่ Template::inint(Input::get($_GET, 'skin', self::$cfg->skin)); /* time zone default Thailand */ @date_default_timezone_set(self::$cfg->timezone); }
function Header() { $this->Print_Logo(); $this->SetDrawColor(0); $this->SetLineWidth(0); $this->SetXY($this->margenDerecho, 10); $this->SetFont('Arial', 'B', 16); $this->Cell(0, 0, 'Datos de la Empresa', 0, 0, 'C'); $psiniestro = $_SESSION["ReportesSiniestros"]["ID"]; $porden = $_SESSION["ReportesSiniestros"]["ORDEN"]; $this->SetFont('Arial', "I", 6); //$ahora = ["FECHASERVER"]; date_default_timezone_set('UTC'); $this->SetXY(5, 5); $ahora = date("d/m/Y"); $this->Cell(0, 0, $ahora . " ", 0, 0, 'L'); $this->Ln(15); $this->SetX($this->margenDerecho); $this->RellenaFondoLinea(192, 192, 192); /* $this->SetFillColor(192, 192, 192); $x=$this->GetX(); $y=$this->GetY(); $anchofijo = $this->w - 15; $this->Rect($x, $y+0.2, $anchofijo, 5, "F"); $this->SetFillColor(0, 0, 0); */ $this->SetTextColor(0, 0, 0); $this->SetFontAlignGeneral(); $Newrow = array_values($this->arrayTitulos); $this->Row($Newrow); // $this->LineaSepara(); $this->Ln(5); }
public function index($ss){ $data2=$this->mdiem_danh->mdiem_danh_select($ss); $name = $this->input->post("sex"); date_default_timezone_set('Asia/Ho_Chi_Minh'); $d=date('Y-m-d'); $t=date('H:i:s'); if($this->input->post('submit') == "submit"){ $data=$this->mdiem_danh->mdiem_danh_check_time($d); if($data==0){ if(isset($name)&& $name=='online') $this->mdiem_danh->mdiem_danh_insert($d,$t,$ss); echo "Diem danh thanh cong"; }else{ if(isset($name)&& $name=='offline'){ $this->mdiem_danh->mdiem_danh_update($t,$d); echo "ban da offline"; }else{ echo "ko dc diem danh"; } } } $data1 = array( 'test' => $data2, ); $this->load->view('view_diem_danh',$data1); }
public function timestampToDateTime($timestamp) { date_default_timezone_set("UTC"); $date = new \DateTime(); $date->setTimestamp($timestamp); return $date; }
protected function _preDispatch($action) { parent::_preDispatch($action); $this->perms = $this->getModelFromCache('EWRatendo_Model_Perms')->getPermissions(); $visitor = XenForo_Visitor::getInstance(); date_default_timezone_set($visitor['timezone']); }
/** * @param string $type The type of init to load, possible values are: frontend, frontend_ajax, frontend_js. */ public function initialize($type) { $type = (string) $type; // check if this is a valid type if (!in_array($type, $this->allowedTypes)) { exit('Invalid init-type'); } $this->type = $type; // set a default timezone if no one was set by PHP.ini if (ini_get('date.timezone') == '') { date_default_timezone_set('Europe/Brussels'); } // get last modified time for globals $lastModifiedTime = @filemtime(PATH_WWW . '/app/config/parameters.yml'); // reset last modified time if needed when invalid or debug is active if ($lastModifiedTime === false || $this->getContainer()->getParameter('kernel.debug')) { $lastModifiedTime = time(); } // define as a constant defined('LAST_MODIFIED_TIME') || define('LAST_MODIFIED_TIME', $lastModifiedTime); $this->definePaths(); $this->defineURLs(); $this->setDebugging(); // require spoon require_once 'spoon/spoon.php'; }
public function buat_SEP() { $timezone = date_default_timezone_get(); date_default_timezone_set('UTC'); $timestamp = strval(time() - strtotime('1970-01-01 00:00:00')); //cari timestamp $signature = hash_hmac('sha256', '27952' . '&' . $timestamp, 'rsm32h1', true); $encoded_signature = base64_encode($signature); $http_header = array('Accept: application/json', 'Content-type: application/xml', 'X-cons-id: 27952', 'X-timestamp: ' . $timestamp, 'X-signature: ' . $encoded_signature); date_default_timezone_set($timezone); //nama variabel sesuai dengan nama di xml $noMR = $this->input->post('no_cm'); $noKartu = $this->input->post('no_bpjs'); $noRujukan = $this->input->post('no_sjp'); $ppkRujukan = $this->input->post('ppk_rujukan'); $jnsPelayanan = $this->input->post('pelayanan'); $klsRawat = $this->input->post('kelas_pasien'); $diagAwal = $this->input->post('nm_diagnosa'); $poliTujuan = $this->input->post('nm_poli'); $catatan = $this->input->post('catatan'); $user = '******'; $ppkPelayanan = '0601R001'; $tglSep = date('Y-m-d H:i:s'); $tglRujukan = date('Y-m-d H:i:s'); $data = '<request><data><t_sep>' . '<noKartu>' . $noKartu . '</noKartu>' . '<tglSep>' . $tglSep . '</tglSep>' . '<tglRujukan>' . $tglRujukan . '</tglRujukan>' . '<noRujukan>' . $noRujukan . '</noRujukan>' . '<ppkRujukan>' . $ppkRujukan . '</ppkRujukan>' . '<ppkPelayanan>' . $ppkPelayanan . '</ppkPelayanan>' . '<jnsPelayanan>' . $jnsPelayanan . '</jnsPelayanan>' . '<catatan>' . $catatan . '</catatan>' . '<diagAwal>' . $diagAwal . '</diagAwal>' . '<poliTujuan>' . $poliTujuan . '</poliTujuan>' . '<klsRawat>' . $klsRawat . '</klsRawat>' . '<user>' . $user . '</user>' . '<noMR>' . $noMR . '</noMR>' . '</t_sep></data></request>'; $ch = curl_init('http://api.asterix.co.id/SepWebRest/sep/create/'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_HTTPHEADER, $http_header); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $result = curl_exec($ch); curl_close($ch); $sep = json_decode($result)->response; echo $sep; }
function change_channel($change_channel) { $ret = false; if ($change_channel) { $r = q("select channel.*, xchan.* from channel left join xchan on channel.channel_hash = xchan.xchan_hash where channel_id = %d and channel_account_id = %d and not ( channel_pageflags & %d) limit 1", intval($change_channel), intval(get_account_id()), intval(PAGE_REMOVED)); if ($r) { $hash = $r[0]['channel_hash']; $_SESSION['uid'] = intval($r[0]['channel_id']); get_app()->set_channel($r[0]); $_SESSION['theme'] = $r[0]['channel_theme']; $_SESSION['mobile_theme'] = get_pconfig(local_user(), 'system', 'mobile_theme'); date_default_timezone_set($r[0]['channel_timezone']); $ret = $r[0]; } $x = q("select * from xchan where xchan_hash = '%s' limit 1", dbesc($hash)); if ($x) { $_SESSION['my_url'] = $x[0]['xchan_url']; $_SESSION['my_address'] = $r[0]['channel_address'] . '@' . substr(get_app()->get_baseurl(), strpos(get_app()->get_baseurl(), '://') + 3); get_app()->set_observer($x[0]); get_app()->set_perms(get_all_perms(local_user(), $hash)); } if (!is_dir('store/' . $r[0]['channel_address'])) { @os_mkdir('store/' . $r[0]['channel_address'], STORAGE_DEFAULT_PERMISSIONS, true); } } return $ret; }
static function getDate($campo = null) { date_default_timezone_set('Europe/Madrid'); switch ($campo) { case "Y": intval(date("Y", $_SERVER["REQUEST_TIME"])); break; case "M": intval(date("M", $_SERVER["REQUEST_TIME"])); break; case "D": intval(date("D", $_SERVER["REQUEST_TIME"])); break; case "h": intval(date("h", $_SERVER["REQUEST_TIME"])); break; case "m": intval(date("m", $_SERVER["REQUEST_TIME"])); break; case "s": intval(date("s", $_SERVER["REQUEST_TIME"])); break; default: return $SERVER["REQUEST_TIME"]; break; } return $_SERVER["REQUEST_TIME"]; }
public function index() { date_default_timezone_set('Asia/Jakarta'); require "sms/Services/Twilio.php"; // Step 2: set our AccountSid and AuthToken from www.twilio.com/user/account $AccountSid = "XXXXXXXXXX"; $AuthToken = "XXXXXXXXX"; // Step 3: instantiate a new Twilio Rest Client $client = new Services_Twilio($AccountSid, $AuthToken); $this->load->database(); $tabel = $this->db->get('acara')->result_array(); foreach ($tabel as $row) { if ($this->seminggu(new DateTime($row['Waktu']), $row['Dimunculkan'])) { $this->sendsms($client, $row['Nama_acara'], $row['Tempat'], $row['Waktu']); $newval = $row['Dimunculkan'] | 1 << 2; $this->db->where('Id', $row['Id']); $this->db->update('acara', array('Dimunculkan' => $newval)); } if ($this->sehari(new DateTime($row['Waktu']), $row['Dimunculkan'])) { $this->sendsms($client, $row['Nama_acara'], $row['Tempat'], $row['Waktu']); $newval = $row['Dimunculkan'] | 1 << 1; $this->db->where('Id', $row['Id']); $this->db->update('acara', array('Dimunculkan' => $newval)); } if ($this->sejam(new DateTime($row['Waktu']), $row['Dimunculkan'])) { $this->sendsms($client, $row['Nama_acara'], $row['Tempat'], $row['Waktu']); $newval = $row['Dimunculkan'] | 1 << 0; $this->db->where('Id', $row['Id']); $this->db->update('acara', array('Dimunculkan' => $newval)); } } }
public function __construct() { parent::__construct(); $this->load->helper('date'); $this->load->model('mod_farmersprofile'); date_default_timezone_set("Asia/Kathmandu"); }
public function __construct() { parent::__construct(); $this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0"); $this->output->set_header("Pragma: no-cache"); $this->load->model('noise_model'); if ($this->auth->is_logged() == FALSE) { $this->status_login = "******"; $this->key_activation = $this->generate_key(20); } else { $this->status_login = "******"; } // LOAD LIBRARY SLUG $config = array('table' => 'notion', 'id' => 'id_notion', 'field' => 'slug', 'title' => 'title', 'replacement' => 'dash'); $this->load->library('slug', $config); ## FECHA date_default_timezone_set('UTC'); $timestamp = now(); $timezone = 'UM5'; $daylight_saving = false; $now = gmt_to_local($timestamp, $timezone, $daylight_saving); $datestring = "%Y-%m-%d %h:%i:%s"; $this->now = mdate($datestring, $now); //$this->name_country = $this->country->ip_info('Visitor', 'Country'); //$this->code_country = $this->country->ip_info("Visitor", "Country Code"); $this->name_country = 'PERU'; $this->code_country = 'PE'; //$this->state = $this->country->ip_info('181.66.157.144', 'State'); }
function addCompanyDetails() { $userID = trim($_REQUEST['userID']); $companyName = trim($_REQUEST['companyName']); //Get Request From Device $companyTanNo = trim($_REQUEST['companyTanNo']); $companyPanNo = trim($_REQUEST['companyPanNo']); $companyAddress = trim($_REQUEST['companyAddress']); $rm = new Response_Methods(); if ($companyName == "" || $companyTanNo == "" || $companyPanNo == "" || $companyAddress == "") { $result = $rm->fields_validation(); return $result; } else { date_default_timezone_set('Asia/Calcutta'); $createdDate = date('Y-m-d H:i:s'); $getList = array(); $getFieldValue['login_user_id'] = $userID; $getFieldValue['company_name'] = $companyName; $getFieldValue['company_tan_no'] = $companyTanNo; $getFieldValue['company_pan_no'] = $companyPanNo; $getFieldValue['company_address'] = $companyAddress; $getFieldValue['company_created_date'] = $createdDate; $lastInsertId = $rm->insert_record($getFieldValue, 'company_details_t'); if (!empty($lastInsertId)) { $result = $rm->companyRegisterSuccessJson($lastInsertId); return $result; } else { $result = $rm->companyRegisterFailJson(); return $result; } } }
function getDate() { $timezone = 'Asia/Manila'; date_default_timezone_set($timezone); $timeNow = date("m-d-Y-hia"); return $timeNow; }
function make_discount($cpn_code, $total_amt, $tp_id, $std_id) { date_default_timezone_set('Asia/Calcutta'); $this->select("coupons", "id, discount, exp_date, used_by", "name='{$cpn_code}'", "none", "1"); if ($this->sel_count_row > 0) { $discount = $this->select_res['discount']; $new_amt = $total_amt - $discount; $exp_date_arr = explode("-", $this->select_res['exp_date']); $exp_time = mktime(0, 0, 0, $exp_date_arr[2], $exp_date_arr[1], $exp_date_arr[0]); $crnt_time = time(); if ($exp_time > $crnt_time) { $cpn_id = $this->select_res['id']; if ($this->select_res['used_by'] != "") { $old_reciver = json_decode($this->select_res['used_by'], true); $old_reciver[] = array('std_id' => $std_id, 'tp_id' => $tp_id); $new_reciver = json_encode($old_reciver); } else { $new_reciver = json_encode(array(array('std_id' => $std_id, 'tp_id' => $tp_id))); } $this->update("coupons", "used_by='{$new_reciver}'", "id='{$cpn_id}'", "1"); return $new_amt; } else { return $total_amt; } } else { return $total_amt; } }
public static function logger($string) { $file = $this->root() . "log/sitesearch.log"; // $file = "./log/sitesearch.log"; // this is just for testing installation /* * if (!touch($file)) { * echo "FILE ERROR: cannot touch $file with user " . get_current_user() . "\n"; // helps figure out why you * can't touch the file * return; * } else { * echo "FILE: touched $file with user " . get_current_user() . "\n"; // helps figure out why you can't touch * the file * } */ if (!($fh = fopen($file, 'a'))) { return; } flock($fh, LOCK_EX); $delim = "\t"; date_default_timezone_set($conf['timeZone']); if (!fwrite($fh, 'StaticUtil[' . date('Y-M-d H:i:s') . ']' . $delim . $string . "\r\n")) { return; } flock($fh, LOCK_UN); fclose($fh); }
public function __construct() { parent::__construct(); // Your own constructor code date_default_timezone_set('Asia/Manila'); $this->load->model('site_model'); }
function sqlGetCurrentDay() { $time = time(); date_default_timezone_set('Asia/Shanghai'); $time = date('Y-m-d'); return $time; }
function __construct() { date_default_timezone_set('Asia/Manila'); session_start(); if (!file_exists(__DIR__ . '/../assets/xml/settings.xml')) { $newXml = fopen(__DIR__ . '/../assets/xml/settings.xml', 'w'); fwrite($newXml, '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL); fwrite($newXml, '<settings><setting name="hostname" value="localhost"/><setting name="username" value="root"/><setting name="password" value=""/><setting name="database" value="law_election_database"/></settings>'); fclose($newXml); } $xml = simplexml_load_file(__DIR__ . '/../assets/xml/settings.xml'); foreach ($xml->setting as $setting) { if ($setting['name'] == 'hostname') { $this->host = $setting['value']; } else { if ($setting['name'] == 'username') { $this->username = $setting['value']; } else { if ($setting['name'] == 'password') { $this->password = $setting['value']; } else { if ($setting['name'] == 'database') { $this->database = $setting['value']; } } } } } }
function __construct() { date_default_timezone_set('Asia/Calcutta'); parent::__construct(); $this->load->Model('Mdl_users'); $this->load->Model('sellers/Mdl_sellers'); }
function sendmail($user, $message) { $body = $message; date_default_timezone_set('Etc/UTC'); $mail = new PHPMailer(); $mail->isSMTP(); // $mail->SMTPDebug = 2; $mail->Debugoutput = 'html'; $mail->Host = '1nicethingnet.domain.com'; $mail->Port = 587; $mail->SMTPSecure = ''; $mail->SMTPAuth = true; $mail->Username = "******"; $mail->Password = "******"; $mail->setFrom('*****@*****.**', 'One Nice Thing'); $mail->addAddress($user, 'Customer'); $mail->Subject = ""; $mail->msgHTML($body); $mail->AltBody = ''; $mail->send(); //if (!$mail->send()) { // echo "Mailer Error: " . $mail->ErrorInfo; //} else { // echo "Message sent!"; //} }
public function RecordOrder($aData, $id_cat) { $payerId = $this->getPayerId($aData['PAYERID']); date_default_timezone_set('Europe/Paris'); $dDate = date('Y-m-d H:i:s'); $reqInsert = "INSERT INTO products_orders (date_order, chekoutstatus, id_payer, amt, product_cat) VALUES(:date_order, :status, :id_payer, :amt, :product_cat)"; $insert = SPDO::getInstance()->prepare($reqInsert); $insert->bindParam(':date_order', $dDate); $insert->bindParam(':status', $aData['CHECKOUTSTATUS']); $insert->bindParam(':id_payer', $payerId['id_payer']); $insert->bindParam(':amt', $aData['PAYMENTREQUEST_0_AMT']); $insert->bindParam(':product_cat', $id_cat); try { $result = $insert->execute(); $iId_Order = SPDO::getInstance()->lastInsertId(); } catch (PDOException $e) { echo $e->getMessage(); $result = false; return $result; } if ($result) { $this->RecordDetailsOrder($iId_Order, $aData); return $iId_Order; } }
public function __construct() { parent::__construct(); // PHP 5.3 ask for timezone, and throw a warning whenever it is not available // so, just give this one :) $timezone = @date_default_timezone_get(); if (!isset($timezone) || $timezone == '') { $timezone = @ini_get('date.timezone'); } if (!isset($timezone) || $timezone == '') { $timezone = 'UTC'; } date_default_timezone_set($timezone); // load helpers and libraries $this->load->helper('url'); $this->load->helper('html'); $this->load->helper('form'); $this->load->helper('string'); $this->load->library('user_agent'); $this->load->driver('session'); $this->load->helper('cms_helper'); $this->load->library('form_validation'); $this->load->database(); // accessing file is faster than accessing database // but I think accessing variable is faster than both of them $this->__cms_model_properties = array('session' => array(), 'language_dictionary' => array(), 'config' => array()); }
public function new_role() { date_default_timezone_set("America/Bogota"); $date = date("Y") . "-" . date("m") . "-" . date("d"); $query = "INSERT INTO roles VALUES('', '" . $_POST["code"] . "', '" . $_POST["name"] . "', \n '" . $_POST["desc"] . "', '" . $date . "', '" . $_POST["status"] . "', '" . $_POST["module"] . "')"; $this->bd->insert($query); }
/** * Processes resource requests before anything else has a chance to initialize. */ public function init() { // Set default timezone to UTC date_default_timezone_set('UTC'); // Import all the built-in components foreach ($this->componentAliases as $alias) { Craft::import($alias); } // Initialize HttpRequestService and LogRouter right away $this->getComponent('request'); $this->getComponent('log'); // Set our own custom runtime path. $this->setRuntimePath($this->path->getRuntimePath()); // Attach our own custom Logger Craft::setLogger(new Logger()); // If we're not in devMode or this is a resource request, we're going to remove some logging routes. if (!$this->config->get('devMode') || ($resourceRequest = $this->request->isResourceRequest()) == true) { // If it's a resource request, we don't want any logging routes, including craft.log // If it's not a resource request, we'll keep the FileLogRoute around. if ($resourceRequest) { $this->log->removeRoute('FileLogRoute'); } // Don't need either of these if not in devMode or it's a resource request. $this->log->removeRoute('WebLogRoute'); $this->log->removeRoute('ProfileLogRoute'); } parent::init(); }
/** * Initialize the provider * * @return void */ public function initialize() { $this->options = array_merge($this->defaultConfig, $this->options); date_default_timezone_set($this->options['log.timezone']); // Finally, create a formatter $formatter = new LineFormatter($this->options['log.outputformat'], $this->options['log.dateformat'], false); // Create a new directory $logPath = realpath($this->app->config('bono.base.path')) . '/' . $this->options['log.path']; if (!is_dir($logPath)) { mkdir($logPath, 0755); } // Create a handler $stream = new StreamHandler($logPath . '/' . date($this->options['log.fileformat']) . '.log'); // Set our formatter $stream->setFormatter($formatter); // Create LogWriter $logger = new LogWriter(array('name' => $this->options['log.name'], 'handlers' => array($stream), 'processors' => array(new WebProcessor()))); // Bind our logger to Bono Container $this->app->container->singleton('log', function ($c) { $log = new Log($c['logWriter']); $log->setEnabled($c['settings']['log.enabled']); $log->setLevel($c['settings']['log.level']); $env = $c['environment']; $env['slim.log'] = $log; return $log; }); // Set the writer $this->app->config('log.writer', $logger); }
function __construct() { date_default_timezone_set('Asia/Jakarta'); parent::__construct(); $this->load->model('dashboard/model_dashboard_admin', '', TRUE); $this->load->model('dashboard/model_dashboard_user', '', TRUE); }