Small changes needed for client-side validation support.
[fa-stable.git] / includes / session.inc
index a6662a7ee0988c58ae3bce3a44a5cb359a4f1303..236d90e2245a2a7167fce39c23057669c269cd3a 100644 (file)
@@ -103,7 +103,6 @@ include_once($path_to_root . "/includes/current_user.inc");
 include_once($path_to_root . "/includes/lang/language.php");
 include_once($path_to_root . "/config_db.php");
 include_once($path_to_root . "/includes/ajax.inc");
-include_once($path_to_root . "/includes/main.inc");
 include_once($path_to_root . "/includes/ui/ui_msgs.inc");
 
 /*
@@ -127,12 +126,13 @@ if (!isset($_SESSION['languages']))
 language::set_language($_SESSION['language']->code);
 
 include_once($path_to_root . "/config.php");
+include_once($path_to_root . "/includes/main.inc");
 
+// Ajax communication object
 $Ajax =& new Ajax();
 
-//include_once($path_to_root . "/includes/main.inc");
-
-//include_once($path_to_root . "/includes/ui/ui_msgs.inc");
+// js/php validation rules container
+$Validate = array();
 
 // intercept all output to destroy it in case of ajax call
 register_shutdown_function('ob_end_flush');