diff --git a/App/Config.php b/App/Config.php index 5d4ac24..1e41537 100644 --- a/App/Config.php +++ b/App/Config.php @@ -45,6 +45,14 @@ class Config return "/wapi/"; } } + static public function DBUrl() { + if ( "0.0.0.0" == $_SERVER['SERVER_NAME']){ + return "49.235.25.67"; + } + if("testingcloud.club" == $_SERVER['SERVER_NAME']){ + return "127.0.0.1"; + } + } static public function ServerUrl() { if ( "0.0.0.0" == $_SERVER['SERVER_NAME']){ return "http://127.0.0.1/api/public/";