Witam otóż pod adresem:

http://bartus2003.home.pl/travland/

Zainstalowałem najnowszą devanę na serwerze home.pl.

I już na starcie pojawiają się takie błędy... W czym problem? Podobny problem miałem z innym skryptem na tym serwerze aly wystarczyło stworzyć folder /tmp i problem zniknął...

Oto plik antet.php:

  1. <?php
  2. //if (isset($_SESSION["user"][0])) include "./language/".$_SESSION["user"][16];
  3. //else if (isset($_SESSION["lang"])) include "./language/".$_SESSION["lang"];
  4. include "./language/it.php";
  5. $title=$lang['title']; $announcement=$lang['announc']; $m=49; $n=49;
  6. $db_host="localhost"; $db_user="root"; $db_pass=""; $db_name="travland";
  7. $top_ad="<table><tr><td> <font class='q_label'></font> </td><td>";
  8. $bottom_ad="</td><td> <font class='q_label'></font> </td></tr></table>";
  9. $bottom_text="";
  10. if (isset($_SESSION["user"][0])&&($_SESSION["user"][4]>1)) {$top_ad=""; $bottom_ad=""; $bottom_text="";}
  11. function logo($title)
  12. {echo "<embed type='application/x-shockwave-flash' width='640' height='136' src='default/logo.swf' quality='high'></embed>";}
  13.  
  14. function menu_up()
  15. {
  16. global $lang;
  17. if (isset($_SESSION["user"][1], $_GET["town"]))
  18. {
  19. $_GET["town"]=clean($_GET["town"]);
  20. $loc=town_xy($_GET["town"]);
  21. $map_lnk="<a class='q_link' href='map.php?x=".$loc[0]."&y=".$loc[1]."'>".$lang['map']."</a>";
  22. }
  23. else $map_lnk="<a class='q_link' href='map.php?x=10&y=13'>".$lang['map']."</a>";
  24. echo "<a class='q_link' href='index.php'>".$lang['home']."</a> | ";
  25. if (!isset($_SESSION["user"][1])) echo "<a class='q_link' href='login.php'>".$lang['login']."</a> |
  26. <a class='q_link' href='register.php'>".$lang['register']."</a> | ";
  27. else echo "<a class='q_link' href='logout.php'>".$lang['logout']."</a> | ";
  28. echo $map_lnk." | <a class='q_link' href='/forum' target='blank'>".$lang['forum']."</a> |
  29. <a class='q_link' href='help.php'>".$lang['about']."</a> | ";
  30. if (isset($_SESSION["user"][1])) echo "<a class='q_link' href='profile_view.php?id=".$_SESSION["user"][0]."'>".$lang['profile']."</a> | <a class='q_link' href='league.php'>Top 10</a> | <a class='q_link' href='towns.php'>".$lang['towns']."</a> | ";
  31. }
  32.  
  33. function menu_down()
  34. {
  35. global $lang;
  36. if (isset($_SESSION["user"][0], $_GET["town"]))
  37. {
  38. $_GET["town"]=clean($_GET["town"]);
  39. echo "<a class='q_link' href='town.php?town=".$_GET["town"]."'>".$lang['townCenter']."</a> | <a class='q_link' href='stats.php?town=".$_GET["town"]."'>".$lang['statistics']."</a> | ";
  40. }
  41. if (isset($_SESSION["user"][0])) $alert=msg_rep_alert($_SESSION["user"][0]);
  42. if ($alert[0][0]) $alert[0]="<font color='red'>".$alert[0][0]."</font> "; else $alert[0]="";
  43. if ($alert[1][0]) $alert[1]="<font color='red'>".$alert[1][0]."</font> "; else $alert[1]="";
  44. if (isset($_SESSION["user"][1])) echo "<a class='q_link' href='reports.php?page=0'>".$alert[0].$lang['reports']."</a> | <a class='q_link' href='messages.php?page=0'>".$alert[1].$lang['messages']."</a> || <a class='q_link' href='chat.php'>".$lang['chat']."</a> | ";
  45. if (((isset($_SESSION["user"][4]))&&($_SESSION["user"][4]>2)&&($_SESSION["user"][4]<4))) echo "<a class='q_link' href='apanel.php'>Panel Natar</a> | ";
  46. if (((isset($_SESSION["user"][4]))&&($_SESSION["user"][4]>3)&&($_SESSION["user"][4]<5))) echo "<a class='q_link' href='apanel.php'>Panel MH</a> | ";
  47. if ((isset($_SESSION["user"][4]))&&($_SESSION["user"][4]>4)) echo "<a class='q_link' href='apanel.php'>".$lang['adminPanel']."</a> | ";
  48. }
  49.  
  50. function about()
  51. {global $bottom_text; echo $bottom_text;}
  52.  
  53. $system=array();
  54. $system[0]=5;//chat message life, in minutes
  55. $system[1]=5;//chat refresh time, in seconds
  56. ?>


Ok, chyba poradziłem sobie dodając przed session start:

session_save_path("tmp");