[add] external file for personal option
This commit is contained in:
parent
4bad1d987b
commit
98817c473e
10
index.php
10
index.php
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue