require 'include/lessc.php'; try { lessc::ccompile('less/video.less', 'css/video.css'); } catch (exception $ex) { exit('lessc fatal error:' . $ex->getMessage()); } require 'include/Config.php'; require 'include/MysqliRessource.php'; require 'include/ModelMysqli.php'; require 'include/EtudiantMysqli.php'; require 'include/ProjetMysqli.php'; $etudiantMysqli = new EtudiantMysqli(); $projetMysqli = new ProjetMysqli(); if (isset($_GET['id']) && !empty($_GET['id']) && ctype_digit($_GET['id'])) { $id = (int) $_GET['id']; $projet = $projetMysqli->selectAllById($id); if ($projet['filiere'] == 1) { $projets = $projetMysqli->selectLast3Mt(); } else { $projets = $projetMysqli->selectLast3Rea(); } } else { header('Location: index.php'); exit; } $crochet = array("[", "]"); function daylimotion_id_by_url($url) { $media_url = ""; preg_match('#<object[^>]+>.+?http://www.dailymotion.com/swf/video/([A-Za-z0-9]+).+?</object>#s', $url, $matches); if (!isset($matches[1])) {