Código HTML:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /nfs/cust/9/97/71/617799/web/web/index.php on line 22 Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /nfs/cust/9/97/71/617799/web/web/index.php on line 29 Warning: main(themes//index.php): failed to open stream: No such file or directory in /nfs/cust/9/97/71/617799/web/web/index.php on line 34 Warning: main(): Failed opening 'themes//index.php' for inclusion (include_path='.:/usr/local/php/include') in /nfs/cust/9/97/71/617799/web/web/index.php on line 34
Código PHP:
<?
/*
=======================================
Plataforma de EteceClub.CoM
============By Renzoster===============
filename: index.php
=======================================
*/
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
/* Definimos el index como archivo principal */
define('ETECECLUB', true);
/* Se piden los archivos principales */
require_once("data/config.php");
require_once("data/funciones_user.php");
/* Cargamos las preferencias de la web */
$rtheme = mysql_query("select * from wprefencias where id='1'");
$dtheme = mysql_fetch_array($rtheme);
$wp_url = $dtheme[url];
$wp_header = $dtheme[cabecera];
$wp_email = $dtheme[email];
$wp_title = $dtheme[titulo];
$wp_template = $dtheme[diseno];
$wp_footer = $dtheme[footer];
mysql_free_result($rtheme) ;
/* Proponemos el PHP_SELF como index */
$PHP_SELF = "$wp_url/index.php";
include("themes/$wp_template/index.php");
?>