mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-11 10:46:22 +00:00
24 lines
696 B
PHP
24 lines
696 B
PHP
<?php
|
|
session_start();
|
|
define('DS', DIRECTORY_SEPARATOR);
|
|
define('ROOT', dirname(__FILE__));
|
|
|
|
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');
|
|
|
|
if(FORCE_DOMAIN)
|
|
define('DOMAINPATH',FORCE_DOMAIN);
|
|
else
|
|
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');
|
|
error_reporting(E_ALL & ~E_NOTICE);
|
|
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'];
|
|
removeMagicQuotes();
|
|
$GLOBALS['params'] = explode('/', $_GET['url']);
|
|
callHook();
|