setDBConnection( new DBConnections() ); $_SESSION["oAllVariables"] = $oVariables; // Category is different and need to be updated require_once($oVariables->getFileClasses() . "services/Forms.php"); require_once($oVariables->getFileClasses() . "services/Categories.php"); require_once($oVariables->getFileClasses() . "services/Localizeds.php"); require_once($oVariables->getFileClasses() . "services/AjaxServices.php"); Categories::checkCurrentCategory(); // FORM management if ( Forms::isUsed() ) Forms::makeFormAction( $oVariables ); if ( AjaxServices::isUsed() ) $sAjaxReturned = AjaxServices::makeAjaxAction( $oVariables ); else $sAjaxReturned = "failed"; /////////////////////// // DESTINATION page // /////////////////////// // Forms controllers -- CSS files -- JS files if ( isset($_GET["controllerName"]) ) { $sDestinationPage = $oVariables->getFileAjaxModules() . $_GET["controllerName"] . ".php"; $sContentType = "javascript"; } if ( isset($_GET["cssfile"]) ) { $sDestinationPage = $oVariables->getFileCssPath() . $_GET["cssfile"] . ".php"; $sContentType = "css"; } if ( isset($_GET["jsfile"]) ) { $sDestinationPage = $oVariables->getFileJsPath() . $_GET["jsfile"] . ".php"; $sContentType = "javascript"; } if ( $sAjaxReturned != "failed" ) { $sDestinationPage = ""; $sContentType = "x-json"; } header("Content-Type: text/" . $sContentType . "; charset: UTF-8"); if ( $sDestinationPage != "" ) include_once( $sDestinationPage ); else echo $sAjaxReturned; $_SESSION["oAllVariables"]->getDBConnection()->closeLink(); ?>