This file contains hidden or 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
if (isset($_POST['delete'])) { | |
if (is_dir($_POST['delete'])) { | |
if(count(scandir($_POST['delete']))<=2) { | |
rmdir($_POST['delete']); | |
header('location:index.php'); | |
die; | |
}else { | |
echo "Impossible de supprimer un dossier non-vide"; | |
} | |
}else { |
This file contains hidden or 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
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: edouard_p_wcs_lyon | |
-- ------------------------------------------------------ | |
-- Server version 5.7.21-0ubuntu0.16.04.1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
This file contains hidden or 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 | |
declare(strict_types=1); | |
function writeSecretSentence (string $parametre1, string $parametre2) { | |
$secretSentence = $parametre1 . ' s\'incline face à ' . $parametre2; | |
return $secretSentence; | |
} | |
echo writeSecretSentence('Le lapin', 'la louve'); |
This file contains hidden or 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 | |
if($_POST){ | |
$error = []; | |
//Erreur// | |
if(empty($_POST['userName'])){ | |
$error['userName1'] = 'Votre nom merci'; |
This file contains hidden or 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 | |
$weapons = ['fists', 'whip', 'gun']; | |
$opponentWeapon = $weapons[rand(0,2)]; | |
if ($opponentWeapon == 'fists'){ | |
$indyWeapon = 'gun'; | |
} | |
elseif ($opponentWeapon == 'whip'){ |
This file contains hidden or 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 | |
$films = [ | |
'Raiders of the Lost Ark' => ['Harrison Ford', 'Karen Allen', 'John Rhys-Davies'], | |
'Indiana Jones and the Temple of Doom' => ['Harrison Ford', 'Kate Capshaw', 'Amrish Puri'], | |
'Indiana Jones and the Last Crusade' => ['Harrison Ford', 'Julian Glover', 'Sean Connery'] | |
]; | |
foreach ($films as $key => $value) { | |
echo "Dans Le film "; |
This file contains hidden or 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 | |
$chainePapyrus1="0@sn9sirppa@#?ia'jgtvryko1"; | |
$chainePapyrus2="q8e?wsellecif@#?sel@#?setuotpazdsy0*b9+mw@x1vj"; | |
function decodeur ($chainePapyrus) | |
{ | |
$chiffreCle=(strlen($chainePapyrus))/2; | |
$chaineChiffreCle= substr ($chainePapyrus , 5, $chiffreCle); | |
$chaineavecEspace=str_replace('@#?' , ' ' , $chaineChiffreCle); | |
$chaineDecrypte1= strrev($chaineavecEspace); |
This file contains hidden or 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
1 chsh -s /bin/zsh | |
2 sudo apt-get install vim | |
3 vim | |
4 curl http://install.sublivim.com | sh | |
5 sudo apt-get install sublime-text | |
6 wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
7 echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
8 sudo apt-get update | |
9 sudo apt-get install sublime-text | |
10 vim |
This file contains hidden or 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
1. Je m'engage à ne pas partir avant d'avoir finit ce aue j'ai commencé. | |
2. Je m'engage a faire une pause a midi. | |
3. Je m'engage a demander si je ne comprend pas quelque chose. | |
4. Je m'engage a faire le point avec mon groupe chaque jour sur l'état du projet en cour. |
This file contains hidden or 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 | |
$filmName="Indiana Jones and the Last Crusade"; | |
$filmYear=1989; | |
$filmSeen=true; | |
$filmMark=8.3; | |
echo $filmName; | |
echo "<br>"; | |
echo $filmSeen; | |
echo "<br>"; |
NewerOlder