From 8008bde892b640ac11be5b3bc0d720bb5593bee5 Mon Sep 17 00:00:00 2001 From: Muhammad Herdy Iskandar <66510723+dyzulk@users.noreply.github.com> Date: Sat, 30 Sep 2023 02:52:19 +0700 Subject: [PATCH] Update config.php --- application/config/config.php | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/application/config/config.php b/application/config/config.php index 59fd001..0bf629b 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -32,28 +32,11 @@ $sport = $_SERVER['SERVER_PORT']; // $config['base_url'] = 'http://'.$_SERVER['SERVER_NAME']; // Memeriksa alamat server dan mengatur $config['base_url'] sesuai dengan kondisi -if ($sname == '192.168.100.51') { - if ($_SERVER['SERVER_PORT'] == 80) { - $config['base_url'] = 'http://'.$sname.'/ci/'; +if ($sname == 'app.dyzulk.com') { + if ($_SERVER['SERVER_PORT'] == 443) { + $config['base_url'] = 'https://'.$sname.'/panel/'; } else { - $config['base_url'] = 'https://'.$$sname.'/ci/'; - } -}elseif ($sname == 'localhost') { - $config['base_url'] = 'https://localhost/ci/'; -} elseif ($sname == 'ci.is') { - // Default base URL jika alamat server tidak cocok dengan yang diharapkan - if ($sport == 80) { - $config['base_url'] = 'http://ci.is/'; - } else { - $config['base_url'] = 'https://ci.is/'; - } - -} else { - // Default base URL jika alamat server tidak cocok dengan yang diharapkan - if ($sport == 80) { - $config['base_url'] = 'http://'.$saddr.'/ci/'; - } else { - $config['base_url'] = 'https://'.$saddr.'/ci/'; + $config['base_url'] = 'http://'.$sname.'/panel/'; } }