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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Config.inc.php	Sun May 27 02:15:39 2007 +0200
     1.3 @@ -0,0 +1,12 @@
     1.4 +<?php
     1.5 +
     1.6 +// Prefix for database tables (default: 'rem__')
     1.7 +$db_prefix = 'rem__1_';
     1.8 +
     1.9 +// Title of the website (default: 'Owls')
    1.10 +$title = 'OwlS';
    1.11 +
    1.12 +// Location of the database connection script to include
    1.13 +$db_connect = '../../Db.inc.php';
    1.14 +
    1.15 +?>
     2.1 --- a/Owls.php	Sun May 27 02:13:46 2007 +0200
     2.2 +++ b/Owls.php	Sun May 27 02:15:39 2007 +0200
     2.3 @@ -1,9 +1,11 @@
     2.4  <?php
     2.5  
     2.6 -  define('DB_PREFIX', 'rem__1_');
     2.7 -  define('TITLE', 'Owls');
     2.8 +  require_once 'Config.inc.php';
     2.9  
    2.10 -  require_once '../../Db.inc.php';
    2.11 +  define('DB_PREFIX', $db_prefix);
    2.12 +  define('TITLE', $title);
    2.13 +
    2.14 +  require_once $db_connect;
    2.15    require_once 'Includes/Loginsys.class.php';
    2.16    include_once 'Includes/Bbcodeparser.inc.php';
    2.17