MOON
Server: Apache
System: Linux 54-179-220-51.cprapid.com 3.10.0-1160.144.1.el7.tuxcare.els4.x86_64 #1 SMP Tue Apr 7 08:40:40 UTC 2026 x86_64
User: thehunarfound (1001)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/thehunarfound/public_html/sms/lib/config.php
<?php


error_reporting(1);
session_start();

// $_SESSION['USER']='Atif';
// $role=$_SESSION["Role"];
// echo $role;
// if($role == 'DMSTI' || $role == 'CVI' || $role == 'FAASTI' || $role == 'PATTI' || $role == 'HAKTI' || $role == 'SDAMKTI'){
// 	echo $role;
// die;
// }
date_default_timezone_set("Asia/Karachi");

header("Content-Type: text/html; charset=utf-8");


//ob_start();

$dir = "lib/";

if(file_exists($dir."DB.php"))

{

	include_once($dir."DB.php");

	$db = new DB();

	include_once($dir."functions.php");

	include_once($dir."constants.php");

    include_once($dir."common_function.php");

//	include_once($dir."Jfunctions.php");

	$db_old = new connect();

}

else

{
	include_once("../../".$dir."DB.php");
	$db = new DB();

	include_once("../../".$dir."functions.php");

	include_once("../../".$dir."constants.php");

	include_once("../../".$dir."common_function.php");

//	include_once("../../".$dir."Jfunctions.php");

	$db_old = new connect();

}


if(isset($_SESSION["SMS"]))
{
	if($_SESSION["SMS"] != "TRUE" && $_SESSION["SMS"] !="/login.php" && $_SERVER['REQUEST_URI'] !=  "/login.php") {

		reDirectUsingJavascript('login.php');
	}
}else{
	  if($_SERVER['REQUEST_URI'] !=  "/login.php")
		reDirectUsingJavascript('login.php');
}


?>