first commit
This commit is contained in:
38
front/drh.boite.form.php
Normal file
38
front/drh.boite.form.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
|
||||
if (!defined('GLPI_ROOT')) {
|
||||
define('GLPI_ROOT', dirname(__DIR__));
|
||||
}
|
||||
|
||||
include_once GLPI_ROOT . '/inc/based_config.php';
|
||||
|
||||
// Init Timer to compute time of display
|
||||
$TIMER_DEBUG = new Timer();
|
||||
$TIMER_DEBUG->start();
|
||||
|
||||
|
||||
/// TODO try to remove them if possible
|
||||
include_once (GLPI_ROOT . "/inc/db.function.php");
|
||||
|
||||
// Standard includes
|
||||
include_once (GLPI_ROOT . "/inc/config.php");
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
global $DB;
|
||||
|
||||
|
||||
|
||||
$stmt = $DB->prepare("INSERT INTO boite_idees (user_id , matricule, responsable, nom, prenom,
|
||||
fonction, structure, description, dateTime_creation) VALUES (?,?,?,?,?,?,?,?,NOW()) ");
|
||||
$stmt->bind_param("iissssss" , $_SESSION["glpiID"] , $_POST["matricule"] , $_POST["responsable"] ,
|
||||
$_POST["nom"] , $_POST["prenom"] , $_POST["fonction"] , $_POST["structure"] , $_POST["description"] );
|
||||
$stmt->execute();
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user