summaryrefslogtreecommitdiff
path: root/protected/Settings.php
diff options
context:
space:
mode:
authoryo mama <pepper@scannerjammer.com>2015-04-04 01:11:47 -0700
committeryo mama <pepper@scannerjammer.com>2015-04-04 01:11:47 -0700
commita736da57f084017ac17e06cd9db19b1fd166e1a6 (patch)
tree55a9e83b31f6bdc176731125de0cc42668daf988 /protected/Settings.php
first
Diffstat (limited to 'protected/Settings.php')
-rwxr-xr-xprotected/Settings.php31
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