diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..5a928f6
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1 @@
+Options -Indexes
diff --git a/.kdev4/avion-poeme.kdev4 b/.kdev4/avion-poeme.kdev4
new file mode 100644
index 0000000..e325233
--- /dev/null
+++ b/.kdev4/avion-poeme.kdev4
@@ -0,0 +1,5 @@
+[Buildset]
+BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x16\x00a\x00v\x00i\x00o\x00n\x00-\x00p\x00o\x00e\x00m\x00e)
+
+[Project]
+VersionControlSupport=kdevgit
diff --git a/avion-poeme.kdev4 b/avion-poeme.kdev4
new file mode 100644
index 0000000..e2c963c
--- /dev/null
+++ b/avion-poeme.kdev4
@@ -0,0 +1,4 @@
+[Project]
+CreatedFrom=
+Manager=KDevCustomBuildSystem
+Name=avion-poeme
diff --git a/img/.htaccess b/img/.htaccess
new file mode 100644
index 0000000..5a928f6
--- /dev/null
+++ b/img/.htaccess
@@ -0,0 +1 @@
+Options -Indexes
diff --git a/include/.htaccess b/include/.htaccess
new file mode 100644
index 0000000..5a928f6
--- /dev/null
+++ b/include/.htaccess
@@ -0,0 +1 @@
+Options -Indexes
diff --git a/include/config.inc.php b/include/config.inc.php
new file mode 100644
index 0000000..4728af1
--- /dev/null
+++ b/include/config.inc.php
@@ -0,0 +1,37 @@
+
diff --git a/include/config.inc.php~ b/include/config.inc.php~
new file mode 100644
index 0000000..b428324
--- /dev/null
+++ b/include/config.inc.php~
@@ -0,0 +1,35 @@
+
diff --git a/include/db.class.php b/include/db.class.php
new file mode 100644
index 0000000..0c95a33
--- /dev/null
+++ b/include/db.class.php
@@ -0,0 +1,117 @@
+open();
+ }
+
+ function open()
+ {
+ if ( !$this->connect )
+ {
+ $this->connect = new mysqli( $this->server, $this->user, $this->passwd, $this->database );
+ if ( $this->connect->connect_errno )
+ {
+ log_error( "Échec de la connexion : => " . $this->connect->connect_error . "
" . __file__ . ' ligne ' . __line__);
+ return false;
+ }
+ }
+ $this->connect->set_charset("utf8");
+ return true;
+ }
+
+ function close()
+ {
+ $this->connect->close();
+ $this->connect = 0;
+ }
+
+ function protect( $string )
+ {
+ return $this->connect->real_escape_string( $string );
+ }
+
+ function query( $string )
+ {
+
+ //log_write( $string );
+ if ( empty( $this->connect ) ) $this->open();
+
+ $this->result = $this->connect->query( $string ) ;
+
+ if ( $this->connect->error ) log_error( "Échec de la commande query => " . $this->connect->error . "
" . __file__ . ' ligne ' . __line__ . "\n" . $string, true, true);
+ //print_r( $this );
+ }
+
+ function print_error()
+ {
+ print_r( $this );
+ //$this->error = $this->error;
+ return $this->connect->error;
+ }
+
+ function newPlane()
+ {
+ $query = "INSERT INTO avionpoeme SET (";
+ $query .= $this->message . ", ";
+ $query .= $this->expeMail . ", ";
+ $query .= $this->expeKnown . ", ";
+ $query .= $this->expeLang . ", ";
+ $query .= $this->destLang . ", ";
+ $query .= $this->startLat . ", ";
+ $query .= $this->startLon . ", ";
+ $query .= $this->startName . ", ";
+ $query .= $this->startTime . ", ";
+ $query .= $this->StartTZ . ", ";
+ $query .= $this->destMail . ", ";
+ $query .= $this->destLat . ", ";
+ $query .= $this->destLon . ", ";
+ $query .= $this->destName . ", ";
+ $query .= $this->status . ", ";
+ $query .= $this->color . ", ";
+ $query .= $this->actual_lat . ", ";
+ $query .= $this->actual_lon . ", ";
+ $query .= $this->bearing . ", ";
+ $query .= $this->deliveryTime . ", ";
+ $query .= $this->deliveryTZ . ", ";
+ $query .= $this->deliveryTimeServer . ", ";
+ $query .= ")";
+ }
+}
+
+?>
diff --git a/include/db.class.php~ b/include/db.class.php~
new file mode 100644
index 0000000..cc88e82
--- /dev/null
+++ b/include/db.class.php~
@@ -0,0 +1,65 @@
+open();
+ }
+
+ function open()
+ {
+ if ( !$this->connect )
+ {
+ $this->connect = new mysqli( $this->server, $this->user, $this->passwd, $this->database );
+ if ( $this->connect->connect_errno )
+ {
+ log_error( "Échec de la connexion : => " . $this->connect->connect_error . "
" . __file__ . ' ligne ' . __line__);
+ return false;
+ }
+ }
+ $this->connect->set_charset("utf8");
+ return true;
+ }
+
+ function close()
+ {
+ $this->connect->close();
+ $this->connect = 0;
+ }
+
+ function protect( $string )
+ {
+ return $this->connect->real_escape_string( $string );
+ }
+
+ function query( $string )
+ {
+
+ //log_write( $string );
+ if ( empty( $this->connect ) ) $this->open();
+
+ $this->result = $this->connect->query( $string ) ;
+
+ if ( $this->connect->error ) log_error( "Échec de la commande query => " . $this->connect->error . "
" . __file__ . ' ligne ' . __line__ . "\n" . $string, true, true);
+ //print_r( $this );
+ }
+
+ function print_error()
+ {
+ print_r( $this );
+ //$this->error = $this->error;
+ return $this->connect->error;
+ }
+}
+
+?>
diff --git a/include/entete_mail.php~ b/include/entete_mail.php~
new file mode 100644
index 0000000..58e0dc6
--- /dev/null
+++ b/include/entete_mail.php~
@@ -0,0 +1,18 @@
+
diff --git a/include/envoi_courriel.inc.php b/include/envoi_courriel.inc.php
new file mode 100644
index 0000000..ea8e00f
--- /dev/null
+++ b/include/envoi_courriel.inc.php
@@ -0,0 +1,28 @@
+' . $var . "
";
+ if ( isset($_GET[$var]) )
+ {
+ //echo '$_get -> $var =>' . $var . "
";
+ return $_GET[$var];
+ }
+ elseif ( isset($_POST[$var]) )
+ {
+ //echo '$_POST -> $var =>' . $var . "
";
+ return $_POST[$var];
+ }else
+ {
+ if ( isset($_SESSION[$var]) AND $session==true )
+ {
+ return $_SESSION[$var];
+ }else
+ {
+ //echo 'default -> $var =>' . $var . "
";
+ return $default;
+ }
+ }
+
+}
+
+
+// MET LA PREMIÈRE LETTRE D'UN MOT EN MAJUSCULE ( utf8 compliant )
+
+function mb_ucfirst($str) {
+ $char = mb_substr($str,0,1,"UTF8");
+ $str = mb_substr( $str, 1, NULL, "UTF8");
+ $char = mb_strtoupper( $char, "UTF8");
+ return $char . $str;
+ }
+
diff --git a/include/fonctions.inc.php~ b/include/fonctions.inc.php~
new file mode 100644
index 0000000..a02195b
--- /dev/null
+++ b/include/fonctions.inc.php~
@@ -0,0 +1,289 @@
+";
+ foreach($dir as $file)
+ {
+ if($file != '.' && $file != '..' && !is_dir( $dirname . $file ) )
+ {
+ echo '
n° | quantité | Produit | Durée | Type | Huile chaude Supplément 5€ | prix | total | valable jusqu\'au |
---|---|---|---|---|---|---|---|---|
' . ($i + 1) . ' | '; + if ( $modif ) + { + echo ''; + }else + { + echo $art["qte"][$i]; + } + echo ' | ' . $art["libelle"][$i] . ' | ' . $art["duree"][$i] . ' | ' . $art["type"][$i] . ' | '; + echo ''; + if ($modif) + { + if ( $art["hc"][$i] ) + { + echo ''; + }else + { + echo 'non disponible'; + } + }else + { + if ( $art["huile_chaude"][$i] ) + { + echo 'oui'; + $hc = 5; + }else + { + echo 'non'; + $hc = 0; + } + } + echo ' | '; + $prix_article = $art["prix"][$i] + $hc; + echo '' . $prix_article . ' € | ' . $total_col . ' € | ' . $art["date_validite"][$i]->format("j/m/Y") . ' |
total du panier | ' . "$total € |