Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/02/2014, 06:27
Yoshua9
 
Fecha de Ingreso: abril-2008
Mensajes: 33
Antigüedad: 16 años
Puntos: 0
Respuesta: Proyecto web de Trivial

config.php
define('DBTYPE',"mysql");

$DB_HOST="mysql.hostinger.es"; //Database Hostname
$DB_USER="u565572846_yo"; //Database Username
$DB_PASS="camello"; //Database Password
$DB_NAME="u565572846_truth"; //Database Databasename

// Trivia Games:
$strTriviaTables = array
(
array("riddles", "Riddles from Legend Of the Green Dragon"),
//array("gwztrivia", "Galactic Warzone's Trivia"),
//array("irctrivia", "IRC Trivia")
);

//path where session informations is stored if different from the default path.
$strSessionPath = "";

$strCrLf = "`n";
$strFieldSeperator = ";";

if ((DBTYPE == "") || ($DB_HOST == "") || ($DB_USER == "") ||
($DB_PASS == "") || ($DB_NAME == ""))
{
$_SESSION['message'] = "You must edit the config.php file to access your database.";
header("Location: index.php");
exit;
}
?>