Rev 6 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6 | Rev 8 | ||
---|---|---|---|
Line 17... | Line 17... | ||
17 | * limitations under the License. |
17 | * limitations under the License. |
18 | */ |
18 | */ |
19 | 19 | ||
20 | if (!isset($_REQUEST['cmd'])) _err('cmd is missing'); |
20 | if (!isset($_REQUEST['cmd'])) _err('cmd is missing'); |
21 | 21 | ||
22 | require_once __DIR__.'/config.inc.php'; |
- | |
23 | - | ||
24 | $hostname = trim(file_get_contents('/etc/hostname')); |
22 | $hostname = trim(file_get_contents('/etc/hostname')); |
25 | 23 | ||
- | 24 | if (file_exists(__DIR__."/config_$hostname.inc.php")) { |
|
- | 25 | require_once __DIR__."/config_$hostname.inc.php"; |
|
- | 26 | } else { |
|
- | 27 | require_once __DIR__.'/config.inc.php'; |
|
- | 28 | } |
|
- | 29 | ||
26 | if (file_exists(__DIR__."/db_$hostname.inc.php")) { |
30 | if (file_exists(__DIR__."/db_$hostname.inc.php")) { |
27 | require_once __DIR__."/db_$hostname.inc.php"; |
31 | require_once __DIR__."/db_$hostname.inc.php"; |
28 | } else { |
32 | } else { |
29 | require_once __DIR__.'/db.inc.php'; |
33 | require_once __DIR__.'/db.inc.php'; |
30 | } |
34 | } |