und schonwieder brauche ich eure Hilfe.
hatte vschon vor einer Weile das Forum inform und das Gästebuch inform eingebaut. Muss ich jetzt feststellen das das inform im forum geht aber das im Gästebuch nicht. Und ein Vergleich hat mir Uwissendem nix gebracht. Deshalb bitte ich hier um Hilfe. Damit ihr das sehen könnt kommt hier der Code für beide Dateien.
gbinform.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <?php # Copyright by: Manuel # Support: www.ilch.de # inform.php by Mairu defined ( 'main' ) or die ( 'no direct access' ); $title = $allgAr [ 'title' ]. ' :: Gästebuch :: Benachrichtigung' ; $hmenu = 'Gästebuch <b> » </b> Benachrichtigung' ; $design = new design ( $title , $hmenu , 1); $design ->header(); $gbid = ( $menu ->getA(1) == 'e' ? $menu ->getE(1) : '' ); if (isset( $_POST [ 'submit' ])) $gbid = $_POST [ 'gbid' ]; if ( empty ( $gbid ) OR @db_result(db_query( "SELECT COUNT(*) FROM `prefix_gbook` WHERE id = $gbid" ),0) != 1) echo 'Diese Seite wurde falsch aufgerufen!<br /><br /> <a href= "javascript:history.back()" >zurück</a>'; else { $frm = db_fetch_object(db_query( "SELECT id,name,time FROM `prefix_gbook` WHERE id = $gbid" )); if (isset( $_POST [ 'submit' ]) AND $_POST [ 'mod' ] != 'noone' ){ $pmtxt = "Benachrichtigung durch: { $_SESSION [ 'authname' ]}\n User: $frm ->name\n [url=http: //{$_SERVER['SERVER_NAME']}{$_SERVER['PHP_SELF']}?gbook-show-$gbid]Link zum Eintrag[/url] vom ".date('d.m.Y - H:i',$frm->time)." \n Kommentar: { $_POST [ 'reason' ]}\n"; sendpm( $_SESSION [ 'authid' ], $_POST [ 'mod' ], 'Forumsbenachrichtigung' , $pmtxt ,1); echo 'Benachrichtung erfolgreich abgeschickt.<br /><a href="index.php?gbook">Zurück zum Gästebuch</a>' ; } else { if (isset( $_POST [ 'submit' ]) AND $_POST [ 'mod' ] == 'noone' ) echo 'Du musst einen Adressat auswählen<br />' ; $admins = '' ; $rechte = array (); $sql = db_query( "SELECT name,id FROM `prefix_grundrechte` WHERE id <= -7" ); while ( $row = db_fetch_object( $sql )) $rechte [ $row ->id]= $row ->name; $sql = db_query( "SELECT id,name,recht FROM `prefix_user` WHERE recht <= -7 ORDER BY recht ASC, name DESC" ); while ( $row = db_fetch_object( $sql )) $admins .= "<option value=\"$row->id\">$row->name (" . $rechte [ $row ->recht]. ")</option>\n" ; $out = array ( 'GBID' => '<input type="hidden" name="gbid" value="' . $gbid . '" />' , 'ADMINS' => $admins , 'TXT' => $_POST [ 'reason' ]); $tpl = new tpl( 'gbinform' ); $tpl ->set_ar_out( $out ,0); } } $design ->footer(); ?> |
foruminform.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | <?php # Copyright by: Manuel # Support: www.ilch.de # inform.php by Mairu defined ( 'main' ) or die ( 'no direct access' ); $title = $allgAr [ 'title' ]. ' :: Forum :: Benachrichtigung' ; $hmenu = 'Forum <b> » </b> Benachrichtigung' ; $design = new design ( $title , $hmenu , 1); $design ->header(); $postid = ( $menu ->getA(2) == 'p' ? $menu ->getE(2) : '' ); if (isset( $_POST [ 'submit' ])) $postid = $_POST [ 'postid' ]; if ( empty ( $postid ) OR @db_result(db_query( "SELECT COUNT(*) FROM `prefix_posts` WHERE id = $postid" ),0) != 1) echo 'Diese Seite wurde falsch aufgerufen!<br /><br /> <a href= "javascript:history.back()" >zurück</a>'; else { $frm = db_fetch_object(db_query( "SELECT tid,fid,erst,erstid,time FROM `prefix_posts` WHERE id = $postid" )); if (isset( $_POST [ 'submit' ]) AND $_POST [ 'mod' ] != 'noone' ){ $pmtxt = "Benachrichtigung durch: { $_SESSION [ 'authname' ]}\n User: $frm ->erst ( $frm ->erstid)\n [url=http: //{$_SERVER['SERVER_NAME']}{$_SERVER['PHP_SELF']}?forum-showposts-$frm->tid#$postid]Link zum Post[/url] vom ".date('d.m.Y - H:i',$frm->time)." \n Kommentar: { $_POST [ 'reason' ]}\n"; sendpm( $_SESSION [ 'authid' ], $_POST [ 'mod' ], 'Forumsbenachrichtigung' , $pmtxt ); echo '<a href="http://' . $_SERVER [ 'SERVER_NAME' ]. $_SERVER [ 'PHP_SELF' ]. '?forum-showposts-' . $frm ->tid. '">Zurück zum Thema</a>' ; } else { if (isset( $_POST [ 'submit' ]) AND $_POST [ 'mod' ] != 'noone' ) echo 'Du musst einen Adressat auswählen<br />' ; $mods = '' ; $rechte = array (); $sql = db_query( "SELECT name,id FROM `prefix_grundrechte` WHERE id <= -6" ); while ( $row = db_fetch_object( $sql )) $rechte [ $row ->id]= $row ->name; $sql = db_query( "SELECT id,name,recht FROM `prefix_user` WHERE recht <= -6 ORDER BY recht ASC, name DESC" ); while ( $row = db_fetch_object( $sql )) $mods .= "<option value=\"$row->id\">$row->name (" . $rechte [ $row ->recht]. ")</option>\n" ; $sql = db_query( "SELECT b.id,b.name FROM prefix_forummods a LEFT JOIN prefix_user b ON b.id = a.uid WHERE a.fid = " . $frm ->fid); while ( $row = db_fetch_object( $sql )) $mods .= "<option value=\"$row->id\">$row->name (Moderator)</option>\n" ; $out = array ( 'POSTID' => '<input type="hidden" name="postid" value="' . $postid . '"' , 'MODS' => $mods , 'TXT' => $_POST [ 'reason' ]); $tpl = new tpl( 'forum/inform' ); $tpl ->set_ar_out( $out ,0); } } $design ->footer(); ?> |
Wo is nu der Wurm drin? Warum geht das Foruminform und das GBinform nicht?
Gruß
Ollobollo
betroffene Homepage: externer Link