Пример #1
0
 /**
  * Encapsule le comportement du module d'export ics
  *
  * @return void
  * @access public
  * @static
  */
 public static function exportICSModule()
 {
     $_SESSION['config'] = init_config_tab();
     // on initialise le tableau des variables de config
     if ($_SESSION['config']['export_ical'] == FALSE) {
         header('HTTP/1.0 403 Forbidden');
         exit('403 Forbidden');
     }
     //on récupère le hash du user
     $usrh = $_GET['usr'];
     //on récupère le nom associé au hash
     $session_username = unhash_user($usrh);
     if ($session_username != "") {
         \export\Fonctions::export_ical($session_username);
     }
 }