Calling URI * */ public function __construct($url){ } /* CALL * */ public function home(){ /* [1] Fetch configuration =========================================================*/ /* (1) Get config */ try{ $config = Config::loadCached(); /* (2) Error management */ }catch(\Exception $e){ die("An error occured. Please contact the developers.\n"); } /* (3) Get the diplome list */ $diplomes = $config->getDiplomes(); /* [2] Display the links =========================================================*/ echo "
Diplome | Config | Link | Last Update |
$name | "; $URI = $_SERVER['REQUEST_URI']; $url = $_SERVER['HTTP_HOST'].$URI."ics/$id.ics"; $link = __ROOT__."/tmp/$id.ics"; echo "Correct | "; echo "https://$url | "; echo "$upda | "; echo "