update 0.0.1

This commit is contained in:
dyzulk
2023-09-26 15:21:52 +07:00
parent a62a52ce92
commit 9a0db6be8c
9 changed files with 2728 additions and 5 deletions

View File

@@ -32,15 +32,15 @@ $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 ($sname == '192.168.100.51') {
if ($_SERVER['SERVER_PORT'] == 80) {
$config['base_url'] = 'http://'.$sname.'/ci/';
} else {
$config['base_url'] = 'https://'.$$sname.'/ci/';
}
}elseif ($sname === 'localhost') {
}elseif ($sname == 'localhost') {
$config['base_url'] = 'https://localhost/ci/';
} elseif ($sname === 'ci.is') {
} elseif ($sname == 'ci.is') {
// Default base URL jika alamat server tidak cocok dengan yang diharapkan
if ($sport == 80) {
$config['base_url'] = 'http://ci.is/';