From: Andreas K. <la...@us...> - 2003-01-14 14:42:59
|
Update of /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14 In directory sc8-pr-cvs1:/tmp/cvs-serv17465/PN_phpBB_14/html/modules/phpBB_14 Modified Files: editpost.php Log Message: added new modvar for 'show_html' Index: editpost.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/editpost.php,v retrieving revision 1.100 retrieving revision 1.101 diff -C2 -d -r1.100 -r1.101 *** editpost.php 14 Jan 2003 10:47:08 -0000 1.100 --- editpost.php 14 Jan 2003 14:42:49 -0000 1.101 *************** *** 136,140 **** //$message = smile($message); ! // MUST do make_clickable() (and smile()) before changing \n into <br>. // deprecated - optional use of hooks // $message = make_clickable($message); --- 136,140 ---- //$message = smile($message); ! // MUST do make_clickable() (and smile()) before changing \n into <br />. // deprecated - optional use of hooks // $message = make_clickable($message); *************** *** 359,363 **** // convert <br /> to \n (since nl2bre only inserts additional <br /> we just need to remove them $message = eregi_replace('<br />', "", $message); ! $message = eregi_replace('<br>', "", $message); // convert smilies (just for backwards compatibility) $message = desmile($message); --- 359,363 ---- // convert <br /> to \n (since nl2bre only inserts additional <br /> we just need to remove them $message = eregi_replace('<br />', "", $message); ! $message = eregi_replace('<br />', "", $message); // convert smilies (just for backwards compatibility) $message = desmile($message); *************** *** 410,421 **** echo "<tr>" ! ."<td valign=\"top\" bgcolor=\"".$GLOBALS['bgcolor3']."\" width=\"25%\"><font class=\"pn-title\"><b>"._PHPBB_BODY.':</b><br><br>' ."</font>"; ?> </font></TD> ! <TD BGCOLOR="<?php echo $GLOBALS['bgcolor1']?>"><TEXTAREA NAME="message" ROWS=10 COLS=85 WRAP="soft"><?php echo $message?></TEXTAREA> ! <br> ! <?php if(pnModAvailable('pn_bbsmile')) { // display smilies and bbcodes --- 410,428 ---- echo "<tr>" ! ."<td valign=\"top\" bgcolor=\"".$GLOBALS['bgcolor3']."\" width=\"25%\"><font class=\"pn-title\"><b>"._PHPBB_BODY.':</b><br /><br />' ."</font>"; ?> </font></TD> ! <TD BGCOLOR="<?php echo $GLOBALS['bgcolor1']?>"><TEXTAREA NAME="message" ROWS=10 COLS=85 WRAP="soft"><?php echo $message?></TEXTAREA><br /> ! <?php ! $show_html = pnModGetVar('phpBB_14', 'show_html'); ! if ($show_html == "yes") { ! echo "<br />"._ALLOWEDHTML."<br />"; ! $AllowableHTML = pnConfigGetVar('AllowableHTML'); ! while (list($key, $access, ) = each($AllowableHTML)) { ! if ($access > 0) echo " <".$key.">"; ! } ! } if(pnModAvailable('pn_bbsmile')) { // display smilies and bbcodes *************** *** 423,431 **** echo $smilies_message; } - echo "<br /><br />"._ALLOWEDHTML."<br />"; - $AllowableHTML = pnConfigGetVar('AllowableHTML'); - while (list($key, $access, ) = each($AllowableHTML)) { - if ($access > 0) echo " <".$key.">"; - } if(pnModAvailable('pn_bbcode')) { $bbcode_message = phpbb_insert_bbcodeicons(); --- 430,433 ---- *************** *** 442,446 **** <TD BGCOLOR="<?php echo $GLOBALS['bgcolor3']?>" width=25%><font class="pn-title"><b><?php echo _PHPBB_OPTIONS?>:</b></font></TD> <TD BGCOLOR="<?php echo $GLOBALS['bgcolor1']?>" ><font class="pn-title"> ! <INPUT TYPE="CHECKBOX" NAME="delete"><?php echo _PHPBB_DELETE?><BR> </font></TD> </TR> --- 444,448 ---- <TD BGCOLOR="<?php echo $GLOBALS['bgcolor3']?>" width=25%><font class="pn-title"><b><?php echo _PHPBB_OPTIONS?>:</b></font></TD> <TD BGCOLOR="<?php echo $GLOBALS['bgcolor1']?>" ><font class="pn-title"> ! <INPUT TYPE="CHECKBOX" NAME="delete"><?php echo _PHPBB_DELETE?><br /> </font></TD> </TR> |