'active' => false
);
- @include_once($path_to_root.'/modules/'.$id.'/hooks.php');
+ if (file_exists($path_to_root.'/modules/'.$id.'/hooks.php')) {
+ include_once($path_to_root.'/modules/'.$id.'/hooks.php');
+ }
$hooks_class = 'hooks_'.$id;
- if (class_exists($hooks_class)) {
+ if (class_exists($hooks_class, false)) {
$hooks = new $hooks_class;
$hooks->install_extension(false);
}
-
$Ajax->activate('ext_tbl'); // refresh settings display
if (!update_extensions($exts))
return false;
***********************************************************************/
include_once($path_to_root . "/includes/db/connect_db.inc");
-include_once($path_to_root . "/includes/errors.inc");
include_once($path_to_root . "/includes/types.inc");
include_once($path_to_root . "/includes/systypes.inc");
include_once($path_to_root . "/includes/references.inc");
if (isset($_GET['path_to_root']) || isset($_POST['path_to_root']))
die("Restricted access");
+include_once($path_to_root . "/includes/errors.inc");
+// colect all error msgs
+set_error_handler('error_handler' /*, errtypes */);
+
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");
register_shutdown_function('end_flush');
ob_start('output_html',0);
-// colect all error msgs
-set_error_handler('error_handler' /*, errtypes */);
-
if (!isset($_SESSION["wa_current_user"]))
$_SESSION["wa_current_user"] = new current_user();