-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
better managment file system in KOUDOU, new cours koudou(dev,cyber) ,…
… CEJM Many folders and file moved and deleted some duplicated files New Koudou cours Moved cybercecurity from KOUDOU/SLAM to KOUDOU/ And new CEJM cours lazy for describ everythings
- Loading branch information
Showing
514 changed files
with
1,114 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
KDE-CONNECT/ | ||
__history/ | ||
py.swp | ||
|
||
.getduplicated | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file removed
0
CGE/5_2023-09-20_Les-aventuriers-voiyageurs_devoirpour_2023-09-27/2023-09-26.md
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
|
||
abstract class Rule { | ||
protected $description; | ||
|
||
public function __construct($description) { | ||
$this->description = $description; | ||
} | ||
|
||
abstract public function getDescription(); | ||
} | ||
|
||
final class Punishment extends Rule { | ||
// Additional properties and methods specific to punishments | ||
public function getDescription() { | ||
return $this->description; | ||
} | ||
} | ||
|
||
class Reward extends Rule { | ||
// Additional properties and methods specific to rewards | ||
public function getDescription() { | ||
return $this->description; | ||
} | ||
} | ||
|
||
class CustomException extends Rule { | ||
// Additional properties and methods specific to exceptions | ||
public function getDescription() { | ||
return $this->description; | ||
} | ||
} | ||
|
||
class OtherRule extends Rule { | ||
// Additional properties and methods specific to author rules | ||
public function getDescription() { | ||
return $this->description; | ||
} | ||
} | ||
|
||
// $rule1 = new Punishment("If a short is watched completely outside the allowed periods, the next reward is cancelled."); | ||
// $rule2 = new Punishment("If a rule is not respected, the next reward is cancelled, and the movie, episode, or video of the day is cancelled."); | ||
|
||
$reward1 = new Reward("Reward 1 description"); | ||
$exception1 = new CustomException("If there is an opportunity to spend time with the girl I love and it is incompatible with one or more of these rules, it is up to me to decide whether to dedicate that time to her."); | ||
|
||
$otherRules = new OtherRule("Daily: I either watch a movie, a TV episode, or a YouTube video. As an alternative form of entertainment, I have the right to read, and it is only valid for breaks or dedicated entertainment breaks."); | ||
|
||
|
||
// echo $rule1->getDescription()."<br>"; | ||
// echo $rule2->getDescription()."<br>"; | ||
echo $reward1->getDescription()."<br>"; | ||
echo $exception1->getDescription()."<br>"; | ||
echo $otherRules->getDescription(); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
class User | ||
{ | ||
protected const STATUS_ACTIVE = 'active</br>'; | ||
protected const STATUS_INACTIVE = 'inactive</br>'; | ||
|
||
public static $nombreUtilisateursInitialises = 0; | ||
|
||
public function __construct(public string $username, public string $status = self::STATUS_ACTIVE) | ||
{ | ||
} | ||
|
||
public function setStatus(string $status): void | ||
{ | ||
if (!in_array($status, [self::STATUS_ACTIVE, self::STATUS_INACTIVE])) { | ||
trigger_error(sprintf('Le status %s n\'est pas valide. Les status possibles sont : %s', $status, implode(', ', [self::STATUS_ACTIVE, self::STATUS_INACTIVE])), E_USER_ERROR); | ||
}; | ||
|
||
$this->status = $status; | ||
} | ||
|
||
public function getStatus(): string | ||
{ | ||
return $this->status; | ||
} | ||
} | ||
|
||
|
||
class Admin extends User | ||
{ | ||
//public const STATUS_ACTIVE = 'active'; | ||
//public const STATUS_INACTIVE = 'inactive'; | ||
public const STATUS_LOCKED = 'locked'; | ||
|
||
public static $nombreAdminInitialises = 0; | ||
|
||
public static function nouvelleInitialisation() { | ||
self::$nombreAdminInitialises++; // class Admin | ||
parent::$nombreUtilisateursInitialises++; | ||
} | ||
|
||
// Ajout d'un tableau de roles pour affiner les droits des administrateurs :) | ||
public function __construct(public string $username, private array $roles = [], public string $status = self::STATUS_ACTIVE) | ||
{ | ||
} | ||
|
||
public function setStatus(string $status): void | ||
{ | ||
if (!in_array($status, [self::STATUS_ACTIVE, self::STATUS_INACTIVE, self::STATUS_LOCKED])) { | ||
trigger_error(sprintf('Le status %s n\'est pas valide. Les status possibles sont : %s', $status, implode(', ', [self::STATUS_ACTIVE, self::STATUS_INACTIVE, self::STATUS_LOCKED])), E_USER_ERROR); | ||
}; | ||
|
||
$this->status = $status; | ||
} | ||
|
||
public function getStatus(): string | ||
{ | ||
//return $this->status; | ||
return strtoupper (parent::getStatus()); | ||
} | ||
|
||
|
||
// Méthode d'ajout d'un rôle, puis on supprime les doublons avec array_filter. | ||
public function addRole(string $role): void | ||
{ | ||
$this->roles[] = $role; | ||
$this->roles = array_filter($this->roles); | ||
} | ||
|
||
// Méthode de renvoie des rôles, dans lequel on définit le rôle ADMIN par défaut. | ||
public function getRoles(): array | ||
{ | ||
$roles = $this->roles; | ||
$roles[] = 'ADMIN'; | ||
|
||
return $roles; | ||
} | ||
|
||
public function setRoles(array $roles): void | ||
{ | ||
$this->roles = $roles; | ||
} | ||
} | ||
|
||
|
||
class Visiteur extends User{ | ||
|
||
} | ||
|
||
$user = new Admin('Lelex'); | ||
echo $user->getStatus(); | ||
Admin::nouvelleInitialisation(); | ||
|
||
var_dump(Admin::$nombreAdminInitialises, Admin::$nombreUtilisateursInitialises); | ||
|
||
var_dump(User::$nombreUtilisateursInitialises); | ||
echo $user->setStatus(Admin::STATUS_LOCKED); | ||
echo $user->getStatus(); |
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"libraries":{"5b3b3dcb-e64d-4199-8d28-fbd29976fd5c":{"pub_id":"1ca15874-f241-4860-b288-6f020a3aef50","name":"KOUDOU","path":"/home/unix-tty/git-source/mygit+/BTS-SIO2-2023/KOUDOU","created_at":"2024-03-21T03:43:43.780121924Z","updated_at":"2024-03-21T03:43:43.780122104Z"}},"created_at":"2024-03-21T03:43:43.780131742Z","updated_at":"2024-03-21T03:43:43.780131873Z"} |
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file added
BIN
+733 KB
KOUDOU/ANNALS/ANNALS_cyber/4_edc22nc-Denas_08-04-24/22SI5SLAM_SUJET_Denas_2022_NC.docx
Binary file not shown.
Binary file added
BIN
+683 KB
KOUDOU/ANNALS/ANNALS_cyber/4_edc22nc-Denas_08-04-24/22SI5SLAM_SUJET_Denas_2022_NC.pdf
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ANNALE "23-12-18_lama_zoo_sujet_bat_2023.pdf" lié | ||
|
||
au cours "Les injections SQL.pdf" dans KOUDOU | ||
|
||
|
||
annale donnée un lundi | ||
le 18-12-23 |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+720 KB
KOUDOU/ANNALS/ANNALS_dev/edc21ms-VinsDeFrance_24-02-29/SI5SLAM_VDF_SUJET_2021.docx
Binary file not shown.
Binary file added
BIN
+853 KB
KOUDOU/ANNALS/ANNALS_dev/edc21ms-VinsDeFrance_24-02-29/SI5SLAM_VDF_SUJET_2021.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
file "chapitre 2.pdf" yet in Enplus | ||
CEJMA/Enplus_23-12-06/Chapitre 2.pdf |
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed
BIN
-570 KB
...RSECURITY-SLAM/1_2023-09-19_lundi_SIO2_cybersécurite/cours1_cybersec/cybersecurite_ok.pdf
Binary file not shown.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Question pour le prof | ||
Est ce que c'est le TD 2 ? | ||
|
||
ou, juste qu'est ce que c'est ? |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# regarder video 4 |
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
.../dev/JAVA/VIDEOS_tuto_Java/Java avec eclipse - video03 - Variables et entrées clavier.mp4
Git LFS file not shown
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...SLAM/dev/JAVA/VIDEOS_tuto_Java/Java avec eclipse - video05 - Instructions iteratives.mp4
Git LFS file not shown
4 changes: 4 additions & 0 deletions
4
KOUDOU/SLAM/dev/JAVA/idées_projets_php_à_pofiner_je_crois/README.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# De demander au prof | ||
Et donc, il est pour quoi ce dossier ? | ||
|
||
Est ce que c'est pour nous proposer des idées de projets ? |
61 changes: 61 additions & 0 deletions
61
KOUDOU/SLAM/dev/JAVA/idées_projets_php_à_pofiner_je_crois/biblio_ges_php/biblio_db.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 3.4.5 | ||
-- http://www.phpmyadmin.net | ||
-- | ||
-- Client: localhost | ||
-- Généré le : Dim 18 Avril 2021 à 18:54 | ||
-- Version du serveur: 5.5.16 | ||
-- Version de PHP: 5.3.8 | ||
|
||
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | ||
SET time_zone = "+00:00"; | ||
|
||
|
||
/*!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 */; | ||
|
||
-- | ||
-- Base de données: `biblio_db` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Structure de la table `tb_livre` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `tb_livre` ( | ||
`id_livre` int(11) NOT NULL AUTO_INCREMENT, | ||
`titre_livre` varchar(150) NOT NULL, | ||
`genre_livre` varchar(100) NOT NULL, | ||
`nom_auteur` varchar(150) NOT NULL, | ||
`pays_auteur` varchar(100) NOT NULL, | ||
`region_auteur` varchar(150) NOT NULL, | ||
`annee_sortie` int(11) NOT NULL, | ||
`nombre` int(11) NOT NULL, | ||
PRIMARY KEY (`id_livre`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ; | ||
|
||
-- | ||
-- Contenu de la table `tb_livre` | ||
-- | ||
|
||
INSERT INTO `tb_livre` (`id_livre`, `titre_livre`, `genre_livre`, `nom_auteur`, `pays_auteur`, `region_auteur`, `annee_sortie`, `nombre`) VALUES | ||
(1, 'ETUDIANT DE SOWETO', 'ROMAN', 'MAWNDOE NAINDOUBA', 'TCHAD', 'AFRIQUE CENTRALE', 1998, 10), | ||
(2, 'TRAGEDIE', 'PIECE', 'AIME CESAIRE', 'FRANCE', 'EUROPE', 1976, 10), | ||
(3, 'GERMINALE', 'ROMAN', 'EMILE ZOLA', 'FRANCE', 'EUROPE', 1887, 10), | ||
(4, 'SANG DE KOLA', 'ROMAN', 'NOEL NETONON', 'TCHAD', 'AFRIQUE CENTRALE', 2000, 10), | ||
(5, 'AU TCHAD SOUS LES ETOILES', 'ROMAN', 'JOSEPH BRAHIM SEID', 'TCHAD', 'AFRIQUE CENTRALE', 1968, 10), | ||
(6, 'O COMME OUBLIE', 'ROMAN', 'SUE GRAFTON', 'USA', 'AMERIQUE DU NORD', 1993, 10), | ||
(7, 'LE FILS DU PAUVRE', 'ROMAN', 'MOULOUD FERAOUNE', 'ALGERIE', 'AFRIQUE DU NORD', 1976, 10), | ||
(8, 'UNE VIE DE BOY', 'ROMAN', 'FERDINAND OYONO', 'CAMEROUN', 'AFRIQUE CENTRALE', 1988, 10), | ||
(9, 'AVENTURE AMBIGUE', 'ROMAN', 'CHEIK AHMIDOU KHAN', 'SENEGAL', 'AFRIQUE OCCIDENTALE', 1989, 10), | ||
(10, 'CAHIER DE RETOUR', 'POESIE', 'AIME CESAIRE', 'FRANCE', 'EUROPE', 1977, 15), | ||
(12, 'F COMME FUGITIF', 'ROMAN', 'SUE GRAFTON', 'USA', 'AMERIQUE DU NORD', 2000, 10), | ||
(13, 'REPUBLIQUE A VENDRE', 'PIECE', 'ISAAC TEDANGBE', 'TCHAD', 'AFRIQUE CENTRALE', 2000, 8); | ||
|
||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; | ||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
18 changes: 18 additions & 0 deletions
18
KOUDOU/SLAM/dev/JAVA/idées_projets_php_à_pofiner_je_crois/biblio_ges_php/biblio_db.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Conception de la base de donn�es: biblio_db (SGBD = Mysql) | ||
(Par TARGOTO CHRISTIAN le 17/04/2021) | ||
|
||
create database biblio_db character set 'utf8'; | ||
|
||
use biblio_db; | ||
|
||
create table tb_livre( | ||
id_livre int auto_increment primary key, | ||
titre_livre varchar(150) not null, | ||
genre_livre varchar(100) not null, | ||
nom_auteur varchar(150) not null, | ||
pays_auteur varchar(100) not null, | ||
region_auteur varchar(150) not null, | ||
annee_sortie int not null, | ||
nombre int not null) | ||
engine=innodb; | ||
|
Oops, something went wrong.