File manager - Edit - /home/autoph/public_html/weCare/Covid19/ContactTracing/LiBiS/core/init.php
Back
<?php session_start(); error_reporting(0); date_default_timezone_set('Asia/Singapore'); require 'database/connect.php'; require 'functions/general.php'; require 'functions/users.php'; //include 'includes/dragmesrc.php'; $toDate = date_create() ->format("Y/m/d"); $toTime =Explode(":", date('H:i:s')); $tDate = explode("/",$toDate); $mycDay=$tDate[2]; $mycMonth=$tDate[1]; $mycYear=$tDate[0]; $myTime = $toTime[0]; $myMinute = $toTime[1]; $mySecond = $toTime[2]; $currentTime = $myTime . ':' . $myMinute . ':' . $mySecond; $date = new DateTime($toDate); $week = $date->format("W"); //echo "Arnel ".$currentTime; //https://www.allphptricks.com/demo/ PHP TRICKS ///*onfocus="this.value=''"> */ //error if other account is not activated all accounts cannot log in if (logged_in() === true){ $session_user_id = $_SESSION['u_id']; $user_data = user_data($session_user_id,'u_name','u_id','u_fname','u_lname','dealer','company','account_type'); if(user_active($user_data['u_name']) == false) { session_destroy(); Header('Location: logout.php'); } } //########################################################################## // ITEXMO SEND SMS API - PHP - CURL METHOD // Visit www.itexmo.com/developers.php for more info about this API //########################################################################## function itexmo($number,$message,$apicode){ $ch = curl_init(); $itexmo = array('1' => $number, '2' => $message, '3' => $apicode); curl_setopt($ch, CURLOPT_URL,"https://www.itexmo.com/php_api/api.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($itexmo)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); return curl_exec ($ch); curl_close ($ch); } //########################################################################## ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings