Rewritten extensions system to enable per company module/plugin
[fa-stable.git] / includes / session.inc
index b7880a91fbf6bba4572c8175907b04efa0a15645..19a0e4a66335a27edd064dd42ff969d7ba1d5c4f 100644 (file)
@@ -124,9 +124,9 @@ if (!isset($path_to_root))
 if (isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
        die("Restricted access");
 
+include_once($path_to_root . "/includes/current_user.inc");
 include_once($path_to_root . "/frontaccounting.php");
 include_once($path_to_root . "/admin/db/security_db.inc");
-include_once($path_to_root . "/includes/current_user.inc");
 include_once($path_to_root . "/includes/lang/language.php");
 include_once($path_to_root . "/config_db.php");
 include_once($path_to_root . "/includes/ajax.inc");
@@ -229,6 +229,8 @@ if (strstr($_SERVER['PHP_SELF'], 'logout.php') == false){
                }
        }
 
+       include_once($path_to_root . '/company/'.user_company().'/installed_extensions.php');
+
        if (!isset($_SESSION["App"])) {
                $_SESSION["App"] = new front_accounting();
                $_SESSION["App"]->init();