Location: PHPKode > scripts > GigKalender > guestbook/backend_delGuestbookEntry.php
<?php
/*
    CREATIVE COMMONS - Attribution-No Derivative Works 3.0 Germany:
    - You may not alter, transform, or build upon this work.
    - Dieses Werk darf nicht bearbeitet oder in anderer Weise verändert werden.
*/
  $xUserRightDeleteGuestbookEntry = 1;
      if ( !$xUserRightDeleteGuestbookEntry ) { echo $L_015; }
      else
      {
        // Inhalt hier einfügen
          if ( isset($_POST['delGuestbookEntry']) )
      	 {
        	   if ($_POST['delGuestbookEntry']==$L_Button23)
        	   {
              $SQL = "DELETE FROM ".$prefix."guestbook WHERE GuestbookID = '$GuestbookID'";
              $resultat = mysql_query($SQL);
              // Löschen erfolgreich
              if ($resultat) { echo $L_129; }
              // Löschen NICHT erfolgreich
              else { echo '<span class="ERROR">'.$L_ERROR_Guestbook_entry_could_NOT_be_deleted.'</span><br />'; }
        	   }
        	   // Löschvorgang abgebrochen
        	   if ($_POST['delGuestbookEntry']==$L_Button24)
        	   {
              echo $L_130;
        	   }
      	 }
      	 else
      	 {
        	   echo $L_132.'<br /><br />';
        	   echo '
              <form method="post" action="index.php?submenu=guestbook&amp;page=backend_delGuestbookEntry">
                <fieldset>
                  <input name="delGuestbookEntry" type="submit" value="'.$L_Button23.'" class="button" />
                  <input name="delGuestbookEntry" type="submit" value="'.$L_Button24.'" class="button" />
                  <input name="GuestbookID" type="hidden" value="'.$GuestbookID.'" />
                  <input type="hidden" name="http-equiv" value="backend_showAllGuestbookEntries" />
                </fieldset>
        	     </form>
            ';
      	 }
        // Inhalt zuende
      }
    ?>
Return current item: GigKalender