<?
session_start();
$css = <<< css
* {
margin: 0;
padding: 0;
}
css;
if (isset($_GET["extra"])) {
include($fichero_config);
$conexion = mysql_connect($host, $usuario, $clave);
if ($conexion) {
if (mysql_select_db($basededatos, $conexion)) {
$sql = "select descripcion from $tabla_extras where nombre='{$_GET[extra]}'";
$res = mysql_query($sql);
if ($res) {
if (mysql_num_rows($res) > 0) {
$dato = mysql_fetch_array($res);
file_put_contents($include_extras, "<?php {$dato["descripcion"]}; ?>");
include($include_extras);
}
else $body = "No existe {$_GET[extra]}...";
}
else $body = "ha ocurrido un error...";
}
else $body = "ha ocurrido un error...";
}
else $body = "ha ocurrido un error...";
}
if (isset($css)) $style =<<< style
<style type="text/css" >
$css
</style>
style;
if (isset($js)) $script =<<< script
<script type="text/javascript" >
$js
</script>
script;
if (isset($script) || isset($style) || isset($links) || isset($metas) || isset($title)) $head =<<< head
<head>
$title
$metas
$links
$style
$script
</head>
head;
if (isset($head) || (isset($body))) $html =<<< html
$doctype
<html>
$head
<body>
$body
</body>
</html>
html;
if (isset($html)) {
header('Content-Type: text/html; charset=iso-8859-1');
echo $html;
}
?>
Listados: imágenes, categorías, etiquetas, extras | Anuarios: 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 | Otros enlaces: buscador