Changeset 478 for trunk/admin

Show
Ignore:
Timestamp:
05/20/07 22:10:17 (18 months ago)
Author:
michiel
Message:

make the admin interface use the .ini too

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/index.php

    r429 r478  
    1919/* Start heavy error reporting if we're on a dev site */ 
    2020MvBlog_debug::start_development(False); 
     21 
     22/* Read the configuration file */ 
     23$configfile = dirname(dirname(__FILE__)."../")."/conf/mvblog.ini"; 
     24$availSettings = array( 
     25        "general" => array( 
     26                "debug"    => array("type" => mvblog_IniFileReader::TYPE_BOOL,   "default" => "no"), 
     27        ), 
     28        "database" => array( 
     29                "database" => array("type" => mvblog_IniFileReader::TYPE_STRING, "default" => "mvblog"), 
     30                "hostname" => array("type" => mvblog_IniFileReader::TYPE_STRING, "default" => "localhost"), 
     31                "username" => array("type" => mvblog_IniFileReader::TYPE_STRING, "default" => "mvblog"), 
     32                "password" => array("type" => mvblog_IniFileReader::TYPE_STRING, "default" => "mvblog"), 
     33                "type"     => array("type" => mvblog_IniFileReader::TYPE_STRING, "default" => "mysql"), 
     34        ), 
     35); 
     36$config = new mvblog_IniFileReader($availSettings, $configfile); 
     37 
     38 
    2139 
    2240if (!array_key_exists("options", $_REQUEST))