Witam, otóż mam problem, gdyż jak wchodzę na swoją stronę www.vinnes.pl to po chwili przenosi mnie na jakieś www..com. Z domeną (home.pl mam wszystko dobrze ustawione, nawet już resetowałem nazwy DNS'ów i nic. Obsługa serwera (cal.pl) mówią, że to coś wina kodu, ale nie mam pojęcia co.
Strona tak nagle przestała chodzić, gdyż działała i klapa pewnego dnia. Wgrałem również od nowa pliki na nowo, gdzieś sprzed miesiąca (działające dobrze0, a awaria nastąpiła kilka dni temu.

Proszę o jakieś rady bądź pomoc.

A więc jest to na pewno problem index.php, gdyż wgrałem taki byle jaki htmlowy i wyświetlił dobrze, a mój index nie chce.

Oto plik index.php
  1. <?
  2. define(CHECK,1);
  3. @include("config.php");
  4. $echo .= $_SESSION[pokaz];
  5. $_SESSION[pokaz] = "";
  6. if($mozna_pokazac == 1) {
  7. if(@(!include($file)) && $array_pages[$id][0] != "empty") {
  8. $echo .= red("Error 404 - podana strona nie istnieje");
  9. }
  10. }
  11. $head1 = "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  12. <html>
  13. <head>
  14. <meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
  15. <meta name='keywords' content='$config_[keywords]'>
  16. <meta name='description' content='$config_[description]'>
  17. <meta name='author' content='$config_[author]'>
  18. <meta name='language' content='pl'>
  19. <link rel='shortcut icon' href='favicon.ico'>
  20. <meta name='reply-to' content='$config_[email]'>
  21. <title>$config_[page_name]</title>
  22. <link title="style" type="text/css" rel="stylesheet" href="img/style.css">
  23. <script type="text/javascript">
  24. function wind(adres,szerokosc,wysokosc)
  25. {
  26. var od_lewej = (screen.width/2)-(szerokosc/2);
  27. var od_gory = (screen.height/2)-(wysokosc/2);
  28. (window.open(adres,'','toolbar=no,scrollbars=yes,resizable=yes,menubar=no,location=no,status=no,directo
    ries=no,width='
    + szerokosc +',height='+ wysokosc +',left='+ od_lewej +',top='+ od_gory)).focus();
  29. }
  30. kierowany = 1;
  31. function dopisz(zaw){
  32. var ns6=document.getElementById&&!document.all;
  33. var ie4=document.all;
  34. var ns4=document.layers;
  35. if(ie4){
  36. document.all['odpowiedzi'].innerHTML = zaw;
  37. }
  38. if(ns4){
  39. cadesc = document.layers.odpowiedzi;
  40. cadesc.document.open();
  41. cadesc.document.write(zaw);
  42. cadesc.document.close();
  43. }
  44. if(ns6){
  45. document.getElementById('odpowiedzi').innerHTML = zaw;
  46. }
  47. }
  48. </script>
  49. ";
  50. $head = $head1.$head;
  51. $body1 .= "
  52. </head>
  53. <body";
  54. if($_SESSION[visit] != 1) {
  55. $query = "SELECT * FROM `reklamy` WHERE `type`=3 AND `status`=1";
  56. $result = mysql_query($query);
  57. if(@mysql_num_rows($result) > 0) {
  58. $body1 .= " onLoad=""";
  59. while($row = mysql_fetch_assoc($result)) {
  60. $body1 .= "wind('popup.php',750,550);n";
  61. }
  62. }
  63. }
  64. $_SESSION[visit] = 1;
  65. if($waruser) {
  66. $query = "SELECT * FROM `mails` WHERE `status`=1 AND `to`='$user_[id]' AND `read`='0'";
  67. $result = @mysql_query($query);
  68. $num = @mysql_num_rows($result);
  69. if($num > 0) {
  70. $body1 .= " onClick="if(kierowany == 1) {
  71. kierowany = 2;n";
  72. $i = 0;
  73. while($row = @mysql_fetch_assoc($result)) {
  74. $body1 .= "wind('new.php?id=$row[id]',450,300);n";
  75. $i++;
  76. }
  77. $body1 .= "
  78. }"";
  79. }
  80. }
  81. $body1 .= ">
  82. <div style='display: block; text-align: center;' id='div_load'>
  83. <br><br><br><br>
  84. <table align='center' border=0>
  85. <tr><td style='width: 600px; background-color: #CC8181; text-align: center; padding: 25px; font-weight: bold;'>
  86. Przeg&#261;darka ma wyłączoną obsługę JavaScriptu.<br><br>
  87. W&#322;ącz ją, a następnie odśwież stronę lub kliknij <a href=''>tu</a>.
  88. </table>
  89. </div>
  90. <div style='display: none;' id='div_main'>
  91. <script type='text/javascript'>
  92. <!--
  93. document.getElementById('div_load').style.display = 'none';
  94. document.getElementById('div_main').style.display = 'block';
  95. //-->
  96. </script>
  97. <table align='center' border=0 cellspacing=0 cellpadding=0><tr><td>
  98. <table width="800" align="center" border="0" cellspacing="0" cellpadding="0">
  99. ";
  100. if($rekl = reklama(2)) $body1 .= "<tr><td align='center'>$rekl</td></tr>";
  101. $body1 .= "<tr><td style="background: url('img/logo.gif') no-repeat">
  102. <table border=0 cellspacing=0 cellpadding=0 width='100%'>
  103. <tr><td><img src='img/pixel.gif' height=125 width=1></td>
  104. <td valign=top align=right><table align=right border=0 cellspacing=0 cellpadding=0>
  105. <tr><td colspan=2><img src='img/pixel.gif' height=11 width=1></td>
  106. <tr><td style='background: #FFB0B0; border: 2px solid #DF1B1B; padding-top: 2px; padding-bottom: 2px; padding-left: 10px; padding-right: 10px; text-align: center;'>";
  107. $query = "SELECT * FROM `users` WHERE `status`=1 OR `status`=3";
  108. $result = @mysql_query($query);
  109. $num1 = @mysql_num_rows($result);
  110. $query = "SELECT * FROM `users` WHERE ((`time`+'".SESSION_TIME."')>'".time()."' AND `session`<>'123') AND (`status`=1 OR `status`=3)";
  111. $result = @mysql_query($query);
  112. $num2 = @mysql_num_rows($result);
  113. $body1 .= "<b>On-line: <a href='index.php?id=6' style='color: #338833'>$num2</a> / <span style='color: #CC0000'>$num1</span></b>";
  114. if($waruser) $body1 .= "<br><a href='index.php?id=110'><b>Szukaj osoby</b></a>";
  115. $body1 .= "<td width=11></td></tr></table>
  116. </table></td></tr>
  117. <tr><td class="menu">";
  118. @include("menu.php");
  119. $id = get_id();
  120. $body1 .= "</td></tr>
  121. <tr><td><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td class="bel_menu1"><img src="img/bel_menu1.gif" height="10"></td><td class="bel_menu2" align="right"><img src="img/bel_menu3.gif" height="10"></td></tr></table></td></tr>
  122. <tr><td class="onliner"><table width='100%' border=0 cellspacing=0>
  123. <tr><td width=1 style='padding-left: 3px; padding-right: 2px;'>";
  124. if($waruser) $body1 .= "<a href='index.php?id=105'><img src='img/onliner.gif' alt='Onliner'></a>";
  125. else $body1 .= "<img src='img/onliner.gif' alt='Onliner'>";
  126. $body1 .= "</td>
  127. <td>
  128. <object style='background-color: #FFB4B4' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="470" height="19" id="onliner" align="middle">
  129. <param name="allowScriptAccess" value="sameDomain" />
  130. <param name="movie" value="onliner.swf" />
  131. <param name="quality" value="high" />
  132. <param name="bgcolor" value="#FFB4B4" />
  133. <embed src="onliner.swf" quality="high" bgcolor="#FFB4B4" width="470" height="19" name="onliner" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
  134. </object></td><td align=right style='padding-right: 10px; padding-top: 0px;'>";
  135. if($waruser == 1) {
  136. $body1 .= "Witaj <a href='index.php?id=119'><b>$user_[nick]</b></a>";
  137. if($user_[status] == 3) $body1 .= " (<u>a</u>)";
  138. $body1 .= " - <a href='index.php?id=101'>Wyloguj</a>";
  139. }
  140. else $body1 .= "<a href='index.php?id=0'>Zaloguj si&#281;</a>";
  141. $id = get_id();
  142. $body1 .= "
  143. </table></td></tr>
  144. <tr><td class="bel_main">&nbsp;</td></tr>
  145. <tr><td><table width="100%" border="0" cellspacing="0">
  146. <tr height="300">
  147. <td class="main" valign="top" align="center">
  148. <span style='font-size: 18px; font-weight: bold; color: #773333; font-family: arial;'>".$array_pages[$id][1]."</span><br><br>";
  149. $body2 .= "&nbsp;<br><br><br>".reklama(0)."</td>
  150. ";
  151. $body3 .= "
  152. </tr>
  153. </table></td></tr>
  154. <tr><td><table width="100%" align="center" border="0" cellspacing="0" cellpadding="0"><tr><td class="bel_foot1"><img src="img/bel_foot1.gif" height="10"></td><td class="bel_foot2" align="right"><img src="img/bel_foot3.gif" height="10"></td></tr></table></td></tr>
  155. <tr><td class="footer">
  156. &copy; Copyrights Reserved by $vinnes<sup>&reg;</sup><br>
  157. Godzina serwerowa: ".date("d.m.Y - H:i:s")."<br>
  158. <a href='index.php?id=8'>Regulamin</a> | <a href='index.php?id=9'>Reklama</a> | <a href='index.php?id=10'>O Vinnes.PL/Kontakt</a> | <a href='index.php?id=11'>Mapa strony</a>
  159. </td></tr>
  160. <tr><td class="bel_footer" style='font-size: 6px;'>&nbsp;</td></tr>
  161. </table></td>
  162. ";
  163. if($rekl = reklama(1)) $body3 .= "<td width=130 valign='top' style='vertical-align: top'><br><br><br><br>$rekl";
  164. $body3 .= "</table>
  165. </div>
  166. </body>
  167. </html>";
  168. if((!$waruser || $waradmin) && get_id() != 2) $_SESSION[echo1] .= login("index.php","",0);
  169. $echo2 .= $_SESSION[echo1];
  170. $echo2 = "";
  171. $show = $head.$body1.$echo.$body2.$echo2.$body3;
  172. echo $show;
  173. ?>


Proszę o zerknięcie czy są takie jakieś błędy powodujące takie jakby przekierowanie.