diff --git a/manager/database.php b/manager/database.php index 6d526f2..a9191fa 100755 --- a/manager/database.php +++ b/manager/database.php @@ -38,7 +38,7 @@ class DataBase{ /* retourne une instance de la classe */ public static function getInstance(){ if( DataBase::$instance == null ) - DataBase::$instance = new DataBase("localhost", "sid2", "php", "Qt358nUdyeTxLDM8"); + DataBase::$instance = new DataBase("localhost", "sid2", "root", ""); return DataBase::$instance; } @@ -595,4 +595,4 @@ class DataBase{ } -?> \ No newline at end of file +?> diff --git a/manager/security.php b/manager/security.php index 2bdbd48..56cfe2a 100755 --- a/manager/security.php +++ b/manager/security.php @@ -202,4 +202,39 @@ } + /*function checkParamBIS( ...$checkIt ) { + + + // checkIt[] Tableau | checkIT[][] Types des Variables | checkIt[][][] Formats des variables | checkIt[][][][] Valeur des varialbes + + + $checker = false; + + for( $i = 0; $i < func_num_args(); $i++) { + + for( $j = 0; $j < sizeof( $checkIt[$i] ); $j++) { + + switch ($checkIt[$i][$j]) { + + case 'string': if( is_string( $checkIt[$i][$j][$j][$j] ) ) + $checker = is_string( $checkIt[$i][$j][$j][$j] ) && preg_match( $checkIt[$i][$j][$j], (String) $checkIt[$i][$j][$j][$j] ); + break; + case 'int': if( is_string( $checkIt[$i][$j][$j][$j]) ) + $checker = is_int( $checkIt[$i][$j][$j][$j] ) && preg_match( $checkIt[$i][$j][$j], (String) $checkIt[$i][$j][$j][$j] ); + break; + case 'numeric': if( is_string( $checkIt[$i][$j][$j][$j]]) ) + $checker = is_numeric( $checkIt[$i][$j][$j][$j] ) && preg_match( $checkIt[$i][$j][$j], (String) $checkIt[$i][$j][$j][$j] ); + break; + case 'array': if( is_numeric( $checkIt[$i][$j][$j][$j]) ) + $checker = is_array( $checkIt[$i][$j][$j][$j] ) && count( $checkIt[$i][$j][$j] ) > 0; + break; + } + + } + } + + return $checker; + + }*/ + ?> diff --git a/src/nouveau_modele.xlsx b/src/nouveau_modele.xlsx new file mode 100644 index 0000000..3fd8430 Binary files /dev/null and b/src/nouveau_modele.xlsx differ diff --git a/xdoc/nouveau_modele.xlsx b/xdoc/nouveau_modele.xlsx new file mode 100644 index 0000000..3fd8430 Binary files /dev/null and b/xdoc/nouveau_modele.xlsx differ