");
$output = strip_tags($input);
$output = stripslashes($output);
$output = mysql_real_escape_string($output);
$output = strtolower($output);
return $output;
}
$img = $_GET["img"]; // get the image
if(isset($img) || $img != null || $img != ''){
require('dbsettings.php');
$img = sanatize($img); // clean image string
$sql = "SELECT id, name, location, type, size, time, comment, username FROM $tbl_name WHERE name='$img'";
$result = mysql_query($sql);
$count = mysql_num_rows($result);
if($count == 1){
$i = 0;
while ($row = mysql_fetch_assoc($result)){ // Attempt to pull all data concerning that one user from table
$id = $row['id'];
$img = $row['name'];
$location = $row['location'];
$type = $row['type'];
$size = $row['size'];
$time = $row['time'];
$comment = $row['comment'];
$username = $row['username'];
echo "
\n";
echo "
\n";
echo "
\n";
echo "
\n";
$title = " - Now Showing: " . $img;
echo "
GAMA IMGShare" . $title ."\n";
echo "
|
Currently Viewing: $img
|
Image Type: $type
|
Image Size: $size
|
Time/Date Posted: $time
|
Poster's Username: $username
|
Poster's Comment: $comment
|
Back to index
|
|
";
mysql_close();
}
}}else{
include('getfiles.php');
echo "
GAMA IMGShare
You didn't specify an image. This is an image hoster.
Please specify an image with the url: img.unps-gama.info/?img=(IMGAGE STUFF HERE)
Want to upload pictures?
Image Uploader Here
";
echo "
List of files: |
" . $thelist . " |
";
mysql_close();
}
?>