index.php 666 B

1234567891011121314151617181920212223242526
  1. <?php
  2. session_start();
  3. require_once "../env.inc.php";
  4. require_once "../access.inc.php";
  5. require_once "../conf.inc.php";
  6. require_once DIR_PHP_LAYOUTS . "header.php";
  7. if($_SERVER['HTTP_HOST'] == DOMAIN_EVENTS){
  8. if(session::isConnect("salarie")) {
  9. header("Location: /home.php");
  10. exit();
  11. } else {
  12. define("TITLE", "CSE Invent : Identification");
  13. get::page("login");
  14. }
  15. } elseif ($_SERVER['HTTP_HOST'] == DOMAIN_CONTROL) {
  16. if(session::isConnect()) {
  17. header("Location: /home.php");
  18. exit();
  19. } else {
  20. define("TITLE", "CSE Invent : Contrôleur Identification");
  21. get::page("login");
  22. }
  23. }