MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/celkcksm/websites/attendance.rmpharma.in/include/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/websites/attendance.rmpharma.in/include/makeSession.php
<?php date_default_timezone_set('Asia/Kolkata'); include'config.inc.php';
	session_start();
	$software_name=str_replace("www.","",$_SERVER['HTTP_HOST']);
	$con_bill=mysqli_connect("localhost", "ecampusco_global", "ecampusco_global", "ecampusco_billing");
	$billQ=mysqli_query($con_bill,"select * from transaction
	    left join software on software.id=transaction.software_id
	    where software.name='$software_name' AND transaction.status='unpaid' order by transaction.id desc limit 1");
	$billN=mysqli_num_rows($billQ);
	$billR=mysqli_fetch_array($billQ);
	if($billN!=0&&date("d-m-Y",strtotime($billR['expiry_date']))<date("d-m-Y")){
	    header("Location:bill.php");
	}
	if(empty($_SESSION['user_id']))
	{
		header("Location:index.php");
	}
?>

MMCT - 2023