This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
// variable globale | |
// dossier qui va grouper les fichiers de traitement de formulaire | |
$cheminController = __DIR__ . "/../private/controller"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"range": { | |
"startLineNumber": 1, | |
"startColumn": 1, | |
"endLineNumber": 1, | |
"endColumn": 1 | |
}, | |
"rangeLength": 0, | |
"text": "<", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Exos jQuery</title> | |
</head> | |
<body> | |
<!-- | |
POUR LA FACILITE DE LECTURE DU CODE DES EXOS | |
ON REGROUPE LE HTML ET CSS AVEC LE JS DE CHAQUE EXO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="fr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>jQuery</title> | |
</head> | |
<body> | |
<header> | |
<h1>TITRE1</h1> | |
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// balise ouvrante PHP | |
// ligne de commentaire | |
/* | |
bloc de commentaire | |
*/ | |
// on écrit du code PHP entre les balises PHP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// http://php.net/manual/fr/function.require-once.php | |
// on compose la page avec 3 tranches | |
require_once "private/header.php"; | |
require_once "private/section.php"; | |
require_once "private/footer.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// configuration de l'affichage d'erreurs | |
// http://php.net/manual/fr/function.error-reporting.php | |
// http://php.net/manual/fr/function.ini-set.php | |
// en mode dev | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var go = function (...tabParam) { | |
if (tabParam.length == 1) { | |
var $d = document; | |
var selector = tabParam[0]; | |
console.log(selector) | |
go.tabSelect = $d.querySelectorAll(selector); | |
return go; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// PROTECTION CONTRE UN ACCES DIRECT PAR UN NAVIGATEUR | |
if (!function_exists('add_action')) return; | |
// https://codex.wordpress.org/fr:Th%C3%A8mes_Enfant | |
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); | |
function theme_enqueue_styles() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://github.com/svpernova09/cloud9-php71/blob/master/install.sh | |
# ajouter le depot de php72 | |
sudo add-apt-repository ppa:ondrej/php -y | |
sudo apt-get update -y | |
# installer les modules nécessaires et utiles pour php72 | |
sudo apt-get install libpcre3 -y | |
sudo apt-get install php7.2 php7.2-curl php7.2-cli php7.2-gd php7.2-intl php7.2-json php7.2-mysql php7.2-opcache php7.2-bcmath php7.2-mbstring php7.2-soap php7.2-xml php7.2-zip php-sqlite3 -y |
NewerOlder