| 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/lifamfest/ |
Upload File : |
<?php
session_start();
define('PAGES_ALLOWED','promo_load');
$get = $_GET;
require_once('wp-config.php');
$_GET = $get;
date_default_timezone_set(get_option('timezone_string', 'America/New_York'));
$db_connect_string = 'mysql:host='.DB_HOST.';dbname='.DB_NAME.';charset='.DB_CHARSET.'';
try {
$db = new PDO($db_connect_string, DB_USER, DB_PASSWORD);
} catch (Exception $e) {
die('Could not connect: ' . 'Database Error!');
}
$sql_tz = "SET time_zone = '".get_option('timezone_string', 'America/New_York')."'";
$db->query($sql_tz);
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$authorized_call = 1;
$call = addslashes(trim($_GET['call']));
if (page_allowed($call)) :
include_once(get_template_directory().'/'.$call.'.php');
else :
echo 'Not Authorized!';
endif;
function page_allowed($page)
{
$ar_pages = explode(',', PAGES_ALLOWED);
if (in_array($page, $ar_pages)) :
return true;
else :
return false;
endif;
}
?>