Witam!
Mam takie coś do logowania się do panelu admina:
  1. <?
  2. require ("mysql.php"); require ("sqlfunctions.php");
  3. {
  4.  
  5. $pyt = $QUERY_STRING;
  6. if ($pyt == '')
  7.  $strona=g_statystyki;
  8. else if ($s != '')
  9.  $strona=$s;
  10. else
  11.  $strona=pusta;
  12. if (!file_exists ("strony/$strona.php"))
  13.  $strona=pusta;
  14.  
  15. if ($s == "wyloguj"){
  16. header("Location: <a href="http://www.mojastrona.pl/admin/index.php");" target="_blank">http://www.mojastrona.pl/admin/index.php");</a>
  17. }
  18.  
  19. ?>
  20. <html>
  21. Treść strony
  22. </html>
  23. <?
  24. }
  25. else
  26. {
  27. if ($spr=="log"){
  28. $zap=selectquery("*", "rozne", "rozne_id=1");
  29. $h_baza=$zap[1][1];
  30. if (md5($haslo) == $h_baza){
  31. header("Location: <a href="http://www.mojastrona.pl/admin/index.php");" target="_blank">http://www.mojastrona.pl/admin/index.php");</a>
  32. }
  33. else
  34. header("Location: <a href="http://www.mojastrona.pl/admin/index.php");" target="_blank">http://www.mojastrona.pl/admin/index.php");</a>
  35. }
  36. else if ($spr!="log")
  37. echo'<body bgcolor="#000000"><div align="center"><font face="Verdana" size="2" color="#FFFFFF"><b>Panel Administracyjny</b></font><br><form action="index.php?spr=log" method=post><br><font face="Verdana" size="2" color="#FFFFFF">Haslo: </font><input type=password name=haslo><br><br><input type=image src=/admin/images/ok_sz.gif></div>';
  38. }
  39. ?>


Wszystko to działało na starym serwerze, ale po przeniesieniu na nowy po wpisaniu hasła pojawia się biała strona... dopiero trzeba kliknąć odświerz i wczytuje się, ale nie cała, tylko index bez zagnieżdzonej strony. Co może być nie tak? Proszę o pomoc.