<?php
session_start();
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
define("DOC_ROOT", str_replace("/core/inc", "", str_replace("\\", "/", __DIR__)));

require_once(DOC_ROOT."/core/inc/constants.php");
require_once(DOC_ROOT."/core/inc/functions.php");
require_once(DOC_ROOT."/core/inc/country_list.php");
require_once(DOC_ROOT."/core/entity/entity.php");
require_once(DOC_ROOT."/core/entity/l10n_entity.php");
require_once(DOC_ROOT."/core/controller/controller.php");
require_once(DOC_ROOT."/core/model/model.php");
require_once(DOC_ROOT."/core/class/mail_message.php");

if (file_exists(DOC_ROOT."/extend/inc/constants.php"))
	require_once(DOC_ROOT."/extend/inc/constants.php");
if (file_exists(DOC_ROOT."/extend/inc/functions.php"))
	require_once(DOC_ROOT."/extend/inc/functions.php");

$Config = newClass("Config");
$Db = newClass("Db");
$Db->debug = $Config->getDebug();
$dbc = $Config->getDatabase();
$Db->connect($dbc["user"], $dbc["pass"], $dbc["db"], $dbc["host"]);

$ControllerFactory = newClass("ControllerFactory", $Config, $Db);
<?php
session_start();
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
define("DOC_ROOT", str_replace("/core/inc", "", str_replace("\\", "/", __DIR__)));

require_once(DOC_ROOT."/core/inc/constants.php");
require_once(DOC_ROOT."/core/inc/functions.php");
require_once(filePath("inc/country_list.php"));
require_once(DOC_ROOT."/core/entity/entity.php");
require_once(DOC_ROOT."/core/entity/l10n_entity.php");
require_once(DOC_ROOT."/core/controller/controller.php");
require_once(DOC_ROOT."/core/model/model.php");
require_once(DOC_ROOT."/core/class/mail_message.php");

if (file_exists(DOC_ROOT."/extend/inc/constants.php"))
	require_once(DOC_ROOT."/extend/inc/constants.php");
if (file_exists(DOC_ROOT."/extend/inc/functions.php"))
	require_once(DOC_ROOT."/extend/inc/functions.php");

$Config = newClass("Config");
$Db = newClass("Db");
$Db->debug = $Config->getDebug();
$dbc = $Config->getDatabase();
$Db->connect($dbc["user"], $dbc["pass"], $dbc["db"], $dbc["host"]);

$ControllerFactory = newClass("ControllerFactory", $Config, $Db);
Add possibility of custom country list.
Add possibility of custom country list.
