else
$parms[$name] = @htmlspecialchars($value, ENT_QUOTES, $_SESSION['language']->encoding);
}
+ reset($parms); // needed for direct key() usage later throughout the sources
}
//============================================================================
include_once($path_to_root . "/includes/ui/ui_msgs.inc");
include_once($path_to_root . "/includes/prefs/sysprefs.inc");
+include_once($path_to_root . "/includes/hooks.inc");
+
/*
Uncomment the setting below when using FA on shared hosting
to avoid unexpeced session timeouts.
$_SESSION['language']->set_language($_SESSION['language']->code);
-// include $Hooks object if locale file exists
-if (file_exists($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc"))
-{
- include_once($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc");
- $Hooks = new Hooks();
-}
include_once($path_to_root . "/includes/access_levels.inc");
include_once($path_to_root . "/version.php");
if (!$_SESSION["wa_current_user"]->old_db)
include_once($path_to_root . '/company/'.user_company().'/installed_extensions.php');
+ install_hooks();
+
if (!isset($_SESSION["App"])) {
$_SESSION["App"] = new front_accounting();
$_SESSION["App"]->init();