[add] external file for personal option

This commit is contained in:
Knah Tsaeb 2013-08-06 10:41:03 +02:00
parent 4bad1d987b
commit 98817c473e
1 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,11 @@ error_reporting(E_ALL ^ E_NOTICE);
session_start();
$startTime = microtime(true);
date_default_timezone_set('UTC');
##### Default config ######
# create option.php in #
# datadir #
###########################
// Data subdirectory
$GLOBALS['config']['DATADIR'] = 'data';
// Video subdirectory
@ -28,6 +33,11 @@ $GLOBALS['config']['PAGECACHE'] = 'pagecache';
// xsendfile (use x-sendfile)
// php
$GLOBALS['config']['DOWNLOAD_METHOD'] = 'xsendfile';
if(file_exists($GLOBALS['config']['DATADIR'].'/option.php')){
require_once $GLOBALS['config']['DATADIR'].'/option.php';
}
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value) {
$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);