├── .htaccess ├── ARW Scripts.url ├── README.md ├── _setup-instructions.txt ├── admin └── index.html ├── adult-warning.html ├── clean-up.php ├── config.php ├── contact.html ├── db_connect.php ├── delete.html ├── enter-password.html ├── faq.html ├── fileUpload.swf ├── footer.php ├── function-library.php ├── gallery_img_handler.php ├── header.php ├── images ├── bottom-left-main.jpg ├── bottom-right-main.jpg ├── dashed-line.jpg ├── index.html ├── main-bg.jpg ├── main-logo.jpg ├── no-hotlinking.gif ├── sub-bottom.jpg ├── sub-top.jpg ├── tab-left-off.jpg ├── tab-left-on.jpg ├── tab-mid-off.jpg ├── tab-mid-on.jpg ├── tab-right-off.jpg ├── tab-right-on.jpg ├── top-bg-main.jpg ├── top-left-main.jpg ├── top-right-main.jpg └── watermark.png ├── index-multi-result.html ├── index-multi-upload.html ├── index.html ├── js └── animatedcollapse.js ├── logs └── index.html ├── offline ├── no-hotlinking.png ├── original-design.png ├── removed.png └── watermark.png ├── php.ini ├── process-multi-upload.php ├── recent.html ├── scopbin └── 911006.php ├── set-pass.php ├── sql └── imagehost.sql ├── storage ├── index.html └── originals │ ├── index.html │ └── removed.jpg ├── styles.css ├── tos.html ├── view-image.html ├── view-pic-img.html ├── view-pic-original.html └── view-pic.html /.htaccess: -------------------------------------------------------------------------------- 1 | AddType application/x-httpd-php .html 2 | php_flag register_globals on 3 | RewriteEngine on 4 | RewriteRule ^thumb-(.*).jpg$ view-image.html?img=$1&w=160&h=160 [QSA] 5 | RewriteRule ^showpic-(.*)/(.*)$ view-pic.html?img=$1 [QSA] 6 | RewriteRule ^download-(.*)/(.*)$ view-pic-original.html?img=$1&dl=1 [QSA] 7 | RewriteRule ^showoriginal-(.*)/(.*)$ view-pic-original.html?img=$1 [QSA] -------------------------------------------------------------------------------- /ARW Scripts.url: -------------------------------------------------------------------------------- 1 | [InternetShortcut] 2 | URL=http://www.arwscripts.com/ 3 | IDList= 4 | [{000214A0-0000-0000-C000-000000000046}] 5 | Prop3=19,2 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

Reservo - Image Hosting Script Free

2 | 3 | Setup and manage your own image sharing service with Reservo - Image Hosting Script Free. 4 | 5 |

About Reservo - Image Hosting Script Free

6 | Reservo - Image Hosting Script Free is the initial version of the premium image sharing script Reservo available at Reservo.co. 7 | 8 | This is a community based release that is supplied without support or liability. You are free to use the image sharing script as you wish. The only restriction to this PHP script is that this README file must not be edited or deleted. 9 | 10 |

Features:

11 | - Multiple Uploader Tool now added. 12 | - Upload progress indicator. 13 | - Choose to use single or multi uploader as default via config. 14 | - Option to protect images with a password once uploaded. 15 | - Set watermark on every uploaded image, inc alpha and positioning. 16 | - Unique delete link provided to the uploader to remove any images. 17 | - New 'friendly' urls on image pages/image downloads. 18 | - Written in php/mysql. 19 | - All pages are created using Apaches mod-rewrite so any uploaded images all look like static pages within the search engines. 20 | - Automatic generation of thumbnails along with 'copy & paste' code for the user. 21 | - Automatic resize of images. 22 | - Validation of duplicate content to stop same IP uploading same image multiple times. 23 | - Basic admin area to approve/decline images. Images can also be approved as adult. 24 | - Adult images display a warning message before user can view them. 25 | - Total view for each image. 26 | - Recent uploads page for public approved images. 27 | - Date added, original filesize and description displayed on each image. 28 | - Images which have not been viewed within 60 days (can be amended) are deleted. 29 | - Hotlinking blocked by default. 30 | - Max filesize, permit hotlinking and days to keep images can all be set via the config scripts. 31 | - Basic design with original fireworks files included. 32 | - Ability to display ads depending on whether an image is adult or not. 33 | 34 |

Requirements

35 | - php 4.x 36 | - mysql 37 | - mod rewrite module on apache 38 | - gd library with GIF write support 39 | - HD/BW requirements will vary on your traffic, scripts require about 100kb. 40 | 41 |

Installation

42 | Full instructions are given in _setup-instructions.txt file found within the repository. 43 | 44 |

Contributions

45 | If you'd like to contribute to the project, please contact us via the github project https://github.com/mfscripts/Reservo-Image-Hosting-Script-Free 46 | 47 |

License

48 | Reservo Image Hosting Script Free is copyrighted by MFScripts and is released under the MIT license. You are free to use the image sharing script as you wish. The only restriction to this PHP script is that this README file must not be edited or deleted. 49 | 50 |

Support

51 | This code is released without any support and as-is. Any support requests on this version will be removed. For community driven support please use the github project https://github.com/mfscripts/Reservo-Image-Hosting-Script-Free 52 | -------------------------------------------------------------------------------- /_setup-instructions.txt: -------------------------------------------------------------------------------- 1 | Setup Instructions: 2 | 3 | - Upload the main zip file to your hosting area. 4 | - Unzip the zip file ensuring all folders are kept. 5 | - Amend config.php with your sitename, siteurl and siteemail along with other optional amendments. 6 | - Modify the permissions on the following: 7 | storage => CHMOD 777 8 | storage/originals => CHMOD 777 9 | logs => CHMOD 777 10 | - Create a new database in mysql. 11 | - Import the .sql file stored within the sql directory. 12 | - Update db_connect.php in the root to connect correctly to your mysql database. 13 | - Add a http username/password to the admin directory. 14 | 15 | You should now be set to go! 16 | 17 | NOTE: If you receiving an 'Internal Server Error' when you try and load the site, it's probably because you have phpsuexec installed. You can resolve this error by removing the line 'php_flag register_globals on' from the .htaccess file within the root. 18 | 19 | Check out https://reservo.co/ for other PHP image hosting scripts! 20 | -------------------------------------------------------------------------------- /admin/index.html: -------------------------------------------------------------------------------- 1 | 35 | 36 |
37 | 38 | Use the following page to browse all items awaiting approval. (currently item pending). Any inappropriate items should be removed immediately from the system:

