1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
error_reporting(E_ALL);
session_start();
define("MAIL_WEBMASTER","xxx");
define("MAIL_ADMIN","xxx");
define("ABSOLUTE_ROOT_DIR",$_SERVER["DOCUMENT_ROOT"]);
define("HTTP_ROOT_DIR","http://".$_SERVER['HTTP_HOST']);
$DB["host"]="xxx";$DB["basename"]="xxx";$DB["user"]="xxx"; $DB["password"]="";
/*************************************/
/**** Connection DB ******/
/*************************************/
include_once("lib/Adodb410/toexport.inc.php");
include_once("lib/Adodb410/tohtml.inc.php");
include_once("lib/Adodb410/adodb-pager.inc.php");
include_once("lib/Adodb410/adodb.inc.php");
$conn = ADONewConnection("mysql");
if ($conn->Connect($DB["host"], $DB["user"], $DB["password"], $DB["basename"]) === false){
echo"Erreur de connexion à la base de donnée. Fin de l'application.";
exit;
}
$conn->debug = false; |
Partager