Location: PHPKode > projects > Private Movie Database > pmdb_V_B_0.3.0/code/pmdb/forum/conn_data.inc
<?
/* filename: conn_data.php
 * project: movie database
 * author: lex alexander, christian koerner
 * originally coded: 17.05.2003
 * last modified: 12.07.2003
 * version V0.7
 * usage: Connection Data
 */

//Header
Header("Cache-control: private, no cache");
Header("Expires: Mon, 26 Jul 997 05:00:00 GMT");
Header("Pragma: no-cache");


//Connection Data Server

define("HOST","mysqlsvr01.world4you.com");
define("USER","stahlbaulex");
define("PW","2jpjq");
define("DBNAME","stahlbaulexdb2");
define("REGISTER_GLOBALS","on");
define("NO_AUTOMATIC_ESCAPE",true);


//==========================================================
//WHAT YOU HAVE TO DO TO GET THIS RUNNIG
//==========================================================
/*
//Connection Data
// Set your connection Data here

// Set the Name of the Host your database is on
define("HOST","localhost");
// Set the Name of the User authorised to manipulate the Database
define("USER","root");
// Set the Password of the User
define("PW","hotboards");
// Set the Database Name (I reccomend to call ist pmdb, but some times you have to change it)
define("DBNAME","pmdb");
// If your PHP hast registered Globals on, set "on" here, else leave "off"
define("REGISTER_GLOBALS","off");
// If your PHP version automatically escapes " ' " Signs set this to false
define("NO_AUTOMATIC_ESCAPE",false);
// Here you should define the Administrators e-mail adress.
define("ADMINISTRATOR_EMAIL","hide@address.com");
*/

//==========================================================

//==========================================================
// What you can change easily:
//==========================================================

// This are the User Level Limits - you can change them to your
// liking als long as the following is larger then the previous
define("L1", "10");
define("L2", "30");
define("L3", "65");
define("L4", "100");
define("L5", "200");

// Set the default Language of the Database
define("DEFAULT_LANG", "german");

// Set how many movies to display per page
define("NR_OF_MOVIES", "20");

//==========================================================

define("VERSION_NR","B 0.3.0");
define("VERSION_DATE", "14.07.2003");
define("AUTHOR","Lex Alexander");

//Check in cookie what default language is set for the User
$language=$_COOKIE["pmdb_language"];

switch ($language)
{
  case "0":
    $lang = "german";
    break;
  case "1":
    $lang = "english";
    break;
  default:
    $lang = DEFAULT_LANG;
}

//Delay times for window refresh in seconds

define("NO_DELAY", "0");
define("SMALL_DELAY", "1");
define("BIG_DELAY","5");
define("WAIT_ERR","3");
define("WAIT_SUC","2");


//XHtml Header
define("XHTML_HEADER","<?xml version=\"1.0\" encoding=\"iso-8859-15\"?>\r
                 \n <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \r
                 \n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");

define("START_HTML", "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">");

?>
Return current item: Private Movie Database