Fakultas Ilmu Komputer UI

Commit 6ef16f15 authored by Muhammad Indra Ramadhan's avatar Muhammad Indra Ramadhan
Browse files

Don't import development config on production mode

parent 51a3fd3a
Pipeline #59023 failed with stage
in 1 minute and 6 seconds
......@@ -14,7 +14,11 @@ $cas_path = "./vendor/phpCAS-1.3.6/CAS.php";
SSO\SSO::setCASPath($cas_path);
include "./sso-login.php";
include "./include/config.php";
$prod = isset($_ENV["PRODUCTION"]);
if (!$prod) {
include "./include/config.php";
}
include "./include/bootstrap.inc.php";
include "./include/tmpfile.inc.php";
......
......@@ -3,11 +3,11 @@ require "./vendor/SSO/SSO.php";
$cas_path = "./vendor/phpCAS-1.3.6/CAS.php";
SSO\SSO::setCASPath($cas_path);
include "./include/config.php";
$prod = isset($_ENV["PRODUCTION"]);
if ($prod) {
$base_url = $_ENV["BASE_URL"];
} else {
include "./include/config.php";
}
SSO\SSO::logout($base_url);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment