Lucerne Chat Birthday & Gästebuch

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

      Lucerne Chat Birthday & Gästebuch

      Hallo Liebes Team,

      Ich habe vor einiger Zeit den Lucerne Chat installiert.
      Nach ein paar Tagen hat mich mein Mitbastler drauf aufmerksam gemacht, dass das Gästebuch keine Einträge speichert.
      Obwohl DB Anbindung alles da ist und auch die Tabellen, speichert er Totzdem keinen Eintrag.

      So sieht meine DB Tabelle aus.
      (DB Tabelle von Gästebuch GTChat 0.95 Perl Module, Dragon)
      Sin diese überhaupt Kompatibel mit dem Lucerne Gästebuch?

      Quellcode

      1. CREATE TABLE gtchat_gb (
      2. uid int(11) NOT NULL auto_increment,
      3. an text NOT NULL,
      4. von text NOT NULL,
      5. datum text NOT NULL,
      6. uhrzeit text NOT NULL,
      7. messa longtext NOT NULL,
      8. PRIMARY KEY (uid)
      9. ) TYPE=ISAM PACK_KEYS=1;


      Ich wollte keinen Weiteren Thread aufmachen!

      DIe Birthday.php & Birthday2.php Lesen keine Geburtstage aus!
      Es steht immer da "Niemand"

      Wisst ihr wor das Problem bei beiden Fehlern liegt?
      1. wie sieht die datei aus, die die daten in die db schreibt? weiterhin ist es nicht so toll, wenn datum und uhrzeit als text in eine db geschrieben werden, hat aber damit nun nichts zu tun

      wenn keine daten in die db geschrieben werden und die tabelle und der db-connect in ordnung sind, KANN es nur am script, das die daten in die db schreiben soll, liegen.

      2. birthday: pfad?
      gb.php

      HTML-Quellcode

      1. <script type="text/javascript">
      2. if (document.layers){
      3. window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
      4. window.onmousedown=rightclick;
      5. window.onmouseup=rightclick;
      6. function rightclick(e) {
      7. if (e.which == 3) {
      8. alert('Security Alert : No Access.');
      9. return false;
      10. }
      11. else {
      12. return true;
      13. }
      14. }
      15. }
      16. if (document.all){
      17. function click() {
      18. if (event.button==2) {
      19. alert('Security Alert : No Access.')
      20. }
      21. if (event.button==3) {
      22. alert('Security Alert : No Access.')}
      23. }
      24. document.onmousedown=click
      25. }
      26. </script>
      27. <?
      28. $nick = $_GET['nick'];
      29. $user = $_GET['user'];
      30. $acti = $_GET['acti'];
      31. $style = $_GET['style'];
      32. if ($acti == "save") {
      33. include "log.php";
      34. $von = $nick;
      35. $an = $user;
      36. $datum = date("d.m.Y");
      37. $uhrzeit = date("H:i");
      38. if ($messa != "") {
      39. $messa = strip_tags($messa);
      40. $messa = nl2br ($messa);
      41. $messa = str_replace("[img]","<img src=\"", $messa);
      42. $messa = str_replace("[/img]","\">", $messa);
      43. $eintrag = "INSERT INTO gtchat_gb (an, von, datum, uhrzeit, messa) VALUES ('$an','$von','$datum','$uhrzeit','$messa')";
      44. $eintragen = mysql_query($eintrag);
      45. }
      46. }
      47. if ($acti == "delet") {
      48. include "log.php";
      49. $loesch = "DELETE FROM gtchat_gb WHERE uid = '$uid'";
      50. $loeschen = mysql_query($loesch);
      51. }
      52. if ($acti == "check") {
      53. echo "gtchat_gb";
      54. }
      55. ?>
      56. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
      57. <html>
      58. <head>
      59. <base href="http://janas-testserver.com/www/">
      60. <title>Gästebuch von <? echo $user; ?> </title>
      61. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      62. <link rel="stylesheet" href="<? echo $style; ?>.css">
      63. </head>
      64. <table border=0 width="511" cellspacing=0 cellpadding=0><tr><td>
      65. <table border=0 width="511" cellspacing=0 cellpadding=0>
      66. <tr>
      67. <th height="26">
      68. <br>
      69. Gästebuch von <? echo $user; ?>
      70. <br>
      71. </th>
      72. </tr>
      73. <tr class="row2"><td><table width="90%" cellspacing=5 cellpadding=0 style="MARGIN-LEFT: 10px">
      74. <tr>
      75. <td colspan=2>&nbsp;</td>
      76. </tr>
      77. <?
      78. include "log.php";
      79. $abfrag = "SELECT * FROM gtchat_gb WHERE an = '$user' ORDER by datum ASC";
      80. $abfrage = mysql_query($abfrag);
      81. $check = mysql_num_rows($abfrage);
      82. if ($check != "0") {
      83. while ($row = mysql_fetch_object($abfrage)) {
      84. ?>
      85. <tr>
      86. <td><em><strong>von <a href="php/gb.php?user=<? echo $row->von; ?>&nick=<? echo $nick; ?>&style=<? echo $style; ?>"><? echo $row->von; ?></a> geschrieben am <? echo "$row->datum "."$row->uhrzeit"; ?></strong></em><br>
      87. <br><? echo $row->messa; ?>
      88. <br><? if ($user == $nick) { ?><form enctype="multipart/form-data" action="php/gb.php?nick=<? echo $nick; ?>&user=<? echo $user; ?>&style=<? echo $style; ?>&acti=delet&uid=<? echo $row->uid; ?>" method="post">
      89. <div align="center">
      90. <input type="submit" value="Löschen">
      91. </div>
      92. </form> <? } ?><hr></td>
      93. </tr>
      94. <?
      95. }
      96. }
      97. else
      98. {
      99. echo "<br>";
      100. echo "<div align=\"center\">Es sind keine Einträge vorhanden</div>";
      101. }
      102. ?>
      103. </table>
      104. </td>
      105. </tr>
      106. <? if ($user == $nick) { ?>
      107. <tr class="row2">
      108. <td>&nbsp;</td>
      109. </tr>
      110. <? }
      111. else
      112. { ?>
      113. <tr class="row2"><td><form enctype="multipart/form-data" action="php/gb.php?acti=save&nick=<? echo $nick; ?>&user=<? echo $user; ?>&style=<? echo $style; ?>" method="post">
      114. <div align="center">
      115. <br><textarea name="messa" cols="50" rows="7"></textarea>
      116. <br>
      117. <input type="submit" value="Speichern">
      118. </div>
      119. </form></td></tr>
      120. <? } ?>
      121. </table></td></tr>
      122. </table>
      123. </td></tr></table>
      124. <tr>
      125. <td height=26><IMG src="images/content_f.jpg"></td>
      126. </tr>
      127. <div class="row2" align="center">
      128. <a href="javascript:window.close()" class="stdlink">Fenster schlie&szlig;en</a>
      129. </div>
      130. </body>
      131. </html>


      log.php

      Quellcode

      1. <?
      2. $myhost="localhost";
      3. $mydb="db"; #Datenbank
      4. $myuser="db"; #User
      5. $mypassword="db"; #Passwort
      6. mysql_connect("$myhost","$myuser","$mypassword")or die
      7. ("Kein Zugriff auf Datenbank moeglich");
      8. mysql_select_db("$mydb")or die ("Datenbankbezeichnung ist falsch oder existiert nicht");
      9. ?>


      Pfade für die beiden Birthday.php sind laut dem Hoster richtig.