mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
moved config to extra file so you can update without re-writing your config every time. Just don't forget to reame it
This commit is contained in:
22
index.php
22
index.php
@@ -1,22 +1,20 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
// shall we log all uploaders IP addresses?
|
||||
define('LOG_UPLOADER', true);
|
||||
if(!file_exists(ROOT.DS.'inc'.DS.'config.inc.php'))
|
||||
exit('Rename /inc/example.config.inc.php to /inc/config.inc.php first!');
|
||||
include_once(ROOT.DS.'inc'.DS.'config.inc.php');
|
||||
|
||||
//how many resizes may one image have? set it to -1 for infinite resizes
|
||||
define('MAX_RESIZED_IMAGES',4);
|
||||
|
||||
//when the user requests a resize. Can the resized image be bigger than the original?
|
||||
define('ALLOW_BLOATING', false);
|
||||
|
||||
|
||||
//don't change stuff beyond this point
|
||||
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
||||
if(FORCE_DOMAIN)
|
||||
define('DOMAINPATH',FORCE_DOMAIN);
|
||||
else
|
||||
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('ROOT', dirname(__FILE__));
|
||||
error_reporting(E_ALL & ~E_NOTICE);
|
||||
ini_set('display_errors','On');
|
||||
if(SHOW_ERRORS)
|
||||
ini_set('display_errors','On');
|
||||
else ini_set('display_errors','Off');
|
||||
|
||||
include_once(ROOT.DS.'inc'.DS.'core.php');
|
||||
$url = $_GET['url'];
|
||||
|
||||
Reference in New Issue
Block a user