From: Andreas K. <la...@us...> - 2003-01-21 17:20:56
|
Update of /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14 In directory sc8-pr-cvs1:/tmp/cvs-serv22695a/PN_phpBB_14/html/modules/phpBB_14 Modified Files: adminapi.php Log Message: new config vars for show_bbcode, show_smile, log_ip Index: adminapi.php =================================================================== RCS file: /cvsroot/pn-modules/PN_phpBB_14/html/modules/phpBB_14/adminapi.php,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** adminapi.php 18 Jan 2003 16:43:49 -0000 1.45 --- adminapi.php 21 Jan 2003 17:20:50 -0000 1.46 *************** *** 913,917 **** pnModSetVar('phpBB_14', 'post_sort_order', $var['post_sort_order']); pnModSetVar('phpBB_14', 'show_html', $var['show_html']); ! // deprecated //pnModSetVar('phpBB_14', 'edit_image', $var['edit_image']); //pnModSetVar('phpBB_14', 'reply_image', $var['reply_image']); --- 913,920 ---- pnModSetVar('phpBB_14', 'post_sort_order', $var['post_sort_order']); pnModSetVar('phpBB_14', 'show_html', $var['show_html']); ! pnModSetVar('phpBB_14', 'show_bbcode', $var['show_bbcode']); ! pnModSetVar('phpBB_14', 'show_smile', $var['show_smile']); ! pnModSetVar('phpBB_14', 'log_ip', $var['log_ip']); ! // deprecated //pnModSetVar('phpBB_14', 'edit_image', $var['edit_image']); //pnModSetVar('phpBB_14', 'reply_image', $var['reply_image']); *************** *** 947,950 **** --- 950,956 ---- pnModSetVar('phpBB_14', 'post_sort_order', "ASC"); pnModSetVar('phpBB_14', 'show_html', "yes"); + pnModSetVar('phpBB_14', 'show_bbcode', "yes"); + pnModSetVar('phpBB_14', 'show_smile', "yes"); + pnModSetVar('phpBB_14', 'log_ip', "yes"); // deprecated //pnModSetVar('phpBB_14', 'edit_image', "modules/$module/images/edit.gif"); *************** *** 1112,1115 **** --- 1118,1172 ---- <input type="radio" name="var[show_html]" value="yes" <?php echo $htmlonChecked; ?>> yes <input type="radio" name="var[show_html]" value="no" <?php echo $htmloffChecked; ?>> no + </TD> + </TR> + <TR ALIGN="LEFT"> + <TD><FONT class="pn-title">Show 'BBCode' tags:</FONT><br><FONT class="pn-normal"><I>only when <a href="http://pncommunity.de" target=_blank>pnBBCode</a> hook is installed</I></FONT></TD> + <TD colspan="2"> + <?php + if (pnModGetVar('phpBB_14', 'show_bbcode') == "yes") + { + $bbcodeonChecked = "checked"; + $bbcodeoffChecked = " "; + } else { + $bbcodeonChecked = " "; + $bbcodeoffChecked = "checked "; + } + ?> + <input type="radio" name="var[show_bbcode]" value="yes" <?php echo $bbcodeonChecked; ?>> yes + <input type="radio" name="var[show_bbcode]" value="no" <?php echo $bbcodeoffChecked; ?>> no + </TD> + </TR> + <TR ALIGN="LEFT"> + <TD><FONT class="pn-title">Show Smilies :</FONT><br><FONT class="pn-normal"><I>only when <a href="http://pncommunity.de" target=_blank>pnBBSmile</a> hook is installed</I></FONT></TD> + <TD colspan="2"> + <?php + if (pnModGetVar('phpBB_14', 'show_smile') == "yes") + { + $smileonChecked = "checked"; + $smileoffChecked = " "; + } else { + $smileonChecked = " "; + $smileoffChecked = "checked "; + } + ?> + <input type="radio" name="var[show_smile]" value="yes" <?php echo $smileonChecked; ?>> yes + <input type="radio" name="var[show_smile]" value="no" <?php echo $smileoffChecked; ?>> no + </TD> + </TR> + <TR ALIGN="LEFT"> + <TD><FONT class="pn-title">Log IP adresses :</FONT><br><FONT class="pn-normal"><I> </I></FONT></TD> + <TD colspan="2"> + <?php + if (pnModGetVar('phpBB_14', 'log_ip') == "yes") + { + $logiponChecked = "checked"; + $logipoffChecked = " "; + } else { + $logiponChecked = " "; + $logipoffChecked = "checked "; + } + ?> + <input type="radio" name="var[log_ip]" value="yes" <?php echo $logiponChecked; ?>> yes + <input type="radio" name="var[log_ip]" value="no" <?php echo $logipoffChecked; ?>> no </TD> </TR> |