39 | 40 | 0) { 46 | echo ''; 47 | while($row = mysql_fetch_array($get_recent)) { 48 | if($tracker == 0) echo ""; 49 | echo ""; 57 | if($tracker == 4) { 58 | $tracker = 0; 59 | echo ""; 60 | } 61 | else $tracker++; 62 | } 63 | echo '
"; 50 | echo "APPROVE ADULT
"; 51 | echo "APPROVE PUBLIC
"; 52 | echo "APPROVE NON-PUBLIC
"; 53 | echo "REMOVE"; 54 | echo "
"; 55 | echo "".$site_url." - click here to view this image"; 56 | echo "
'; 64 | } 65 | else echo "There are no items awaiting approval."; 66 | } 67 | else echo "There are no items awaiting approval."; 68 | 69 | ?> 70 | 71 |
72 | -------------------------------------------------------------------------------- /adult-warning.html: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 |

CONTENT WARNING:


16 | 17 | You are about to view content which may be of an adult nature
18 | and hence you must be over the legal age for your country
19 | before you proceed.

20 | Please confirm below that you are permitted to view adult content
21 | and you wish to continue.


22 |
23 | 24 | 25 |     26 | 27 |
28 | 29 |
30 | 31 | -------------------------------------------------------------------------------- /clean-up.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /contact.html: -------------------------------------------------------------------------------- 1 | "; 16 | if(strlen($subject) == 0) $errorstring .="You must specify a subject.
"; 17 | if(strlen($message) == 0) $errorstring .="You have not entered a message.
"; 18 | if(strlen($youremail) < 9 || strlen($youremail) > 64) $errorstring .= "Please enter a valid email address.
"; 19 | else 20 | { 21 | $emailtail = strstr($youremail, '@'); 22 | if(!strstr($youremail, '@') || !strstr($emailtail, '.')) $errorstring .= "Please enter a valid email address.
"; 23 | } 24 | if(strlen($errorstring) == 0){ 25 | $subject = "Contact from the ".$site_url." site - ".$subject; 26 | $sent = mail($site_admin, $subject, $message, "FROM: ".$youremail); 27 | if($sent) $showform = FALSE; 28 | } 29 | } 30 | 31 | include("header.php"); 32 | ?> 33 | 34 |
35 | 36 | 39 | If you have any questions or comments about the site or services we offer, feel free to contact us using the form below:

40 | 41 | 51 |

42 | 0) echo "
Error(s) Found:

$errorstring


";?> 43 | 44 | 45 | 46 | 47 | 48 | 49 |
Your Email:
Subject:
Message:
  

50 |
52 | Your message has been sent to ".$site_name.". We will endeavour to respond within the next 48 hours.

Thanks for your comments,
".$site_url."

"; 55 | ?> 56 | 57 |
58 | 59 | -------------------------------------------------------------------------------- /db_connect.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /delete.html: -------------------------------------------------------------------------------- 1 | 11 | 12 |
13 | 14 | Your image has successfully been removed.

"; 30 | } 31 | else echo "There has been an error looking up the image details, please try again later.

"; 32 | echo "home

"; 33 | ?> 34 | 35 |
36 | -------------------------------------------------------------------------------- /enter-password.html: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 |

ENTER PASSWORD:


16 | Please enter the password below to access this image:

17 |
18 | 19 | 20 | 21 |
22 | 23 |
24 | 25 | -------------------------------------------------------------------------------- /faq.html: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | Is this free?
16 | Yes 100% Free for all users.

17 | 18 | Will my images be removed?
19 | Images not accessed within days will be removed.

20 | 21 | How many images can I upload?
22 | You can upload as many images as you want, as long as each one adheres to the Terms of Service.

23 | 24 | Which image types am I allowed to upload?
25 | You may upload .jpg, .jpeg, .gif (non animated) and .png image types.

26 | 27 | Are there any restrictions to the size of my uploaded images?
28 | Each image you upload must be less than in size. If it is greater than that amount, your image will be rejected.

29 | 30 | Can I edit my images using ?
31 | No. Most people use graphics editing programs such as PhotoShop or Paint Shop Pro, or software that comes with printers, scanners, or digital cameras to edit their images.

32 | 33 | Can I upload music or videos?
34 | No. Music hosting is not allowed due to copyright concerns. Video hosting is not allowed due to large file sizes.

