3 include_once($path_to_root . "/includes/db/connect_db.inc");
5 include_once($path_to_root . "/includes/reserved.inc");
6 include_once($path_to_root . "/includes/errors.inc");
7 include_once($path_to_root . "/includes/types.inc");
8 include_once($path_to_root . "/includes/systypes.inc");
9 include_once($path_to_root . "/includes/references.inc");
10 include_once($path_to_root . "/includes/prefs/sysprefs.inc");
11 include_once($path_to_root . "/includes/db/comments_db.inc");
12 include_once($path_to_root . "/includes/db/sql_functions.inc");
14 include_once($path_to_root . "/admin/db/users_db.inc");
15 include_once($path_to_root . "/includes/ui/ui_view.inc");
17 function page($title, $no_menu=false, $is_index=false, $onload="", $js="")
20 global $path_to_root, $js_lib;
22 $hide_menu = $no_menu;
24 include($path_to_root . "/includes/page/header.inc");
26 page_header($title, $no_menu, $is_index, $onload, $js);
29 function end_page($no_menu=false, $is_index=false)
33 $hide_menu = $no_menu;
35 include($path_to_root . "/includes/page/footer.inc");
37 page_footer($no_menu, $is_index);
40 function add_js_file($filename)
43 $search = array_search($filename, $js_static);
44 if ($search === false || $search === null) // php>4.2.0 returns null
45 $js_static[] = $filename;
48 function add_js_source($text)
52 $search = array_search($text, $js_lib);
53 if ($search === false || $search === null) // php>4.2.0 returns null