403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.11
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/mitzvahm/planner/mod/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/planner/mod/_header.php
<?php
	//error_reporting(E_ALL);
	//ini_set('display_errors',1);
	//error_reporting(E_ALL);
	//error_reporting(0);
	//header("HTTP/1.1 202 Accepted");
	header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-store, no-cache, proxy-revalidate, must-revalidate");
	header("Cache-Control: post-check=0, pre-check=0", false);
	header("Cache-Control: max-age=1000000, s-maxage=1000000");
	header("Pragma: no-cache");
	define('TIMEZONE', 'America/New_York');
	date_default_timezone_set(TIMEZONE);
	session_start();
	include_once('db_conn.php');
	$con = mysqli_connect($db_server,$db_user,$db_pwd, $GLOBALS["db_name"]);
	if (!$con)
	{
		die('Could not connect: ' . 'Database Error!');
	}
	else
	{
		mysqli_set_charset($con, "UTF8");
		$sql_tz = "SET time_zone = 'America/New_York'";
		mysqli_query($GLOBALS['con'], $sql_tz);
	}
	include_once('mod/_functions.php'); 
	//var_dump($_SERVER);
	//echo 'Location: http://'.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'].'?IX=login';
	//echo 'Page allowed: '.page_allowed($_GET['IX']);
	if (empty($_GET['IX'])) :
		$_GET['IX'] = 'home';
	endif;
	if (!page_allowed($_GET['IX']))
	{
		$redirect_url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']."?IX=home";
		//echo curr_page_url();
		//echo $redirect_url;
		if (strtoupper(curr_page_url()) != strtoupper($redirect_url))
		{
			header("Location: ".$redirect_url);
			exit();
		}
	}
	else
	{
	/*
	*/
		if ($_GET['IX'] != 'logout')
		{
			$ar_valid_no_bm_pages = array('event_form', 'event_activate', 'account_form', 'ez_guide', 'tools_tips', 'help', 'home', 'contact_form', 'videos');
			if (empty($_SESSION['active_event']) && (!empty($_SESSION['user_id'])) && (!in_array(strtolower($_GET['IX']), $ar_valid_no_bm_pages, true)))
			{
				$_GET['IX'] = 'events';
				//$redirect_url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']."?IX=events";
				//header("Location: ".$redirect_url);
				//exit();
			}
			$curr_page_url = curr_page_url();
			if (page_secure($_GET['IX']) && substr($curr_page_url,0,strlen($app_prefix_secure)) != $app_prefix_secure)
			{
				$redirect_url = str_replace($app_prefix_standard,$app_prefix_secure,$curr_page_url);
				header("Location: ".$redirect_url);
				exit();
			}
			if (!page_secure($_GET['IX']) && substr($curr_page_url,0,strlen($app_prefix_standard)) != $app_prefix_standard)
			{
				$redirect_url = str_replace($app_prefix_secure,$app_prefix_standard,$curr_page_url);
				//$redirect_url = str_replace(':443','',$curr_page_url);
				header("Location: ".$redirect_url);
				exit();
			}
		}
	}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit