Location: PHPKode > projects > Chinese Project Forum > upload/global.php
<?php
error_reporting(0);

$adodbdir="./cpfadodb";

#CPF°æ±¾Îļþ°üº¬
include ("version.php");
#ÅäÖÃÎļþ
include ("config.php");
#ADODB°üº¬
include ("$adodbdir/adodb.inc.php");
#ADODBÊý¾Ý¿âÁ¬½Ó
$conn=&ADONEWConnection($dbtype);
if ($usepconnect)
$issuccess = $conn->PConnect($dbhost,$dbuser,$dbpassword,$dbdb);
else $issuccess = $conn->Connect($dbhost,$dbuser,$dbpassword,$dbdb);

if (!$issuccess) die("´íÎó".$conn->ErrorNo().": ÎÞ·¨Á¬½Óµ½Êý¾Ý¿â");
#ADODB Êý×éģʽ
$ADODB_FETCH_MODE = ADODB_FETCH_BOTH;
#ADODB Debugģʽ
$conn->debug = false;


include("functions.php");

?>
Return current item: Chinese Project Forum