Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/06/2002, 22:00
itatpc
Invitado
 
Mensajes: n/a
Puntos:
Re: eliminar un frame, dejar otro

pués sí, claro, pero no tengo el original, así que te tendrás que conformar lo que tengo (de todas formas he cambiado algo)

Código:
#!/usr/bin/perl
##################################################################################
# Frame Redirector
#                               
# Allow you to redirect users to specifed URL with frame with your additional
# info or ADS
#
# Can work with Links 2.0 script or analogic.
#
# You can add any custom values to ADS frame
#
# By Alexey Habibulin --> http://www.mycgiscripts.com/
#                     All rights reserved                      `
#
# For installation of cgi scripts or any custom works email to [email protected]
#
##################################################################################
#Modify here. Please don't forget to change template with frame at end of file

# Log redirects? If yes, change to unix/nt path to log file

$log="";

#size of top frame %

$top="27";

#size of bottom frame %

$bottom="*";

#It all variables to modify. Don't forget to edit html text of frame
#in end of this file
################################################################################
%in=&parse;

@framehtml=<DATA>;

if (!$in{'url'}) {error("URL is not specifed!");}

if ($in{'step'}) {&show_topframe;exit;}

&show_frames_page;

exit;

sub show_frames_page{
#all variables.

if ($log) {&logger;}

$all="";

foreach $item (keys %in) { $all.="&$item=$in{$item}"; }

print "Content-type: text/html\n\n";
print qq~
<html>
<head>
<title>Todos los enlaces están en sitio - $in{'url'}</title>
</head>
<frameset rows="$top,$bottom" border="0">
  <frame name="header" scrolling="no" target="main" src="ir.cgi?step=1$all" marginwidth="0" marginheight="0" noresize>
  <frame name="main" src="$in{'url'}" marginwidth="0" marginheight="0" scrolling="auto">
  <noframes>
  <body>
  <p>¡A ver si
sigue...