You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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.
Use the following page to browse all items awaiting approval. (currently <b><?php echo $total_pen; ?> item<?php if($total_pen != 1) echo "s"; ?></b> pending). Any inappropriate items should be removed immediately from the system:<br><br>
39
+
40
+
<?php
41
+
// get recent
42
+
$tracker = 0;
43
+
$get_recent = mysql_query("SELECT id, dateadded, filesize, originalheight, originalwidth FROM images WHERE status = 'new' ORDER BY dateadded DESC LIMIT 30");
echo "<ahref='../view-pic.html?img=".$row[id]."'><imgsrc='../view-image.html?img=".$row[id]."&w=110&h=110' border='0' width='110' alt='".$site_url." - click here to view this image' style='border:1px solid #cccccc;'></a>";
56
+
echo "</td>";
57
+
if($tracker == 4) {
58
+
$tracker = 0;
59
+
echo "</tr>";
60
+
}
61
+
else $tracker++;
62
+
}
63
+
echo '</table>';
64
+
}
65
+
else echo "<b>There are no items awaiting approval.</b>";
66
+
}
67
+
else echo "<b>There are no items awaiting approval.</b>";
$site_url = "yourdomain.com"; // site url. Lowercase. Excluding the www. Remove any ending forward slash '/'. i.e. 'mysitename.com'.
11
+
$site_admin = "[email protected]"; // email address used for the contact page
12
+
13
+
// other bits
14
+
$max_upload_size = "2097152"; // maximum image filesize permitted
15
+
$max_upload_display_size = "2mb"; // displays on the homepage
16
+
$days_to_keep_images = 60; // after how many days of inactivity images should be removed
17
+
$permit_hotlinking = TRUE; // whether or not to allow images to be directly linked from external sites
18
+
19
+
$watermark = "images/watermark.png"; // path to watermark image - must be a PNG - Leave blank for no watermark
20
+
$watermark_alpha = 50; // measured from 1 to 100 this is the transparency of the watermark image
21
+
$watermark_pos = "bottom-right"; // watermark position. Options are top-left, top-right, bottom-left, bottom-right, center
22
+
23
+
$show_delete_code = TRUE; // if TRUE, the user is given a unique url to delete the image. This is shown on the completition of upload page. (index.html)
24
+
25
+
$show_pass_option = TRUE; // if TRUE, the user is given the option to specify a password on an image
26
+
27
+
$default_upload_view = "MULTIPLE"; // should be set to 'SINGLE' or 'MULTIPLE' to set either the single or Flash multiple uploader tool, as the default homepage view
else echo "<b>Your message has been sent to ".$site_name.". We will endeavour to respond within the next 48 hours.<br><br>Thanks for your comments,<br>".$site_url."</b><br><br>";
Images not accessed within <?php echo $days_to_keep_images; ?> days will be removed.<br><br>
20
+
21
+
<b>How many images can I upload?</b><br>
22
+
You can upload as many images as you want, as long as each one adheres to the Terms of Service.<br><br>
23
+
24
+
<b>Which image types am I allowed to upload?</b><br>
25
+
You may upload .jpg, .jpeg, .gif (non animated) and .png image types.<br><br>
26
+
27
+
<b>Are there any restrictions to the size of my uploaded images?</b><br>
28
+
Each image you upload must be less than <?php echo $max_upload_display_size; ?> in size. If it is greater than that amount, your image will be rejected.<br><br>
29
+
30
+
<b>Can I edit my images using <?php echo $site_name; ?>?</b><br>
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.<br><br>
32
+
33
+
<b>Can I upload music or videos?</b><br>
34
+
No. Music hosting is not allowed due to copyright concerns. Video hosting is not allowed due to large file sizes.<br><br>
35
+
36
+
<b>How much space can I use?</b><br>
37
+
You have an unlimited amount of space for storing your images. <?php echo $site_name; ?> continuously buys harddrives to compensate for the amount of images that <?php echo $site_name; ?>'s visitors upload.
0 commit comments