35 | 36 | How much space can I use?
37 | You have an unlimited amount of space for storing your images. continuously buys harddrives to compensate for the amount of images that 's visitors upload. 38 | 39 |
40 | -------------------------------------------------------------------------------- /fileUpload.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/fileUpload.swf -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | images/dashed-line.jpg'); background-repeat: repeat-x;">images/dashed-line.jpg" width="4" height="1"> 8 | 9 | 10 | 11 |  
  12 | 13 | 14 | 15 | images/sub-bottom.jpg" width="749" height="6"> 16 | 17 | 18 | 19 | 20 | 21 | 22 | images/bottom-left-main.jpg" width="10" height="10"> 23 | Copyright © ".$site_name.""; ?> - Image Hosting Script 24 | images/bottom-right-main.jpg" width="10" height="10"> 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /function-library.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /gallery_img_handler.php: -------------------------------------------------------------------------------- 1 | $original_y) { 57 | $max_y = 0; 58 | $max_x = $max_x; 59 | } 60 | else if($original_x < $original_y) { 61 | $max_y = $max_x; 62 | $max_x = 0; 63 | } 64 | else { 65 | $max_y = $max_x; 66 | $max_x = $max_x; 67 | } 68 | 69 | /* Work out ratios and which way to crop */ 70 | $state = 0; 71 | if($square == 1) { 72 | if($max_x == 0) $max_x = $max_y; 73 | elseif($max_y == 0) $max_y = $max_x; 74 | } 75 | if($max_x == 0) $state = 1; 76 | elseif($max_y == 0) $state = 2; 77 | if($state == 0) { 78 | $testratio = $max_x / $max_y; 79 | $origratio = $original_x / $original_y; 80 | if($origratio > $testratio) $state = 1; 81 | elseif($origratio < $testratio) $state = 2; 82 | else $state = 3; 83 | } 84 | 85 | /* With ratios sorted, plot co-ordinates */ 86 | 87 | if($state == 1) { 88 | /* make new-y = max-y OR crop sides */ 89 | 90 | if($square == 0) { 91 | if(($original_y > $max_y) || ($enlarge == 1)) $new_y = $max_y; 92 | else $new_y = $original_y; 93 | $new_x = round(($original_x / ($original_y / $new_y)), 0); 94 | $srcx = 0; 95 | $srcy = 0; 96 | $srcw = $original_x; 97 | $srch = $original_y; 98 | } 99 | 100 | else { 101 | if(($original_y > $max_y) || ($enlarge == 1)) $new_y = $max_y; 102 | else $new_y = $original_y; 103 | $new_x = $new_y; 104 | $tempratio = ($original_y / $new_y); 105 | $sectionwidth = $new_y * $tempratio; 106 | $srcy = 0; 107 | $srch = $original_y; 108 | $srcx = floor(($original_x - $sectionwidth) / 2); 109 | $srcw = floor($sectionwidth); 110 | } 111 | 112 | } 113 | 114 | elseif($state == 2) { 115 | /* make new-x = max-x OR crop top & bottom */ 116 | 117 | if($square == 0) { 118 | if(($original_x > $max_x) || ($enlarge == 1)) $new_x = $max_x; 119 | else $new_x = $original_x; 120 | $new_y = round(($original_y / ($original_x / $new_x)), 0); 121 | $srcx = 0; 122 | $srcy = 0; 123 | $srcw = $original_x; 124 | $srch = $original_y; 125 | } 126 | 127 | else { 128 | if(($original_x > $max_x) || ($enlarge == 1)) $new_x = $max_x; 129 | else $new_x = $original_x; 130 | $new_y = $new_x; 131 | $tempratio = ($original_x / $new_x); 132 | $sectionheight = $new_x * $tempratio; 133 | $srcx = 0; 134 | $srcw = $original_x; 135 | $srcy = floor(($original_y - $sectionheight) / 2); 136 | $srch = floor($sectionheight); 137 | } 138 | 139 | } 140 | 141 | elseif($state == 3) { 142 | /* original image ratio = new image ratio - use all of image */ 143 | 144 | if($square == 0) { 145 | if(($original_x > $max_x) || ($enlarge == 1)) $new_x = $max_x; 146 | else $new_x = $original_x; 147 | $new_y = round(($original_y / ($original_x / $new_x)), 0); 148 | $srcx = 0; 149 | $srcy = 0; 150 | $srcw = $original_x; 151 | $srch = $original_y; 152 | } 153 | 154 | else { 155 | if(($original_x > $max_x) || ($enlarge == 1)) $new_x = $max_x; 156 | else $new_x = $original_x; 157 | $new_y = $new_x; 158 | $srcx = 0; 159 | $srcy = 0; 160 | $srcw = $original_x; 161 | $srch = $original_y; 162 | } 163 | 164 | } 165 | 166 | 167 | /* Do Conversion */ 168 | if(($extension == "jpeg") || ($extension == "jpg")) $originalImage = ImageCreateFromJPEG($sourceImagePath); 169 | elseif($extension == "gif") $originalImage = ImageCreateFromGIF($sourceImagePath); 170 | elseif($extension == "png") $originalImage = ImageCreateFromPNG($sourceImagePath); 171 | //elseif($extension == "bmp") $originalImage = ImageCreateFromWBMP($sourceImagePath); // removed since Windows BMP is not supported 172 | $newImage = ImageCreateTrueColor($new_x, $new_y); 173 | ImageCopyResampled ($newImage, $originalImage, 0, 0, $srcx, $srcy, $new_x, $new_y, $srcw, $srch); 174 | 175 | global $watermark; 176 | global $watermark_alpha; 177 | global $watermark_pos; 178 | if(strlen($watermark) > 0) { 179 | $watermark1 = imagecreatefrompng($watermark); 180 | $watermark_width = imagesx($watermark1); 181 | $watermark_height = imagesy($watermark1); 182 | if($watermark_pos == "top-left") { 183 | $dest_x = 0; 184 | $dest_y = 0; 185 | } 186 | elseif($watermark_pos == "top-right") { 187 | $dest_x = $new_x - $watermark_width; 188 | $dest_y = 0; 189 | } 190 | elseif($watermark_pos == "bottom-left") { 191 | $dest_x = 0; 192 | $dest_y = $new_y - $watermark_height; 193 | } 194 | elseif($watermark_pos == "bottom-right") { 195 | $dest_x = $new_x - $watermark_width; 196 | $dest_y = $new_y - $watermark_height; 197 | } 198 | else { 199 | $dest_x = ($new_x/2) - ($watermark_width/2); 200 | $dest_y = ($new_y/2) - ($watermark_height-2); 201 | } 202 | imagecolortransparent($watermark1, imagecolorat($watermark1, 0, 0)); 203 | imagecopymerge($newImage, $watermark1, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, $watermark_alpha); 204 | } 205 | ImageJPEG ($newImage, $targetImagePath, $outputImageQuality); 206 | ImageDestroy($newImage); 207 | ImageDestroy($originalImage); 208 | } 209 | 210 | $imageSize = getimagesize($targetImagePath); 211 | $returnvars = array(); 212 | 213 | $returnvars['targetImagePath'] = "http://".$site_url."/".$targetImagePath; 214 | $returnvars['width'] = $imageSize[0]; 215 | $returnvars['height'] = $imageSize[1]; 216 | $returnvars['description'] = $description; 217 | $returnvars['status'] = $status; 218 | $dateadded = substr($dateadded, 8, 2)."/".substr($dateadded, 5, 2)."/".substr($dateadded, 0, 4)." ".substr($dateadded, 11, 8); 219 | $returnvars['dateadded'] = $dateadded; 220 | $returnvars['totalviews'] = $totalviews; 221 | $filesize = number_format($filesize/1024, 1); 222 | if($filesize > 1000) $filesize = number_format($filesize/1024, 1)."mb"; 223 | else $filesize = $filesize."kb"; 224 | $returnvars['filesize'] = $filesize; 225 | $returnvars['mime_type'] = $mime_type; 226 | $returnvars['password'] = $password; 227 | $returnvars['originalfilename'] = $originalfilename; 228 | 229 | return $returnvars; 230 | 231 | } 232 | 233 | ?> -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/header.php -------------------------------------------------------------------------------- /images/bottom-left-main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/bottom-left-main.jpg -------------------------------------------------------------------------------- /images/bottom-right-main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/bottom-right-main.jpg -------------------------------------------------------------------------------- /images/dashed-line.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/dashed-line.jpg -------------------------------------------------------------------------------- /images/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/index.html -------------------------------------------------------------------------------- /images/main-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/main-bg.jpg -------------------------------------------------------------------------------- /images/main-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/main-logo.jpg -------------------------------------------------------------------------------- /images/no-hotlinking.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/no-hotlinking.gif -------------------------------------------------------------------------------- /images/sub-bottom.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/sub-bottom.jpg -------------------------------------------------------------------------------- /images/sub-top.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/sub-top.jpg -------------------------------------------------------------------------------- /images/tab-left-off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/tab-left-off.jpg -------------------------------------------------------------------------------- /images/tab-left-on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/tab-left-on.jpg -------------------------------------------------------------------------------- /images/tab-mid-off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/tab-mid-off.jpg -------------------------------------------------------------------------------- /images/tab-mid-on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/tab-mid-on.jpg -------------------------------------------------------------------------------- /images/tab-right-off.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/tab-right-off.jpg -------------------------------------------------------------------------------- /images/tab-right-on.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/tab-right-on.jpg -------------------------------------------------------------------------------- /images/top-bg-main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/top-bg-main.jpg -------------------------------------------------------------------------------- /images/top-left-main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/top-left-main.jpg -------------------------------------------------------------------------------- /images/top-right-main.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/top-right-main.jpg -------------------------------------------------------------------------------- /images/watermark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/images/watermark.png -------------------------------------------------------------------------------- /index-multi-result.html: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 | 15 | 24 | 25 | 0) { 30 | echo '
