Update config.php

This commit is contained in:
Muhammad Herdy Iskandar
2023-09-30 02:52:19 +07:00
committed by GitHub
parent 481a2451db
commit 8008bde892

View File

@@ -32,28 +32,11 @@ $sport = $_SERVER['SERVER_PORT'];
// $config['base_url'] = 'http://'.$_SERVER['SERVER_NAME']; // $config['base_url'] = 'http://'.$_SERVER['SERVER_NAME'];
// Memeriksa alamat server dan mengatur $config['base_url'] sesuai dengan kondisi // Memeriksa alamat server dan mengatur $config['base_url'] sesuai dengan kondisi
if ($sname == '192.168.100.51') { if ($sname == 'app.dyzulk.com') {
if ($_SERVER['SERVER_PORT'] == 80) { if ($_SERVER['SERVER_PORT'] == 443) {
$config['base_url'] = 'http://'.$sname.'/ci/'; $config['base_url'] = 'https://'.$sname.'/panel/';
} else { } else {
$config['base_url'] = 'https://'.$$sname.'/ci/'; $config['base_url'] = 'http://'.$sname.'/panel/';
}
}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/';
} }
} }