Fakultas Ilmu Komputer UI

Commit 1998f833 authored by Muhammad Indra Ramadhan's avatar Muhammad Indra Ramadhan
Browse files

Remove env on adminer

parent 575fbe85
......@@ -48,14 +48,6 @@ function check_invalid_login() {
}
}
$prod = isset($_ENV["PRODUCTION"]);
if ($prod) {
$vendor = $_ENV["VENDOR"];
$server = $_ENV["SERVER"];
$username = $_ENV["USERNAME"];
$password = $_ENV["PASSWORD"];
}
if ($_SESSION["db"][$vendor][$server][$username][$db] == false) {
$_POST["auth"] = [
"driver" => $vendor,
......
......@@ -3,12 +3,7 @@ require "./vendor/SSO/SSO.php";
$cas_path = "./vendor/phpCAS-1.3.6/CAS.php";
SSO\SSO::setCASPath($cas_path);
$prod = isset($_ENV["PRODUCTION"]);
if ($prod) {
$base_url = $_ENV["BASE_URL"];
} else {
include "./include/config.php";
}
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