From: Andreas K. <la...@us...> - 2002-10-29 18:59:13
|
Update of /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14 In directory usw-pr-cvs1:/tmp/cvs-serv20050/PN_phpBB_14/html/modules/phpBB_14 Modified Files: editpost.php Log Message: minor code cleanup Index: editpost.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/editpost.php,v retrieving revision 1.78 retrieving revision 1.79 diff -C2 -d -r1.78 -r1.79 *** editpost.php 29 Oct 2002 10:24:02 -0000 1.78 --- editpost.php 29 Oct 2002 18:59:10 -0000 1.79 *************** *** 139,145 **** $message = censor($message); - - // stripslashes not needed since we use pnVarPrepForStore - // $message=stripslashes($message); $message = pnVarPrepForStore($message); --- 139,142 ---- *************** *** 167,171 **** if (trim($subject) != '') { $subject = censor($subject); - // $subject = stripslashes($subject); $subject = pnVarPrepForStore($subject); $sql = "UPDATE $pntable[phpbb14_topics] --- 164,167 ---- *************** *** 345,349 **** $message = eregi_replace('<br />', "", $message); $message = eregi_replace('<br>', "", $message); - // $message = stripslashes($message); // convert smilies $message = desmile($message); --- 341,344 ---- *************** *** 352,359 **** // convert autolinks $message = undo_make_clickable($message); - $message = undo_boardhtmlspecialchars($message); // Special handling for </textarea> tags in the message, which can break the editing form.. ! $message = preg_replace('#</textarea>#si', '</TEXTAREA>', $message); list($day, $time) = split(' ', $myrow['post_time']); --- 347,353 ---- // convert autolinks $message = undo_make_clickable($message); // Special handling for </textarea> tags in the message, which can break the editing form.. ! //$message = preg_replace('#</textarea>#si', '</TEXTAREA>', $message); list($day, $time) = split(' ', $myrow['post_time']); *************** *** 373,377 **** .'<table border="0" cellpadding="2" cellspacing="1" width="100%">' ."<tr bgcolor=\"$bgcolor2\" align=\"left\">" ! ."<td align=\"center\" colspan=\"2\"><font class=\"pn-title\"><b>$pagetitle: ".$myrow['topic_title']."</b></td>" .'</tr>' ."<td bgcolor=\"$bgcolor3\"><font class=\"pn-title\"><b>"._PHPBB_USERNAME.':</b></td>' --- 367,371 ---- .'<table border="0" cellpadding="2" cellspacing="1" width="100%">' ."<tr bgcolor=\"$bgcolor2\" align=\"left\">" ! ."<td align=\"center\" colspan=\"2\"><font class=\"pn-title\"><b>$pagetitle: ".pnVarCensor($myrow['topic_title'])."</b></td>" .'</tr>' ."<td bgcolor=\"$bgcolor3\"><font class=\"pn-title\"><b>"._PHPBB_USERNAME.':</b></td>' *************** *** 387,391 **** <td bgcolor="<?php echo $bgcolor3; ?>" width="25%"> <font class="pn-title"><b><?php echo _PHPBB_SUBJECT.":"; ?></b></font> - <br><?php echo _PHPBB_SUBJECT_MAX; ?></br> </td> <td bgcolor="<?php echo $bgcolor3; ?>"> --- 381,384 ---- *************** *** 396,402 **** } ! print '<tr>' ."<td valign=\"top\" bgcolor=\"$bgcolor3\" width=\"25%\"><font class=\"pn-title\"><b>"._PHPBB_BODY.':</b><br><br>' ! .'</font>'; ?> --- 389,395 ---- } ! echo "<tr>" ."<td valign=\"top\" bgcolor=\"$bgcolor3\" width=\"25%\"><font class=\"pn-title\"><b>"._PHPBB_BODY.':</b><br><br>' ! ."</font>"; ?> |