| Server IP : 172.67.201.108 / Your IP : 216.73.217.74 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tgnewdev/ |
Upload File : |
<?php
//ini_set('display_errors',1);
//error_reporting(E_ALL & ~E_NOTICE);
session_start();
set_include_path(get_include_path() . PATH_SEPARATOR . 'admin');
require_once('mod/_sanitize.php');
include_once('config/config.php');
date_default_timezone_set(APP_TIMEZONE);
try {
$db = new PDO(DB_CONNECT_STRING, DB_USER, DB_PWD);
} catch (Exception $e) {
die('Could not connect: ' . 'Database Error!');
}
$sql_tz = "SET time_zone = '".APP_TIMEZONE."'";
$db->query($sql_tz);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$authorized_call = 1;
require_once('mod/_functions.php');
$call = addslashes(trim($_GET['call']));
$bypass_session_timeout = $_GET['bypass_session_timeout'] ?? NULL;
if (page_allowed($call, 'ajax')) :
if ($call != 'logout_check' && $bypass_session_timeout != 'true') :
if (!empty($_SESSION['logged_in'])) :
$_SESSION['timeout'] = time() + APP_TIMEOUT;
endif;
endif;
include_once('mod/'.$call.'.php');
else :
echo 'Not Authorized!';
endif;