include_once $pluginInterface->plugincheck(MODULES_PATH . "default/authorization.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "default/admin_prevnext.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "default/commonFunctions.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "ecom/ecom_admin_controller.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "user/user_admin_controller.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "order/order_admin_controller.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "sales/sales_admin_controller.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "admin/admin_controller.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "default/adminhomedisplay.php");
include_once $pluginInterface->plugincheck(MODULES_PATH . "default/adminleftmenu.php");
$obMainTemplate = new Template();
$libFunc = new c_libFunctions();
$obMainTemplate->set_file('hMainTemplate', ADMINTHEMEPATH . "default/templates/admin/default.htm");
$obMainTemplate->set_var("TPL_VAR_SITEURL", SITE_URL);
$obMainTemplate->set_var("TPL_VAR_SITENAME", htmlspecialchars(SITE_NAME));
$obMainTemplate->set_var('TPL_VAR_REAL_PATH', $libFunc->real_path());
$obMainTemplate->set_var("GRAPHICSMAINPATH", SITE_URL . "/graphics");
if (!isset($_SESSION['uname']) || empty($_SESSION['uname'])) {
    $obUserAdmin = new c_authentication($obDatabase, $obMainTemplate, $attributes);
}
$obUserAdmin = new c_leftMenu($obDatabase, $obMainTemplate, $attributes);
$obUserAdmin = new c_authorization($obDatabase, $obMainTemplate, $attributes);
global $sModule;
switch ($sModule) {
    case "ecom":
        $obEcomAdmin = new c_ecomAdminController($obDatabase, $obMainTemplate, $attributes, $libFunc);
        break;
    case "order":
        $obOrdAdmin = new c_orderAdminController($obDatabase, $obMainTemplate, $attributes, $libFunc);
        break;
    case "user":