ctcms.php 422 B

12345678910111213
  1. <?php
  2. require_once(FCPATH . 'libraries/config.php');
  3. require_once(FCPATH . 'libraries/database.php');
  4. $install_path = FCPATH . "packs/install/install.lock";
  5. if( !file_exists($install_path) && strpos($_SERVER["REQUEST_URI"], "install") === false )
  6. {
  7. $web_path = str_replace("\\", "/", str_replace(getcwd(), "", FCPATH));
  8. header('location:' . $web_path . "index.php/install");
  9. exit();
  10. }
  11. return 1;