! -> Note
$ -> Affected files
+22-May-2008 Janusz Dobrowolski
+! Error handler switching moved to session.inc for early error catching
+$ /includes/main.inc
+ /includes/session.inc
+! Cosmetic cleanup
+ /js/utils.js
+
18-May-2008 Janusz Dobrowolski
# Added explicit ob_end_flush() on shutdown needed for php5
$ /includes/main.inc
include_once($path_to_root . "/admin/db/users_db.inc");
include_once($path_to_root . "/includes/ui/ui_view.inc");
- function output_html($text)
- {
- global $before_box;
- return in_ajax() ? fmt_errors() : ($before_box.fmt_errors().$text);
- }
-
function page($title, $no_menu=false, $is_index=false, $onload="", $js="")
{
global $path_to_root;
$hide_menu = $no_menu;
- // intercept all output to destroy it in case of ajax call
- register_shutdown_function('ob_end_flush');
- ob_start('output_html',0);
- // colect all error msgs
- set_error_handler('error_handler' /*, errtypes */);
include($path_to_root . "/includes/page/header.inc");
| by Joe Hunt Consulting |
\--------------------------------------------------*/
+ function output_html($text)
+ {
+ global $before_box;
+ return in_ajax() ? fmt_errors() : ($before_box.fmt_errors().$text);
+ }
+
if (!isset($path_to_root))
{
$path_to_root = ".";
exit;
}
}
+ include_once("ajax.inc");
+ $Ajax =& new Ajax();
+ // intercept all output to destroy it in case of ajax call
+ register_shutdown_function('ob_end_flush');
+ ob_start('output_html',0);
+ // colect all error msgs
+ set_error_handler('error_handler' /*, errtypes */);
if (isset($_POST["user_name_entry_field"]))
{
}*/
//----------------------------------------------------------------------------------------
- include_once("ajax.inc");
-
- $Ajax =& new Ajax();
check_page_security($page_security);
false // do not disable caching
);
}
-/* // calls form validation function
- //
- JsHttpRequest.validate= function(submit) {
- JsHttpRequest.query(
- 'POST '+window.location.toString(), // backend
- this.formValues('_validate_form'),
- // Function is called when an answer arrives.
- function(result, errors) {
- if (result) {
- window.location = result;
- } else
- return false;
- return true;
- },
- false
- );
- }
-*/ // returns input field values submitted when form button 'name' is pressed
+ // returns input field values submitted when form button 'name' is pressed
//
JsHttpRequest.formValues = function(inp)
{
else
window.history.go(-1);
}
-
\ No newline at end of file