Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
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/bookGet.php
<?php include_once('includes/static/configure.php'); include_once('includes/static/dbcon.php'); $db = new sql_db(); if(!$db->db_connect_id){die("result=0&error=Unable to connect to sql server");} // Date in the past header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // always modified header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // HTTP/1.1 header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); // HTTP/1.0 header("Pragma: no-cache"); session_start(); if(!isset($_SESSION['page_num'])){die("result=0&msg=No page number specified");} if(!isset($_SESSION['user_id'])){die("result=0&msg=No id specified");} $uid = $_SESSION['user_id']; $pnum = $_SESSION['page_num']; $sql = "SELECT tag_image FROM 50mm_tags WHERE user_id = '$uid' AND page_num = '$pnum'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die("result=0&error=".$sql_error['message']); } $row = $db->sql_fetchrow($result); if($db->sql_numrows($result) > 0){ $img = $row['tag_image']; }else{ $img = ""; } $book_data = "result=1&user_id=".$uid."&page_num=".$pnum."&image=".$img; echo($book_data); $db->sql_close(); ?>