index.php 619 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * index.php
  4. *
  5. * Redirects to the login page.
  6. *
  7. * @copyright 1999-2025 The SquirrelMail Project Team
  8. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  9. * @version $Id$
  10. * @package squirrelmail
  11. */
  12. // Are we configured yet?
  13. if( ! file_exists ( 'config/config.php' ) ) {
  14. echo '<html><body><p><strong>ERROR:</strong> Config file ' .
  15. '&quot;<tt>config/config.php</tt>&quot; not found. You need to ' .
  16. 'configure SquirrelMail before you can use it.</p></body></html>';
  17. exit;
  18. }
  19. // If we are, go ahead to the login page.
  20. header('Location: src/login.php');