'; 31 | 32 | echo "CONGRATULATIONS!

"; 33 | echo "Your image(s) have now been uploaded to ".$site_name." and are ready for linking. Use any of the following code snippets to display the image(s) within your preferred location.

"; 34 | 35 | echo "Click on any filename below to view the code:

"; 36 | 37 | $i = 0; 38 | 39 | while($row = mysql_fetch_array($get_uploads)) { 40 | 41 | $item_id = $row[id]; 42 | $tracker = $row[tracker]; 43 | $originalfilename = $row[originalfilename]; 44 | 45 | $this_code = ""; 46 | 47 | $this_code .= '
'; 48 | 49 | $this_code .= "Forum code: (copy code)
"; 50 | $this_code .= "

"; 51 | 52 | $this_code .= "Share this image with friends: (copy code)
"; 53 | $this_code .= "

"; 54 | 55 | $this_code .= "HTML code for your websites WITH thumbnail: (copy code)
"; 56 | $this_code .= "

"; 57 | 58 | $this_code .= "HTML code for your websites WITHOUT thumbnail: (copy code)
"; 59 | $this_code .= "

"; 60 | 61 | if($show_delete_code) { 62 | $this_code .= "Delete Image Link:
Use this link to remove your image at any time.
"; 63 | $this_code .= " - http://".$site_url."/delete.html?d=".$tracker."

"; 64 | } 65 | 66 | if($show_pass_option) { 67 | $this_code .= ""; 68 | } 69 | 70 | $this_code .= "



Thumbnail:

"; 71 | 72 | $this_code .= "".$site_url." - click here to view this image"; 73 | 74 | $this_code .= "

"; 75 | 76 | $this_code .= '
'; 77 | //$this_code = "content"; 78 | // show html 79 | echo '- '.$row['originalfilename']."
"; 80 | echo '
'.$this_code.'
'; 81 | echo ''; 82 | $i++; 83 | 84 | } 85 | 86 | echo '
'; 87 | 88 | } 89 | else echo "
There was a problem with your upload. It could be that you have already uploaded the submitted images or that they have not passed the validation process.

Please try again or contact support."; 90 | 91 | 92 | 93 | } 94 | else { 95 | echo "There was a problem with your upload, please try again."; 96 | } 97 | ?> 98 | 99 | -------------------------------------------------------------------------------- /index-multi-upload.html: -------------------------------------------------------------------------------- 1 | 12 | 13 | 25 | 26 | 27 | 28 | 69 | 73 | 74 |
29 | 30 | Use the form below to upload multiple images to . At least Flash 9 is required to view the upload tool. Please note the following before uploading:

