You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2006-06-28 22:51:48
|
Update of /cvsroot/mxbb/core/templates/subSilver/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv30529/templates/subSilver/admin Modified Files: mx_module_admin_body.tpl mx_modulecp_admin_body.tpl mx_pagecp_admin_body.tpl Log Message: a couple of JS checks if important form fields are filled out...still many to do ;) Index: mx_modulecp_admin_body.tpl =================================================================== RCS file: /cvsroot/mxbb/core/templates/subSilver/admin/mx_modulecp_admin_body.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** mx_modulecp_admin_body.tpl 5 Apr 2006 20:35:41 -0000 1.4 --- mx_modulecp_admin_body.tpl 28 Jun 2006 22:51:44 -0000 1.5 *************** *** 3,7 **** function handleError() { return true; ! } window.onerror = handleError; --- 3,7 ---- function handleError() { return true; ! } [...988 lines suppressed...] </table> </td> </tr> ! <!-- END function --> </table> --- 718,730 ---- </div> </td> ! </tr> ! <!-- Block PRIVATE Auth --> ! <!-- END block --> </table> </td> </tr> ! <!-- END function --> </table> Index: mx_pagecp_admin_body.tpl =================================================================== RCS file: /cvsroot/mxbb/core/templates/subSilver/admin/mx_pagecp_admin_body.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** mx_pagecp_admin_body.tpl 3 May 2006 09:17:29 -0000 1.7 --- mx_pagecp_admin_body.tpl 28 Jun 2006 22:51:44 -0000 1.8 *************** *** 217,220 **** --- 217,249 ---- } + function checkForm() { + formErrors = ''; + var is_selected = false; + + if (document.forms['DYNAMIC_LIST'].function_id.selectedIndex < 0) { + formErrors += "Select a function\r\n"; + } + if (document.forms['DYNAMIC_LIST'].block_id.selectedIndex < 0) { + formErrors += "Select a block\r\n"; + } + for (i=0, n=document.forms['DYNAMIC_LIST'].id.length; i<n; i++) { + if (document.forms['DYNAMIC_LIST'].id[i].checked) { + is_selected = true; + } + } + if (!is_selected) { + formErrors += "Select a page column\r\n"; + } + if (formErrors) { + alert(formErrors); + return false; + } else { + bbstyle(-1); + //formObj.preview.disabled = true; + //formObj.submit.disabled = true; + return true; + } + } + var oldOnLoadMenuACP = window.onload; *************** *** 777,781 **** <!-- BEGIN has_columns --> <!-- dynamic_select --> ! <form name="DYNAMIC_LIST" method="post" action="{S_ACTION}"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> --- 806,810 ---- <!-- BEGIN has_columns --> <!-- dynamic_select --> ! <form name="DYNAMIC_LIST" method="post" action="{S_ACTION}" onsubmit="return checkForm(this)"> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> Index: mx_module_admin_body.tpl =================================================================== RCS file: /cvsroot/mxbb/core/templates/subSilver/admin/mx_module_admin_body.tpl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mx_module_admin_body.tpl 5 Apr 2006 20:35:41 -0000 1.8 --- mx_module_admin_body.tpl 28 Jun 2006 22:51:44 -0000 1.9 *************** *** 58,83 **** var imageSCR = type+'image_'+cat_id; var strSubmitContent = ''; ! parentCatMode = 'adminModule_'; parentCat = parentCatMode + cat_id; ! currentCat = type + cat_id; ! currentStatus = menuCats[currentCat].status; queuedSteps = new Array(); cookieArray = new Array(); ! currentStep = 0; for( var forCat in menuCats ) { ! if( (init == 'true' && (menuCats[forCat].status == 'block') && menuCats[forCat].menu_mode == parentCatMode) || ! (init != 'true' && ( (menuCats[forCat].status == 'block') ))) { queuedSteps[currentStep++] = new queueStep(forCat, 'none'); menuCats[forCat].status = 'none'; ! forCatimage = menuCats[forCat].menu_mode+'image_'+menuCats[forCat].cat_id; if( document.images && document.images[forCatimage] ) --- 58,83 ---- var imageSCR = type+'image_'+cat_id; var strSubmitContent = ''; ! parentCatMode = 'adminModule_'; parentCat = parentCatMode + cat_id; ! currentCat = type + cat_id; ! currentStatus = menuCats[currentCat].status; queuedSteps = new Array(); cookieArray = new Array(); ! currentStep = 0; for( var forCat in menuCats ) { ! if( (init == 'true' && (menuCats[forCat].status == 'block') && menuCats[forCat].menu_mode == parentCatMode) || ! (init != 'true' && ( (menuCats[forCat].status == 'block') ))) { queuedSteps[currentStep++] = new queueStep(forCat, 'none'); menuCats[forCat].status = 'none'; ! forCatimage = menuCats[forCat].menu_mode+'image_'+menuCats[forCat].cat_id; if( document.images && document.images[forCatimage] ) *************** *** 87,97 **** } } ! if( currentStatus == 'none' ) { ! queuedSteps[currentStep++] = new queueStep(currentCat, 'block'); menuCats[currentCat].status = 'block'; ! if (currentCat == parentCat) { --- 87,97 ---- } } ! if( currentStatus == 'none' ) { ! queuedSteps[currentStep++] = new queueStep(currentCat, 'block'); menuCats[currentCat].status = 'block'; ! if (currentCat == parentCat) { *************** *** 103,111 **** ('{COOKIE_SECURE}' == '0') ? false : true); } ! if( document.images && document.images[imageSCR] ) { document.images[imageSCR].src = '{IMG_URL_CONTRACT}'; ! } } else --- 103,111 ---- ('{COOKIE_SECURE}' == '0') ? false : true); } ! if( document.images && document.images[imageSCR] ) { document.images[imageSCR].src = '{IMG_URL_CONTRACT}'; ! } } else *************** *** 115,135 **** ('{COOKIE_DOMAIN}' == '') ? null : '{COOKIE_DOMAIN}'); } ! for( var forCat in menuCats ) ! { if ( menuCats[forCat].status == 'block' ) { strSubmitContent += forCat + ','; } ! } // Remove trailing separator ! strSubmitContent = strSubmitContent.substr(0, strSubmitContent.length - 1); setCookie('{COOKIE_NAME}_admincp_blockstates', strSubmitContent, expdate, ('{COOKIE_PATH}' == '') ? null : '{COOKIE_PATH}', ('{COOKIE_DOMAIN}' == '') ? null : '{COOKIE_DOMAIN}', ! ('{COOKIE_SECURE}' == '0') ? false : true); ! currentStep = 0; setTimeout("execQueue();", execInterval); --- 115,135 ---- ('{COOKIE_DOMAIN}' == '') ? null : '{COOKIE_DOMAIN}'); } ! for( var forCat in menuCats ) ! { if ( menuCats[forCat].status == 'block' ) { strSubmitContent += forCat + ','; } ! } // Remove trailing separator ! strSubmitContent = strSubmitContent.substr(0, strSubmitContent.length - 1); setCookie('{COOKIE_NAME}_admincp_blockstates', strSubmitContent, expdate, ('{COOKIE_PATH}' == '') ? null : '{COOKIE_PATH}', ('{COOKIE_DOMAIN}' == '') ? null : '{COOKIE_DOMAIN}', ! ('{COOKIE_SECURE}' == '0') ? false : true); ! currentStep = 0; setTimeout("execQueue();", execInterval); *************** *** 150,154 **** cat_id = getCookie('{COOKIE_NAME}_adminModule_module_id'); } ! if( menuCats['adminModule_'+cat_id] ) { --- 150,154 ---- cat_id = getCookie('{COOKIE_NAME}_adminModule_module_id'); } ! if( menuCats['adminModule_'+cat_id] ) { *************** *** 157,161 **** } } ! if( oldOnLoadMenuACP ) { --- 157,161 ---- } } ! if( oldOnLoadMenuACP ) { *************** *** 163,167 **** } } ! var oldOnLoadMenuACP = window.onload; window.onload = doOnLoadMenuACP; --- 163,190 ---- } } ! ! function checkForm() { ! formErrors = ''; ! if (document.forms['post'].module_name.value.length < 2) { ! formErrors += "Fill out the module title\r\n"; ! } ! if (document.forms['post'].module_desc.value.length < 2) { ! formErrors += "Fill out the module description\r\n"; ! } ! if (document.forms['post'].module_path.value.length < 2) { ! formErrors += "Fill out the module path\r\n"; ! } ! ! if (formErrors) { ! alert(formErrors); ! return false; ! } else { ! bbstyle(-1); ! //formObj.preview.disabled = true; ! //formObj.submit.disabled = true; ! return true; ! } ! } ! var oldOnLoadMenuACP = window.onload; window.onload = doOnLoadMenuACP; *************** *** 177,181 **** <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> ! <td nowrap="nowrap" align="right"><span class="gensmall"><b>{L_QUICK_NAV}</b> {MODULE_SELECT_BOX} <input type="submit" value="{S_SUBMIT}" class="liteoption" /></span> --- 200,204 ---- <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> ! <td nowrap="nowrap" align="right"><span class="gensmall"><b>{L_QUICK_NAV}</b> {MODULE_SELECT_BOX} <input type="submit" value="{S_SUBMIT}" class="liteoption" /></span> *************** *** 186,190 **** <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline" align="center"> ! <tr> <td align="center" colspan="5">{RESULT_MESSAGE}</td> </tr> --- 209,213 ---- <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline" align="center"> ! <tr> <td align="center" colspan="5">{RESULT_MESSAGE}</td> </tr> *************** *** 192,212 **** <th class="thHead" colspan="5">{L_TITLE}</th> </tr> ! <tr> <td class="catBottom" colspan="5" align="center"> <form action="{S_ACTION}" method="post"> {S_MODULE_INSTALL_LIST}{S_HIDDEN_MODULE_INSTALL_FIELDS}<input class="mainoption" type="submit" name="import_pack" value="{L_IMPORT_PACK}"> ! </form> ! </td> ! </tr> <!-- BEGIN module --> ! <tr title="{L_TITLE}"> <td width="40%" class="catLeft" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModule_');"> <span class="cattitle"><img name="adminModule_image_{module.MODULE_ID}" src="{module.IMG_URL}" border="0" align="absmiddle"> <img src="{IMG_ICON_MODULE}" border="0" align="absmiddle"> {module.MODULE_TITLE}</span> <span class="gensmall">{module.MODULE_DESCRIPTION}</span><br /> <span class="gensmall"><i>{module.MODULE_VERSION}</i></span></td> <td width="15%" class="cat" align="center" valign="middle"> ! <!-- BEGIN settings --> <img src="{IMG_URL_EXPAND}" border="0" align="absmiddle"> <span class="cattitle"><a href="{module.U_MODULE}">{L_SETTING}</a></span> ! <!-- END settings --> </td> <td width="15%" class="cat" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleUpgrade_');"> ! <!-- BEGIN settings --> <img name="adminModuleUpgrade_image_{module.MODULE_ID}" src="{module.IMG_URL_UPGRADE}" border="0" align="absmiddle"> <span class="genmed">{L_UPGRADE_PACK}</span> <!-- END settings --> --- 215,235 ---- <th class="thHead" colspan="5">{L_TITLE}</th> </tr> ! <tr> <td class="catBottom" colspan="5" align="center"> <form action="{S_ACTION}" method="post"> {S_MODULE_INSTALL_LIST}{S_HIDDEN_MODULE_INSTALL_FIELDS}<input class="mainoption" type="submit" name="import_pack" value="{L_IMPORT_PACK}"> ! </form> ! </td> ! </tr> <!-- BEGIN module --> ! <tr title="{L_TITLE}"> <td width="40%" class="catLeft" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModule_');"> <span class="cattitle"><img name="adminModule_image_{module.MODULE_ID}" src="{module.IMG_URL}" border="0" align="absmiddle"> <img src="{IMG_ICON_MODULE}" border="0" align="absmiddle"> {module.MODULE_TITLE}</span> <span class="gensmall">{module.MODULE_DESCRIPTION}</span><br /> <span class="gensmall"><i>{module.MODULE_VERSION}</i></span></td> <td width="15%" class="cat" align="center" valign="middle"> ! <!-- BEGIN settings --> <img src="{IMG_URL_EXPAND}" border="0" align="absmiddle"> <span class="cattitle"><a href="{module.U_MODULE}">{L_SETTING}</a></span> ! <!-- END settings --> </td> <td width="15%" class="cat" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleUpgrade_');"> ! <!-- BEGIN settings --> <img name="adminModuleUpgrade_image_{module.MODULE_ID}" src="{module.IMG_URL_UPGRADE}" border="0" align="absmiddle"> <span class="genmed">{L_UPGRADE_PACK}</span> <!-- END settings --> *************** *** 215,236 **** <!-- BEGIN settings --> <img name="adminModuleExport_image_{module.MODULE_ID}" src="{module.IMG_URL_EXPORT}" border="0" align="absmiddle"> <span class="genmed">{L_EXPORT_PACK}</span> ! <!-- END settings --> </td> <td width="15%" class="catRight" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleDelete_');"> <!-- BEGIN settings --> <img name="adminModuleDelete_image_{module.MODULE_ID}" src="{module.IMG_URL_DELETE}" border="0" align="absmiddle"> <span class="genmed">{L_UNINSTALL}</span> ! <!-- END settings --> </td> ! </tr> <!-- Module Delete --> <tr> <td colspan="5" class="row1"> ! <div id="adminModuleDelete_{module.MODULE_ID}" style="display:{module.VISIBLE_DELETE};" class="genmed"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleDelete_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{L_UNINSTALL}</span></td> </tr> ! <tr> <td width="50%" align="center" colspan="2">{module.MESSAGE_DELETE}</td> </tr> --- 238,259 ---- <!-- BEGIN settings --> <img name="adminModuleExport_image_{module.MODULE_ID}" src="{module.IMG_URL_EXPORT}" border="0" align="absmiddle"> <span class="genmed">{L_EXPORT_PACK}</span> ! <!-- END settings --> </td> <td width="15%" class="catRight" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleDelete_');"> <!-- BEGIN settings --> <img name="adminModuleDelete_image_{module.MODULE_ID}" src="{module.IMG_URL_DELETE}" border="0" align="absmiddle"> <span class="genmed">{L_UNINSTALL}</span> ! <!-- END settings --> </td> ! </tr> <!-- Module Delete --> <tr> <td colspan="5" class="row1"> ! <div id="adminModuleDelete_{module.MODULE_ID}" style="display:{module.VISIBLE_DELETE};" class="genmed"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleDelete_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{L_UNINSTALL}</span></td> </tr> ! <tr> <td width="50%" align="center" colspan="2">{module.MESSAGE_DELETE}</td> </tr> *************** *** 239,253 **** </td> </tr> ! <!-- Module Delete --> ! <!-- Module Upgrade --> <tr> <td colspan="5" class="row1"> ! <div id="adminModuleUpgrade_{module.MODULE_ID}" style="display:{module.VISIBLE_UPGRADE};" class="genmed"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleUpgrade_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{L_UPGRADE_PACK}</span></td> </tr> ! <tr> <td width="50%" align="center" colspan="2">{module.MESSAGE_UPGRADE}</td> </tr> --- 262,276 ---- </td> </tr> ! <!-- Module Delete --> ! <!-- Module Upgrade --> <tr> <td colspan="5" class="row1"> ! <div id="adminModuleUpgrade_{module.MODULE_ID}" style="display:{module.VISIBLE_UPGRADE};" class="genmed"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleUpgrade_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{L_UPGRADE_PACK}</span></td> </tr> ! <tr> <td width="50%" align="center" colspan="2">{module.MESSAGE_UPGRADE}</td> </tr> *************** *** 256,270 **** </td> </tr> ! <!-- Module Upgrade --> ! <!-- Module Export --> <tr> <td colspan="5" class="row1"> ! <div id="adminModuleExport_{module.MODULE_ID}" style="display:{module.VISIBLE_EXPORT};" class="genmed"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleExport_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{L_EXPORT_PACK}</span></td> </tr> ! <tr> <td width="50%" align="center" colspan="2">{module.MESSAGE_EXPORT}</td> </tr> --- 279,293 ---- </td> </tr> ! <!-- Module Upgrade --> ! <!-- Module Export --> <tr> <td colspan="5" class="row1"> ! <div id="adminModuleExport_{module.MODULE_ID}" style="display:{module.VISIBLE_EXPORT};" class="genmed"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModuleExport_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{L_EXPORT_PACK}</span></td> </tr> ! <tr> <td width="50%" align="center" colspan="2">{module.MESSAGE_EXPORT}</td> </tr> *************** *** 274,313 **** </tr> <!-- Module Export --> ! <!-- Module Settings --> <tr> <td colspan="5" class="row1"> ! <div id="adminModule_{module.MODULE_ID}" style="display:{module.VISIBLE};" class="genmed"> ! <form action="{S_ACTION}" method="post"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModule_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{module.L_TITLE}</span></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_NAME}</td> <td ><input type="text" size="50" name="module_name" value="{module.E_MODULE_NAME}" class="post" /></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_DESC}</td> <td ><input type="text" size="50" name="module_desc" value="{module.E_MODULE_DESC}" class="post" /></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_PATH}</td> <td ><input type="text" size="50" name="module_path" value="{module.E_MODULE_PATH}" class="post" /></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_INCLUDE_ADMIN}</td> <td ><input type="checkbox" size="45" name="module_include_admin" value="1" {module.E_MODULE_INCLUDE_CHECK_OPT}/></td> </tr> ! <tr> <td class="row2" colspan="2" align="center">{module.S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{module.S_SUBMIT}" class="liteoption" /></td> </tr> </table> ! </form> </div> </td> </tr> ! <!-- Module Settings --> ! <!-- END module --> </table> --- 297,336 ---- </tr> <!-- Module Export --> ! <!-- Module Settings --> <tr> <td colspan="5" class="row1"> ! <div id="adminModule_{module.MODULE_ID}" style="display:{module.VISIBLE};" class="genmed"> ! <form action="{S_ACTION}" onsubmit="return checkForm(this)" name="post" method="post"> <table width="100%" cellpadding="1" cellspacing="2" border="0" align="center"> ! <tr> <td class="row2" colspan="2" align="center" style="cursor:pointer;cursor:hand;" onclick="onMenuCatClick('{module.MODULE_ID}','adminModule_');"><img src="{IMG_URL_CONTRACT}" border="0" align="absmiddle"> <span class="topictitle">{module.L_TITLE}</span></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_NAME}</td> <td ><input type="text" size="50" name="module_name" value="{module.E_MODULE_NAME}" class="post" /></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_DESC}</td> <td ><input type="text" size="50" name="module_desc" value="{module.E_MODULE_DESC}" class="post" /></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_PATH}</td> <td ><input type="text" size="50" name="module_path" value="{module.E_MODULE_PATH}" class="post" /></td> </tr> ! <tr> <td width="50%" align="right" >{L_MODULE_INCLUDE_ADMIN}</td> <td ><input type="checkbox" size="45" name="module_include_admin" value="1" {module.E_MODULE_INCLUDE_CHECK_OPT}/></td> </tr> ! <tr> <td class="row2" colspan="2" align="center">{module.S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{module.S_SUBMIT}" class="liteoption" /></td> </tr> </table> ! </form> </div> </td> </tr> ! <!-- Module Settings --> ! <!-- END module --> </table> |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:44:08
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1172/modules/mx_pafiledb/templates/subSilver Modified Files: pa_comment_posting.tpl Log Message: Fixes for comments preview Index: pa_comment_posting.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_comment_posting.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pa_comment_posting.tpl 5 Apr 2006 21:30:45 -0000 1.4 --- pa_comment_posting.tpl 28 Jun 2006 21:44:04 -0000 1.5 *************** *** 76,80 **** function checkForm() { ! formErrors = false; if (document.post.message.value.length < 2) { --- 76,80 ---- function checkForm() { ! formErrors = false; if (document.post.message.value.length < 2) { *************** *** 170,174 **** return; } ! // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { --- 170,174 ---- return; } ! // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { *************** *** 190,194 **** return; } else { // Open tags ! if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; --- 190,194 ---- return; } else { // Open tags ! if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; *************** *** 197,201 **** imageTag = false; } ! // Open tag txtarea.value += bbtags[bbnumber]; --- 197,201 ---- imageTag = false; } ! // Open tag txtarea.value += bbtags[bbnumber]; *************** *** 215,219 **** var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; ! if (selEnd == 1 || selEnd == 2) selEnd = selLength; --- 215,219 ---- var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; ! if (selEnd == 1 || selEnd == 2) selEnd = selLength; *************** *** 233,241 **** //--> </script> ! <script language="javascript"> ! <!-- ! var postmaxchars = {MESSAGE_LENGTH}; function checklength(theform) ! { if (postmaxchars != 0) { --- 233,241 ---- //--> </script> ! <script language="javascript"> ! <!-- ! var postmaxchars = {MESSAGE_LENGTH}; function checklength(theform) ! { if (postmaxchars != 0) { *************** *** 246,252 **** message = ""; } ! alert("{L_MSG_LENGTH_1}"+theform.message.value.length+"{L_MSG_LENGTH_2}\n\r\n\r{L_MSG_LENGTH_3}"+postmaxchars+"{L_MSG_LENGTH_4}\n\r\n\r{L_MSG_LENGTH_5}"+(postmaxchars-theform.message.value.length)+"{L_MSG_LENGTH_6}"); } ! //--> </script> --- 246,252 ---- message = ""; } ! alert("{L_MSG_LENGTH_1}"+theform.message.value.length+"{L_MSG_LENGTH_2}\n\r\n\r{L_MSG_LENGTH_3}"+postmaxchars+"{L_MSG_LENGTH_4}\n\r\n\r{L_MSG_LENGTH_5}"+(postmaxchars-theform.message.value.length)+"{L_MSG_LENGTH_6}"); } ! //--> </script> *************** *** 254,262 **** <!-- IF PREVIEW --> <table border="0" cellpadding="4" cellspacing="0" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25">{L_PREVIEW}</th> </tr> ! <tr> <td class="row1" valign="top"><span class="postbody">{PRE_COMMENT}</span></td> </tr> --- 254,263 ---- <!-- IF PREVIEW --> + <br /> <table border="0" cellpadding="4" cellspacing="0" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25">{L_PREVIEW}</th> </tr> ! <tr> <td class="row1" valign="top"><span class="postbody">{PRE_COMMENT}</span></td> </tr> *************** *** 267,271 **** <tr> <td valign="bottom"> ! <span class="nav"><a href="{U_DOWNLOAD_HOME}" class="nav">{DOWNLOAD}</a><!-- BEGIN navlinks --> » <a href="{navlinks.U_VIEW_CAT}" class="nav">{navlinks.CAT_NAME}</a><!-- END navlinks --> -> <a href="{U_FILE_NAME}" class="nav">{FILE_NAME}</a> » {L_COMMENT_ADD}</span> </td> </tr> --- 268,272 ---- <tr> <td valign="bottom"> ! <span class="nav"><a href="{U_DOWNLOAD_HOME}" class="nav">{DOWNLOAD}</a><!-- BEGIN navlinks --> » <a href="{navlinks.U_VIEW_CAT}" class="nav">{navlinks.CAT_NAME}</a><!-- END navlinks --> » <a href="{U_FILE_NAME}" class="nav">{FILE_NAME}</a> » {L_COMMENT_ADD}</span> </td> </tr> *************** *** 273,277 **** <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25"><b>{L_COMMENT_ADD}</b></th> </tr> --- 274,278 ---- <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25"><b>{L_COMMENT_ADD}</b></th> </tr> *************** *** 280,297 **** <td class="row2"><input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{TITLE}" /></span></td> </tr> ! <tr> ! <td class="row1" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr> <td><span class="gen"><b>{L_COMMENT}</b></span></td> </tr> ! <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> ! <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_EMOTICONS}</a></td> </tr> <!-- BEGIN smilies_row --> ! <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> --- 281,298 ---- <td class="row2"><input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{TITLE}" /></span></td> </tr> ! <tr> ! <td class="row1" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr> <td><span class="gen"><b>{L_COMMENT}</b></span></td> </tr> ! <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> ! <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_EMOTICONS}</a></td> </tr> <!-- BEGIN smilies_row --> ! <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> *************** *** 304,343 **** </table> </td> ! <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> <table width="450" border="0" cellspacing="0" cellpadding="2"> ! <tr align="center" valign="middle"> ! <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> ! <tr> ! <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> --- 305,344 ---- </table> </td> ! <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> <table width="450" border="0" cellspacing="0" cellpadding="2"> ! <tr align="center" valign="middle"> ! <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> ! <tr> ! <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> *************** *** 369,379 **** </td> </tr> ! <tr> ! <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> <tr> ! <td colspan="9" class="row2"><span class="gen"> <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{COMMENT}</textarea> </td> --- 370,380 ---- </td> </tr> ! <tr> ! <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> <tr> ! <td colspan="9" class="row2"><span class="gen"> <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{COMMENT}</textarea> </td> *************** *** 386,390 **** <td class="row2"><span class="gen">{L_COMMENT_EXPLAIN}<br /><a href="javascript:checklength(document.post);">{L_CHECK_MSG_LENGTH}</a></span></td> </tr> ! <tr> <td class="cat" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="submit" class="mainoption" value="{L_SUBMIT}" /></td> </form> --- 387,391 ---- <td class="row2"><span class="gen">{L_COMMENT_EXPLAIN}<br /><a href="javascript:checklength(document.post);">{L_CHECK_MSG_LENGTH}</a></span></td> </tr> ! <tr> <td class="cat" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="submit" class="mainoption" value="{L_SUBMIT}" /></td> </form> |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:44:07
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1172/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_post_comment.php Log Message: Fixes for comments preview Index: pa_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_post_comment.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** pa_post_comment.php 25 Jun 2006 21:55:56 -0000 1.16 --- pa_post_comment.php 28 Jun 2006 21:44:04 -0000 1.17 *************** *** 230,246 **** $preview_text = $mx_text->encode_preview($comment_body); ! if (!$kb_config['allow_images'] || !$kb_config['allow_links']) { ! $preview_text = $mx_kb_text_tools->remove_images_links( $preview_text, $kb_config['allow_images'], $kb_config['no_image_message'], $kb_config['allow_links'], $kb_config['no_link_message'] ); } ! $template->set_filenames( array( 'preview' => 'kb_post_preview.tpl' ) ); $pafiledb_template->assign_vars( array( 'L_PREVIEW' => $lang['Preview'], 'PREVIEW' => true, - 'COMMENT' => $preview_text, 'SUBJECT' => $preview_title, ! 'PRE_COMMENT' => $comments_text ) ); --- 230,245 ---- $preview_text = $mx_text->encode_preview($comment_body); ! if (!$pa_config['allow_images'] || !$pa_config['allow_links']) { ! $preview_text = $mx_pa_text_tools->remove_images_links( $preview_text, $pa_config['allow_images'], $pa_config['no_image_message'], $pa_config['allow_links'], $pa_config['no_link_message'] ); } ! //$pafiledb_template->set_filenames( array( 'preview' => 'pa_post_preview.tpl' ) ); $pafiledb_template->assign_vars( array( 'L_PREVIEW' => $lang['Preview'], 'PREVIEW' => true, 'SUBJECT' => $preview_title, ! 'PRE_COMMENT' => $preview_text ) ); *************** *** 259,263 **** } ! if ( $mx_request_vars->is_get('cid') ) { $hidden_form_fields = '<input type="hidden" name="action" value="post_comment"> --- 258,262 ---- } ! if ( $mx_request_vars->is_request('cid') ) { $hidden_form_fields = '<input type="hidden" name="action" value="post_comment"> |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:43:35
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv939/modules/mx_kb/templates/subSilver Modified Files: kb_comment_posting.tpl kb_post_preview.tpl Log Message: Fixes for comments preview Index: kb_post_preview.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_post_preview.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** kb_post_preview.tpl 5 Apr 2006 21:19:50 -0000 1.2 --- kb_post_preview.tpl 28 Jun 2006 21:43:32 -0000 1.3 *************** *** 1,16 **** <table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0"> ! <tr> <th height="25" class="thHead">{L_PREVIEW}</th> </tr> ! <tr> <td class="row1"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> ! <span class="postbody">{PREVIEW_MESSAGE}</span> </td> </tr> </table></td> </tr> ! <tr> <td class="spaceRow" height="1"><img src="{SPACER_IMG}" width="1" height="1" /></td> </tr> --- 1,16 ---- <table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0"> ! <tr> <th height="25" class="thHead">{L_PREVIEW}</th> </tr> ! <tr> <td class="row1"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> ! <span class="postbody">{PRE_COMMENT}</span> </td> </tr> </table></td> </tr> ! <tr> <td class="spaceRow" height="1"><img src="{SPACER_IMG}" width="1" height="1" /></td> </tr> Index: kb_comment_posting.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_comment_posting.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** kb_comment_posting.tpl 5 Apr 2006 21:19:50 -0000 1.2 --- kb_comment_posting.tpl 28 Jun 2006 21:43:32 -0000 1.3 *************** *** 76,80 **** function checkForm() { ! formErrors = false; if (document.post.message.value.length < 2) { --- 76,80 ---- function checkForm() { ! formErrors = false; if (document.post.message.value.length < 2) { *************** *** 170,174 **** return; } ! // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { --- 170,174 ---- return; } ! // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { *************** *** 190,194 **** return; } else { // Open tags ! if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; --- 190,194 ---- return; } else { // Open tags ! if (imageTag && (bbnumber != 14)) { // Close image tag before adding another txtarea.value += bbtags[15]; *************** *** 197,201 **** imageTag = false; } ! // Open tag txtarea.value += bbtags[bbnumber]; --- 197,201 ---- imageTag = false; } ! // Open tag txtarea.value += bbtags[bbnumber]; *************** *** 215,219 **** var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; ! if (selEnd == 1 || selEnd == 2) selEnd = selLength; --- 215,219 ---- var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; ! if (selEnd == 1 || selEnd == 2) selEnd = selLength; *************** *** 233,241 **** //--> </script> ! <script language="javascript"> ! <!-- ! var postmaxchars = {MESSAGE_LENGTH}; function checklength(theform) ! { if (postmaxchars != 0) { --- 233,241 ---- //--> </script> ! <script language="javascript"> ! <!-- ! var postmaxchars = {MESSAGE_LENGTH}; function checklength(theform) ! { if (postmaxchars != 0) { *************** *** 246,267 **** message = ""; } ! alert("{L_MSG_LENGTH_1}"+theform.message.value.length+"{L_MSG_LENGTH_2}\n\r\n\r{L_MSG_LENGTH_3}"+postmaxchars+"{L_MSG_LENGTH_4}\n\r\n\r{L_MSG_LENGTH_5}"+(postmaxchars-theform.message.value.length)+"{L_MSG_LENGTH_6}"); } ! //--> </script> <form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> ! <!-- IF PREVIEW --> <table border="0" cellpadding="4" cellspacing="0" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25">{L_PREVIEW}</th> </tr> ! <tr> <td class="row1" valign="top"><span class="postbody">{PRE_COMMENT}</span></td> </tr> </table> <br /> ! <!-- ENDIF --> <table width="100%" cellpadding="2" cellspacing="2"> <tr> --- 246,268 ---- message = ""; } ! alert("{L_MSG_LENGTH_1}"+theform.message.value.length+"{L_MSG_LENGTH_2}\n\r\n\r{L_MSG_LENGTH_3}"+postmaxchars+"{L_MSG_LENGTH_4}\n\r\n\r{L_MSG_LENGTH_5}"+(postmaxchars-theform.message.value.length)+"{L_MSG_LENGTH_6}"); } ! //--> </script> <form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> ! <!-- BEGIN preview --> ! <br /> <table border="0" cellpadding="4" cellspacing="0" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25">{L_PREVIEW}</th> </tr> ! <tr> <td class="row1" valign="top"><span class="postbody">{PRE_COMMENT}</span></td> </tr> </table> <br /> ! <!-- END preview --> <table width="100%" cellpadding="2" cellspacing="2"> <tr> *************** *** 273,277 **** <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25"><b>{L_COMMENT_ADD}</b></th> </tr> --- 274,278 ---- <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr> <th class="thHead" colspan="2" height="25"><b>{L_COMMENT_ADD}</b></th> </tr> *************** *** 280,297 **** <td class="row2"><input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{TITLE}" /></span></td> </tr> ! <tr> ! <td class="row1" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr> <td><span class="gen"><b>{L_COMMENT}</b></span></td> </tr> ! <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> ! <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_EMOTICONS}</a></td> </tr> <!-- BEGIN smilies_row --> ! <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> --- 281,298 ---- <td class="row2"><input type="text" name="subject" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{TITLE}" /></span></td> </tr> ! <tr> ! <td class="row1" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> ! <tr> <td><span class="gen"><b>{L_COMMENT}</b></span></td> </tr> ! <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> ! <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_EMOTICONS}</a></td> </tr> <!-- BEGIN smilies_row --> ! <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> *************** *** 304,343 **** </table> </td> ! <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> <table width="450" border="0" cellspacing="0" cellpadding="2"> ! <tr align="center" valign="middle"> ! <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> ! <tr> ! <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> --- 305,344 ---- </table> </td> ! <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> <table width="450" border="0" cellspacing="0" cellpadding="2"> ! <tr align="center" valign="middle"> ! <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> ! <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> ! <tr> ! <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: #FFFFFF " value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> *************** *** 369,379 **** </td> </tr> ! <tr> ! <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> <tr> ! <td colspan="9" class="row2"><span class="gen"> <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{COMMENT}</textarea> </td> --- 370,380 ---- </td> </tr> ! <tr> ! <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> <tr> ! <td colspan="9" class="row2"><span class="gen"> <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{COMMENT}</textarea> </td> *************** *** 386,390 **** <td class="row2"><span class="gen">{L_COMMENT_EXPLAIN}<br /><a href="javascript:checklength(document.post);">{L_CHECK_MSG_LENGTH}</a></span></td> </tr> ! <tr> <td class="cat" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="submit" class="mainoption" value="{L_SUBMIT}" /></td> </form> --- 387,391 ---- <td class="row2"><span class="gen">{L_COMMENT_EXPLAIN}<br /><a href="javascript:checklength(document.post);">{L_CHECK_MSG_LENGTH}</a></span></td> </tr> ! <tr> <td class="cat" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="submit" class="mainoption" value="{L_SUBMIT}" /></td> </form> |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:43:35
|
Update of /cvsroot/mxbb/mx_kb/kb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv939/modules/mx_kb/kb/modules Modified Files: kb_post_comment.php Log Message: Fixes for comments preview Index: kb_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/modules/kb_post_comment.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** kb_post_comment.php 25 Jun 2006 21:55:12 -0000 1.5 --- kb_post_comment.php 28 Jun 2006 21:43:32 -0000 1.6 *************** *** 234,245 **** } ! $template->set_filenames( array( 'preview' => 'kb_post_preview.tpl' ) ); $template->assign_vars( array( 'L_PREVIEW' => $lang['Preview'], 'PREVIEW' => true, - 'COMMENT' => $preview_text, 'SUBJECT' => $preview_title, ! 'PRE_COMMENT' => $comments_text ) ); --- 234,244 ---- } ! $template->assign_block_vars( 'preview', array() ); $template->assign_vars( array( 'L_PREVIEW' => $lang['Preview'], 'PREVIEW' => true, 'SUBJECT' => $preview_title, ! 'PRE_COMMENT' => $preview_text ) ); *************** *** 260,264 **** } ! if ( $mx_request_vars->is_get('cid') ) { $hidden_form_fields = '<input type="hidden" name="mode" value="post_comment"> --- 259,263 ---- } ! if ( $mx_request_vars->is_request('cid') ) { $hidden_form_fields = '<input type="hidden" name="mode" value="post_comment"> |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:18:17
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23690/modules/mx_kb/templates/subSilver Modified Files: kb_article_reader.tpl kb_rate_body.tpl Log Message: Further fixes for "print article view" Index: kb_rate_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_rate_body.tpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** kb_rate_body.tpl 5 Apr 2006 21:19:50 -0000 1.6 --- kb_rate_body.tpl 28 Jun 2006 21:18:14 -0000 1.7 *************** *** 10,17 **** <form action="{S_RATE_ACTION}" method="POST"> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> <th colspan="2" class="thHead"> {L_RATE}</th> </tr> ! <tr> <td class="row1" width="90%"><span class="genmed">{RATEINFO}</span></td> <td class="row2"> --- 10,17 ---- <form action="{S_RATE_ACTION}" method="POST"> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> <th colspan="2" class="thHead"> {L_RATE}</th> </tr> ! <tr> <td class="row1" width="90%"><span class="genmed">{RATEINFO}</span></td> <td class="row2"> *************** *** 33,37 **** </td> </tr> ! <tr> <td colspan="2" class="cat" align="center"><input class="liteoption" type="submit" value="{L_RATE}"> --- 33,37 ---- </td> </tr> ! <tr> <td colspan="2" class="cat" align="center"><input class="liteoption" type="submit" value="{L_RATE}"> Index: kb_article_reader.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_article_reader.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** kb_article_reader.tpl 28 Jun 2006 13:58:08 -0000 1.4 --- kb_article_reader.tpl 28 Jun 2006 21:18:14 -0000 1.5 *************** *** 15,30 **** </tr> <tr> ! <td class="row2" colspan="2"><hr> <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span> <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span> ! <span class="gensmall">{VIEWS}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_DESCRIPTION}</b> </span><span class="gensmall">{ARTICLE_DESCRIPTION}</span><br /> ! <!-- BEGIN switch_comments --> ! <span class="gensmall">{COMMENTS} {COMMENTS_IMG}</span><br /> ! <!-- END switch_comments --> ! <!-- BEGIN switch_ratings --> ! <span class="gensmall">{RATINGS} {RATE_IMG}</span><br /> ! <!-- END switch_ratings --> <hr> </td> --- 15,35 ---- </tr> <tr> ! <td class="row2" colspan="2"> ! <hr> <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span> <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span> ! <span class="gensmall">{VIEWS}<br /></span> ! <span class="gensmall"><b>{L_ARTICLE_DESCRIPTION}</b></span> <span class="gensmall">{ARTICLE_DESCRIPTION}<br /></span> ! <!--<span class="gensmall"><b>{L_ARTICLE_CATEGORY}</b></span> <span class="gensmall">{ARTICLE_CATEGORY}</span>--> ! <span class="gensmall"><b>{L_ARTICLE_TYPE}</b></span> <span class="gensmall">{ARTICLE_TYPE}</span> ! <!-- BEGIN custom_field --> ! <span class="gensmall"><br /><b>{custom_field.CUSTOM_NAME}</b> </span> <span class="gen">{custom_field.DATA} </span> ! <!-- END custom_field --> ! <!-- BEGIN switch_ratings --> ! <hr> ! <span class="gensmall"><b>{L_RATINGS}</b></span> <span class="gensmall">{switch_ratings.RATING} </span> ! <span class="gensmall">[<a href="{switch_ratings.U_RATE}" class="gensmall">{switch_ratings.L_RATE}</a>]</span> ! <!-- END switch_ratings --> <hr> </td> |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:18:17
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23690/modules/mx_kb/kb/includes Modified Files: functions.php kb_pages.php Log Message: Further fixes for "print article view" Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** functions.php 27 Jun 2006 18:13:45 -0000 1.7 --- functions.php 28 Jun 2006 21:18:14 -0000 1.8 *************** *** 1521,1526 **** $template->assign_vars( array( - 'U_PORTAL' => $mx_root_path, - 'L_PORTAL' => "<<", 'L_KB_TITLE' => $block_title, 'L_ADD_ARTICLE' => $add_article, --- 1521,1524 ---- *************** *** 1533,1540 **** 'L_MOST_POPULAR' => $lang['Top_most_popular'], 'U_LATEST' => append_sid( this_kb_mxurl( "mode=stats&stats=latest" ) ), ! 'L_LATEST' => $lang['Top_latest'], ! 'U_KB' => append_sid( this_kb_mxurl() ), ! 'L_KB' => $lang['KB_title'] ) ! ); if ( $kb_config['stats_list'] == 1 ) --- 1531,1536 ---- 'L_MOST_POPULAR' => $lang['Top_most_popular'], 'U_LATEST' => append_sid( this_kb_mxurl( "mode=stats&stats=latest" ) ), ! 'L_LATEST' => $lang['Top_latest'] ! )); if ( $kb_config['stats_list'] == 1 ) Index: kb_pages.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/kb_pages.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** kb_pages.php 28 Jun 2006 20:52:30 -0000 1.4 --- kb_pages.php 28 Jun 2006 21:18:14 -0000 1.5 *************** *** 36,40 **** // Includes // ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_constants.' . $phpEx ); // --- 36,40 ---- // Includes // ! include_once( $module_root_path . 'kb/includes/kb_constants.' . $phpEx ); // |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:18:17
|
Update of /cvsroot/mxbb/mx_kb/kb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23690/modules/mx_kb/kb/modules Modified Files: kb_rate.php Log Message: Further fixes for "print article view" Index: kb_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/modules/kb_rate.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** kb_rate.php 28 Jun 2006 13:58:08 -0000 1.4 --- kb_rate.php 28 Jun 2006 21:18:14 -0000 1.5 *************** *** 177,189 **** $template->assign_block_vars( "rate", array() ); ! // ! // Send variables to template (the associated *.tpl file) ! // ! /* ! $template->assign_vars( array( ! 'PATH' => $path_kb ! )); ! */ ! $template->assign_vars( array( 'S_RATE_ACTION' => append_sid( this_kb_mxurl( ) ), --- 177,181 ---- $template->assign_block_vars( "rate", array() ); ! $path_kb = $lang['Rate']; $template->assign_vars( array( 'S_RATE_ACTION' => append_sid( this_kb_mxurl( ) ), *************** *** 201,204 **** --- 193,197 ---- 'L_R10' => $lang['R10'], 'RATEINFO' => $rateinfo, + 'PATH' => '» ' . $path_kb, 'ID' => $article_id ) ); *************** *** 208,212 **** // assign var for top navigation // =================================================== ! $this->generate_navigation( $category_id ); // --- 201,205 ---- // assign var for top navigation // =================================================== ! //$this->generate_navigation( $category_id ); // |
|
From: Jon O. <jon...@us...> - 2006-06-28 21:18:17
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23690/modules/mx_kb Modified Files: kb.php kb_article_reader.php Log Message: Further fixes for "print article view" Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** kb.php 28 Jun 2006 20:52:30 -0000 1.34 --- kb.php 28 Jun 2006 21:18:14 -0000 1.35 *************** *** 36,40 **** define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = 'modules/mx_kb/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 36,40 ---- define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 49,53 **** if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb.php'); --- 49,53 ---- if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb.php'); *************** *** 190,193 **** --- 190,200 ---- } + $template->assign_vars( array( + 'U_PORTAL' => $mx_root_path, + 'L_PORTAL' => "<<", + 'U_KB' => append_sid( this_kb_mxurl() ), + 'L_KB' => $lang['KB_title'] ) + ); + $template->pparse( 'body' ); Index: kb_article_reader.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_article_reader.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** kb_article_reader.php 28 Jun 2006 20:52:30 -0000 1.17 --- kb_article_reader.php 28 Jun 2006 21:18:14 -0000 1.18 *************** *** 36,40 **** define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = 'modules/mx_kb/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 36,40 ---- define( 'IN_PORTAL', true ); $mx_root_path = './../../'; ! $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 49,53 **** if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb_article_reader.php'); --- 49,53 ---- if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); $mx_get_page = new kb_pages(); $mx_get_page->init('kb_article_reader.php'); *************** *** 186,189 **** --- 186,196 ---- } + $template->assign_vars( array( + 'U_PORTAL' => $mx_root_path, + 'L_PORTAL' => "<<", + 'U_KB' => append_sid( this_kb_mxurl() ), + 'L_KB' => $lang['KB_title'] ) + ); + $template->pparse( 'body' ); |
|
From: Jon O. <jon...@us...> - 2006-06-28 20:52:36
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11223/modules/mx_kb/kb/includes Modified Files: kb_constants.php kb_pages.php Log Message: Fixes for new last_article block new redirect class for direct links Index: kb_pages.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/kb_pages.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** kb_pages.php 7 Jun 2006 20:28:54 -0000 1.3 --- kb_pages.php 28 Jun 2006 20:52:30 -0000 1.4 *************** *** 14,156 **** } ! if ( MXBB_27x ) { ! $page_id = get_page_id( 'kb_article_reader.php', true ); ! if ( !$page_id ) ! { ! $page_id = get_page_id( 'kb.php', true ); ! } ! if ( !empty( $page_id ) ) ! { ! $kb_pages = $page_id; ! $kb_error = false; ! } ! else ! { ! $kb_error = true; ! } ! // ! // Start initial var setup ! // ! $cat_id = $article_id = ''; ! if ( isset( $HTTP_GET_VARS['cat'] ) || isset( $HTTP_POST_VARS['cat'] ) ) ! { ! $cat_id = ( isset( $HTTP_GET_VARS['cat'] ) ) ? intval( $HTTP_GET_VARS['cat'] ) : intval( $HTTP_POST_VARS['cat'] ); ! } ! else if ( isset( $HTTP_GET_VARS['k'] ) || isset( $HTTP_POST_VARS['k'] ) ) ! { ! $article_id = ( isset( $HTTP_GET_VARS['k'] ) ) ? intval( $HTTP_GET_VARS['k'] ) : intval( $HTTP_POST_VARS['k'] ); ! } ! } ! else ! { ! // ! // Note: This piece of code snippet is somewhat ugly and needs cleaning up...still it works... ! // What it does? ! // Well if given a direct kb article link, it finds on what portal page the kb block is located. ! // Since we can have different kb blocks on different portal pages displaying different kb categories/articles, this check is needed ;) ! // Oh, do not blame markus for this code ;) ! // ! if ( empty( $_SESSION['kb_setup'] ) ) { ! $news_setup = array(); ! $sql = "SELECT col.page_id, blk.block_id, sys.parameter_value, fnc.function_file ! FROM " . COLUMN_BLOCK_TABLE . " bct, ! " . COLUMN_TABLE . " col, ! " . BLOCK_TABLE . " blk, ! " . BLOCK_SYSTEM_PARAMETER_TABLE . " sys, ! " . FUNCTION_TABLE . " fnc, ! " . PARAMETER_TABLE . " par ! WHERE col.column_id = bct.column_id ! AND blk.function_id = fnc.function_id ! AND par.function_id = fnc.function_id ! AND blk.block_id = bct.block_id ! AND blk.block_id = sys.block_id ! AND par.parameter_name = 'kb_type_select' ! ORDER BY page_id, block_id"; ! if ( !$kb_result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $kb_rows = $db->sql_fetchrow( $kb_result ) ) { ! $page_id = $kb_rows['page_id']; ! $block_id = $kb_rows['block_id']; ! $kb_select_par = $kb_rows['parameter_value']; ! // Extract 'what posts to view info', the cool Array ;) ! $kb_type_select_data = ( !empty( $kb_select_par ) ) ? unserialize($kb_select_par) : array(); ! $kb_config['news_mode_operate'] = true; ! if ( is_array($kb_type_select_data) ) { ! $news_setup[$page_id] = $kb_type_select_data; ! $news_mode[$page_id] = $kb_rows['function_file']; } ! } ! $page_to_kb = array(); ! while ( list( $page_idd, $news_setup_roww ) = each( $news_setup ) ) ! { ! while ( list( $cat_idd, $news_forum_roww ) = each( $news_setup_roww ) ) { ! if ( $news_forum_roww['forum_news'] == 1 ) ! { ! $page_to_kb[$cat_idd] = ( empty( $page_to_kb[$cat_idd] ) || $news_mode[$page_idd] == 'kb_article_reader.php' ) ? $page_idd : $page_to_kb[$cat_idd]; ! } } ! } ! $_SESSION['kb_setup'] = $page_to_kb; ! } ! // ! // Start initial var setup ! // ! $cat_id = $article_id = $sql = ''; ! if ( isset( $HTTP_GET_VARS['cat'] ) || isset( $HTTP_POST_VARS['cat'] ) ) ! { ! $cat_id = ( isset( $HTTP_GET_VARS['cat'] ) ) ? intval( $HTTP_GET_VARS['cat'] ) : intval( $HTTP_POST_VARS['cat'] ); ! } ! else if ( isset( $HTTP_GET_VARS['k'] ) || isset( $HTTP_POST_VARS['k'] ) ) ! { ! $article_id = ( isset( $HTTP_GET_VARS['k'] ) ) ? intval( $HTTP_GET_VARS['k'] ) : intval( $HTTP_POST_VARS['k'] ); ! $sql = "SELECT article_category_id ! FROM " . KB_ARTICLES_TABLE . " ! WHERE article_id = $article_id"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "no info - error", '', __LINE__, __FILE__, $sql ); ! } ! if ( !( $row = $db->sql_fetchrow( $result ) ) ) ! { ! //mx_message_die( GENERAL_MESSAGE, 'article_not_exist' ); ! } ! $cat_id = $row['article_category_id']; ! } ! if ( !empty($cat_id) ) ! { ! $kb_pages = $_SESSION['kb_setup'][$cat_id]; ! $kb_error = false; ! } ! else ! { ! $kb_error = true; } } --- 14,176 ---- } ! class kb_pages { ! var $target_file = 'kb.php'; ! var $phpbb_block_map = array(); ! var $cache_key = '_pagemap_kb'; ! var $get_cat = 'cat'; ! var $get_item = 'k'; ! var $cat_id = 0; ! var $item_id = 0; ! var $page_id = ''; // To be used externally (return) ! var $error = false; // To be used externally (return) ! function init($target_file) { ! global $db, $mx_cache, $mx_root_path, $module_root_path, $phpEx, $mx_table_prefix; ! // ! // Includes ! // ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_constants.' . $phpEx ); ! // ! // General init ! // ! $this->target_file = $target_file; ! $this->page_id = ''; ! $this->phpbb_block_map = array(); ! $this->cache_key = '_pagemap_kb_' . $this->target_file; ! if ( MXBB_27x ) { ! // ! // Simple usage, for old mxBB versions ! // ! $this->page_id = get_page_id( $this->target_file, true ); ! if ( !$this->page_id ) ! { ! $this->page_id = get_page_id( 'kb.php', true ); ! } ! $this->error = !$this->page_id ? true : false; ! // ! // Start initial var setup ! // ! $this->cat_id = $this->item_id = ''; + if ( isset( $_GET[$this->get_cat] ) || isset( $_POST[$this->get_cat] ) ) + { + $this->cat_id = ( isset( $_GET[$this->get_cat] ) ) ? intval( $_GET[$this->get_cat] ) : intval( $_POST[$this->get_cat] ); + } + else if ( isset( $_GET[$this->get_item] ) || isset( $_POST[$this->get_item] ) ) + { + $this->item_id = ( isset( $_GET[$this->get_item] ) ) ? intval( $_GET[$this->get_item] ) : intval( $_POST[$this->get_item] ); + } + } + else + { + // + // Note: This piece of code snippet is somewhat ugly and needs cleaning up...still it works... + // What it does? + // Well if given a direct kb article link, it finds on what portal page the kb block is located. + // Since we can have different kb blocks on different portal pages displaying different kb categories/articles, this check is needed ;) + // ! // ! // Try to reuse results. ! // ! if ( $mx_cache->_exists( $this->cache_key ) ) ! { ! $this->phpbb_block_map = unserialize( $mx_cache->get( $this->cache_key ) ); ! } ! else ! { ! // ! // Query to find all mappings between article categories and portal pages ! // ! $sql = "SELECT col.page_id, blk.block_id, sys.parameter_value, fnc.function_file ! FROM " . COLUMN_BLOCK_TABLE . " bct, ! " . COLUMN_TABLE . " col, ! " . BLOCK_TABLE . " blk, ! " . BLOCK_SYSTEM_PARAMETER_TABLE . " sys, ! " . FUNCTION_TABLE . " fnc, ! " . PARAMETER_TABLE . " par ! WHERE col.column_id = bct.column_id ! AND blk.function_id = fnc.function_id ! AND par.function_id = fnc.function_id ! AND blk.block_id = bct.block_id ! AND blk.block_id = sys.block_id ! AND par.parameter_type = 'kb_type_select' ! AND fnc.function_file = '".$this->target_file."' ! ORDER BY page_id, block_id"; ! if ( !$phpbb_result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql ); ! } ! ! while ( $phpbb_rows = $db->sql_fetchrow( $phpbb_result ) ) ! { ! $phpbb_type_select_data = ( !empty( $phpbb_rows['parameter_value'] ) ) ? unserialize($phpbb_rows['parameter_value']) : array(); ! ! if (is_array($phpbb_type_select_data)) { ! foreach ($phpbb_type_select_data as $forum_id => $value) ! { ! if ($value == 1) ! { ! $this->phpbb_block_map[$forum_id] = $phpbb_rows['page_id']; ! } ! } } + } + $db->sql_freeresult($result); ! $mx_cache->put( $this->cache_key, serialize($this->phpbb_block_map) ); ! } ! // ! // Start initial var setup ! // ! $this->cat_id = $this->item_id = $sql = ''; ! if ( isset( $_GET[$this->get_cat] ) || isset( $_POST[$this->get_cat] ) ) { ! $this->cat_id = ( isset( $_GET[$this->get_cat] ) ) ? intval( $_GET[$this->get_cat] ) : intval( $_POST[$this->get_cat] ); } + else if ( isset( $_GET[$this->get_item] ) || isset( $_POST[$this->get_item] ) ) + { + $this->item_id = ( isset( $_GET[$this->get_item] ) ) ? intval( $_GET[$this->get_item] ) : intval( $_POST[$this->get_item] ); ! $sql = "SELECT article_category_id ! FROM " . KB_ARTICLES_TABLE . " ! WHERE article_id = $this->item_id"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "no info - error", '', __LINE__, __FILE__, $sql ); ! } ! $this->cat_id = $row['article_category_id']; ! } ! $this->page_id = $this->phpbb_block_map[$this->cat_id]; ! if (!$this->page_id) ! { ! $this->page_id = get_page_id( $this->target_file, true ); ! if ( !$this->page_id ) ! { ! $this->page_id = get_page_id( 'kb.php', true ); ! } ! } ! $this->error = !$this->page_id ? true : false; ! } } } Index: kb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/kb_constants.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** kb_constants.php 28 Jun 2006 13:58:08 -0000 1.6 --- kb_constants.php 28 Jun 2006 20:52:30 -0000 1.7 *************** *** 61,65 **** if ( !MXBB_MODULE || MXBB_27x ) { - echo('d'); $kb_module_version = "Knowledge Base MOD v. 2.0.x"; $kb_module_author = "Haplo/Jon"; --- 61,64 ---- *************** *** 68,72 **** else { - if (is_object($mx_page)) { --- 67,70 ---- |
|
From: Jon O. <jon...@us...> - 2006-06-28 20:52:36
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11223/modules/mx_kb Modified Files: kb.php kb_article_reader.php kb_last_article.php Log Message: Fixes for new last_article block new redirect class for direct links Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** kb.php 28 Jun 2006 13:58:07 -0000 1.33 --- kb.php 28 Jun 2006 20:52:30 -0000 1.34 *************** *** 35,39 **** { define( 'IN_PORTAL', true ); ! $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); --- 35,41 ---- { define( 'IN_PORTAL', true ); ! $mx_root_path = './../../'; ! $module_root_path = 'modules/mx_kb/'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); *************** *** 47,66 **** if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $module_root_path . 'includes/kb_constants.' . $phpEx ); ! include_once( $module_root_path . 'includes/kb_pages.' . $phpEx ); $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; $url = ''; ! if ( empty( $article_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $kb_pages . '&mode=cat&cat=' . $cat_id; } ! else if ( !empty( $article_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $kb_pages . '&mode=article&k=' . $article_id; } ! if ( !empty( $url ) && !$kb_error ) { if ( !empty( $db ) ) --- 49,69 ---- if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); ! $mx_get_page = new kb_pages(); ! $mx_get_page->init('kb.php'); $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; $url = ''; ! if ( empty( $mx_get_page->item_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=cat&cat=' . $mx_get_page->cat_id; } ! else if ( !empty( $mx_get_page->item_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=article&k=' . $mx_get_page->item_id; } ! if ( !empty( $url ) && !$mx_get_page->error ) { if ( !empty( $db ) ) *************** *** 97,100 **** --- 100,108 ---- else { + if( !defined('IN_PORTAL') || !is_object($mx_block)) + { + die("Hacking attempt"); + } + define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); Index: kb_last_article.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_last_article.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** kb_last_article.php 28 Jun 2006 13:58:07 -0000 1.1 --- kb_last_article.php 28 Jun 2006 20:52:30 -0000 1.2 *************** *** 40,44 **** $align = $mx_block->get_parameters( 'Last_Article_Align' ); $display_forum = $mx_block->get_parameters( 'Last_Article_Display_Cat' ); ! $forum_lst_msg = $mx_block->get_parameters( 'Last_Article_Cat' ); if( empty($PostNumber) ) $PostNumber = 5; --- 40,50 ---- $align = $mx_block->get_parameters( 'Last_Article_Align' ); $display_forum = $mx_block->get_parameters( 'Last_Article_Display_Cat' ); ! ! // ! // Temp rewrite for getting KB categories ! // ! $kb_last_article_cat_var = $mx_block->get_parameters( 'Last_Article_Cat' ); ! $kb_last_article_cat_data = ( !empty( $kb_last_article_cat_var ) ) ? unserialize( $kb_last_article_cat_var ) : array(); ! $forum_lst_msg = count($kb_last_article_cat_data) > 0 ? implode(',', $kb_last_article_cat_data) : ''; if( empty($PostNumber) ) $PostNumber = 5; *************** *** 48,51 **** --- 54,60 ---- $display_icon_view = $mx_block->get_parameters( 'Last_Article_Display_Icon_View' ); + $kb_article_mode = $mx_block->get_parameters( 'Last_Article_Mode' ); + $kb_block_target = $kb_article_mode == 'KB_Reader' ? 'kb_article_reader.' : 'kb.'; + // // no limit, last day, 2 days, 3 days, week, 2 weeks, 3 weeks, month, 2 months, 3 months, 6 months, i year, *************** *** 196,200 **** $message = $postrow[$row_count]['article_title']; ! $url = append_sid(PHPBB_URL . 'viewtopic.php?t=' . $postrow[$row_count]['article_id'] ); $folder = $images['kb_last_article_folder']; --- 205,209 ---- $message = $postrow[$row_count]['article_title']; ! $url = append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=article&k=" . $postrow[$row_count]['article_id']); $folder = $images['kb_last_article_folder']; *************** *** 256,270 **** } ! $forum_url = append_sid(PHPBB_URL . 'viewforum.php?f=' . $postrow[$row_count]['article_id']); } else { $forum_name = ''; - $forum_url = ''; } if ( $display_icon_view == "TRUE" ) { ! $last_post_url = '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$row_count]['topic_last_post_id']) . '#' . $postrow[$row_count]['topic_last_post_id'] . '"><img src="' . $images['kb_icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; } else --- 265,279 ---- } ! $forum_name = $kb_article_mode != 'KB_Reader' ? '<a href="' . append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=cat&cat=" . $postrow[$row_count]['article_category_id']) . '" target="'.$target.'" class="gensmall">'.$forum_name.'</a>' : $forum_name; ! } else { $forum_name = ''; } if ( $display_icon_view == "TRUE" ) { ! $last_post_url = '<a href="' . append_sid($mx_root_path . $module_root_path . $kb_block_target . $phpEx . "?mode=article&k=" . $postrow[$row_count]['article_id']) . '"><img src="' . $images['kb_icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; } else *************** *** 282,286 **** 'FORUM_NAME_ALT' => $forum_name_alt, 'U_LAST_MSG' => $url, - 'U_FORUM' => $forum_url, 'LAST_POST_IMG' => $last_post_url, 'FOLDER_IMG' => $folder_image, --- 291,294 ---- Index: kb_article_reader.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_article_reader.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** kb_article_reader.php 28 Jun 2006 13:58:07 -0000 1.16 --- kb_article_reader.php 28 Jun 2006 20:52:30 -0000 1.17 *************** *** 35,39 **** { define( 'IN_PORTAL', true ); ! $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); --- 35,41 ---- { define( 'IN_PORTAL', true ); ! $mx_root_path = './../../'; ! $module_root_path = 'modules/mx_kb/'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); *************** *** 47,66 **** if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $module_root_path . 'includes/kb_constants.' . $phpEx ); ! include_once( $module_root_path . 'includes/kb_pages.' . $phpEx ); $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; $url = ''; ! if ( empty( $article_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $kb_pages . '&mode=cat&cat=' . $cat_id; } ! else if ( !empty( $article_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $kb_pages . '&mode=article&k=' . $article_id; } ! if ( !empty( $url ) && !$kb_error ) { if ( !empty( $db ) ) --- 49,69 ---- if ( !isset( $HTTP_GET_VARS['print'] ) ) { ! include_once( $mx_root_path . $module_root_path . 'kb/includes/kb_pages.' . $phpEx ); ! $mx_get_page = new kb_pages(); ! $mx_get_page->init('kb_article_reader.php'); $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; $url = ''; ! if ( empty( $mx_get_page->item_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=cat&cat=' . $mx_get_page->cat_id; } ! else if ( !empty( $mx_get_page->item_id ) ) { ! $url = PORTAL_URL . 'index.php?page=' . $mx_get_page->page_id . '&mode=article&k=' . $mx_get_page->item_id; } ! if ( !empty( $url ) && !$mx_get_page->error ) { if ( !empty( $db ) ) *************** *** 97,100 **** --- 100,108 ---- else { + if( !defined('IN_PORTAL') || !is_object($mx_block)) + { + die("Hacking attempt"); + } + define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); |
|
From: Jon O. <jon...@us...> - 2006-06-28 20:52:36
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11223/modules/mx_kb/templates/subSilver Modified Files: kb_last_article.tpl Log Message: Fixes for new last_article block new redirect class for direct links Index: kb_last_article.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_last_article.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** kb_last_article.tpl 28 Jun 2006 13:58:08 -0000 1.1 --- kb_last_article.tpl 28 Jun 2006 20:52:30 -0000 1.2 *************** *** 17,21 **** </span><br /> <span class="gensmall"> ! <a href="{msg_row.U_FORUM}" target="{U_TARGET}" title="{msg_row.FORUM_NAME_ALT}" class="gensmall">{msg_row.FORUM_NAME}</a> </span> <div align="right"> --- 17,21 ---- </span><br /> <span class="gensmall"> ! {msg_row.FORUM_NAME} </span> <div align="right"> *************** *** 23,27 **** {msg_row.LAST_MSG_DATE} </span> ! <span class="gensmall" nowrap="nowrap"> {msg_row.TOPIC_AUTHOR} {msg_row.LAST_POST_AUTHOR}{msg_row.LAST_POST_IMG} </span> --- 23,27 ---- {msg_row.LAST_MSG_DATE} </span> ! <span class="gensmall" nowrap="nowrap"> {msg_row.TOPIC_AUTHOR} {msg_row.LAST_POST_AUTHOR}{msg_row.LAST_POST_IMG} </span> |
|
From: Jon O. <jon...@us...> - 2006-06-28 20:52:36
|
Update of /cvsroot/mxbb/mx_kb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv11223/modules/mx_kb/admin Modified Files: mx_module_defs.php Log Message: Fixes for new last_article block new redirect class for direct links Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/mx_module_defs.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mx_module_defs.php 17 Jun 2006 20:11:23 -0000 1.10 --- mx_module_defs.php 28 Jun 2006 20:52:30 -0000 1.11 *************** *** 162,166 **** $template->pparse('parameter'); - } } --- 162,165 ---- |
|
From: Jon O. <jon...@us...> - 2006-06-28 20:51:24
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10698/includes Modified Files: mx_functions_core.php Log Message: Minor fixes... Fix for module parameter Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** mx_functions_core.php 17 Jun 2006 20:09:07 -0000 1.31 --- mx_functions_core.php 28 Jun 2006 20:51:20 -0000 1.32 *************** *** 2736,2740 **** case AUTH_MOD: ! $auth_user[$auth_label[$i]] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($this->info['auth_moderator_group']) || $is_admin : 0; $auth_user[$auth_label[$i] . '_type'] = $lang['Auth_Moderators']; break; --- 2736,2740 ---- case AUTH_MOD: ! $auth_user[$auth_label[$i]] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($this->info['page_auth_moderator_group']) || $is_admin : 0; $auth_user[$auth_label[$i] . '_type'] = $lang['Auth_Moderators']; break; *************** *** 2753,2757 **** // // Is user a moderator? ! $auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($this->info['auth_moderator_group']) || $is_admin : 0; return $auth_user; --- 2753,2757 ---- // // Is user a moderator? ! $auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($this->info['page_auth_moderator_group']) || $is_admin : 0; return $auth_user; |
|
From: Jon O. <jon...@us...> - 2006-06-28 13:58:18
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32691/modules/mx_kb/templates/subSilver Modified Files: kb_article_body.tpl kb_article_reader.tpl subSilver.cfg Added Files: kb_last_article.tpl Log Message: added a new "last article" block Index: subSilver.cfg =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/subSilver.cfg,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** subSilver.cfg 5 Apr 2006 21:19:50 -0000 1.1 --- subSilver.cfg 28 Jun 2006 13:58:08 -0000 1.2 *************** *** 14,19 **** // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If ! // that language isn't available it will default to english. ! // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // --- 14,19 ---- // the {LANG} place holder is available. This will be replaced // with xxx where xxx is the users selected language. If ! // that language isn't available it will default to english. ! // Therefore you MUST ensure you have at least a english // directory if you choose to localise your template // *************** *** 54,56 **** --- 54,62 ---- $mx_images['kb_folder_announce'] = $images['folder_announce']; $mx_images['kb_icon_newest_reply'] = $images['icon_newest_reply']; + + // + // Last Article block + // + $mx_images['kb_last_article_folder'] = $images['folder']; + $mx_images['kb_icon_latest_reply'] = $images['icon_latest_reply']; ?> \ No newline at end of file Index: kb_article_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_article_body.tpl,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** kb_article_body.tpl 7 Jun 2006 20:28:54 -0000 1.17 --- kb_article_body.tpl 28 Jun 2006 13:58:08 -0000 1.18 *************** *** 28,34 **** <span class="gensmall">[<a href="{switch_ratings.U_RATE}" class="gensmall">{switch_ratings.L_RATE}</a>]</span> <!-- END switch_ratings --> - - - </td> </tr> --- 28,31 ---- --- NEW FILE: kb_last_article.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <!-- BEGIN no_row --> <tr> <td class="row1" align="left" colspan="2">{no_row.L_NO_ITEMS}</td> </tr> <!-- END no_row --> <!-- BEGIN msg_row --> <tr> <td class="row2" align="center"> <span class="cattitle"> <img src="{msg_row.FOLDER_IMG}" width="19" height="18" alt="{msg_row.L_TOPIC_FOLDER_ALT}" title="{msg_row.L_TOPIC_FOLDER_ALT}" /> </span> </td> <td class="row1" align="{U_ALIGN}"> <span class="genmed"> <b><a href="{msg_row.U_LAST_MSG}" target="{U_TARGET}" title="{msg_row.LAST_MSG_ALT}" class="genmed">{msg_row.LAST_MSG}</a></b> </span><br /> <span class="gensmall"> <a href="{msg_row.U_FORUM}" target="{U_TARGET}" title="{msg_row.FORUM_NAME_ALT}" class="gensmall">{msg_row.FORUM_NAME}</a> </span> <div align="right"> <span class="gensmall" nowrap="nowrap"> {msg_row.LAST_MSG_DATE} </span> <span class="gensmall" nowrap="nowrap"> {msg_row.TOPIC_AUTHOR} {msg_row.LAST_POST_AUTHOR}{msg_row.LAST_POST_IMG} </span> </div> </td> </tr> <!-- END msg_row --> <tr valign="middle"> <td align="right" valign="top" nowrap="nowrap" colspan="2" height="28" class="cat"><span class="gensmall">{PAGINATION}</span></td> </tr> </table> Index: kb_article_reader.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/kb_article_reader.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** kb_article_reader.tpl 5 Apr 2006 21:19:50 -0000 1.3 --- kb_article_reader.tpl 28 Jun 2006 13:58:08 -0000 1.4 *************** *** 1,107 **** ! <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> ! <tr> <td class="row1" wrap="wrap"> ! <span class="maintitle"style="font-size: 9pt;">{ARTICLE_TITLE}</span> </td> ! <td class="row1" align="right" class="nav"> ! <a href="{U_PRINT}" class="nav">{L_PRINT}</a> </td> ! </tr> ! <tr> ! <td class="row2" colspan="2"><hr> ! <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span> ! <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span> ! <span class="gensmall">{VIEWS}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_DESCRIPTION}</b> </span><span class="gensmall">{ARTICLE_DESCRIPTION}</span><br /> ! ! <!-- BEGIN switch_comments --> ! <span class="gensmall">{COMMENTS} {COMMENTS_IMG}</span><br /> ! <!-- END switch_comments --> ! <!-- BEGIN switch_ratings --> ! <span class="gensmall">{RATINGS} {RATE_IMG}</span><br /> ! <!-- END switch_ratings --> ! <hr></td> ! </tr> ! <!-- BEGIN switch_toc --> ! <tr> ! <td class="row1" colspan="2" align="left"><br /><span class="maintitle">{L_TOC}</span><br /><br /> ! <span class="nav"> ! <!-- BEGIN pages --> ! {switch_toc.pages.TOC_ITEM} ! <!-- END pages --> ! </span> ! </td> ! </tr> ! <!-- END switch_toc --> ! <tr> ! <td class="row1" colspan="2" wrap="wrap"><span class="postbody">{ARTICLE_TEXT}</span></td> ! </tr> ! <!-- BEGIN switch_pages --> ! <tr> ! <td class="row1" colspan="2" align="center"><span class="nav">{L_GOTO_PAGE} ! <!-- BEGIN pages --> ! {switch_pages.pages.PAGE_LINK} ! <!-- END pages --> ! </span></td> ! </tr> <!-- END switch_pages --> - <!-- - <tr> - <td class="cat" colspan="2" valign="middle" align="center"><span class="cattitle"> {EDIT_IMG}</span> </td> - </tr> - --> </table> ! <!-- BEGIN switch_comments_show --> <br /> ! <table width="100%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> ! <tr> ! <th class="thTop" colspan="2"> {L_COMMENTS} </th> ! </tr> ! ! ! <!-- END switch_comments_show --> ! <!-- BEGIN postrow --> ! <tr> ! <td class="row1" width="100%" height="28" valign="top" colspan="2"> ! <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td width="100%"><span class="genmed"><b>{postrow.POSTER_NAME}</b></span><span class="postdetails">{L_POSTED}: {postrow.POST_DATE}<span class="gen"> </span> {L_POST_SUBJECT} {postrow.POST_SUBJECT}</span></td> ! </tr> ! <tr> ! <td ><hr /></td> ! </tr> ! <tr> ! <td ><span class="postbody">{postrow.MESSAGE}</span></td> ! </tr> ! </table></td> ! </tr> ! <tr> ! <td class="spaceRow" colspan="2" height="1"><img src="{SPACER_IMG}" alt="" width="1" height="1" /></td> ! </tr> ! <!-- END postrow --> ! ! ! <!-- BEGIN switch_comments_show --> ! </table> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> ! <td><span class="nav">{PAGE_NUMBER}</span></td> ! <td align="right"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span></td> </tr> </table> ! <!-- END switch_comments_show --> ! ! <table width="100%" cellspacing="0" cellpadding="0" border="0"> ! <tr> ! <td colspan="2"> ! <!-- BEGIN switch_comments --> ! <span class="gensmall">{COMMENTS} {COMMENTS_IMG}</span><br /> ! <!-- END switch_comments --> ! <!-- BEGIN switch_ratings --> ! <span class="gensmall">{RATINGS} {RATE_IMG}</span><br /> ! <!-- END switch_ratings --> ! </td> ! </tr> </table> --- 1,124 ---- ! <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> ! <tr> <td class="row1" wrap="wrap"> ! <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td> ! <span class="maintitle"style="font-size: 9pt;">{ARTICLE_TITLE}</span> ! </td> ! <td class="row1" align="right" class="nav"> ! <a href="{U_PRINT}" class="nav">{L_PRINT}</a> ! </td> ! </tr> ! </table> </td> ! </tr> ! <tr> ! <td class="row2" colspan="2"><hr> ! <span class="gensmall"><b>{L_ARTICLE_AUTHOR}</b></span> <span class="gensmall">{ARTICLE_AUTHOR}</span> ! <span class="gensmall"><b>{L_ARTICLE_DATE}</b></span> <span class="gensmall">{ARTICLE_DATE}</span> ! <span class="gensmall">{VIEWS}</span><br /> ! <span class="gensmall"><b>{L_ARTICLE_DESCRIPTION}</b> </span><span class="gensmall">{ARTICLE_DESCRIPTION}</span><br /> ! ! <!-- BEGIN switch_comments --> ! <span class="gensmall">{COMMENTS} {COMMENTS_IMG}</span><br /> ! <!-- END switch_comments --> ! <!-- BEGIN switch_ratings --> ! <span class="gensmall">{RATINGS} {RATE_IMG}</span><br /> ! <!-- END switch_ratings --> ! <hr> </td> ! </tr> ! <!-- BEGIN switch_toc --> ! <tr> ! <td class="row1" colspan="2" align="left"><br /><span class="maintitle">{L_TOC}</span><br /><br /> ! <span class="nav"> ! <!-- BEGIN pages --> ! {switch_toc.pages.TOC_ITEM} ! <!-- END pages --> ! </span> ! </td> ! </tr> ! <!-- END switch_toc --> ! <tr> ! <td class="row1" colspan="2" wrap="wrap"> ! <span class="postbody">{ARTICLE_TEXT}</span> ! </td> ! </tr> ! <!-- BEGIN switch_pages --> ! <tr> ! <td class="row1" colspan="2" align="center"><span class="nav">{L_GOTO_PAGE} ! <!-- BEGIN pages --> ! {switch_pages.pages.PAGE_LINK} ! <!-- END pages --> ! </span> ! </td> ! </tr> <!-- END switch_pages --> </table> ! <!-- BEGIN use_comments --> <br /> ! <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> ! <th class="thCornerL" colspan="2">{use_comments.L_COMMENTS}</th> ! </tr> ! <!-- BEGIN no_comments --> ! <tr> ! <td colspan="2" class="row1" align="center"><span class="genmed">{use_comments.no_comments.L_NO_COMMENTS}</span></td> ! </tr> ! <!-- END no_comments --> ! ! <!-- BEGIN text --> ! <tr> ! <td width="100" align="left" valign="top" class="row1"><span class="name"> ! <b>{use_comments.text.POSTER}</b></span><hr /><br /> ! <span class="postdetails">{use_comments.text.POSTER_RANK}<br /> ! {use_comments.text.RANK_IMAGE}{use_comments.text.POSTER_AVATAR}</span><br /> ! </td> ! <td class="row1" height="28" valign="top"> ! <table width="100%" border="0" cellspacing="0" cellpadding="0"> ! <tr> ! <td width="80%" valign="middle"><span class="genmed"><img src="{use_comments.text.ICON_MINIPOST_IMG}" width="12" height="9" border="0" /> <b>{use_comments.text.TITLE}</b> </span><span class="genmed">({use_comments.text.TIME})</span></td> ! <td align="right"> ! <!-- BEGIN auth_edit --> ! <a href="{use_comments.text.auth_edit.U_COMMENT_EDIT}"><img src="{use_comments.text.auth_edit.EDIT_IMG}" alt="{use_comments.text.auth_edit.L_COMMENT_EDIT}" title="{use_comments.text.auth_edit.L_COMMENT_EDIT}" border="0"></a> ! <!-- END auth_edit --> ! <!-- BEGIN auth_delete --> ! <a href="{use_comments.text.auth_delete.U_COMMENT_DELETE}"><img src="{use_comments.text.auth_delete.DELETE_IMG}" alt="{use_comments.text.auth_delete.L_COMMENT_DELETE}" title="{use_comments.text.auth_delete.L_COMMENT_DELETE}" border="0"></a> ! <!-- END auth_delete --> ! </td> ! </tr> ! <tr> ! <td colspan="2"><hr /></td> ! </tr> ! <tr> ! <td colspan="2"valign="top"><span class="postbody">{use_comments.text.TEXT}</span></td> ! </tr> ! </table> ! </td> ! </tr> ! <tr> ! <td class="spaceRow" colspan="2" height="1"><img src="{use_comments.text.ICON_SPACER}" alt="" width="1" height="1" /></td> ! </tr> ! <!-- END text --> ! </table> ! ! <!-- BEGIN comments_pag --> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> ! <td><span class="nav">{use_comments.comments_pag.PAGE_NUMBER}</span></td> ! <td align="right"><span class="nav">{use_comments.comments_pag.PAGINATION}</span></td> </tr> </table> ! <!-- END comments_pag --> ! <!-- BEGIN auth_post --> ! <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> ! <tr> ! <td><a href="{use_comments.auth_post.U_COMMENT_POST}"><img src="{use_comments.auth_post.REPLY_IMG}" border="0" alt="{use_comments.auth_post.L_COMMENT_ADD}" align="middle" /></a></td> ! </tr> </table> + <br clear="all" /> + <!-- END auth_post --> + <!-- END use_comments --> |
|
From: Jon O. <jon...@us...> - 2006-06-28 13:58:16
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32691/modules/mx_kb Modified Files: KnowledgeBase.pak db_upgrade.php kb.php kb_article_reader.php Added Files: kb_last_article.php Log Message: added a new "last article" block Index: KnowledgeBase.pak =================================================================== RCS file: /cvsroot/mxbb/mx_kb/KnowledgeBase.pak,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** KnowledgeBase.pak 17 Dec 2005 13:12:58 -0000 1.8 --- KnowledgeBase.pak 28 Jun 2006 13:58:07 -0000 1.9 *************** *** 12,13 **** --- 12,29 ---- block=+:=+:Demo - Article_reader=+:Demo block=+:96=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 + New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 + function=+:30=+:31=+:Last Articles=+:KB Last Articles Function=+:kb_last_article.php=+: + parameter=+:31=+:21=+:Last_Article_Align=+:Values=+:left=+:=+:0 + parameter=+:31=+:39=+:Last_Article_Display_Author=+:Boolean=+:FALSE=+:=+:0 + parameter=+:31=+:18=+:Last_Article_Display_Date=+:Boolean=+:TRUE=+:=+:0 + parameter=+:31=+:22=+:Last_Article_Display_Cat=+:Boolean=+:TRUE=+:=+:0 + parameter=+:31=+:40=+:Last_Article_Display_Icon_View=+:Boolean=+:TRUE=+:=+:0 + parameter=+:31=+:38=+:Last_Article_Display_Last_Author=+:Boolean=+:TRUE=+:=+:0 + parameter=+:31=+:37=+:Last_Article_Cat=+:Function=+:=+:get_list_multiple("{parameter_id}[]", FORUMS_TABLE, 'forum_id', 'forum_name', "{parameter_value}", TRUE)=+:0 + parameter=+:31=+:17=+:Last_Article_Number_Title=+:Number=+:15=+:=+:0 + parameter=+:31=+:20=+:Last_Article_Target=+:Values=+:_blank=+:=+:0 + parameter=+:31=+:19=+:Last_Article_Title_Length=+:Number=+:30=+:=+:0 + parameter=+:31=+:95=+:article_filter_date=+:Function=+:5=+:get_list_static("{parameter_id}[]",array("no limit", "1 day", "2 days", "3 days", "1 week", "2 weeks", "3 weeks", "1 month", "2 months", "3 months", "6 months", "1 year"),"{parameter_value}")=+:0 + parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 + block=+:=+:Demo - Last Articles=+:Demo block=+:31=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 + function=+:0=+:0=+:0=+:endoflist=+:0=+:0 \ No newline at end of file Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** kb.php 17 Jun 2006 20:48:10 -0000 1.32 --- kb.php 28 Jun 2006 13:58:07 -0000 1.33 *************** *** 133,137 **** $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); $print_version = $mx_request_vars->request('print', MX_TYPE_NO_TAGS, ''); ! $reader_mode = false; // =================================================== --- 133,137 ---- $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); $print_version = $mx_request_vars->request('print', MX_TYPE_NO_TAGS, ''); ! $kb_config['reader_mode'] = false; // =================================================== --- NEW FILE: kb_last_article.php --- <?php /** * * @package mxBB Portal Module - mx_kb * @version $Id: kb_last_article.php,v 1.1 2006/06/28 13:58:07 jonohlsson Exp $ * @copyright (c) 2002-2006 mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); } define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); define( 'MXBB_MODULE', true ); // =================================================== // Include the constants file // =================================================== include_once( $module_root_path . 'kb/includes/kb_constants.' . $phpEx ); // // Read Block Settings // $title = $mx_block->block_info['block_title']; $template->set_filenames(array( 'body_last_msg' => 'kb_last_article.tpl') ); // // Read block Configuration // $PostNumber = $mx_block->get_parameters( 'Last_Article_Number_Title' ); $display_date = $mx_block->get_parameters( 'Last_Article_Display_Date' ); $nb_characteres = $mx_block->get_parameters( 'Last_Article_Title_Length' ); $target = $mx_block->get_parameters( 'Last_Article_Target' ); $align = $mx_block->get_parameters( 'Last_Article_Align' ); $display_forum = $mx_block->get_parameters( 'Last_Article_Display_Cat' ); $forum_lst_msg = $mx_block->get_parameters( 'Last_Article_Cat' ); if( empty($PostNumber) ) $PostNumber = 5; $display_author = $mx_block->get_parameters( 'Last_Article_Display_Author' ); $display_last_author = $mx_block->get_parameters( 'Last_Article_Display_Last_Author' ); $display_icon_view = $mx_block->get_parameters( 'Last_Article_Display_Icon_View' ); // // no limit, last day, 2 days, 3 days, week, 2 weeks, 3 weeks, month, 2 months, 3 months, 6 months, i year, // $msg_filter_time = $mx_block->get_parameters( 'article_filter_date' ); // // Authorization SQL // $auth_data_sql_msg = get_auth_forum('kb'); if ( empty($forum_lst_msg) ) { $forum_lst_msg = $auth_data_sql_msg; } if ( empty($forum_lst_msg) ) { $forum_lst_msg = -1; } $msg_start = ( isset( $HTTP_GET_VARS['kb_lmsg_start'] ) ) ? intval( $HTTP_GET_VARS['kb_lmsg_start'] ) : 0; $start_prev = ( $msg_start == 0 ) ? 0 : $msg_start - $PostNumber; $start_next = $msg_start + $PostNumber; $url_next = mx_url('kb_lmsg_start' , $start_next); $url_prev = mx_url('kb_lmsg_start' , $start_prev); $msg_today = date('mdY'); switch( $msg_filter_time ) { case '0': $msg_time_filter_lo = 'no'; break; case '1': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 1), intval(substr($msg_today, 4, 4))); break; case '2': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 1), intval(substr($msg_today, 4, 4))); break; case '3': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 1), intval(substr($msg_today, 4, 4))); break; case '4': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 7), intval(substr($msg_today, 4, 4))); break; case '5': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 14), intval(substr($msg_today, 4, 4))); break; case '6': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2) - 21), intval(substr($msg_today, 4, 4))); break; case '7': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 1), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '8': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 2), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '9': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 3), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '10': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2) - 6), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4))); break; case '11': $msg_time_filter_lo = mktime(0, 0, 0 , intval(substr($msg_today, 0, 2)), intval(substr($msg_today, 2, 2)), intval(substr($msg_today, 4, 4) - 1)); break; default: $msg_time_filter_lo = 'no'; break; } $sql = "SELECT COUNT(*) AS article_num FROM " . KB_CATEGORIES_TABLE . " c, " . KB_ARTICLES_TABLE . " a WHERE a.article_category_id = c.category_id AND c.category_id in ( $forum_lst_msg ) AND c.category_id in ( $auth_data_sql_msg ) AND a.approved = 1"; if ( $msg_time_filter_lo != 'no' && !empty($msg_time_filter_lo) ) { $sql .= " AND a.article_date > " . $msg_time_filter_lo; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain limited topics count information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); $msg_total_match_count = $row['article_num']; $sql = "SELECT * FROM " . KB_CATEGORIES_TABLE . " c, " . KB_ARTICLES_TABLE . " a, " . USERS_TABLE . " u WHERE a.article_category_id = c.category_id AND a.article_author_id = u.user_id AND c.category_id in ( $forum_lst_msg ) AND c.category_id in ( $auth_data_sql_msg ) AND a.approved = 1"; if ( $msg_time_filter_lo != 'no' && !empty($msg_time_filter_lo) ) { $sql .= " AND a.article_date > " . $msg_time_filter_lo; } $sql .= " ORDER BY a.article_id DESC LIMIT $msg_start, $PostNumber"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query topics list', '', __LINE__, __FILE__, $sql); } $postrow = $db->sql_fetchrowset($result); $db->sql_freeresult($result); $base_url = mx_this_url(); $template->assign_vars(array( 'L_TITLE' => ( !empty($title) ? $title : 'Last Message' ), 'U_TARGET' => $target, 'U_ALIGN' => $align, 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), 'U_URL' => append_sid(PORTAL_URL . 'index.php' . '?block_id=' . $block_id), 'U_URL_NEXT' => $url_next, 'U_URL_PREV' => $url_prev, 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_MSG_PREV' => $lang['Previous'], 'L_MSG_NEXT' => $lang['Next'], 'PAGINATION' => mx_generate_pagination($base_url, $msg_total_match_count, $PostNumber, $msg_start, true, true, true, false, 'kb_lmsg_start'), 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor($msg_start / $PostNumber) + 1 ), ceil($msg_total_match_count / $PostNumber)) )); if ( $msg_total_match_count == 0 || $msg_total_match_count == '' ) { $template->assign_block_vars("no_row", array( 'L_NO_ITEMS' => $lang['No_items_found'] )); } for( $row_count = 0; $row_count < count($postrow); $row_count++ ) { $row_color = ( !( $row_count % 2 ) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !( $row_count % 2 ) ) ? $theme['td_class1'] : $theme['td_class2']; $message = $postrow[$row_count]['article_title']; $url = append_sid(PHPBB_URL . 'viewtopic.php?t=' . $postrow[$row_count]['article_id'] ); $folder = $images['kb_last_article_folder']; $folder_image = $folder; if ( $display_author == "TRUE" ) { $topic_author = ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['user_id']) . '" class="gensmall">' : ''; $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? $postrow[$row_count]['username'] : ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] : $lang['Guest'] ); $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '</a>' : ''; } else { $topic_author = ''; } if ( $display_last_author == "TRUE" ) { $last_post_author = ( $postrow[$row_count]['id2'] == ANONYMOUS ) ? ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['id2']) . '" class="gensmall">' . $postrow[$row_count]['user2'] . '</a>'; } else { $last_post_author = ''; } $message_alt = $message; if ( strlen($message) > $nb_characteres ) { $message = substr($message, 0, $nb_characteres); $position_espace = strrpos($message, ' '); $position_espace = empty($position_espace) ? $nb_characteres : $position_espace; $message = substr($message, 0, $position_espace); $message .= '...'; } if ( $display_date == "TRUE" ) { $message_date = create_date($board_config['default_dateformat'], $postrow[$row_count]['article_date'], $board_config['board_timezone']); } else { $message_date = ''; } if ( $display_forum == "TRUE" ) { $forum_name = $postrow[$row_count]['category_name']; $forum_name_alt = $forum_name; if ( strlen($forum_name) > $nb_characteres ) { $forum_name = substr($forum_name, 0, $nb_characteres); $position_espace = strrpos($forum_name, ' '); $position_espace = empty($position_espace) ? $nb_characteres : $position_espace; $forum_name = substr($forum_name, 0, $position_espace); $forum_name .= '...'; } $forum_url = append_sid(PHPBB_URL . 'viewforum.php?f=' . $postrow[$row_count]['article_id']); } else { $forum_name = ''; $forum_url = ''; } if ( $display_icon_view == "TRUE" ) { $last_post_url = '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$row_count]['topic_last_post_id']) . '#' . $postrow[$row_count]['topic_last_post_id'] . '"><img src="' . $images['kb_icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; } else { $last_post_url = ''; } $template->assign_block_vars('msg_row', array( 'ROW_COLOR' => "#" . $row_color, 'ROW_CLASS' => $row_class, 'LAST_MSG' => $message, 'LAST_MSG_ALT' => $message_alt, 'LAST_MSG_DATE' => $message_date, 'FORUM_NAME' => $forum_name, 'FORUM_NAME_ALT' => $forum_name_alt, 'U_LAST_MSG' => $url, 'U_FORUM' => $forum_url, 'LAST_POST_IMG' => $last_post_url, 'FOLDER_IMG' => $folder_image, 'TOPIC_AUTHOR' => $topic_author, 'LAST_POST_AUTHOR' => $last_post_author, 'L_TOPIC_FOLDER_ALT' => $folder_alt )); } $template->pparse('body_last_msg'); ?> Index: kb_article_reader.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb_article_reader.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** kb_article_reader.php 17 Jun 2006 20:48:10 -0000 1.15 --- kb_article_reader.php 28 Jun 2006 13:58:07 -0000 1.16 *************** *** 9,13 **** */ ! if ( file_exists( './viewtopic.php' ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); --- 9,13 ---- */ ! if ( file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); *************** *** 43,47 **** // End session management ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); if ( !isset( $HTTP_GET_VARS['print'] ) ) --- 43,47 ---- // End session management ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); if ( !isset( $HTTP_GET_VARS['print'] ) ) *************** *** 83,93 **** die("Hacking attempt"); } if ( MXBB_27x ) { ! mx_message_die(GENERAL_MESSAGE, 'This module does not support standalone usage. In the adminCP, add the kb block to a portal page.'); } else { ! die('no article, no redirect'); } } --- 83,94 ---- die("Hacking attempt"); } + if ( MXBB_27x ) { ! mx_message_die( GENERAL_MESSAGE, $lang['Standalone_Not_Supported'] ); } else { ! die('No article or redirect'); } } *************** *** 96,100 **** else { ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); // --- 97,101 ---- else { ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); // *************** *** 118,121 **** --- 119,124 ---- // ------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------- + // Start + // ------------------------------------------------------------------------------------------------------------------------- // ------------------------------------------------------------------------------------------------------------------------- *************** *** 126,197 **** // =================================================== ! // Get action variable other wise set it to the main // =================================================== ! $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'main'); ! ! if ( isset( $HTTP_POST_VARS['page_num'] ) || isset( $HTTP_GET_VARS['page_num'] ) ) ! { ! $page_num = ( isset( $HTTP_POST_VARS['page_num'] ) ) ? intval( $HTTP_POST_VARS['page_num'] ) : intval( $HTTP_GET_VARS['page_num'] ); ! $page_num = $page_num - 1; ! } ! else ! { ! $page_num = 0; ! } ! ! // ! // Print version ! // $print_version = $mx_request_vars->request('print', MX_TYPE_NO_TAGS, ''); $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; - $reader_mode = true; // =================================================== // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['disable'] ) ) ! { ! // mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); ! } ! ! /* ! if ( $mode == 'article' ) ! { ! include( $module_root_path . 'includes/kb_article.' . $phpEx ); ! } ! else if ( $mode == 'rate' ) ! { ! include( $module_root_path . 'includes/kb_rate.' . $phpEx ); ! } ! else ! { ! // return; ! // DEFAULT ACTION ! $page_title = $lang['KB_title']; ! ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! } ! ! $article_id = $default_article_id; ! ! include( $module_root_path . 'includes/kb_article.' . $phpEx ); ! } ! ! $template->pparse( 'body' ); ! ! // load footer ! if ( !$reader_mode ) ! { ! include ( $module_root_path . "includes/kb_footer." . $phpEx ); ! } ! ! if ( !$is_block && !$print_version ) { ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } - */ // =================================================== --- 129,150 ---- // =================================================== ! // Get mode variables, otherwise set it to the main // =================================================== ! $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, 'article'); $print_version = $mx_request_vars->request('print', MX_TYPE_NO_TAGS, ''); + $kb_config['reader_mode'] = true; + // =================================================== + // Is admin? + // =================================================== $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; // =================================================== // if the database disabled give them a nice message // =================================================== ! if ( intval( $kb_config['module_enable'] ) ) { ! mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); } // =================================================== *************** *** 200,216 **** $actions = array( 'article' => 'article', - 'cat' => 'cat', - 'add' => 'post', 'search' => 'search', - 'edit' => 'post', 'rate' => 'rate', 'stats' => 'stats', ! 'moderate' => 'moderator', ! 'main' => 'main' ); // =================================================== // Lets Build the page // =================================================== - if ( !$is_block && !$print_version) { --- 153,165 ---- $actions = array( 'article' => 'article', 'search' => 'search', 'rate' => 'rate', 'stats' => 'stats', ! 'post_comment' => 'post_comment', ! ); // =================================================== // Lets Build the page // =================================================== if ( !$is_block && !$print_version) { *************** *** 226,230 **** if ( !$print_version ) { ! kb_page_header( $page_title ); } --- 175,179 ---- if ( !$print_version ) { ! //kb_page_header( $page_title ); } *************** *** 236,240 **** if ( !$print_version ) { ! kb_page_footer(); } --- 185,189 ---- if ( !$print_version ) { ! //kb_page_footer(); } Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_upgrade.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** db_upgrade.php 27 Jun 2006 18:13:45 -0000 1.32 --- db_upgrade.php 28 Jun 2006 13:58:07 -0000 1.33 *************** *** 115,120 **** } // validate before 2.00 ! $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "kb_config WHERE config_name = 'wysiwyg'" ); ! if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_200 = 1; --- 115,119 ---- } // validate before 2.00 ! if ( !$result = $db->sql_query( "SELECT custom_id from " . $mx_table_prefix . "kb_custom" ) ) { $upgrade_200 = 1; |
|
From: Jon O. <jon...@us...> - 2006-06-28 13:58:13
|
Update of /cvsroot/mxbb/mx_kb/kb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32691/modules/mx_kb/kb/modules Modified Files: kb_article.php kb_rate.php Log Message: added a new "last article" block Index: kb_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/modules/kb_rate.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** kb_rate.php 7 Jun 2006 20:28:54 -0000 1.3 --- kb_rate.php 28 Jun 2006 13:58:08 -0000 1.4 *************** *** 158,164 **** $conf = str_replace( "{newrating}", $nrating, $conf ); ! $template->assign_vars( array( "META" => '<meta http-equiv="refresh" content="3;url=' . append_sid( this_kb_mxurl( "action=url&k=" . $article_id ) ) . '">' ) ! ); ! if ( !$reader_mode ) { $message = $conf . "<br /><br />" . sprintf( $lang['Click_return_rate'], "<a href=\"" . append_sid( this_kb_mxurl( "mode=article&k=$article_id" ) ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_forum'], "<a href=\"" . append_sid( "index.$phpEx?page=$page_id&mode=cat&cat=$category_id" ) . "\">", "</a>" ); --- 158,164 ---- $conf = str_replace( "{newrating}", $nrating, $conf ); ! $template->assign_vars( array( "META" => '<meta http-equiv="refresh" content="3;url=' . append_sid( this_kb_mxurl( "action=url&k=" . $article_id ) ) . '">' ) ); ! ! if ( !$this->reader_mode ) { $message = $conf . "<br /><br />" . sprintf( $lang['Click_return_rate'], "<a href=\"" . append_sid( this_kb_mxurl( "mode=article&k=$article_id" ) ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_forum'], "<a href=\"" . append_sid( "index.$phpEx?page=$page_id&mode=cat&cat=$category_id" ) . "\">", "</a>" ); Index: kb_article.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/modules/kb_article.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** kb_article.php 26 Jun 2006 21:34:11 -0000 1.7 --- kb_article.php 28 Jun 2006 13:58:08 -0000 1.8 *************** *** 29,33 **** global $template, $lang, $db, $phpEx, $kb_config, $mx_request_vars, $userdata; global $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx, $images; ! global $mx_kb_custom_field, $print_version, $reader_mode, $board_config; // --- 29,33 ---- global $template, $lang, $db, $phpEx, $kb_config, $mx_request_vars, $userdata; global $phpbb_root_path, $mx_root_path, $module_root_path, $is_block, $phpEx, $images; ! global $mx_kb_custom_field, $print_version, $board_config, $mx_block; // *************** *** 35,39 **** // $start = $mx_request_vars->get('start', MX_TYPE_INT, 0); ! $article_id = $mx_request_vars->request('k', MX_TYPE_INT, ''); $page_num = $mx_request_vars->request('page_num', MX_TYPE_INT, 1) - 1; --- 35,39 ---- // $start = $mx_request_vars->get('start', MX_TYPE_INT, 0); ! $article_id = $mx_request_vars->is_request('k') ? $mx_request_vars->request('k', MX_TYPE_INT, '') : $mx_block->get_parameters( 'default_article_id' ); $page_num = $mx_request_vars->request('page_num', MX_TYPE_INT, 1) - 1; *************** *** 63,72 **** if ( ( !$this->auth_user[$kb_row['article_category_id']]['auth_view'] ) ) { - /* - if ( !$userdata['session_logged_in'] ) - { - mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=file&file_id=" . $file_id), true)); - } - */ $message = $lang['Article_not_exsist'] . '<br /><br />' . sprintf( $lang['Click_return_kb'], '<a href="' . append_sid( this_kb_mxurl() ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid( $phpbb_root_path . "index.$phpEx" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); --- 63,66 ---- *************** *** 217,221 **** if ( !$print_version ) { ! if ( $reader_mode ) { $template->set_filenames( array( 'body' => 'kb_article_reader.tpl' ) ); --- 211,215 ---- if ( !$print_version ) { ! if ( $this->reader_mode ) { $template->set_filenames( array( 'body' => 'kb_article_reader.tpl' ) ); |
|
From: Jon O. <jon...@us...> - 2006-06-28 13:58:13
|
Update of /cvsroot/mxbb/mx_kb/kb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32691/modules/mx_kb/kb/includes Modified Files: functions_kb.php kb_constants.php Log Message: added a new "last article" block Index: functions_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/functions_kb.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** functions_kb.php 27 Jun 2006 18:13:45 -0000 1.8 --- functions_kb.php 28 Jun 2006 13:58:08 -0000 1.9 *************** *** 90,93 **** --- 90,95 ---- var $debug_msg = array(); + var $reader_mode = false; + /** * Prepare data. *************** *** 186,189 **** --- 188,193 ---- break; } + + $this->reader_mode = $kb_config['reader_mode']; } Index: kb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/includes/kb_constants.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** kb_constants.php 7 Jun 2006 20:28:54 -0000 1.5 --- kb_constants.php 28 Jun 2006 13:58:08 -0000 1.6 *************** *** 25,29 **** define( 'PHPBB_URL', PORTAL_URL ); - $reader_mode = false; $kb_config['news_operate_mode'] = false; $mx_table_prefix = $table_prefix; --- 25,28 ---- *************** *** 62,65 **** --- 61,65 ---- if ( !MXBB_MODULE || MXBB_27x ) { + echo('d'); $kb_module_version = "Knowledge Base MOD v. 2.0.x"; $kb_module_author = "Haplo/Jon"; *************** *** 68,71 **** --- 68,72 ---- else { + if (is_object($mx_page)) { |
|
From: Jon O. <jon...@us...> - 2006-06-27 21:38:47
|
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13505/modules/mx_pafiledb Modified Files: db_install.php db_uninstall.php dload.php dload_lists.php dload_quickdl.php Log Message: a couple of bugs... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_install.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** db_install.php 27 Jun 2006 18:14:28 -0000 1.22 --- db_install.php 27 Jun 2006 21:38:43 -0000 1.23 *************** *** 296,300 **** // Comments ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('use_comments', '1')", // comments_show "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('internal_comments', '1')", // NEW "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('formatting_comment_wordwrap', '1')", // formatting_comment_fixup --- 296,300 ---- // Comments ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('use_comments', '0')", // comments_show "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('internal_comments', '1')", // NEW "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('formatting_comment_wordwrap', '1')", // formatting_comment_fixup *************** *** 318,322 **** // Ratings ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('use_ratings', '1')", "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('votes_check_userid', '1')", "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('votes_check_ip', '1')", --- 318,322 ---- // Ratings ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('use_ratings', '0')", "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('votes_check_userid', '1')", "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('votes_check_ip', '1')", Index: dload_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_lists.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** dload_lists.php 17 Jun 2006 20:49:26 -0000 1.19 --- dload_lists.php 27 Jun 2006 21:38:43 -0000 1.20 *************** *** 85,89 **** // $pafiledb_block_id = $mx_block->get_parameters( 'target_block' ); ! $pafiledb_page_id = $pafiledb_block_id > 0 ? get_page_id( $pafiledb_block_id ) : get_page_id( 'dload.php', true ); // --- 85,89 ---- // $pafiledb_block_id = $mx_block->get_parameters( 'target_block' ); ! $pafiledb_page_id = intval($pafiledb_block_id) > 0 ? get_page_id( $pafiledb_block_id ) : get_page_id( 'dload.php', true ); // *************** *** 196,201 **** 'UPDATED' => create_date( $board_config['default_dateformat'], $recentrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'VIEW' => $recentrow[$j]['file_dls'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $recentrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />' ) : '' // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' )); --- 196,201 ---- 'UPDATED' => create_date( $board_config['default_dateformat'], $recentrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'VIEW' => $recentrow[$j]['file_dls'], ! 'RATING' => ( $pafiledb->ratings[$recentrow[$j]['file_catid']]['activated'] ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $pafiledb->comments[$recentrow[$j]['file_catid']]['activated'] ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $recentrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $recentrow[$j]['comments'] . '<br />' ) : '' // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' )); *************** *** 291,296 **** 'UPDATED' => create_date( $board_config['default_dateformat'], $mostrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'VIEW' => $mostrow[$j]['file_dls'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $mostrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $mostrow[$j]['comments'] . '<br />' ) : '' // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' )); --- 291,296 ---- 'UPDATED' => create_date( $board_config['default_dateformat'], $mostrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'VIEW' => $mostrow[$j]['file_dls'], ! 'RATING' => ( $pafiledb->ratings[$mostrow[$j]['file_catid']]['activated'] ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $pafiledb->comments[$mostrow[$j]['file_catid']]['activated'] ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $mostrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $mostrow[$j]['comments'] . '<br />' ) : '' // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($recentrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($recentrow[$j]['pic_user_ip']) .'</a><br />' : '' )); *************** *** 387,392 **** 'UPDATED' => create_date( $board_config['default_dateformat'], $highestrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'H_VIEW' => $highestrow[$j]['file_dls'], ! 'H_RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'H_COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $highestrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $highestrow[$j]['comments'] . '<br />' ) : '' // 'H_IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($highestrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($highestrow[$j]['pic_user_ip']) .'</a><br />' : '' )); --- 387,392 ---- 'UPDATED' => create_date( $board_config['default_dateformat'], $highestrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'H_VIEW' => $highestrow[$j]['file_dls'], ! 'H_RATING' => ( $pafiledb->ratings[$highestrow[$j]['file_catid']]['activated'] ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'H_COMMENTS' => ( $pafiledb->comments[$highestrow[$j]['file_catid']]['activated'] ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $highestrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $highestrow[$j]['comments'] . '<br />' ) : '' // 'H_IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($highestrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($highestrow[$j]['pic_user_ip']) .'</a><br />' : '' )); *************** *** 484,489 **** 'UPDATED' => create_date( $board_config['default_dateformat'], $randrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'VIEW' => $randrow[$j]['file_dls'], ! 'RATING' => ( $album_config['rate'] == 1 ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $album_config['comment'] == 1 ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $randrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $randrow[$j]['comments'] . '<br />' ) : '' // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($randrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($randrow[$j]['pic_user_ip']) .'</a><br />' : '' )); --- 484,489 ---- 'UPDATED' => create_date( $board_config['default_dateformat'], $randrow[$j]['file_update_time'], $board_config['board_timezone'] ), 'VIEW' => $randrow[$j]['file_dls'], ! 'RATING' => ( $pafiledb->ratings[$randrow[$j]['file_catid']]['activated'] ) ? ( $lang['Rating'] . ': ' . $rating_image . ', ' ) : '', ! 'COMMENTS' => ( $pafiledb->comments[$randrow[$j]['file_catid']]['activated'] ) ? ( '<a href="' . append_sid( pa_this_mxurl_list( "action=file&file_id=" . $randrow[$j]['file_id'], false, $pafiledb_page_id ) ) . '">' . $lang['Comments'] . '</a>: ' . $randrow[$j]['comments'] . '<br />' ) : '' // 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($randrow[$j]['pic_user_ip']) . '" target="_blank">' . decode_ip($randrow[$j]['pic_user_ip']) .'</a><br />' : '' )); Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_uninstall.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** db_uninstall.php 2 May 2006 23:28:15 -0000 1.13 --- db_uninstall.php 27 Jun 2006 21:38:43 -0000 1.14 *************** *** 38,42 **** } ! $sql = array( "DROP TABLE " . $mx_table_prefix . "pa_cat ", "DROP TABLE " . $mx_table_prefix . "pa_auth ", "DROP TABLE " . $mx_table_prefix . "pa_comments ", --- 38,43 ---- } ! $sql = array( ! "DROP TABLE " . $mx_table_prefix . "pa_cat ", "DROP TABLE " . $mx_table_prefix . "pa_auth ", "DROP TABLE " . $mx_table_prefix . "pa_comments ", Index: dload.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** dload.php 17 Jun 2006 20:49:26 -0000 1.21 --- dload.php 27 Jun 2006 21:38:43 -0000 1.22 *************** *** 99,102 **** --- 99,103 ---- // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); + $pafiledb_template->destroy(); // =================================================== Index: dload_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_quickdl.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** dload_quickdl.php 17 Jun 2006 20:49:26 -0000 1.11 --- dload_quickdl.php 27 Jun 2006 21:38:43 -0000 1.12 *************** *** 71,79 **** // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); // =================================================== // Get action variable other wise set it to the main // =================================================== ! $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'quickdl'; // =================================================== --- 71,80 ---- // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); + $pafiledb_template->destroy(); // =================================================== // Get action variable other wise set it to the main // =================================================== ! $action = ( isset( $_REQUEST['actionqdl'] ) ) ? htmlspecialchars( $_REQUEST['actionqdl'] ) : 'quickdl'; // =================================================== |
|
From: Jon O. <jon...@us...> - 2006-06-27 21:38:47
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13505/modules/mx_pafiledb/templates/subSilver Modified Files: pa_category_body.tpl pa_main_body.tpl pa_quickdl_cat_body.tpl Log Message: a couple of bugs... Index: pa_main_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_main_body.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** pa_main_body.tpl 2 May 2006 23:28:16 -0000 1.5 --- pa_main_body.tpl 27 Jun 2006 21:38:43 -0000 1.6 *************** *** 12,16 **** <th class="thCornerL" width="6%"> </th> <th class="thTop"> {L_CATEGORY} </th> ! <th class="thCornerR" width="10%"> {L_LAST_FILE} </th> <th class="thCornerR" width="8%"> {L_FILES} </th> </tr> --- 12,16 ---- <th class="thCornerL" width="6%"> </th> <th class="thTop"> {L_CATEGORY} </th> ! <th class="thCornerR" width="10%"> {L_LAST_FILE} </th> <th class="thCornerR" width="8%"> {L_FILES} </th> </tr> *************** *** 24,28 **** <tr> <td class="row1" valign="middle" align="center"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}"><img src="{no_cat_parent.CAT_IMAGE}" border="0" alt="{no_cat_parent.CAT_NEW_FILE}"></a></td> ! <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{no_cat_parent.U_CAT}';"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}">{no_cat_parent.CAT_NAME}</a><br><span class="genmed">{no_cat_parent.CAT_DESC}</span><br><span class="gensmall">{no_cat_parent.SUB_CAT}</span></b></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="genmed">{no_cat_parent.LAST_FILE}</span></td> <td class="row2" align="center" valign="middle"><span class="genmed">{no_cat_parent.FILECAT}</span></td> --- 24,28 ---- <tr> <td class="row1" valign="middle" align="center"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}"><img src="{no_cat_parent.CAT_IMAGE}" border="0" alt="{no_cat_parent.CAT_NEW_FILE}"></a></td> ! <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{no_cat_parent.U_CAT}';"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}">{no_cat_parent.CAT_NAME}</a><br><span class="genmed">{no_cat_parent.CAT_DESC}</span><span class="gensmall">{no_cat_parent.SUB_CAT}</span></b></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="genmed">{no_cat_parent.LAST_FILE}</span></td> <td class="row2" align="center" valign="middle"><span class="genmed">{no_cat_parent.FILECAT}</span></td> *************** *** 31,35 **** <!-- END no_cat_parent --> ! <tr> <td class="cat" colspan="4"> </td> </tr> --- 31,35 ---- <!-- END no_cat_parent --> ! <tr> <td class="cat" colspan="4"> </td> </tr> Index: pa_category_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_category_body.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pa_category_body.tpl 2 May 2006 23:28:16 -0000 1.7 --- pa_category_body.tpl 27 Jun 2006 21:38:43 -0000 1.8 *************** *** 10,14 **** <!-- IF CAT_PARENT --> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> <th class="thCornerL" width="6%"> </th> <th class="thTop">{L_CATEGORY}</th> --- 10,14 ---- <!-- IF CAT_PARENT --> <table width="100%" cellpadding="4" cellspacing="1" class="forumline"> ! <tr> <th class="thCornerL" width="6%"> </th> <th class="thTop">{L_CATEGORY}</th> *************** *** 23,36 **** </tr> <!-- ELSE --> ! <tr> <td class="row1" align="center" valign="middle"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}"><img src="{no_cat_parent.CAT_IMAGE}" border="0" alt="{no_cat_parent.CAT_NEW_FILE}"></a></td> ! <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{no_cat_parent.U_CAT}';"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}">{no_cat_parent.CAT_NAME}</a><br><span class="genmed">{no_cat_parent.CAT_DESC}</span><span class="gensmall"><b>{L_SUB_CAT}:</b> </span><span class="gensmall">{no_cat_parent.SUB_CAT}</span></b></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="genmed">{no_cat_parent.LAST_FILE}</span></td> <td class="row2" align="center" valign="middle"><span class="genmed">{no_cat_parent.FILECAT}</span></td> </tr> ! <!-- ENDIF --> <!-- END no_cat_parent --> ! <tr> <td class="cat" colspan="4"> </td> </tr> --- 23,36 ---- </tr> <!-- ELSE --> ! <tr> <td class="row1" align="center" valign="middle"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}"><img src="{no_cat_parent.CAT_IMAGE}" border="0" alt="{no_cat_parent.CAT_NEW_FILE}"></a></td> ! <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{no_cat_parent.U_CAT}';"><a href="{no_cat_parent.U_CAT}" class="cattitle ask target-block_{BLOCK_ID}">{no_cat_parent.CAT_NAME}</a><br><span class="genmed">{no_cat_parent.CAT_DESC}</span><span class="gensmall"> </span><span class="gensmall">{no_cat_parent.SUB_CAT}</span></b></td> <td class="row2" align="center" valign="middle" nowrap="nowrap"><span class="genmed">{no_cat_parent.LAST_FILE}</span></td> <td class="row2" align="center" valign="middle"><span class="genmed">{no_cat_parent.FILECAT}</span></td> </tr> ! <!-- ENDIF --> <!-- END no_cat_parent --> ! <tr> <td class="cat" colspan="4"> </td> </tr> *************** *** 42,46 **** <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline"><tr><td> <table width="100%" cellpadding="4" cellspacing="1"> ! <tr> <th class="thCornerL" width="5%"> </th> <th class="thTop" width="57%"> {L_FILE} </th> --- 42,46 ---- <table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumline"><tr><td> <table width="100%" cellpadding="4" cellspacing="1"> ! <tr> <th class="thCornerL" width="5%"> </th> <th class="thTop" width="57%"> {L_FILE} </th> *************** *** 52,58 **** <th class="thCornerR" width="3%"> </th> </tr> ! <!-- BEGIN file_rows --> ! <tr> <td class="row1" align="center" valign="middle"><a href="{file_rows.U_FILE}" class="topictitle ask target-block_{BLOCK_ID}"><img src="{file_rows.PIN_IMAGE}" border="0"></a></td> <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{file_rows.U_FILE}';"><a href="{file_rows.U_FILE}" class="topictitle ask target-block_{BLOCK_ID}">{file_rows.FILE_NAME}</a> <!-- IF file_rows.IS_NEW_FILE --><img src="{file_rows.FILE_NEW_IMAGE}" border="0" alt="{L_NEW_FILE}"><!-- ENDIF --><br><span class="genmed">{file_rows.FILE_DESC}</span></td> --- 52,58 ---- <th class="thCornerR" width="3%"> </th> </tr> ! <!-- BEGIN file_rows --> ! <tr> <td class="row1" align="center" valign="middle"><a href="{file_rows.U_FILE}" class="topictitle ask target-block_{BLOCK_ID}"><img src="{file_rows.PIN_IMAGE}" border="0"></a></td> <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{file_rows.U_FILE}';"><a href="{file_rows.U_FILE}" class="topictitle ask target-block_{BLOCK_ID}">{file_rows.FILE_NAME}</a> <!-- IF file_rows.IS_NEW_FILE --><img src="{file_rows.FILE_NEW_IMAGE}" border="0" alt="{L_NEW_FILE}"><!-- ENDIF --><br><span class="genmed">{file_rows.FILE_DESC}</span></td> *************** *** 76,80 **** <!-- END file_rows --> </table> ! <form action="{S_ACTION_SORT}" method="post"> <table width="100%" cellpadding="4" cellspacing="1"> --- 76,80 ---- <!-- END file_rows --> </table> ! <form action="{S_ACTION_SORT}" method="post"> <table width="100%" cellpadding="4" cellspacing="1"> *************** *** 82,86 **** <input type="hidden" name="cat_id" value="{ID}"> <input type="hidden" name="start" value="{START}"> ! <tr> <td class="cat" align="center" colspan="6"><span class="genmed">{L_SELECT_SORT_METHOD}: <select name="sort_method"> --- 82,86 ---- <input type="hidden" name="cat_id" value="{ID}"> <input type="hidden" name="start" value="{START}"> ! <tr> <td class="cat" align="center" colspan="6"><span class="genmed">{L_SELECT_SORT_METHOD}: <select name="sort_method"> *************** *** 102,110 **** </tr> </table> ! </form> ! </td></tr></table> <!-- ENDIF --> ! <table width="100%" cellspacing="2" border="0" cellpadding="2"> <tr> --- 102,110 ---- </tr> </table> ! </form> ! </td></tr></table> <!-- ENDIF --> ! <table width="100%" cellspacing="2" border="0" cellpadding="2"> <tr> *************** *** 113,117 **** </tr> </table> ! <!-- IF NO_FILE --> <table class="forumline" width="100%" cellspacing="1" cellpadding="4"> --- 113,117 ---- </tr> </table> ! <!-- IF NO_FILE --> <table class="forumline" width="100%" cellspacing="1" cellpadding="4"> *************** *** 119,126 **** <th class="thHead">{L_NO_FILES}</th> </tr> ! <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> ! </table> <!-- ENDIF --> <!-- INCLUDE pa_footer.tpl --> --- 119,126 ---- <th class="thHead">{L_NO_FILES}</th> </tr> ! <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> ! </table> <!-- ENDIF --> <!-- INCLUDE pa_footer.tpl --> Index: pa_quickdl_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_quickdl_cat_body.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pa_quickdl_cat_body.tpl 5 Apr 2006 21:30:45 -0000 1.4 --- pa_quickdl_cat_body.tpl 27 Jun 2006 21:38:43 -0000 1.5 *************** *** 2,14 **** <tr> <td> ! <table width="100%" cellpadding="3" cellspacing="0"> <tr> ! <td class="row2" valign="bottom"> <span class="nav"><a href="{U_DOWNLOAD}" class="nav">{BACK}</a>{DOWNLOAD}</span> </td> </tr> </table> ! <!-- IF CAT_PARENT --> <table width="100%" cellpadding="3" cellspacing="0" > --- 2,14 ---- <tr> <td> ! <table width="100%" cellpadding="3" cellspacing="0"> <tr> ! <td class="cat"> <span class="nav"><a href="{U_DOWNLOAD}" class="nav">{BACK}</a>{DOWNLOAD}</span> </td> </tr> </table> ! <!-- IF CAT_PARENT --> <table width="100%" cellpadding="3" cellspacing="0" > *************** *** 16,38 **** <!-- IF no_cat_parent.IS_HIGHER_CAT --> <tr> ! <td class="row1" valign="middle"><a href="{no_cat_parent.U_CAT}" class="cattitle">{no_cat_parent.CAT_NAME}</a></td> <td class="rowpic" align="right"> </td> </tr> <!-- ELSE --> ! <tr> ! <td class="row1" align="center" valign="middle"><a href="{no_cat_parent.U_CAT}" class="cattitle"><img src="{no_cat_parent.CAT_IMAGE}" border="0" alt="{no_cat_parent.CAT_NEW_FILE}"></a></td> <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{no_cat_parent.U_CAT}';"><a href="{no_cat_parent.U_CAT}" class="cattitle">{no_cat_parent.CAT_NAME}</a><br><span class="gensmall">{no_cat_parent.CAT_DESC}</span></td> </tr> ! <!-- ENDIF --> <!-- END no_cat_parent --> </table> ! <!-- ENDIF --> ! <!-- IF FILELIST --> <table width="100%" cellpadding="3" cellspacing="0" > <!-- BEGIN file_rows --> ! <tr> ! <td class="row1" align="center" valign="middle"><a href="{file_rows.U_FILE}" class="topictitle"><img src="{file_rows.PIN_IMAGE}" border="0"></a></td> <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{file_rows.U_FILE}';"><a href="{file_rows.U_FILE}" class="topictitle">{file_rows.FILE_NAME}</a><br><span class="gensmall">{file_rows.FILE_DESC} ({file_rows.UPDATED})</span></td> </tr> --- 16,41 ---- <!-- IF no_cat_parent.IS_HIGHER_CAT --> <tr> ! <td class="row2" valign="middle"><a href="{no_cat_parent.U_CAT}" class="cattitle">{no_cat_parent.CAT_NAME}</a></td> <td class="rowpic" align="right"> </td> </tr> <!-- ELSE --> ! <tr> ! <td class="row2" align="left" width="20" valign="middle"><a href="{no_cat_parent.U_CAT}" class="cattitle"><img src="{no_cat_parent.CAT_IMAGE}" border="0" alt="{no_cat_parent.CAT_NEW_FILE}"></a></td> <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{no_cat_parent.U_CAT}';"><a href="{no_cat_parent.U_CAT}" class="cattitle">{no_cat_parent.CAT_NAME}</a><br><span class="gensmall">{no_cat_parent.CAT_DESC}</span></td> </tr> ! <!-- ENDIF --> <!-- END no_cat_parent --> + <tr> + <td class="row2" colspan="2" valign="middle"><hr></td> + </tr> </table> ! <!-- ENDIF --> ! <!-- IF FILELIST --> <table width="100%" cellpadding="3" cellspacing="0" > <!-- BEGIN file_rows --> ! <tr> ! <td class="row1" align="center" width="20" valign="middle"><a href="{file_rows.U_FILE}" class="topictitle"><img src="{file_rows.PIN_IMAGE}" border="0"></a></td> <td class="row1" valign="middle" onmouseout="this.className='row1';" onmouseover="this.className='row2';" onclick="window.location.href='{file_rows.U_FILE}';"><a href="{file_rows.U_FILE}" class="topictitle">{file_rows.FILE_NAME}</a><br><span class="gensmall">{file_rows.FILE_DESC} ({file_rows.UPDATED})</span></td> </tr> *************** *** 40,44 **** </table> <!-- ENDIF --> ! <!-- IF NO_FILE --> <table class="forumline" width="100%" cellspacing="0" cellpadding="3"> --- 43,47 ---- </table> <!-- ENDIF --> ! <!-- IF NO_FILE --> <table class="forumline" width="100%" cellspacing="0" cellpadding="3"> *************** *** 46,53 **** <th class="thHead">{L_NO_FILES}</th> </tr> ! <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> ! </table> <!-- ENDIF --> --- 49,56 ---- <th class="thHead">{L_NO_FILES}</th> </tr> ! <tr> <td class="row1" align="center" height="30"><span class="genmed">{L_NO_FILES_CAT}</span></td> </tr> ! </table> <!-- ENDIF --> |
|
From: Jon O. <jon...@us...> - 2006-06-27 21:38:46
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/images In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13505/modules/mx_pafiledb/pafiledb/images Added Files: .htaccess Log Message: a couple of bugs... --- NEW FILE: .htaccess --- allow from all |
|
From: Jon O. <jon...@us...> - 2006-06-27 21:38:46
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13505/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_quickdl.php pa_toplist.php Log Message: a couple of bugs... Index: pa_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_quickdl.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pa_quickdl.php 7 Jun 2006 20:29:52 -0000 1.7 --- pa_quickdl.php 27 Jun 2006 21:38:43 -0000 1.8 *************** *** 141,145 **** if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=category&cat_id=" . $cat_id), true)); } --- 141,145 ---- if ( !$userdata['session_logged_in'] ) { ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("actionqdl=category&cat_id=" . $cat_id), true)); } *************** *** 164,168 **** $pafiledb_template->assign_vars( array( ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'action=quickdl&cat_id=' . $pafiledb_quickdl['pa_quick_cat'] . $map_xtra ) ), 'DOWNLOAD' => $quickdl['cat_name'], 'BACK' => $quickdl_back --- 164,168 ---- $pafiledb_template->assign_vars( array( ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'actionqdl=quickdl&cat_id=' . $pafiledb_quickdl['pa_quick_cat'] . $map_xtra ) ), 'DOWNLOAD' => $quickdl['cat_name'], 'BACK' => $quickdl_back Index: pa_toplist.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_toplist.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** pa_toplist.php 7 Jun 2006 20:29:52 -0000 1.18 --- pa_toplist.php 27 Jun 2006 21:38:43 -0000 1.19 *************** *** 249,253 **** for ( $i = 0; $i < count( $file_rowset ); $i++ ) { ! if ( $file_rowset[$i]['cat_allow_ratings'] ) { $pa_use_ratings = true; --- 249,253 ---- for ( $i = 0; $i < count( $file_rowset ); $i++ ) { ! if ( $this->ratings[$file_rowset[$i]['file_catid']]['activated'] ) { $pa_use_ratings = true; *************** *** 441,445 **** for ( $i = 0; $i < count( $searchset ); $i++ ) { ! if ( $searchset[$i]['cat_allow_ratings'] ) { $pa_use_ratings = true; --- 441,445 ---- for ( $i = 0; $i < count( $searchset ); $i++ ) { ! if ( $this->ratings[$searchset[$i]['file_catid']]['activated'] ) { $pa_use_ratings = true; |
|
From: Jon O. <jon...@us...> - 2006-06-27 21:38:46
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13505/modules/mx_pafiledb/pafiledb/includes Modified Files: functions_pafiledb.php Log Message: a couple of bugs... Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** functions_pafiledb.php 25 Jun 2006 21:55:56 -0000 1.29 --- functions_pafiledb.php 27 Jun 2006 21:38:43 -0000 1.30 *************** *** 443,447 **** global $mx_root_path, $module_root_path, $is_block, $phpEx; ! $cat_sub .= ''; if ( !empty( $this->subcat_rowset[$cat_id] ) ) { --- 443,447 ---- global $mx_root_path, $module_root_path, $is_block, $phpEx; ! $cat_sub = ''; if ( !empty( $this->subcat_rowset[$cat_id] ) ) { *************** *** 450,454 **** if ( $cat_row['cat_allow_file'] ) { ! $cat_sub .= '<a href="' . append_sid( pa_this_mxurl( 'action=category&cat_id=' . $cat_row['cat_id'] ) ) . '">' . $cat_row['cat_name'] . '</a>, '; } else --- 450,454 ---- if ( $cat_row['cat_allow_file'] ) { ! $cat_sub .= (!empty($cat_sub) ? ', ' : '') . '<a href="' . append_sid( pa_this_mxurl( 'action=category&cat_id=' . $cat_row['cat_id'] ) ) . '">' . $cat_row['cat_name'] . '</a> '; } else *************** *** 460,464 **** if ( $sub_cat_row['cat_allow_file'] ) { ! $cat_sub .= '<a href="' . append_sid( pa_this_mxurl( 'action=category&cat_id=' . $sub_cat_row['cat_id'] ) ) . '">' . $sub_cat_row['cat_name'] . '</a>, '; } } --- 460,464 ---- if ( $sub_cat_row['cat_allow_file'] ) { ! $cat_sub .= (!empty($cat_sub) ? ', ' : '') . '<a href="' . append_sid( pa_this_mxurl( 'action=category&cat_id=' . $sub_cat_row['cat_id'] ) ) . '">' . $sub_cat_row['cat_name'] . '</a> '; } } *************** *** 714,718 **** $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => false, 'U_CAT' => append_sid( pa_this_mxurl( 'action=category&cat_id=' . $subcat_id ) ), ! 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], 'CAT_NEW_FILE' => ( $is_new ) ? $lang['New_file'] : $lang['No_new_file'], --- 714,718 ---- $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => false, 'U_CAT' => append_sid( pa_this_mxurl( 'action=category&cat_id=' . $subcat_id ) ), ! 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<br /><b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], 'CAT_NEW_FILE' => ( $is_new ) ? $lang['New_file'] : $lang['No_new_file'], *************** *** 780,786 **** $sub_cat = $this->get_sub_cat( $sub_cat_rowset[$k]['cat_id'] ); ! $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGER_CAT' => false, 'U_CAT' => append_sid( pa_this_mxurl( 'action=category&cat_id=' . $sub_cat_rowset[$k]['cat_id'] ) ), ! 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], 'CAT_NEW_FILE' => ( $is_new ) ? $lang['New_file'] : $lang['No_new_file'], --- 780,786 ---- $sub_cat = $this->get_sub_cat( $sub_cat_rowset[$k]['cat_id'] ); ! $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => false, 'U_CAT' => append_sid( pa_this_mxurl( 'action=category&cat_id=' . $sub_cat_rowset[$k]['cat_id'] ) ), ! 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<br /><b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], 'CAT_NEW_FILE' => ( $is_new ) ? $lang['New_file'] : $lang['No_new_file'], *************** *** 836,841 **** $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( stripslashes( $last_file_info['file_name'] ) ) > 20 ) ? substr( stripslashes( $last_file_info['file_name'] ), 0, 20 ) . '...' : stripslashes( $last_file_info['file_name'] ); ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'action=download&file_id=' . $last_file_info['file_id'], true ) ) . '" alt="' . stripslashes( $last_file_info['file_name'] ) . '" title="' . stripslashes( $last_file_info['file_name'] ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'action=download&file_id=' . $last_file_info['file_id'], true ) ) . '"><img src="' . $images['pa_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else --- 836,841 ---- $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( stripslashes( $last_file_info['file_name'] ) ) > 20 ) ? substr( stripslashes( $last_file_info['file_name'] ), 0, 20 ) . '...' : stripslashes( $last_file_info['file_name'] ); ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'actionqdl=download&file_id=' . $last_file_info['file_id'], true ) ) . '" alt="' . stripslashes( $last_file_info['file_name'] ) . '" title="' . stripslashes( $last_file_info['file_name'] ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'actionqdl=download&file_id=' . $last_file_info['file_id'], true ) ) . '"><img src="' . $images['pa_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else *************** *** 855,859 **** $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => false, ! 'U_CAT' => append_sid( pa_this_mxurl( 'action=quickdl&cat_id=' . $subcat_id . $map_xtra ) ), 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], --- 855,859 ---- $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => false, ! 'U_CAT' => append_sid( pa_this_mxurl( 'actionqdl=quickdl&cat_id=' . $subcat_id . $map_xtra ) ), 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], *************** *** 889,893 **** { $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => true, ! 'U_CAT' => append_sid( pa_this_mxurl( 'action=category&cat_id=' . $subcat_id ) ), 'CAT_NAME' => $subcat_row['cat_name'] ) ); --- 889,893 ---- { $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => true, ! 'U_CAT' => append_sid( pa_this_mxurl( 'actionqdl=category&cat_id=' . $subcat_id ) ), 'CAT_NAME' => $subcat_row['cat_name'] ) ); *************** *** 905,910 **** $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( $last_file_info['file_name'] ) > 20 ) ? substr( $last_file_info['file_name'], 0, 20 ) . '...' : $last_file_info['file_name']; ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $last_file_info['file_id'] ) ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'action=file&file_id=' . $last_file_info['file_id'] ) ) . '"><img src="' . $images['pa_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else --- 905,910 ---- $last_file = $last_file_time . '<br />'; $last_file_name = ( strlen( $last_file_info['file_name'] ) > 20 ) ? substr( $last_file_info['file_name'], 0, 20 ) . '...' : $last_file_info['file_name']; ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'actionqdl=file&file_id=' . $last_file_info['file_id'] ) ) . '">' . $last_file_name . '</a> '; ! $last_file .= '<a href="' . append_sid( pa_this_mxurl( 'actionqdl=file&file_id=' . $last_file_info['file_id'] ) ) . '"><img src="' . $images['pa_icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_file'] . '" title="' . $lang['View_latest_file'] . '" /></a>'; } else *************** *** 923,927 **** $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGER_CAT' => false, ! 'U_CAT' => append_sid( pa_this_mxurl( 'action=category&cat_id=' . $sub_cat_rowset[$k]['cat_id'] ) ), 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], --- 923,927 ---- $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGER_CAT' => false, ! 'U_CAT' => append_sid( pa_this_mxurl( 'actionqdl=category&cat_id=' . $sub_cat_rowset[$k]['cat_id'] ) ), 'SUB_CAT' => ( !empty( $sub_cat ) ) ? '<b>' . $lang['Sub_category'] . ': </b>' . $sub_cat : '', 'CAT_IMAGE' => ( $is_new ) ? $images['pa_folder_new'] : $images['pa_folder'], *************** *** 1081,1085 **** for ( $i = 0; $i < count( $file_rowset ); $i++ ) { ! if ( $file_rowset[$i]['cat_allow_ratings'] ) { $pa_use_ratings = true; --- 1081,1085 ---- for ( $i = 0; $i < count( $file_rowset ); $i++ ) { ! if ( $this->ratings[$file_rowset[$i]['file_catid']]['activated'] ) { $pa_use_ratings = true; *************** *** 1144,1148 **** 'DATE' => $date, 'UPDATED' => $date_updated, ! 'RATING' => ( $file_rowset[$i]['cat_allow_ratings'] ? $rating : $lang['kb_no_ratings'] ), 'FILE_DLS' => $file_rowset[$i]['file_dls'], 'CAT_NAME' => $cat_name, --- 1144,1148 ---- 'DATE' => $date, 'UPDATED' => $date_updated, ! 'RATING' => ( $this->ratings[$file_rowset[$i]['file_catid']]['activated'] ? $rating : $lang['kb_no_ratings'] ), 'FILE_DLS' => $file_rowset[$i]['file_dls'], 'CAT_NAME' => $cat_name, *************** *** 1154,1158 **** ); $filelist = true; ! $pa_use_ratings = $file_rowset[$i]['cat_allow_ratings']; } --- 1154,1158 ---- ); $filelist = true; ! $pa_use_ratings = $this->ratings[$file_rowset[$i]['file_catid']]['activated']; } |
|
From: Jon O. <jon...@us...> - 2006-06-27 21:37:28
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv13006/modules/mx_kb Modified Files: db_install.php Log Message: fix Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_install.php,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** db_install.php 27 Jun 2006 18:13:45 -0000 1.39 --- db_install.php 27 Jun 2006 21:37:26 -0000 1.40 *************** *** 163,167 **** // Comments ! "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('use_comments', '1')", // comments_show "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('internal_comments', '1')", // NEW "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('formatting_comment_wordwrap', '1')", // formatting_comment_fixup --- 163,167 ---- // Comments ! "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('use_comments', '0')", // comments_show "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('internal_comments', '1')", // NEW "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('formatting_comment_wordwrap', '1')", // formatting_comment_fixup |
|
From: Jon O. <jon...@us...> - 2006-06-27 21:36:10
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12123 Added Files: .htaccess Log Message: Cache related... security: added main htaccess file --- NEW FILE: .htaccess --- DirectoryIndex index.php index.html index.htm # # Limit # <Limit GET HEAD POST> # # Allow access to everyone, but... # order allow,deny allow from all # # Banned: Who, Reason, Reference Link (topic), etc. ???... # # List # deny from 212.138.47.0/24 # deny from 212.138.64.0/22 # ... </Limit> # deny most common except .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$"> deny from all </FilesMatch> #Disable .htaccess viewing from browser <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> <Files ~ "\config.php$"> deny from all </Files> <IfModule mod_rewrite.c> RewriteEngine on # # Mod_rewrite rules require mod_rewrite is enabled for mxBB (config setting) # Uncomment below, and consult the mxBB mod_rewrite module documentation # # # Site Specific # #RewriteRule ^support/catlink([0-9]*)(.*)$ index.php?page=53&cat_link=$1 [L] #RewriteRule ^support(.*)$ index.php?page=53 [L] # # General # #RewriteCond %{REQUEST_URI} ^(.*)/catlink([0-9]*)(.*)$ #RewriteRule ^page([0-9]*)/catlink([0-9]*)(.*)$ index.php?page=$1&cat_link=$2 [L] #RewriteCond %{REQUEST_URI} ^(.*)/sub([0-9]*)(.*)$ #RewriteRule ^page([0-9]*)/sub([0-9]*)(.*)$ index.php?page=$1&dynamic_block=$2 [L] #RewriteCond %{REQUEST_URI} ^/page([0-9]*)(.*)$ #RewriteRule ^page([0-9]*)(.*)$ index.php?page=$1$2 [L] #RewriteCond %{REQUEST_URI} ^/block([0-9]*)(.*)$ #RewriteRule ^block([0-9]*)(.*)$ index.php?block=$1$2 [L] </IfModule> # # Error redirects - require the mxBB errordocs module installed # Uncomment below, and consult the mxBB errordocs module documentation # #ErrorDocument 400 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 401 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 402 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 403 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 404 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 500 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 501 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 502 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 503 /index.php?page=x&errno=400&errlog=yes #ErrorDocument 504 /index.php?page=x&errno=400&errlog=yes |