// 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");
?>
LIBROS
//Sacamos las últimas noticias $q_1 = "SELECT * FROM ".$table_content." WHERE id_category=2 ORDER BY id ASC"; $res_1 = mysql_query($q_1); while($row_1=mysql_fetch_array($res_1)) { $msg_img = ""; if($row_1["pictures"]!="") { $a_pictures=explode("§",$row_1['pictures']); $msg_img = ""; } echo " ".$msg_img.outstring($row_1['title'])."ARTÍCULOS
//Sacamos las últimas noticias $q_1 = "SELECT * FROM ".$table_content." WHERE id_category=3 ORDER BY id ASC"; $res_1 = mysql_query($q_1); while($row_1=mysql_fetch_array($res_1)) { $msg_img = ""; if($row_1["pictures"]!="") { $a_pictures=explode("§",$row_1['pictures']); $msg_img = ""; } echo " ".$msg_img.outstring($row_1['title'])."