Siema panowie mam następujący problem gdy chce zmienic styl na jakis inny to wywala mi o taki blad
Kod
Nieprawidłowe przekierowanie
Firefox wykrył, że serwer przekierowuje żądanie tego zasobu w sposób uniemożliwiający jego ukończenie.
* Problem ten może się pojawić w wyniku zablokowania lub odrzucenia ciasteczek.
a to jest kod
style.php
<html><head>
<title> Demo Frogss</title>
<link rel='stylesheet' href='styles.css' type='text/css'>
</head>
<body background="bg.jpg">
<?php
echo '<table><tr><td>Frogss - Def</td></tr> <tr><td>Ściągnięć:12056</td></tr>
<tr><td>Autor:zaba</td></tr>
<tr><td>Ściągnij</td></tr></table>';
echo '<table><tr><td>Wybierz Styl:</td></tr></table>';
if($r<>'.' AND $r<>'..' AND $r<>'index.php') {
if($r==$theme) $napis = ' selected'; else $napis ='';
echo '<table><tr><Td background="n_1.jpg" width="210"> <img src="newpost.gif" alt="" style="width:8px;height:8px;border:0px;" /> <a href="demo/index.php?skora='.$r.'" target="frogss" title="podgląd stylu">'.$r.'</a></Td></tr></table>';
}
}
?>
</body>
</html>
i index.php
<?php
skora();
include ("theme/".$GLOBALS[theme]."/function.php");
include ("lang/".$GLOBALS[lang]."/".$GLOBALS[lang].".php");
function skora() {
global $skora, $logs, $theme, $default_theme;
if($skora<>'') {
$theme = $skora;
header("Location: index.php"); }
}
?>