31 |
    32 |
  • File Types: jpg, gif, png. 33 |
  • Max File Size: . 34 |
  • No copyrighted images/artwork. 35 |
  • By uploading you are agreeing to the Terms of Service. 36 |

37 | 38 | 39 | 40 | 64 | 65 | 66 |
41 | 42 | 45 | 46 | 49 | 50 | 51 | 52 | 53 | 54 | 60 | 61 | 62 | 63 |
67 | 68 |
70 | free image hosting site 71 | 72 |
75 | 76 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 23 | 24 | 33 | 34 |
'; 38 | 39 | // validation bits 40 | $filesize = $_FILES['imgfile']['size']; 41 | $tmpfile = $_FILES['imgfile']['tmp_name']; 42 | $filename = $_FILES['imgfile']['name']; 43 | $contenttype = $_FILES['imgfile']['type']; 44 | $extension = pathinfo($_FILES['imgfile']['name']); 45 | $extension = strtolower($extension[extension]); 46 | 47 | if($filesize == 0) $error .= "Please specify an image file to upload.
"; 48 | else { 49 | 50 | $valid_mime_types = array('image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png'); 51 | if(!in_array($contenttype, $valid_mime_types)) { 52 | $error .= "File type does not appear to be a supported image (".$contenttype."). Please try another format.
"; 53 | } 54 | if($filesize > $max_upload_size) $error .= "Uploaded file is greater than the maximum filesize. (".$max_upload_display_size.")
"; 55 | 56 | } 57 | 58 | if(strlen($error) > 0) echo "ERROR:

".$error."

back"; 59 | else { 60 | 61 | $uploaddir = 'storage/originals/'; 62 | $newfilename = randomfilename() . "." . $extension; 63 | 64 | $uploadfile = $uploaddir . $newfilename; 65 | 66 | if (!move_uploaded_file($_FILES['imgfile']['tmp_name'], $uploadfile)) { 67 | $error .= "Could not upload file, please try again later.
"; 68 | } 69 | else { 70 | // add to db 71 | $userip = $_SERVER['REMOTE_ADDR']; 72 | list($originalwidth, $originalheight, $type, $attr) = getimagesize($uploadfile); 73 | 74 | // check for refreshes 75 | $check_image = "SELECT id FROM images WHERE mimetype = '".preparedata($contenttype)."' AND originalfilename = '".preparedata($filename)."' AND filesize = '".preparedata($filesize)."' AND description='".preparedata($imgdesc)."' AND originalip='".preparedata($userip)."' AND originalwidth='".$originalwidth."' AND originalheight='".$originalheight."' LIMIT 1"; 76 | $do_check_image = @mysql_query($check_image); 77 | if($do_check_image) { 78 | if(mysql_numrows($do_check_image) > 0) { 79 | $error .= "It looks like you've already added this image, please go back and upload a different one.
"; 80 | unlink($uploadfile); 81 | } 82 | } 83 | 84 | if(strlen($error) > 0) echo "ERROR:

".$error."

back"; 85 | else { 86 | 87 | $tracker = randomfilename(); 88 | 89 | $insert_image = "INSERT INTO images (dateadded, mimetype, originalfilename, filename, filesize, description, originalip, originalwidth, originalheight, lastaccessed, tracker) VALUES (NOW(), '".preparedata($contenttype)."', '".preparedata($filename)."', '".preparedata($newfilename)."', '".preparedata($filesize)."', '".preparedata($imgdesc)."', '".preparedata($userip)."', '".$originalwidth."', '".$originalheight."', NOW(), '".preparedata($tracker)."')"; 90 | $do_insert_image = @mysql_query($insert_image); 91 | $item_id = mysql_insert_id(); 92 | 93 | if(!$do_insert_image) $error .= "Can not update the database, please try again later or contact support."; 94 | else { 95 | 96 | $originalfilename = $filename; 97 | 98 | echo "CONGRATULATIONS!

"; 99 | echo "Your image has now been uploaded to ".$site_name." and is ready for linking. Use any of the following code snippets to display the image within your preferred location:

"; 100 | 101 | echo "Forum code: (copy code)
"; 102 | echo "

"; 103 | 104 | echo "Share this image with friends: (copy code)
"; 105 | echo "

"; 106 | 107 | echo "HTML code for your websites WITH thumbnail: (copy code)
"; 108 | echo "

"; 109 | 110 | echo "HTML code for your websites WITHOUT thumbnail: (copy code)
"; 111 | echo "

"; 112 | 113 | if($show_delete_code) { 114 | echo "Delete Image Link:
Use this link to remove your image at any time.
"; 115 | echo " - http://".$site_url."/delete.html?d=".$tracker."

"; 116 | } 117 | 118 | if($show_pass_option) { 119 | echo ""; 120 | } 121 | 122 | echo "


Thumbnail:

"; 123 | 124 | echo "".$site_url." - click here to view this image"; 125 | 126 | echo "

"; 127 | 128 | // recent images 129 | $get_recent = @mysql_query("SELECT id, dateadded, originalfilename, filesize FROM images WHERE originalip = '".$userip."' ORDER BY id DESC LIMIT 8"); 130 | if($get_recent) { 131 | if(mysql_numrows($get_recent) > 0) { 132 | echo "Your Recent Uploads:

