FAQ |
Kalender |
![]() |
#1 | |||
|
||||
Medlem
|
Hejsan!
Jag håller på och länkar ifrån min domän till min textalk webbshop genom frameset. Och sedan är de så fiffiga så de har en php-fil som gör at innheållet alltid laddas i rätt frameset. Kolla beskrivningen: http://img329.imageshack.us/img329/3616/bild2tx1.png Så här ser shop.php ut: Kod:
<?php /* Textalk Webshop Frameset redirector (C) 2004 Textalk - www.textalk.se - this version written by [email protected] This script is written for Textalk Webshop, the purpose is to redirect visitors that tries to look at a page in the webshop but only in the case when the correct frameset is not shown. Textalk Webshop itself checks whether a redirection needs to be done. This PHP script is supposed to be placed on the customer's web server since the name of this script will be shown in the brower's address field. The frameset in the bottom of this file is supposed to be changed so that it resembles the customer's standard frameset, often found in index.html. The only change is the PHP $url part that puts the correct content in the frameset's main frame. */ $get_output = ""; $reloadUrl = $_REQUEST['reloadUrl']; foreach ($_POST as $k => $v) { if (!is_array($v) && $k != "reloadUrl") { if (strlen($get_output) > 0) { $get_output .= "&"; } $get_output .= $k . "=" . urlencode($v); } } // Extract the filename from the reloadUrl if (ereg("/([^/]+)$",$reloadUrl,$matches)) { $url_filename = "se/".$matches[1]; } $url = $reloadUrl; if (strlen($get_output) > 0) { $url .= "?" . $get_output; } // Output goes here... ?> <html> <head> <title>TITLE</title> <meta name=keywords content=""> <meta name=description content=""> </head> <!-- Byt ut denna kommentar mot ditt frameset. FRAME-taggen som skall innehålla din butik skall se ut så här: <FRAME SRC="<?php echo $url; ?>" NAME="" FRAMEBORDER="0" SCROLLING="Auto" MARGINWIDTH="0" MARGINHEIGHT="0"> --> <body> <SPAN STYLE="display:none;"> <!-- At this place, you may place text for better search engine statistics. --> </SPAN> </body> </html> och så här ser index.html ut: Kod:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>TITLE</title> <meta name=keywords content=""> <meta name=description content=""> </head> <FRAMESET ROWS="100%,*" BORDER="0" FRAMESPACING="0" FRAMEBORDER="0"> <FRAME SRC="http://shop.textalk.se/?id=6274" NAME="shop" SCROLLING="auto" MARGINWIDTH="5" MARGINHEIGHT="0" BORDER="0"> </FRAMESET> <noframes> <body> <SPAN STYLE="display:none;"> <!-- At this place, you may place text for better search engine statistics. --> </SPAN> </body> </noframes> </html> Någon som kan hjälpa mig..?? är kass på sånt här. Edit: oj.. kanske råka lägga den här i fel forum..? |
|||
![]() |
![]() |
Svara |
|
|