// Template for CMS :: berro78
// we use this page all the times
// and we do diferent includes depending on(menu, submenu, modulo)
require_once ('includes/globalize.inc.php');
require_once ('../admin/include/connect.inc.php');
require_once ('../admin/include/config.inc.php');
require_once ('includes/sessions.inc.php');
require_once ('includes/functions.inc.php');
require_once ('includes/functions_local.inc.php');
require_once ('includes/w3c_valid.php');
// DEBUG--------------------------------
// foreach($_REQUEST as $key => $value)
// echo $key."=>".$value."
";
// $time_start = micro_time();
//--------------------------------------
//We connect the DB
$link = mysql_connect($DBHost,$DBUser,$DBPass)
or die('Unable to connect mySQL');
mysql_select_db ($DBName)
or die('Unable to select the DB');
//Open the sessions
//remember the current $mod value
$my_session = new sessions();
//remember the last selected mod
if($_REQUEST["mod"]!="")
$my_session->write_var("mod",$_REQUEST["mod"]);
else
$mod = $my_session->read_var("mod");
//Default values
//menu, module
if(!isset($mod) || $mod=="")
{
$mod="page";
$id="1";
}
//SEARCH ENGINE OPTIMATION
require_once ('search_engine_optimation/seo.php');
?>
//W3C Validation, starts output buffering
ob_start("w3c_valid");
?>