"; 133 | while($row = mysql_fetch_array($get_recent)) { 134 | $filesize = number_format($row[filesize]/1024, 1); 135 | if($filesize > 1000) $filesize = number_format($filesize/1024, 1)."mb"; 136 | else $filesize = $filesize."kb"; 137 | if(strlen($row[originalfilename]) > 18) $originalfile = substr($row[originalfilename], 0, 18)."..."; 138 | else $originalfile = $row[originalfilename]; 139 | echo "".$row[originalfilename]." (".$filesize.")
"; 140 | } 141 | } 142 | echo "
"; 143 | } 144 | 145 | } 146 | } 147 | } 148 | 149 | } 150 | 151 | echo '
'; 152 | 153 | } 154 | else { 155 | ?> 156 | 157 | 158 | 159 | 160 | 186 | 190 | 191 |
161 | 162 | Use the form below to upload your image to . Multiple file uploader tool here. Please note the following before uploading:

163 |
    164 |
  • File Types: jpg, gif, png. 165 |
  • Max File Size: . 166 |
  • No copyrighted images/artwork. 167 |
  • By uploading you are agreeing to the Terms of Service. 168 |

169 | 170 | 171 | 172 | 181 | 182 | 183 |
173 | 1. Select your image: (max . jpg, gif, png)

174 |

175 | 2. Enter a description: (optional)

176 |

177 | 3. Upload now:

178 | 179 | or use the Multiple Image Uploader Tool. 180 |
184 | 185 |
187 | free image hosting site 188 | 189 |
192 | 193 | 196 | 197 | -------------------------------------------------------------------------------- /js/animatedcollapse.js: -------------------------------------------------------------------------------- 1 | //Animated Collapsible DIV- Author: Dynamic Drive (http://www.dynamicdrive.com) 2 | //Last updated Aug 1st, 07'. Fixed bug with "block" parameter not working when persist is enabled 3 | //Updated June 27th, 07'. Added ability for a DIV to be initially expanded. 4 | 5 | var uniquepageid=window.location.href.replace("http://"+window.location.hostname, "").replace(/^\//, "") //get current page path and name, used to uniquely identify this page for persistence feature 6 | 7 | function animatedcollapse(divId, animatetime, persistexpand, initstate){ 8 | this.divId=divId 9 | this.divObj=document.getElementById(divId) 10 | this.divObj.style.overflow="hidden" 11 | this.timelength=animatetime 12 | this.initstate=(typeof initstate!="undefined" && initstate=="block")? "block" : "contract" 13 | this.isExpanded=animatedcollapse.getCookie(uniquepageid+"-"+divId) //"yes" or "no", based on cookie value 14 | this.contentheight=parseInt(this.divObj.style.height) 15 | var thisobj=this 16 | if (isNaN(this.contentheight)){ //if no CSS "height" attribute explicitly defined, get DIV's height on window.load 17 | animatedcollapse.dotask(window, function(){thisobj._getheight(persistexpand)}, "load") 18 | if (!persistexpand && this.initstate=="contract" || persistexpand && this.isExpanded!="yes" && this.isExpanded!="") //Hide DIV (unless div should be expanded by default, OR persistence is enabled and this DIV should be expanded) 19 | this.divObj.style.visibility="hidden" //hide content (versus collapse) until we can get its height 20 | } 21 | else if (!persistexpand && this.initstate=="contract" || persistexpand && this.isExpanded!="yes" && this.isExpanded!="") //Hide DIV (unless div should be expanded by default, OR persistence is enabled and this DIV should be expanded) 22 | this.divObj.style.height=0 //just collapse content if CSS "height" attribute available 23 | if (persistexpand) 24 | animatedcollapse.dotask(window, function(){animatedcollapse.setCookie(uniquepageid+"-"+thisobj.divId, thisobj.isExpanded)}, "unload") 25 | } 26 | 27 | animatedcollapse.prototype._getheight=function(persistexpand){ 28 | this.contentheight=this.divObj.offsetHeight 29 | if (!persistexpand && this.initstate=="contract" || persistexpand && this.isExpanded!="yes"){ //Hide DIV (unless div should be expanded by default, OR persistence is enabled and this DIV should be expanded) 30 | this.divObj.style.height=0 //collapse content 31 | this.divObj.style.visibility="visible" 32 | } 33 | else //else if persistence is enabled AND this content should be expanded, define its CSS height value so slideup() has something to work with 34 | this.divObj.style.height=this.contentheight+"px" 35 | } 36 | 37 | 38 | animatedcollapse.prototype._slideengine=function(direction){ 39 | var elapsed=new Date().getTime()-this.startTime //get time animation has run 40 | var thisobj=this 41 | if (elapsed 5 | 6 | "; 30 | } 31 | 32 | if(strlen($error) == 0) { 33 | 34 | $uploaddir = 'storage/originals/'; 35 | $newfilename = randomfilename() . "." . $extension; 36 | 37 | $uploadfile = $uploaddir . $newfilename; 38 | 39 | if (!move_uploaded_file($_FILES['Filedata']['tmp_name'], $uploadfile)) { 40 | $error .= "Could not move file into storage, please try again later."; 41 | log_data("ERROR: ".$error); 42 | } 43 | else { 44 | // add to db 45 | $userip = $_SERVER['REMOTE_ADDR']; 46 | list($originalwidth, $originalheight, $type, $attr) = getimagesize($uploadfile); 47 | 48 | $tracker = randomfilename(); 49 | 50 | $insert_image = "INSERT INTO images (dateadded, mimetype, originalfilename, filename, filesize, description, originalip, originalwidth, originalheight, lastaccessed, tracker, mutracker) VALUES (NOW(), '".preparedata($contenttype)."', '".preparedata($filename)."', '".preparedata($newfilename)."', '".preparedata($filesize)."', '', '".preparedata($userip)."', '".$originalwidth."', '".$originalheight."', NOW(), '".preparedata($tracker)."', '".preparedata($mutracker)."')"; 51 | $do_insert_image = @mysql_query($insert_image); 52 | $item_id = mysql_insert_id(); 53 | if($do_insert_image) { 54 | log_data("SUCCESS: Image successfully uploaded. Ref: ".$item_id); 55 | } 56 | else log_data("ERROR: SQL INSERT FAILED - ".$insert_image); 57 | } 58 | 59 | } 60 | else log_data("ERROR: ".$error); 61 | 62 | log_data("Finished import process for ".$_FILES['Filedata']['name']."\n\r"); 63 | 64 | ?> -------------------------------------------------------------------------------- /recent.html: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | Listed below are the 30 most recent public uploads to :

