security = new checklogin(); // used to check if logged $site -> security -> setsession($bsUserIsLogged,$bsUserLogin,$bsUserSession ); $site -> createpages = "false" ; // Maintain to false // page setup $site -> db = $db; // Set the db object $site -> set_mode(); // Set the navigation mode $site -> page_Ini(); // Page initialisation // Load messages include_once "translate/messages/msg_$site->ln.php"; // messages $msg->loadMsg($CM, $WM, $EM); /*Exemple de messages echo $msg -> confMsgCode(0); echo $msg -> errMsgCode(0); echo $msg -> warning("Testting"); echo $msg -> confirm("Testting"); */ } // Third party js librairy //=========================================================================================================================*/ if ($xFiles == "jsLib") { include("core/bs_jsmanager.php"); // Set the JavaScript librairy } // Controller needed files: // We need to reload or recreate the db with new conf and the library because the usage of the controller implies // living the siteBuilder visibility causing his destruction, along with the db obj, that needs to be recreate. //=========================================================================================================================*/ if ($xFiles == "controller") { include_once "lib/bs_dbcontroller.php"; // bs db class include_once "lib/bs_lib1.php"; // Include lib $db = new DB_Manager(); // New db object include_once "config/db.config"; } ?> <? echo $site -> page_titre[$site -> current_clef] ." - ".$site -> title [$site->ln]; ?>
set_Interface(); ?>