2
0

index.php 601 B

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