Mam taki kod:
  1. <?php
  2. ?>
  3. <?php
  4. define('IN_PHPBB', true);
  5. $phpbb_root_path = 'forum/';
  6. include( $phpbb_root_path . 'extension.inc' . $phpEx );
  7. include( $phpbb_root_path . 'common.' . $phpEx );
  8. $userdata = session_pagestart( $user_ip, PAGE_INDEX, $session_length );
  9. init_userprefs( $userdata );
  10. ?>
  11. <html>
  12. <head>
  13.  
  14. </head>
  15. <body>
  16.  
  17. <?php
  18.  
  19.  
  20. include("forum/login.php");
  21. if ( $userdata['session_logged_in'] )
  22. {
  23. $u_login_logout = 'forum/login.'.$phpEx.'?logout=true&amp;sid=' . $userdata['session_id'];
  24. $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
  25. echo "<a href='".$u_login_logout."'>".$l_login_logout."</a>";
  26.  
  27.  
  28. }else{
  29. ?>
  30.  
  31. <form action="forum/login.php" method="post">
  32. <table>
  33. <tr>
  34. <td>
  35.  
  36. <div class="login_text">LOGIN: </div>
  37.  
  38. </td>
  39. <td>
  40.  
  41. <input type="text" name="username" size="15" maxlength="40" class="username">
  42. </td>
  43. <td>
  44.  
  45. <div class="login_text">HASŁO: </div>
  46.  
  47. </td>
  48. <td>
  49.  
  50. </font><input type="password" name="password" size="15" maxlength="40" class="username">
  51.  
  52. </td>
  53. <td>
  54.  
  55. </font><input type="submit" name="login" class="wyslij" value="ZALOGUJ">
  56.  
  57. </td>
  58. </tr>
  59. </table>
  60. </form>
  61. <?php
  62. }
  63. ?>
  64. <?php
  65. if ( $userdata['session_logged_in'] ) {
  66. echo 'Witaj '.$userdata['username'].'';
  67. }
  68. else
  69. {
  70. echo 'Nie jestes zalogowany';
  71. }
  72. ?>
  73. </body>
  74. </html>


Skopiowałem na żywca z neta aby to w ogole zadziałało ale nie chce działać sypie warningami. Wszystkie błędy są tutaj: http://www.opowiesciznarnii.pl/logowanie_test.php

Co jest źle ?
Moje forum jest jako subdomena i znajduje się w katalogu
home/forum
a pliki są w katalogu home/


// EDYT
Rozwiązałem problem smile.gif heheheh.