LoGD Standardrelease steht hier zum Download zur Verfügung!
<?php
require_once "common.php";
// fetch the last comment of player
$sql = "SELECT `comment` FROM `commentary` WHERE `author` = ".$session['user']['acctid']." AND `section` = '".$_GET['section']."' ORDER BY postdate DESC LIMIT 1";
$result = db_query($sql);
$row = db_fetch_assoc($result);
// check if RP-Char and in section with points.
// fixed for Vinestra, modded for Kasbergia by Draza´ar
if(!$nopoints[$section]){
$words_for_points = 25;
$points = floor(str_word_count($row['comment']) / $words_for_points);
if($points > 10) $points = 10;
if($session['user']['rpchar']) $session['user']['donation'] -= $points;
$session['user']['rpgposts']--;
}
// Delete post
$sql = "DELETE FROM `commentary` WHERE `author` = ".$session[user][acctid]." AND `section` = '".$_GET[section]."' ORDER BY postdate DESC LIMIT 1 ";
db_query($sql);
$return = $_GET["return"];
redirect($return);
//output($return);
//addnav("Zurück",$return);
?>