summaryrefslogtreecommitdiff
path: root/protected/Settings.php
diff options
context:
space:
mode:
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