/index.php
PHP | 12 lines | 11 code | 1 blank | 0 comment | 9 complexity | e18214936103289c2fae2af913c8b7af MD5 | raw file
Possible License(s): MIT, GPL-3.0, LGPL-2.1
- <?php
- REQUIRE_ONCE './config/default.conf.php';
- print_r($_ENV);
- if (file_exists('./config/db.conf.php') == false || file_exists('./config/key.conf.php') == false) {
- if (isset($_ENV['key']) == false && isset($_ENV['db']) == false) {
- header("location:http://{$_SERVER['HTTP_HOST']}{$_ENV['dir']}/install.php");
- } else {
- header("location:http://{$_SERVER['HTTP_HOST']}{$_ENV['dir']}/admin");
- }
- }
- ?>