Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Co jest nie tak, Pomocy!
Gibcio
post
Post #1





Grupa: Zarejestrowani
Postów: 48
Pomógł: 0
Dołączył: 20.04.2005

Ostrzeżenie: (0%)
-----


Witam!!!
Moja strona

coś jest nie tak w pliku "setup.php" oto jego treść:

  1. <?
  2. include("setup/polski.php");
  3. echo"
  4. <html>
  5. <meta http-equiv='Content-Type' content='text/html; charset=windows-1250'>
  6. <title>".$localset['tytul']."</title>
  7. <link rel='stylesheet' style='text/css' href='setup/setup.css'>
  8. </head>
  9. <body topmargin='10' leftmargin='40'>
  10. <table border='0' width='100%'>
  11. <tr>
  12. <td width='100%' align='center'>".$localset['naglowek']."</td>
  13. </tr>
  14. <form action='setup.php' method='post'>
  15. <table border='0' width='100%'>
  16. <tr>
  17. <td width='50%' align='center' class='tbl1'>".$localset['nazwa']."</td>
  18. <td width='50%' align='center' class='tbl1'><input type='text' class='text' name='nazwa_serwisu' value='..:: Strona domowa ::..' size='30'></td>
  19. </tr>
  20. <tr>
  21. <td width='50%' align='center' class='tbl1'>".$localset['admin']."</td>
  22. <td width='50%' align='center' class='tbl1'><input type='text' class='text' name='admin' value='admin' size='30'></td>
  23. </tr>
  24. <tr>
  25. <td width='50%' align='center' class='tbl1'>".$localset['login']."</td>
  26. <td width='50%' align='center' class='tbl1'><input type='text' class='text' name='login' size='30'></td>
  27. </tr>
  28. <tr>
  29. <td width='50%' align='center' class='tbl1'>".$localset['haslo']."</td>
  30. <td width='50%' align='center' class='tbl1'><input type='password' class='text' name='haslo' size='30'></td>
  31. </tr>
  32. <table border='0' width='100%'>
  33. <tr>
  34. <td width='100%' align='center' class='tbl'><input type='submit' class='przycisk' name='przycisk' value='".$localset['button']."'></td>
  35. </tr>
  36. </form>
  37. <table border='0' width='100%'>
  38. <tr>";
  39. if($przycisk==Dalej)
  40. {
  41. if($_POST['login']=="" && $_POST['haslo']=="")
  42. {
  43. echo "<td width='100%' align='center' class='tbl1'>".$localset['no_login_haslo']."</td>";
  44. }
  45. elseif($_POST['login']=="")
  46. {
  47. echo "<td width='100%' align='center' class='tbl1'>".$localset['no_login']."</td>";
  48. }
  49. elseif($_POST['haslo']=="")
  50. {
  51. echo "<td width='100%' align='center' class='tbl1'>".$localset['no_haslo']."</td>";
  52. }
  53. elseif($_POST['login']!="" && $_POST['haslo']!="")
  54. {
  55. if(is_writable("include") && is_writable("users"))
  56. {
  57. $plik = fopen("include/config.php", "w");
  58. fputs($plik, "<?\n");
  59. fputs($plik, "\$nazwa_serwisu=\"$nazwa_serwisu\";\n");
  60. fputs($plik, "\$theme=\"standardowa.css\";\n");
  61. fputs($plik, "\$language=\"polski.php\";\n");
  62. fputs($plik, "\$menu=\"tak\";\n");
  63. fputs($plik, "\$logowanie=\"tak\";\n");
  64. fputs($plik, "\$lang=\"pl\";\n");
  65. fclose($plik);
  66. $plik = fopen("users/".$_POST['login']."", "w");
  67. $pass = md5($_POST['haslo']);
  68. fputs($plik, "$admin|".$_POST['login']."|$pass|poczta|gadu-gadu|komorka|miasto|1|");
  69. fclose($plik);
  70. echo "<td width='100%' align='center' class='tbl1'>".$localset['yes_write']." <b>include i users</b>.<br><br>";
  71. echo "Przejdź do strony głównej serwisu: <a href='index.php' style='text-decoration:none'>".$_POST['nazwa_serwisu']."</a>";
  72. }
  73. else
  74. {
  75. echo "<td width='100%' align='center' class='tbl1'>".$localset['no_write']." <b>include i users</b>.</td>";
  76. }
  77. }
  78. }
  79. echo"
  80. </body>
  81. </html>
  82. ";
  83. ?>


Na serwerze w katalogu include nie tworzy się plik config.php a w katalogu users nie tworzy się użytkownik
nie pojawiają się komunikaty a w krasnalu wszystko jest git.

Proszę o pomoc
Go to the top of the page
+Quote Post
kossa
post
Post #2





Grupa: Zarejestrowani
Postów: 1 165
Pomógł: 9
Dołączył: 9.04.2002
Skąd: Toruń

Ostrzeżenie: (0%)
-----


Sprawdź prawa zapisu do katalogu.

Łukasz


--------------------
Go to the top of the page
+Quote Post
Gibcio
post
Post #3





Grupa: Zarejestrowani
Postów: 48
Pomógł: 0
Dołączył: 20.04.2005

Ostrzeżenie: (0%)
-----


Dzięki o tym nie pomyślałem.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 09:29