<?php session_start(); // Incluímos el archivo de configuración y funciones require 'inc/mysql.php'; require 'func/functions.php'; if (logueo($_SESSION['logueado'], $conexion) == TRUE) { // Nada, todo bien } else { header("Location:conexion.php"); } ?> <html> <head> <title><?php echo mysql_result(mysql_query("SELECT titulo FROM sistema", $conexion), 0); ?> </title> <link href="styles/<?php echo mysql_result(mysql_query("SELECT tema FROM sistema", $conexion), 0); ?> /basic.css" type="text/css" rel="stylesheet"> </head> <body> <div id="barra_principal"> <font face="arial" color="white">Bienvenido <b><?php if ($_SESSION['logueado'] == 0) { echo 'Visitante'; } else { echo $_SESSION['nick'];
<?php session_start(); // Incluímos el archivo de configuración, y el de las funciones. require 'inc/mysql.php'; require 'func/functions.php'; if (logueo($_SESSION['logueado'], $conexion)) { // Todo correcto } else { header("Location:conexion.php"); } //Variables de uso Global $categoria_padre_id = mysql_result(mysql_query("SELECT categoria_padre FROM temas WHERE id='" . $_GET['id'] . "' ", $conexion), 0); ?> <html> <head> <title><?php echo mysql_result(mysql_query("SELECT titulo FROM sistema", $conexion), 0); ?> </title> <link href="styles/<?php echo mysql_result(mysql_query("SELECT tema FROM sistema", $conexion), 0); ?> /basic.css" type="text/css" rel="stylesheet"> </head> <body> <div id="barra_principal"> <font face="arial" color="white"><b><?php if ($_SESSION['logueado'] == 0) { echo 'Visitante';