PageRenderTime 55ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/index.php

https://github.com/arzzcom/OLD.iModule
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
  1. <?php
  2. REQUIRE_ONCE './config/default.conf.php';
  3. print_r($_ENV);
  4. if (file_exists('./config/db.conf.php') == false || file_exists('./config/key.conf.php') == false) {
  5. if (isset($_ENV['key']) == false && isset($_ENV['db']) == false) {
  6. header("location:http://{$_SERVER['HTTP_HOST']}{$_ENV['dir']}/install.php");
  7. } else {
  8. header("location:http://{$_SERVER['HTTP_HOST']}{$_ENV['dir']}/admin");
  9. }
  10. }
  11. ?>