public static function insertA($_url, $_meta_desc, $_meta_title) { $bdd = Bdd::connect(); if (!empty($_url)) { $url_canonique = $_url; } if (!empty($_meta_desc)) { $haut_meta_desc = $_meta_desc; } if (!empty($_meta_title)) { $haut_meta_title = $_meta_title; } include '../lib/php/perso/head.php'; }
public static function verifDispoMail($email) { $email = htmlspecialchars($email, ENT_QUOTES); $bdd = Bdd::connect(); $recupVerifEmail = $bdd->prepare('SELECT id_membre FROM membre WHERE email = ?'); $recupVerifEmail->execute(array($email)); $verifEmail = $recupVerifEmail->fetch(); if (!empty($email)) { if (!empty($verifEmail['id'])) { return false; } else { return true; } } else { return true; } //$erreur[] = 4; }
include 'lib/php/autoload/autoload.php'; session_start(); if (!isset($_SESSION['panier'])) { $_SESSION['panier'] = new Cart(); } //session_destroy(); //var_dump($_SESSION['panier']); if (isset($_GET['action'])) { $action = htmlspecialchars($_GET['action']); } else { header('Location:Home'); die; } if (file_exists('lib/php/config/config.' . $action . '.php')) { include 'lib/php/config/config.' . $action . '.php'; } $bdd = Bdd::connect(); if (file_exists('ctr/ctr.' . $action . '.php')) { include 'ctr/ctr.' . $action . '.php'; } if (file_exists('mod/mod.' . $action . '.php')) { include 'mod/mod.' . $action . '.php'; } Head::insert($design, $description, $title); if (file_exists('vue/vue.' . $action . '.php')) { include 'vue/vue.' . $action . '.php'; } else { echo 'vue introuvable'; } Foot::insert($script, $jquery);
public static function insertA($script_perso, $jquery = false) { $bdd = Bdd::connect(); include '../lib/php/perso/foot.php'; }