mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 18:56:21 +00:00
22 lines
592 B
PHP
22 lines
592 B
PHP
<?php
|
|
session_start();
|
|
|
|
// shall we log all uploaders IP addresses?
|
|
define('LOG_UPLOADER', true);
|
|
|
|
//how many resizes may one image have?
|
|
define('MAX_RESIZED_IMAGES',10);
|
|
|
|
//don't change stuff beyond this point
|
|
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');
|
|
|
|
include_once(ROOT.DS.'inc'.DS.'core.php');
|
|
$url = $_GET['url'];
|
|
removeMagicQuotes();
|
|
$GLOBALS['params'] = explode('/', $_GET['url']);
|
|
callHook();
|