create miniApp to convert existing settings files to the static App class

This commit is contained in:
redmatrix
2016-03-31 20:15:47 -07:00
parent bbfe4de310
commit 0cda431456
7 changed files with 52 additions and 52 deletions

View File

@@ -16,7 +16,10 @@ if(file_exists('.htsite.php'))
include('.htsite.php');
// our global App object
$a = new App;
$a = new miniApp;
$app = new App;
/*
* Load the configuration file which contains our DB credentials.
@@ -31,6 +34,8 @@ App::$install = ((file_exists('.htconfig.php') && filesize('.htconfig.php')) ? f
if(! defined('UNO'))
define('UNO', 0);
$a->convert();
App::$timezone = ((x($default_timezone)) ? $default_timezone : 'UTC');
date_default_timezone_set(App::$timezone);