Changed balance_sheet field in account class to ctype and fixed class editing.
[fa-stable.git] / includes / main.inc
index b6791b8f771f841f28152885dc2b53aee8d18891..b1876099aff2346b8b4020a189cdb296697e190d 100644 (file)
@@ -19,6 +19,8 @@ include_once($path_to_root . "/includes/references.inc");
 include_once($path_to_root . "/includes/prefs/sysprefs.inc");
 include_once($path_to_root . "/includes/db/comments_db.inc");
 include_once($path_to_root . "/includes/db/sql_functions.inc");
+include_once($path_to_root . "/includes/db/audit_trail_db.inc");
+//include_once($path_to_root . "/includes/validation.inc");
 
 include_once($path_to_root . "/admin/db/users_db.inc");
 include_once($path_to_root . "/includes/ui/ui_view.inc");
@@ -28,25 +30,14 @@ include_once($path_to_root . "/installed_extensions.php");
 function page($title, $no_menu=false, $is_index=false, $onload="", $js="", $script_only=false)
 {
 
-       global $path_to_root, $installed_extensions;
+       global $path_to_root;
 
        $hide_menu = $no_menu;
 
-       if ($no_menu==false && count($installed_extensions))
-       {
-               global $applications;
-               foreach ($installed_extensions as $ext)
-               {
-                       $s = $applications['system'];
-                       array_pop($applications);
-                       $applications[$ext['name']] = $ext['title'];;
-                       $applications['system'] = $s;
-               }       
-       }       
        include($path_to_root . "/includes/page/header.inc");
 
        page_header($title, $no_menu, $is_index, $onload, $js);
-       error_box();
+//     error_box();
        if($script_only) {              
                echo '<noscript>';
                echo display_heading(_('This page is usable only with javascript enabled browsers.'));