![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
18/04/2007, 11:32
|
| | Fecha de Ingreso: junio-2005 Ubicación: Edo. Mex
Mensajes: 725
Antigüedad: 19 años, 8 meses Puntos: 5 | |
Re: ?siempre al index aunque teclee dir interior ? Encontre una solución en perl pero se puede traducir a php, pienso que es bastante util, un saludo!
# The title of your page to be displayed
$title = "SelectGuestlist.com | Guestlist service to exclusive nightclubs in London";
# The address of the side frame
$sidepage = "http://www.selectguestlist.com/index/header.htm";
$sidepageright = "http://www.selectguestlist.com/index/right.htm";
$sidepageleft = "http://www.selectguestlist.com/index/left.htm";
#Gets the page from the query string
if ($ENV{'QUERY_STRING'} ne '') {
$command = "$ENV{'QUERY_STRING'}";
}
if ($command) {
$place = $command;
} else {
$place = "$default";
}
################################################## ############################
# By default the script makes two frames, split vertically, 155 from the left.
# You should easily be able to edit this to fit your needs
print "Content-Type: text/html\n\n";
print <<EOT;
<HTML><HEAD>
<TITLE>$title</TITLE></HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<frameset rows="*" cols="*,742,*" framespacing="0" frameborder="no" border="0">
<frame src="$sidepageleft" name="left" frameborder="no" scrolling="no" noresize marginwidth="0" id="left">
<frameset rows="180,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="$sidepage" name="header" frameborder="no" scrolling="no" noresize marginwidth="0" marginheight="0" id="header">
<frame src="$place" name="content" frameborder="no" noresize marginwidth="0" marginheight="0" id="content">
</frameset>
<frame src="$sidepageright" name="right" frameborder="no" scrolling="no" noresize marginwidth="0" marginheight="0" id="right">
</frameset>
EOT |