Ver Mensaje Individual

Cargar un index.html antes que el index.php
Viejo 09-29-2004, 05:40 PM #4
funmaking
Administrador y Webmaster
 
Avatar de funmaking
 
Estado: Offline
Mensajes: 1,014
Tiempo total: 4 Días 42 minutos 7 segundos
Tiempo medio: 24 segundos
Mensajes por día: 0.55
Reputación: funmaking is on a distinguished road
Fecha de Ingreso: Dec 2003
Localización: Salobreña, Granada, España
Wink Cargar un index.html antes que el index.php

Para hacer eso debes crear el archivo index.html y subirlo a tu root de servidor. Una vesz hecho esto modificas el index.php:


Original index.php:

if ($option == '') {
if ($Itemid) {
$database->setQuery( "SELECT id, link"
. "\nFROM #__menu"
. "\nWHERE menutype='mainmenu' AND id='$Itemid' AND published='1'"
);
} else {
$database->setQuery( "SELECT id, link"
. "\nFROM #__menu"
. "\nWHERE menutype='mainmenu' AND published='1'"
. "\nORDER BY parent, ordering LIMIT 1" );
}

Y el hack del index.php:

if ($option == '') {
if ($Itemid) {
$database->setQuery( "SELECT id, link"
. "\nFROM #__menu"
. "\nWHERE menutype='mainmenu' AND id='$Itemid' AND published='1'"
);
} else {
//$database->setQuery( "SELECT id, link"
//. "\nFROM #__menu"
//. "\nWHERE menutype='mainmenu' AND published='1'"
//. "\nORDER BY parent, ordering LIMIT 1" );
header("Location: index.html");
}
__________________
Mambo en Castellano: Mambo Hispano
------------------------------------------
Joomla! en Castellano: Joomla! Hispano
------------------------------------------
Alojamiento Joomla - Subastas Compraclick