16 | 17 | 0) { 23 | echo ''; 24 | while($row = mysql_fetch_array($get_recent)) { 25 | if($tracker == 0) echo ""; 26 | echo ""; 29 | if($tracker == 4) { 30 | $tracker = 0; 31 | echo ""; 32 | } 33 | else $tracker++; 34 | } 35 | echo '
"; 27 | echo "".$site_url." - click here to view this image
view image
"; 28 | echo "
'; 36 | } 37 | else echo "There are no recent public uploads, please try again later."; 38 | } 39 | else echo "There are no recent public uploads, please try again later."; 40 | 41 | ?> 42 | 43 |
44 | -------------------------------------------------------------------------------- /scopbin/911006.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /set-pass.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | styles.css" type="text/css"> 11 | 12 | 13 | 14 | 4) { 16 | $userip = GetHostByName($REMOTE_ADDR); 17 | $add_pass = mysql_query("UPDATE images SET password = '".preparedata($password)."' WHERE id = ".$im." AND originalip = '".$userip."' LIMIT 1"); 18 | if($add_pass) echo "Password set!"; 19 | else echo "ERROR: Could not set password, please contact support."; 20 | } 21 | else { 22 | echo "Optional: Specify A Password:
Restrict access to this image by requesting a password for anyone attempting to view it.
"; 23 | echo "
Password:  
"; 24 | } 25 | ?> 26 | 27 | 28 | -------------------------------------------------------------------------------- /sql/imagehost.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `images` ( 2 | `id` int(11) NOT NULL auto_increment, 3 | `dateadded` datetime NOT NULL default '0000-00-00 00:00:00', 4 | `mimetype` varchar(100) NOT NULL default '', 5 | `originalfilename` varchar(255) NOT NULL default '', 6 | `filename` varchar(100) NOT NULL default '', 7 | `filesize` int(11) NOT NULL default '0', 8 | `description` mediumtext NOT NULL, 9 | `originalip` varchar(20) NOT NULL default '', 10 | `originalwidth` int(11) NOT NULL default '0', 11 | `originalheight` int(11) NOT NULL default '0', 12 | `lastaccessed` datetime NOT NULL default '0000-00-00 00:00:00', 13 | `totalviews` int(11) NOT NULL default '0', 14 | `status` enum('new','private','public','removed','adult') NOT NULL default 'new', 15 | `tracker` varchar(35) NOT NULL default '', 16 | `password` varchar(30) NOT NULL default '', 17 | `mutracker` varchar(35) NOT NULL default '', 18 | PRIMARY KEY (`id`) 19 | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -------------------------------------------------------------------------------- /storage/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/storage/index.html -------------------------------------------------------------------------------- /storage/originals/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/storage/originals/index.html -------------------------------------------------------------------------------- /storage/originals/removed.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/storage/originals/removed.jpg -------------------------------------------------------------------------------- /styles.css: -------------------------------------------------------------------------------- 1 | input, textarea, select { 2 | border-style:solid; 3 | border-width:1px; 4 | border-color:#666666; 5 | font-size:13px; 6 | color:#000000; 7 | } 8 | a { 9 | font-size: 11px; 10 | text-decoration: underline; 11 | color:#A392B4; 12 | } 13 | a:hover { 14 | font-size: 11px; 15 | text-decoration: none; 16 | color:#A392B4; 17 | } 18 | .nav { 19 | font-size: 10px; 20 | text-decoration: none; 21 | color:#A392B4; 22 | } 23 | .nava { 24 | font-size: 10px; 25 | text-decoration: underline; 26 | color:#A392B4; 27 | } 28 | .nava:hover { 29 | font-size: 10px; 30 | text-decoration: none; 31 | color:#A392B4; 32 | } 33 | body,td,th { 34 | font-family: Verdana, Arial, Helvetica, sans-serif; 35 | font-size: 11px; 36 | color:#453159; 37 | } 38 | .headerfont { 39 | font-family: Arial, Verdana, Helvetica, sans-serif; 40 | font-size: 14px; 41 | text-decoration: none; 42 | color:#453159; 43 | font-weight:bold; 44 | } 45 | .headera { 46 | font-family: Arial, Verdana, Helvetica, sans-serif; 47 | font-size: 14px; 48 | text-decoration: none; 49 | color:#453159; 50 | font-weight:bold; 51 | } 52 | .headera:hover { 53 | font-family: Arial, Verdana, Helvetica, sans-serif; 54 | font-size: 14px; 55 | text-decoration: underline; 56 | color:#453159; 57 | font-weight:bold; 58 | } 59 | 60 | 61 | .small { 62 | font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 9px;color: #FFFFFF; 63 | } 64 | .smalla { 65 | font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 9px;color: #FFFFFF;text-decoration: underline; 66 | } 67 | .smalla:hover { 68 | font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 9px; color:#FFFFFF;text-decoration: none; 69 | } 70 | .form { 71 | border-style:solid; 72 | border-width:1px; 73 | border-color:#666666; 74 | background-color:#ffffff; 75 | font-size:11px; 76 | color:#000000; 77 | } -------------------------------------------------------------------------------- /tos.html: -------------------------------------------------------------------------------- 1 | 12 | 13 |
14 | 15 | Basic TOS

16 | 17 | All users must be of atleast the age of 13, and agree to not use the service for any illegal or unauthorized purposes. All users must agree to comply with local laws regading online conduct, and copyright laws. is intended for personal use, and any business use is strictly prohibited. All users must not use 's services to violate any laws which include but are not limited to copyright laws. Any violations will result in imedieate deletion of all images has on record for your IP Address. All users use at their own risk, users understand that images uploaded on are not private, they may be displayed for others to view, and users understand and agree that cannot be responsible for the content posted on its web site and you nonetheless may be exposed to such materials and that you use 's service at your own risk.

18 | 19 | Conditions

20 | 21 | - We reserve the right to modify or terminate the service for any reason, without notice at any time.
22 | - We reserve the right to alter these Terms of Use at any time.
23 | - We reserve the right to refuse service to anyone for any reason at any time.
24 | - We may, but have no obligation to, remove Content and accounts containing Content that we determine in our sole discretion are unlawful, offensive, threatening, libelous, defamatory, obscene or otherwise objectionable or violates any party's intellectual property or these Terms of Use.
25 | - If a user is found to be using to host icons, smileys, buddy icons, forum avatars, forum badges, forum signature images, or any other graphic for website design all your images will be removed.

26 | 27 | Copyright Information

28 | 29 | claims no intellectual property rights over the images uploaded by its' users.

30 | will review all copyright (C) infringement claims received and remove images found to have been upload or distributed in violation of any such laws. To make a valid claim you must provide with the following information:

31 | - A physical or electronic signature of the copyright owner or the person authorized to act on its behalf;
32 | - A description of the copyrighted work claimed to have been infringed;
33 | - A description of the infringing material and information reasonably sufficient to permit to locate the material;
34 | - Your contact information, including your address, telephone number, and email;
35 | - A statement by you that you have a good faith belief that use of the material in the manner complained of is not authorized by the copyright owner, its agent, or the law; and
36 | - A statement that the information in the notification is accurate, and, under the pains and penalties of perjury, that you are authorized to act on behalf of the copyright owner. Claims can be sent to us via the contact us page. 37 | 38 |
39 | 40 | -------------------------------------------------------------------------------- /view-image.html: -------------------------------------------------------------------------------- 1 | 500) $w = 500; 10 | $image = previewImage($img, $w); 11 | 12 | header("Content-type: image/jpg"); 13 | $done = file_get_contents($image['targetImagePath']); 14 | echo $done; 15 | } 16 | ?> -------------------------------------------------------------------------------- /view-pic-img.html: -------------------------------------------------------------------------------- 1 | ERROR: You are not permitted to directly hotlink this image, please go to http://www.".$site_url."/view-pic.html?img=".$img." to view the image."); 13 | exit; 14 | } 15 | else $show_page = TRUE; 16 | } 17 | else $show_page = TRUE; 18 | 19 | if($show_page == TRUE) { 20 | include_once("gallery_img_handler.php"); 21 | if(!$img) die(); 22 | else { 23 | if($w > 1000) $w = 1000; 24 | 25 | if($w) $image = previewImage($img, $w); 26 | else $image = previewImage($img); 27 | 28 | header("Content-type: image/jpg"); 29 | $done = file_get_contents($image['targetImagePath']); 30 | echo $done; 31 | } 32 | } 33 | ?> -------------------------------------------------------------------------------- /view-pic-original.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfscripts/Reservo-Image-Hosting-Script-Free/1d9d11e9d7a886de430afdbb8f2b6f383d4f6a29/view-pic-original.html -------------------------------------------------------------------------------- /view-pic.html: -------------------------------------------------------------------------------- 1 | ERROR: IMAGE NOT FOUND!"; 13 | include("footer.php"); 14 | } 15 | else { 16 | 17 | // load image data 18 | if(!$w) $w = 720; 19 | if($w > 2000) $w = 2000; 20 | if($w) $image = previewImage($img, $w); 21 | else $image = previewImage($img); 22 | $done = file_get_contents($image['targetImagePath']); 23 | 24 | if(strlen($image['password']) > 0) { 25 | if($_POST['p'] != $image['password']) { 26 | // redirect to adult confirmation page 27 | header("Location: http://".$site_url."/enter-password.html?img=".$img); 28 | die(); 29 | exit; 30 | } 31 | } 32 | elseif($image['status'] == "adult") { 33 | if(!$_POST['adult']) { 34 | // redirect to adult confirmation page 35 | header("Location: http://".$site_url."/adult-warning.html?img=".$img); 36 | die(); 37 | exit; 38 | } 39 | } 40 | 41 | $ptitle = "Free Image Hosting"; 42 | $pkeys = "image hosting, free image host, image host, img host, upload picture"; 43 | $pdesc = "Fast & Free Image Hosting"; 44 | $selected = "VIEWPIC"; 45 | 46 | include_once("header.php"); 47 | 48 | echo '
'; 49 | 50 | // ads 51 | if($image['status'] == "adult") { 52 | // display adult advertising here 53 | } 54 | else { 55 | // display non-adult advertising here 56 | } 57 | 58 | echo ''.$image[description].''; 59 | echo "

"; 60 | 61 | $newviews = $image[totalviews]+1; 62 | echo "File Name: ".$image[originalfilename]."

"; 63 | echo "Date Added: ".$image[dateadded]." | Original Filesize: ".$image[filesize]." | Views: ".$newviews; 64 | if(strlen($image[description]) > 0) echo "

Comments: ".$image[description]; 65 | echo "

view original | download"; 66 | 67 | // ads 68 | if($image['status'] == "adult") { 69 | // display adult advertising here 70 | } 71 | else { 72 | // display non-adult advertising here 73 | } 74 | 75 | echo '
'; 76 | 77 | // update views 78 | $update_views = mysql_query("UPDATE images SET totalviews = ".$newviews.", lastaccessed = NOW() WHERE id = ".$img." LIMIT 1"); 79 | 80 | include("footer.php"); 81 | 82 | } 83 | ?> --------------------------------------------------------------------------------