<?php require_once('includes/requirelogin.inc.php'); require_once('includes/requirepost.inc.php'); $bb_id=TPOST('bb_id'); $lctr_id=TPOST('lctr_id'); $mb_id_to=TPOST('mb_id_to'); $cs_id=TPOST('cs_id'); $type=TPOST('type'); $p=TPOST("p"); $ps=TPOST("ps"); $fh_text=TPOST("fh_text"); $mb_id=current_mb_id(); $DBConn->connect(); $comment=db_load_billboard_by_id($DBConn,$bb_id); if ($comment['mb_id_author']==$mb_id) { $DBConn->begin(); db_update_file($DBConn,$comment['file_id'],$fh_text); $DBConn->commit(); } redirect( "qx-cmd-comment" .($type?"-type-".$type:'') .($lctr_id?"-lctr_id-".$lctr_id:'') .($mb_id_to?"-mb_id_to-".$mb_id_to:'') .($cs_id?"-cs_id-".$cs_id:'') .($p?"-p-".$p:'') .($ps?"-ps-".$ps:'') .".html"); ?>