Mercurial > owls
changeset 11:46617062bef5
put config into own file
author | meillo@marmaro.de |
---|---|
date | Sun, 27 May 2007 02:15:39 +0200 |
parents | 144bc36a6c27 |
children | 682b4a24469c |
files | Config.inc.php Owls.php |
diffstat | 2 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Config.inc.php Sun May 27 02:15:39 2007 +0200 @@ -0,0 +1,12 @@ +<?php + +// Prefix for database tables (default: 'rem__') +$db_prefix = 'rem__1_'; + +// Title of the website (default: 'Owls') +$title = 'OwlS'; + +// Location of the database connection script to include +$db_connect = '../../Db.inc.php'; + +?>
--- a/Owls.php Sun May 27 02:13:46 2007 +0200 +++ b/Owls.php Sun May 27 02:15:39 2007 +0200 @@ -1,9 +1,11 @@ <?php - define('DB_PREFIX', 'rem__1_'); - define('TITLE', 'Owls'); + require_once 'Config.inc.php'; - require_once '../../Db.inc.php'; + define('DB_PREFIX', $db_prefix); + define('TITLE', $title); + + require_once $db_connect; require_once 'Includes/Loginsys.class.php'; include_once 'Includes/Bbcodeparser.inc.php';