diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-04-04 01:11:47 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-04-04 01:11:47 -0700 |
| commit | a736da57f084017ac17e06cd9db19b1fd166e1a6 (patch) | |
| tree | 55a9e83b31f6bdc176731125de0cc42668daf988 /protected/Settings.php | |
first
Diffstat (limited to 'protected/Settings.php')
| -rwxr-xr-x | protected/Settings.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/protected/Settings.php b/protected/Settings.php new file mode 100755 index 0000000..e568421 --- /dev/null +++ b/protected/Settings.php @@ -0,0 +1,31 @@ +<?php +/** + * Created by IntelliJ IDEA. + * User: root + * Date: 8/15/13 + * Time: 11:17 AM + * To change this template use File | Settings | File Templates. + */ + + +class Settings { + static $BasePath = ""; + static $CachePath = ""; + static $YoutubeDlCommand = "youtube-dl "; + static $PythonCommand = "python "; + static $DeveloperPassword = "JHdfgJ346Kfgfh345fgjfns435346dkgnksdg469849JKJf"; + static $Domain = ""; + static $CacheDownloadMaxSpeed = false; //false for disable + + public static function setConfigs(){ + $baseDir = dirname(__FILE__) . "/../"; + + self::$BasePath = $baseDir; + self::$CachePath = $baseDir."cache/" ; + + $_SERVER['REQUEST_SCHEME'] = (isset($_SERVER['REQUEST_SCHEME'])) ? $_SERVER['REQUEST_SCHEME'] : "http"; + + self::$Domain = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['HTTP_HOST']; + + } +}
\ No newline at end of file |
