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-07-03 20:11:34
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv30987/modules/mx_linkdb/linkdb/modules Modified Files: link_main.php link_rate.php link_search.php link_user_upload.php Log Message: Working... Index: link_user_upload.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_user_upload.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** link_user_upload.php 1 Jul 2006 21:32:19 -0000 1.6 --- link_user_upload.php 3 Jul 2006 20:11:30 -0000 1.7 *************** *** 41,45 **** // Check allow guset submit site // ! if ( $linkdb_config['allow_guest_submit_site'] && !$userdata['session_logged_in'] ) { $redirect = linkdb_this_mxurl( "action=user_upload" ); --- 41,45 ---- // Check allow guset submit site // ! if ( UPDATEUPDATE ) { $redirect = linkdb_this_mxurl( "action=user_upload" ); *************** *** 84,88 **** { $link_url = ( !empty( $_POST['download_url'] ) ) ? $_POST['download_url'] : ''; ! if ( $linkdb_config['email_notify'] ) { $sql = "SELECT user_email, user_lang --- 84,89 ---- { $link_url = ( !empty( $_POST['download_url'] ) ) ? $_POST['download_url'] : ''; ! ! if ( UPDATEUPDATE ) { $sql = "SELECT user_email, user_lang Index: link_search.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_search.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** link_search.php 1 Jul 2006 21:32:19 -0000 1.7 --- link_search.php 3 Jul 2006 20:11:30 -0000 1.8 *************** *** 480,484 **** 'U_CAT' => $cat_url ) ); ! if ( $linkdb_config['allow_vote'] ) { $template->assign_block_vars( "searchresults.LINK_VOTE", array() ); --- 480,484 ---- 'U_CAT' => $cat_url ) ); ! if ( UPDATEUPDATE ) { $template->assign_block_vars( "searchresults.LINK_VOTE", array() ); Index: link_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_rate.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** link_rate.php 1 Jul 2006 21:32:19 -0000 1.6 --- link_rate.php 3 Jul 2006 20:11:30 -0000 1.7 *************** *** 16,20 **** global $_REQUEST, $_POST, $phpbb_root_path, $linkdb_functions; ! if ( !$linkdb_config['allow_vote'] ) { mx_message_die( GENERAL_MESSAGE, $lang['Not_allow_vote'] ); --- 16,20 ---- global $_REQUEST, $_POST, $phpbb_root_path, $linkdb_functions; ! if ( UPDATEUPDATE ) { mx_message_die( GENERAL_MESSAGE, $lang['Not_allow_vote'] ); Index: link_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_main.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** link_main.php 1 Jul 2006 21:32:19 -0000 1.5 --- link_main.php 3 Jul 2006 20:11:30 -0000 1.6 *************** *** 34,38 **** // $this->display_categories(); - $this->display( $lang['Links_Title'], 'link_main_body.tpl' ); } --- 34,37 ---- |
|
From: Jon O. <jon...@us...> - 2006-07-03 20:11:34
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv30987/modules/mx_linkdb/linkdb/admin Modified Files: admin_setting.php Log Message: Working... Index: admin_setting.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/admin/admin_setting.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** admin_setting.php 3 Jul 2006 12:23:30 -0000 1.7 --- admin_setting.php 3 Jul 2006 20:11:30 -0000 1.8 *************** *** 107,110 **** --- 107,112 ---- $sort_order_list .= '</select>'; + $settings_newdays = $new['settings_newdays']; + // // Instructions *************** *** 278,281 **** --- 280,287 ---- 'L_CAT_COL' => $lang['cat_col'], + 'L_NFDAYS' => $lang['Nfdays'], + 'L_NFDAYSINFO' => $lang['Nfdaysinfo'], + 'SETTINGS_NEWDAYS' => $settings_newdays, + // // Comments |
|
From: Jon O. <jon...@us...> - 2006-07-03 20:11:34
|
Update of /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv30987/modules/mx_linkdb/templates/subSilver/admin Modified Files: linkdb_admin_settings.tpl Log Message: Working... Index: linkdb_admin_settings.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin/linkdb_admin_settings.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** linkdb_admin_settings.tpl 3 Jul 2006 12:23:30 -0000 1.3 --- linkdb_admin_settings.tpl 3 Jul 2006 20:11:30 -0000 1.4 *************** *** 85,88 **** --- 85,92 ---- <td class="row2"><input class="post" type="text" maxlength="2" size="5" name="cat_col" value="{CAT_COL}" /></td> </tr> + <tr> + <td class="row1">{L_NFDAYS}<br><span class="gensmall">{L_NFDAYSINFO}</span></td> + <td class="row2"><input type="text" class="post" size="5" maxlength="5" name="settings_newdays" value="{SETTINGS_NEWDAYS}" /></td> + </tr> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> |
|
From: Jon O. <jon...@us...> - 2006-07-03 12:46:57
|
Update of /cvsroot/mxbb/mx_kb/templates/subSilver/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1736/modules/mx_kb/templates/subSilver/admin Modified Files: kb_cat_edit_body.tpl Log Message: simplification of cat permissions Index: kb_cat_edit_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_kb/templates/subSilver/admin/kb_cat_edit_body.tpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** kb_cat_edit_body.tpl 5 Apr 2006 21:19:50 -0000 1.6 --- kb_cat_edit_body.tpl 3 Jul 2006 12:24:44 -0000 1.7 *************** *** 5,17 **** <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <form action="{S_ACTION}" method="post"> ! <tr> <th class="thHead" colspan="2">{L_CAT_SETTINGS}</th> </tr> ! <tr> <td class="row1">{L_CATEGORY}</td> <td class="row2"><input class="post" type="text" size="25" name="catname" value="{CAT_NAME}" class="post" /></td> </tr> <!-- BEGIN switch_cat --> ! <tr> <td class="row1">{L_DESCRIPTION}</td> <td class="row2"><textarea rows="5" cols="45" wrap="virtual" name="catdesc" class="post">{CAT_DESCRIPTION}</textarea></td> --- 5,17 ---- <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <form action="{S_ACTION}" method="post"> ! <tr> <th class="thHead" colspan="2">{L_CAT_SETTINGS}</th> </tr> ! <tr> <td class="row1">{L_CATEGORY}</td> <td class="row2"><input class="post" type="text" size="25" name="catname" value="{CAT_NAME}" class="post" /></td> </tr> <!-- BEGIN switch_cat --> ! <tr> <td class="row1">{L_DESCRIPTION}</td> <td class="row2"><textarea rows="5" cols="45" wrap="virtual" name="catdesc" class="post">{CAT_DESCRIPTION}</textarea></td> *************** *** 26,30 **** </tr> <!-- BEGIN switch_edit_category --> ! <tr> <td class="row1">{L_NUMBER_ARTICLES}</td> <td class="row2"><input class="post" type="text" size="4" maxlength="3" name="number_articles" value="{NUMBER_ARTICLES}" class="post" /></td> --- 26,30 ---- </tr> <!-- BEGIN switch_edit_category --> ! <tr> <td class="row1">{L_NUMBER_ARTICLES}</td> <td class="row2"><input class="post" type="text" size="4" maxlength="3" name="number_articles" value="{NUMBER_ARTICLES}" class="post" /></td> *************** *** 36,44 **** <!-- TITLE ------------------------------------------------------------------------------------------- --> <th class="thHead" colspan="2"> {L_COMMENTS_TITLE}</th> ! </tr> <tr> <td class="row1" width="50%">{L_USE_COMMENTS}<br /><span class="gensmall">{L_USE_COMMENTS_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="cat_allow_comments" value="-1" {S_USE_COMMENTS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="cat_allow_comments" value="1" {S_USE_COMMENTS_YES} /> {L_YES} <input type="radio" name="cat_allow_comments" value="0" {S_USE_COMMENTS_NO} /> {L_NO}</td> ! </tr> <tr> <td class="row1" width="50%">{L_INTERNAL_COMMENTS}<br /><span class="gensmall">{L_INTERNAL_COMMENTS_EXPLAIN}</span></td> --- 36,44 ---- <!-- TITLE ------------------------------------------------------------------------------------------- --> <th class="thHead" colspan="2"> {L_COMMENTS_TITLE}</th> ! </tr> <tr> <td class="row1" width="50%">{L_USE_COMMENTS}<br /><span class="gensmall">{L_USE_COMMENTS_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="cat_allow_comments" value="-1" {S_USE_COMMENTS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="cat_allow_comments" value="1" {S_USE_COMMENTS_YES} /> {L_YES} <input type="radio" name="cat_allow_comments" value="0" {S_USE_COMMENTS_NO} /> {L_NO}</td> ! </tr> <tr> <td class="row1" width="50%">{L_INTERNAL_COMMENTS}<br /><span class="gensmall">{L_INTERNAL_COMMENTS_EXPLAIN}</span></td> *************** *** 48,55 **** <td class="row1" width="50%">{L_FORUM_ID}<br /><span class="gensmall">{L_FORUM_ID_EXPLAIN}</span></td> <td class="row2" width="50%">{FORUM_LIST}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_AUTOGENERATE_COMMENTS}<br /><span class="gensmall">{L_AUTOGENERATE_COMMENTS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="autogenerate_comments" value="-1" {S_AUTOGENERATE_COMMENTS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="autogenerate_comments" value="1" {S_AUTOGENERATE_COMMENTS_YES} /> {L_YES} <input type="radio" name="autogenerate_comments" value="0" {S_AUTOGENERATE_COMMENTS_NO} /> {L_NO}</td> </tr> <tr> --- 48,55 ---- <td class="row1" width="50%">{L_FORUM_ID}<br /><span class="gensmall">{L_FORUM_ID_EXPLAIN}</span></td> <td class="row2" width="50%">{FORUM_LIST}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_AUTOGENERATE_COMMENTS}<br /><span class="gensmall">{L_AUTOGENERATE_COMMENTS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="autogenerate_comments" value="-1" {S_AUTOGENERATE_COMMENTS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="autogenerate_comments" value="1" {S_AUTOGENERATE_COMMENTS_YES} /> {L_YES} <input type="radio" name="autogenerate_comments" value="0" {S_AUTOGENERATE_COMMENTS_NO} /> {L_NO}</td> </tr> <tr> *************** *** 60,64 **** <td class="row1" width="50%">{L_USE_RATINGS}<br /><span class="gensmall">{L_USE_RATINGS_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="cat_allow_ratings" value="-1" {S_USE_RATINGS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="cat_allow_ratings" value="1" {S_USE_RATINGS_YES} /> {L_YES} <input type="radio" name="cat_allow_ratings" value="0" {S_USE_RATINGS_NO} /> {L_NO}</td> ! </tr> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> --- 60,64 ---- <td class="row1" width="50%">{L_USE_RATINGS}<br /><span class="gensmall">{L_USE_RATINGS_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="cat_allow_ratings" value="-1" {S_USE_RATINGS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="cat_allow_ratings" value="1" {S_USE_RATINGS_YES} /> {L_YES} <input type="radio" name="cat_allow_ratings" value="0" {S_USE_RATINGS_NO} /> {L_NO}</td> ! </tr> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> *************** *** 68,72 **** <td class="row1" width="50%">{L_PRE_TEXT_NAME}<br /><span class="gensmall">{L_PRE_TEXT_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="show_pretext" value="-1" {S_DEFAULT_PRETEXT} /> {L_DEFAULT} <input type="radio" name="show_pretext" value="1" {S_SHOW_PRETEXT} /> {L_SHOW} <input type="radio" name="show_pretext" value="0" {S_HIDE_PRETEXT} /> {L_HIDE}</td> ! </tr> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> --- 68,72 ---- <td class="row1" width="50%">{L_PRE_TEXT_NAME}<br /><span class="gensmall">{L_PRE_TEXT_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="show_pretext" value="-1" {S_DEFAULT_PRETEXT} /> {L_DEFAULT} <input type="radio" name="show_pretext" value="1" {S_SHOW_PRETEXT} /> {L_SHOW} <input type="radio" name="show_pretext" value="0" {S_HIDE_PRETEXT} /> {L_HIDE}</td> ! </tr> <tr> <!-- TITLE ------------------------------------------------------------------------------------------- --> *************** *** 80,125 **** <td class="row1" width="50%">{L_NOTIFY_GROUP}<br /><span class="gensmall">{L_NOTIFY_GROUP_EXPLAIN}</span></td> <td class="row2" width="50%">{NOTIFY_GROUP}</td> - </tr> - - <tr> - <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_CAT_PERMISSIONS}</th> - </tr> - <tr> - <td class="row1"><span class="gen">{L_VIEW_LEVEL}:</span></td> - <td class="row2"><select name="auth_view"><option {VIEW_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {VIEW_REG} value="{S_USER}">{L_REG}</option><option {VIEW_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {VIEW_MOD} value="{S_MOD}">{L_MOD}</option><option {VIEW_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> - </tr> - <tr> - <td class="row1"><span class="gen">{L_UPLOAD_LEVEL}:</span></td> - <td class="row2"><select name="auth_post"><option {UPLOAD_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {UPLOAD_REG} value="{S_USER}">{L_REG}</option><option {UPLOAD_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {UPLOAD_MOD} value="{S_MOD}">{L_MOD}</option><option {UPLOAD_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> - </tr> - <tr> - <td class="row1"><span class="gen">{L_RATE_LEVEL}:</span></td> - <td class="row2"><select name="auth_rate"><option {RATE_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {RATE_REG} value="{S_USER}">{L_REG}</option><option {RATE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {RATE_MOD} value="{S_MOD}">{L_MOD}</option><option {RATE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> - </tr> - <tr> - <td class="row1"><span class="gen">{L_COMMENT_LEVEL}:</span></td> - <td class="row2"><span class="gen"><select name="auth_comment"><option {COMMENT_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {COMMENT_REG} value="{S_USER}">{L_REG}</option><option {COMMENT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {COMMENT_MOD} value="{S_MOD}">{L_MOD}</option><option {COMMENT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></span></td> - </tr> - <tr> - <td class="row1"><span class="gen">{L_EDIT_LEVEL}:</span></td> - <td class="row2"><select name="auth_edit"><option {EDIT_GUEST} value="{S_GUEST}">{L_GUEST}</option><option {EDIT_REG} value="{S_USER}">{L_REG}</option><option {EDIT_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {EDIT_MOD} value="{S_MOD}">{L_MOD}</option><option {EDIT_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> - </tr> - <tr> - <td class="row1"><span class="gen">{L_DELETE_LEVEL}:</span></td> - <td class="row2"><select name="auth_delete"><option {DELETE_REG} value="{S_USER}">{L_REG}</option><option {DELETE_PRIVATE} value="{S_PRIVATE}">{L_PRIVATE}</option><option {DELETE_MOD} value="{S_MOD}">{L_MOD}</option><option {DELETE_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> ! <td class="row1"><span class="gen">{L_APPROVAL_LEVEL}:</span></td> ! <td class="row2"><select name="auth_approval"><option {APPROVAL_DISABLED} value="{S_GUEST}">{L_DISABLED}</option><option {APPROVAL_MOD} value="{S_MOD}">{L_MOD}</option><option {APPROVAL_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> </tr> <tr> - <td class="row1"><span class="gen">{L_APPROVAL_EDIT_LEVEL}:</span></td> - <td class="row2"><select name="auth_approval_edit"><option {APPROVAL_DISABLED} value="{S_GUEST}">{L_DISABLED}</option><option {APPROVAL_MOD} value="{S_MOD}">{L_MOD}</option><option {APPROVAL_ADMIN} value="{S_ADMIN}">{L_ADMIN}</option></select></td> - </tr> - <tr> <td class="cat" colspan="2" align="center">{S_HIDDEN}<input type="submit" name="submit" value="{L_CREATE}" class="mainoption" /></td> </tr> </table> </form> ! <br clear="all" /> \ No newline at end of file --- 80,126 ---- <td class="row1" width="50%">{L_NOTIFY_GROUP}<br /><span class="gensmall">{L_NOTIFY_GROUP_EXPLAIN}</span></td> <td class="row2" width="50%">{NOTIFY_GROUP}</td> </tr> + <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_CAT_PERMISSIONS}</th> </tr> + <tr> + <td class="row1" width="50%">{L_VIEW_LEVEL}<br><span class="gensmall">{L_VIEW_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_VIEW_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_UPLOAD_LEVEL}<br><span class="gensmall">{L_UPLOAD_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_UPLOAD_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_RATE_LEVEL}<br><span class="gensmall">{L_RATE_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_RATE_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_COMMENT_LEVEL}<br><span class="gensmall">{L_COMMENT_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_COMMENT_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_EDIT_LEVEL}<br><span class="gensmall">{L_EDIT_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_EDIT_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_DELETE_LEVEL}<br><span class="gensmall">{L_DELETE_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_DELETE_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_APPROVAL_LEVEL}<br><span class="gensmall">{L_APPROVAL_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_APPROVAL_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_APPROVAL_EDIT_LEVEL}<br><span class="gensmall">{L_APPROVAL_EDIT_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_APPROVAL_EDIT_LEVEL}</td> + </tr> <tr> <td class="cat" colspan="2" align="center">{S_HIDDEN}<input type="submit" name="submit" value="{L_CREATE}" class="mainoption" /></td> </tr> </table> </form> ! <br clear="all" /> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2006-07-03 12:46:47
|
Update of /cvsroot/mxbb/mx_linkdb/language/lang_english In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1210/modules/mx_linkdb/language/lang_english Modified Files: lang_admin.php Log Message: Working... Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/language/lang_english/lang_admin.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** lang_admin.php 3 Jul 2006 09:18:01 -0000 1.4 --- lang_admin.php 3 Jul 2006 12:23:30 -0000 1.5 *************** *** 10,15 **** // ! // Categories // $lang['All_links'] = 'All Links'; $lang['Approved_links'] = 'Approved Links'; --- 10,189 ---- // ! // adminCP index ! // ! $lang['pafileDB_Download'] = 'PafileDB Admin'; ! $lang['0_Configuration'] = 'General Settings'; ! $lang['1_Cat_manage'] = 'Category Management'; ! $lang['2_File_manage'] = 'File Management'; ! $lang['3_Permissions'] = 'Permissions'; ! $lang['4_License'] = 'License'; ! $lang['5_Custom_manage'] = 'Custom fields'; ! $lang['6_Fchecker'] = 'File checker'; ! ! // ! // Configuration ! // ! $lang['Settingstitle'] ='Link Config Control'; ! $lang['Settingsexplain'] = 'You can change the general settings of your link here'; ! ! $lang['Settings_changed'] = 'Your settings have been successfully updated'; ! $lang['Click_return_link_config'] = 'Click %sHere%s to return to the Link Config Manager'; ! ! // ! // Admin Panels - Configuration ! // ! $lang['Panel_config_title'] = 'Download Configuration'; ! $lang['Panel_config_explain'] = 'The form below will allow you to customize all the general download options.'; ! ! // ! // General ! // ! $lang['General_title'] = 'Link Config Control'; ! ! $lang['Module_name'] = 'Database Name'; ! $lang['Module_name_explain'] = 'This is the name of the database, such as \'Download Index\''; ! ! $lang['Enable_module'] = 'Enable this module'; ! $lang['Enable_module_explain'] = 'This will make the download section unavailable to users. This is a good option to use when making modifications to your database. Only Admins will be able to view the database.'; ! ! $lang['Wysiwyg_path'] = 'Path to WYSIWYG software'; ! $lang['Wysiwyg_path_explain'] = 'This is the path (from mxBB/phpBB root) to the WYSIWYG software folder, eg \'modules/mx_shared/\' if you have uploaded, for example, TinyMCE in modules/mx_shared/tinymce.'; ! ! $lang['site_logo'] = 'The url where your logo can be found (full url)'; ! $lang['site_url'] = 'Your url of your website'; ! ! $lang['settings_link_page'] = 'Max links per page'; ! $lang['lock_submit_site'] = 'Lock user submit site'; ! $lang['interval'] = 'How fast the banners are displayed'; ! ! // ! // Link ! // ! $lang['width'] = 'Max width of the banners'; ! $lang['height'] = 'Max height of the banners'; ! $lang['split_links'] = 'Split Links'; ! $lang['allow_no_logo'] = 'Allow submit site without banner'; ! $lang['Link_display_links_logo'] = 'Display Links site banner'; ! ! // ! // Appearance ! // ! $lang['Appearance_title'] = 'Appearance'; ! ! $lang['File_pagination'] = 'File pagination'; ! $lang['File_pagination_explain'] = 'The number of files to show in a category before pagination.'; ! ! $lang['Sort_method'] = 'Sorting method'; ! $lang['Sort_method_explain'] = 'Define how files are sorted within its category.'; ! ! $lang['Sort_order'] = 'ASC or DESC sorting'; ! $lang['Sort_order_explain'] = ''; ! ! $lang['cat_col'] = 'How many column of categories are to be listed'; ! ! // ! // Comments ! // ! $lang['Comments_title'] = 'Comments'; ! $lang['Comments_title_explain'] = 'Some comments settings are default settings, and can be overridden per category'; ! ! $lang['Use_comments'] = 'Comments'; ! $lang['Use_comments_explain'] = 'Enable comments for files, to be inserted in the forum'; ! ! $lang['Internal_comments'] = 'Internal or phpBB Comments'; ! $lang['Internal_comments_explain'] = 'Use internal comments, or phpBB comments'; ! ! $lang['Select_topic_id'] = 'Select phpBB Comments Topic!'; ! ! $lang['Internal_comments_phpBB'] = 'phpBB Comments'; ! $lang['Internal_comments_internal'] = 'Internal Comments'; ! ! $lang['Forum_id'] = 'phpBB Forum ID'; ! $lang['Forum_id_explain'] = 'If phpBB comments are used, this is the forum where the comments will be kept'; ! ! $lang['Autogenerate_comments'] = 'Autogenerate comments when fil are managed'; ! $lang['Autogenerate_comments_explain'] = 'When editing/adding a file, a notifying reply is posted in the file topic.'; ! ! $lang['Del_topic'] = 'Delete Topic'; ! $lang['Del_topic_explain'] = 'When you delete a file, do you want its comments topic to be deleted also?'; ! ! $lang['Comments_pag'] = 'Comments pagination'; ! $lang['Comments_pag_explain'] = 'The number of comments to show for the file before pagination.'; ! ! $lang['Allow_Wysiwyg'] = 'Use WYSIWYG editor'; ! $lang['Allow_Wysiwyg_explain'] = 'If enabled, the standard BBCode/HTML/Smilies input dialog is replaced by a WYSIWYG editor.'; ! ! $lang['Allow_links'] = 'Allow Links'; ! $lang['Allow_links_message'] = 'Default \'No Links\' Message'; ! $lang['Allow_links_explain'] = 'If links are not allowed this text will be displayed instead'; ! ! $lang['Allow_images'] = 'Allow Images'; ! $lang['Allow_images_message'] = 'Default \'No Images\' Message'; ! $lang['Allow_images_explain'] = 'If images are not allowed this text will be displayed instead'; ! ! $lang['Max_subject_char'] = 'Maximum Number of charcters in subject'; ! $lang['Max_subject_char_explain'] = 'If to big, you get an error message (Limit the subject).'; ! ! $lang['Max_desc_char'] = 'Maximum Number of charcters in description'; ! $lang['Max_desc_char_explain'] = 'If to big, you get an error message (Limit the subject).'; ! ! $lang['Max_char'] = 'Maximum Number of charcters in text'; ! $lang['Max_char_explain'] = 'If to big, you get an error message (Limit the comment).'; ! ! $lang['Format_wordwrap'] = 'Word wrapping'; ! $lang['Format_wordwrap_explain'] = 'Text control filter'; ! ! $lang['Format_truncate_links'] = 'Truncate Links'; ! $lang['Format_truncate_links_explain'] = 'Links are shortened, eg t ex \'www.mxbb-portal...\''; ! ! $lang['Format_image_resize'] = 'Image resize'; ! $lang['Format_image_resize_explain'] = 'Resize images to this width (pixels)'; ! ! // ! // Ratings ! // ! $lang['Ratings_title'] = 'Ratings'; ! $lang['Ratings_title_explain'] = 'Some ratings settings are default settings, and can be overridden per category'; ! ! $lang['Use_ratings'] = 'Ratings'; ! $lang['Use_ratings_explain'] = 'Enable ratings'; ! ! $lang['Votes_check_ip'] = 'Validate ratings - IP'; ! $lang['Votes_check_ip_explain'] = 'Only one vote per IP address is permitted.'; ! ! $lang['Votes_check_userid'] = 'Validate ratings - User'; ! $lang['Votes_check_userid_explain'] = 'Users may only vote once.'; ! ! // ! // Instructions ! // ! $lang['Instructions_title'] = 'User Instructions'; ! ! $lang['Pre_text_name'] = 'File Submission Instructions'; ! $lang['Pre_text_explain'] = 'Activate Submission Instructions displayed to users at the top of the submission forum.'; ! ! $lang['Pre_text_header'] = 'File Submission Instructions Header'; ! $lang['Pre_text_body'] = 'File Submission Instructions Body'; ! ! $lang['Show'] = 'Show'; ! $lang['Hide'] = 'Hide'; ! ! // ! // Notifications ! // ! $lang['Notifications_title'] = 'Notification'; ! ! $lang['Notify'] = 'Notify admin by'; ! $lang['Notify_explain'] = 'Choose which way to receive notices that new files have been uploaded'; ! $lang['PM'] = 'PM'; ! $lang['Notify_group'] = 'and groupmembers '; ! $lang['Notify_group_explain'] = 'Also send notification to members in this group'; ! ! // ! // Admin Panels - Categories // + $lang['Panel_cat_title'] = 'Category administration'; + $lang['Panel_cat_explain'] = 'You can use the Category Management section to add, edit, delete and reorder categories. In order to add files to your database, you must have at least one category created. You can select a link below to manage your categories.'; + $lang['All_links'] = 'All Links'; $lang['Approved_links'] = 'Approved Links'; *************** *** 30,35 **** --- 204,213 ---- $lang['Catname'] = 'Category Name'; $lang['Catnameinfo'] = 'This will become the name of the category.'; + $lang['Catdesc'] = 'Category Description'; + $lang['Catdescinfo'] = 'This is a description of the files in the category'; $lang['Catparent'] = 'Parent Category'; $lang['Catparentinfo'] = 'If you want this category to be a sub-category, select the category you want it to be a sub-category of.'; + $lang['Allow_file'] = 'Allow Adding file'; + $lang['Allow_file_info'] = 'If you not allow adding file to this category it will be higher level category and you can add category as a sub for this category, like in the forum.'; $lang['None'] = 'None'; $lang['Catedited'] = 'The category you selected has been successfully edited'; *************** *** 41,45 **** // ! //Catgories Permission // $lang['Select_a_Category'] = 'Select a Category'; --- 219,223 ---- // ! // Admin Panels - Permissions // $lang['Select_a_Category'] = 'Select a Category'; *************** *** 83,112 **** // - // Configuration - // - $lang['Settingstitle'] ='Link Config Control'; - $lang['Settingsexplain'] = 'You can change the general settings of your link here'; - $lang['lock_submit_site'] = 'Lock user submit site'; - $lang['cat_col'] = 'How many column of categories are to be listed'; - $lang['split_links'] = 'Split Links'; - $lang['allow_guest_submit_site'] = 'Allow guest to submit site'; - $lang['allow_no_logo'] = 'Allow submit site without banner'; - $lang['site_logo'] = 'The url where your logo can be found (full url)'; - $lang['site_url'] = 'Your url of your website'; - $lang['width'] = 'Max width of the banners'; - $lang['height'] = 'Max height of the banners'; - $lang['settings_link_page'] = 'Max links per page'; - $lang['Default_sort_method'] = 'Default Sort Method'; - $lang['Default_sort_order'] = 'Default Sort Order'; - $lang['interval'] = 'How fast the banners are displayed'; - $lang['display_logo'] = 'How many banners are displayed at once'; - $lang['Link_display_links_logo'] = 'Display Links site banner'; - $lang['Link_email_notify'] = 'While Link added, send e-mail to all site admins'; - $lang['Link_pm_notify'] = 'While Link added, notify all site admins via private message'; - $lang['Link_allow_rate'] = 'Allow rate link'; - $lang['Settings_changed'] = 'Your settings have been successfully updated'; - $lang['Click_return_link_config'] = 'Click %sHere%s to return to the Link Config Manager'; - - // //Java script messages and php errors // --- 261,264 ---- |
|
From: Jon O. <jon...@us...> - 2006-07-03 12:46:41
|
Update of /cvsroot/mxbb/mx_pafiledb/language/lang_english In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1602/modules/mx_pafiledb/language/lang_english Modified Files: lang_admin.php Log Message: fix Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/language/lang_english/lang_admin.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** lang_admin.php 17 Jun 2006 20:13:22 -0000 1.9 --- lang_admin.php 3 Jul 2006 12:24:07 -0000 1.10 *************** *** 75,79 **** $lang['Screenshots_directory_explain'] = 'Enter the relative path from your root installation (where phpBB or mxBB is located) to the Screenshots upload directory. If you stick to the file structure provided in the shipped package, enter \'pafiledb/images/screenshots/\'.'; - // // File --- 75,78 ---- *************** *** 259,263 **** // $lang['Panel_cat_title'] = 'Category administration'; ! $lang['Panel_cat_explain'] = ''; $lang['Use_default'] = 'Use default setting'; --- 258,262 ---- // $lang['Panel_cat_title'] = 'Category administration'; ! $lang['Panel_cat_explain'] = 'You can use the Category Management section to add, edit, delete and reorder categories. In order to add files to your database, you must have at least one category created. You can select a link below to manage your categories.'; $lang['Use_default'] = 'Use default setting'; |
|
From: Jon O. <jon...@us...> - 2006-07-03 12:46:37
|
Update of /cvsroot/mxbb/mx_kb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1736/modules/mx_kb/admin Modified Files: admin_kb_cat.php Log Message: simplification of cat permissions Index: admin_kb_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb_cat.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** admin_kb_cat.php 17 Jun 2006 20:11:23 -0000 1.25 --- admin_kb_cat.php 3 Jul 2006 12:24:44 -0000 1.26 *************** *** 103,106 **** --- 103,111 ---- } + $cat_auth_levels = array( 'ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN' ); + $cat_auth_const = array( AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN ); + $global_auth = array( 'auth_view', 'auth_post', 'auth_rate', 'auth_comment', 'auth_edit', 'auth_delete', 'auth_approval', 'auth_approval_edit' ); + $auth_select = array(); + switch ( $mode ) { *************** *** 153,156 **** --- 158,184 ---- // + // Permissions + // + $cat_rowset['auth_view'] = 0; + $cat_rowset['auth_post'] = 1; + $cat_rowset['auth_rate'] = 1; + $cat_rowset['auth_comment'] = 1; + $cat_rowset['auth_edit'] = 1; + $cat_rowset['auth_delete'] = 2; + $cat_rowset['auth_approval'] = 5; + $cat_rowset['auth_approval_edit'] = 5; + + foreach( $global_auth as $auth ) + { + $auth_select[$auth] = ' <select name="' . $auth . '">'; + for( $k = 0; $k < count( $cat_auth_levels ); $k++ ) + { + $selected = ( $cat_rowset[$auth] == $cat_auth_const[$k] ) ? ' selected="selected"' : ''; + $auth_select[$auth] .= '<option value="' . $cat_auth_const[$k] . '"' . $selected . '>' . $lang['Forum_' . $cat_auth_levels[$k]] . '</option>'; + } + $auth_select[$auth] .= '</select> '; + } + + // // Generate page // *************** *** 259,290 **** // 'L_CAT_PERMISSIONS' => $lang['Category_Permissions'], 'L_VIEW_LEVEL' => $lang['View_level'], 'L_UPLOAD_LEVEL' => $lang['Upload_level'], 'L_RATE_LEVEL' => $lang['Rate_level'], 'L_COMMENT_LEVEL' => $lang['Comment_level'], 'L_EDIT_LEVEL' => $lang['Edit_level'], 'L_DELETE_LEVEL' => $lang['Delete_level'], 'L_APPROVAL_LEVEL' => $lang['Approval_level'], 'L_APPROVAL_EDIT_LEVEL' => $lang['Approval_edit_level'], ! 'L_GUEST' => $lang['Forum_ALL'], ! 'L_REG' => $lang['Forum_REG'], ! 'L_PRIVATE' => $lang['Forum_PRIVATE'], ! 'L_MOD' => $lang['Forum_MOD'], ! 'L_ADMIN' => $lang['Forum_ADMIN'], 'L_DISABLED' => $lang['Disabled'], - 'VIEW_GUEST' => 'selected="selected"', - 'UPLOAD_REG' => 'selected="selected"', - 'RATE_REG' => 'selected="selected"', - 'COMMENT_REG' => 'selected="selected"', - 'EDIT_REG' => 'selected="selected"', - 'DELETE_MOD' => 'selected="selected"', - 'APPROVAL_DISABLED' => 'selected="selected"', - 'S_GUEST' => AUTH_ALL, - 'S_USER' => AUTH_REG, - 'S_PRIVATE' => AUTH_ACL, - 'S_MOD' => AUTH_MOD, - 'S_ADMIN' => AUTH_ADMIN )); } --- 287,317 ---- // 'L_CAT_PERMISSIONS' => $lang['Category_Permissions'], + 'L_VIEW_LEVEL' => $lang['View_level'], + 'S_VIEW_LEVEL' => $auth_select['auth_view'], + 'L_UPLOAD_LEVEL' => $lang['Upload_level'], + 'S_UPLOAD_LEVEL' => $auth_select['auth_post'], + 'L_RATE_LEVEL' => $lang['Rate_level'], + 'S_RATE_LEVEL' => $auth_select['auth_rate'], + 'L_COMMENT_LEVEL' => $lang['Comment_level'], + 'S_COMMENT_LEVEL' => $auth_select['auth_comment'], + 'L_EDIT_LEVEL' => $lang['Edit_level'], + 'S_EDIT_LEVEL' => $auth_select['auth_edit'], + 'L_DELETE_LEVEL' => $lang['Delete_level'], + 'S_DELETE_LEVEL' => $auth_select['auth_delete'], + 'L_APPROVAL_LEVEL' => $lang['Approval_level'], + 'S_APPROVAL_LEVEL' => $auth_select['auth_approval'], + 'L_APPROVAL_EDIT_LEVEL' => $lang['Approval_edit_level'], ! 'S_APPROVAL_EDIT_LEVEL' => $auth_select['auth_approval_edit'], 'L_DISABLED' => $lang['Disabled'], )); } *************** *** 409,412 **** --- 436,453 ---- $notify_group_list = mx_get_groups($mx_kb->cat_rowset[$cat_id]['notify_group'], 'notify_group'); + // + // Permissions + // + foreach( $global_auth as $auth ) + { + $auth_select[$auth] = ' <select name="' . $auth . '">'; + for( $k = 0; $k < count( $cat_auth_levels ); $k++ ) + { + $selected = ( $mx_kb->cat_rowset[$cat_id][$auth] == $cat_auth_const[$k] ) ? ' selected="selected"' : ''; + $auth_select[$auth] .= '<option value="' . $cat_auth_const[$k] . '"' . $selected . '>' . $lang['Forum_' . $cat_auth_levels[$k]] . '</option>'; + } + $auth_select[$auth] .= '</select> '; + } + // // Generate page *************** *** 519,586 **** // 'L_CAT_PERMISSIONS' => $lang['Category_Permissions'], 'L_VIEW_LEVEL' => $lang['View_level'], 'L_UPLOAD_LEVEL' => $lang['Upload_level'], 'L_RATE_LEVEL' => $lang['Rate_level'], 'L_COMMENT_LEVEL' => $lang['Comment_level'], 'L_EDIT_LEVEL' => $lang['Edit_level'], 'L_DELETE_LEVEL' => $lang['Delete_level'], 'L_APPROVAL_LEVEL' => $lang['Approval_level'], 'L_APPROVAL_EDIT_LEVEL' => $lang['Approval_edit_level'], ! 'L_GUEST' => $lang['Forum_ALL'], ! 'L_REG' => $lang['Forum_REG'], ! 'L_PRIVATE' => $lang['Forum_PRIVATE'], ! 'L_MOD' => $lang['Forum_MOD'], ! 'L_ADMIN' => $lang['Forum_ADMIN'], 'L_DISABLED' => $lang['Disabled'], - 'VIEW_GUEST' => ( $mx_kb->cat_rowset[$cat_id]['auth_view'] == AUTH_ALL ) ? 'selected="selected"' : '', - 'VIEW_REG' => ( $mx_kb->cat_rowset[$cat_id]['auth_view'] == AUTH_REG ) ? 'selected="selected"' : '', - 'VIEW_PRIVATE' => ( $mx_kb->cat_rowset[$cat_id]['auth_view'] == AUTH_ACL ) ? 'selected="selected"' : '', - 'VIEW_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_view'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'VIEW_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_view'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'UPLOAD_GUEST' => ( $mx_kb->cat_rowset[$cat_id]['auth_post'] == AUTH_ALL ) ? 'selected="selected"' : '', - 'UPLOAD_REG' => ( $mx_kb->cat_rowset[$cat_id]['auth_post'] == AUTH_REG ) ? 'selected="selected"' : '', - 'UPLOAD_PRIVATE' => ( $mx_kb->cat_rowset[$cat_id]['auth_post'] == AUTH_ACL ) ? 'selected="selected"' : '', - 'UPLOAD_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_post'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'UPLOAD_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_post'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'RATE_GUEST' => ( $mx_kb->cat_rowset[$cat_id]['auth_rate'] == AUTH_ALL ) ? 'selected="selected"' : '', - 'RATE_REG' => ( $mx_kb->cat_rowset[$cat_id]['auth_rate'] == AUTH_REG ) ? 'selected="selected"' : '', - 'RATE_PRIVATE' => ( $mx_kb->cat_rowset[$cat_id]['auth_rate'] == AUTH_ACL ) ? 'selected="selected"' : '', - 'RATE_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_rate'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'RATE_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_rate'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'COMMENT_GUEST' => ( $mx_kb->cat_rowset[$cat_id]['auth_comment'] == AUTH_ALL ) ? 'selected="selected"' : '', - 'COMMENT_REG' => ( $mx_kb->cat_rowset[$cat_id]['auth_comment'] == AUTH_REG ) ? 'selected="selected"' : '', - 'COMMENT_PRIVATE' => ( $mx_kb->cat_rowset[$cat_id]['auth_comment'] == AUTH_ACL ) ? 'selected="selected"' : '', - 'COMMENT_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_comment'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'COMMENT_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_comment'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'EDIT_REG' => ( $mx_kb->cat_rowset[$cat_id]['auth_edit'] == AUTH_REG ) ? 'selected="selected"' : '', - 'EDIT_PRIVATE' => ( $mx_kb->cat_rowset[$cat_id]['auth_edit'] == AUTH_ACL ) ? 'selected="selected"' : '', - 'EDIT_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_edit'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'EDIT_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_edit'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'DELETE_REG' => ( $mx_kb->cat_rowset[$cat_id]['auth_delete'] == AUTH_REG ) ? 'selected="selected"' : '', - 'DELETE_PRIVATE' => ( $mx_kb->cat_rowset[$cat_id]['auth_delete'] == AUTH_ACL ) ? 'selected="selected"' : '', - 'DELETE_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_delete'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'DELETE_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_delete'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'APPROVAL_DISABLED' => ( $mx_kb->cat_rowset[$cat_id]['auth_approval'] == AUTH_ALL ) ? 'selected="selected"' : '', - 'APPROVAL_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_approval'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'APPROVAL_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_approval'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'APPROVAL_EDIT_DISABLED' => ( $mx_kb->cat_rowset[$cat_id]['auth_approval_edit'] == AUTH_ALL ) ? 'selected="selected"' : '', - 'APPROVAL_EDIT_MOD' => ( $mx_kb->cat_rowset[$cat_id]['auth_approval_edit'] == AUTH_MOD ) ? 'selected="selected"' : '', - 'APPROVAL_EDIT_ADMIN' => ( $mx_kb->cat_rowset[$cat_id]['auth_approval_edit'] == AUTH_ADMIN ) ? 'selected="selected"' : '', - - 'S_GUEST' => AUTH_ALL, - 'S_USER' => AUTH_REG, - 'S_PRIVATE' => AUTH_ACL, - 'S_MOD' => AUTH_MOD, - 'S_ADMIN' => AUTH_ADMIN, - 'S_HIDDEN' => '<input type="hidden" name="catid" value="' . $cat_id . '">' ) ); --- 560,590 ---- // 'L_CAT_PERMISSIONS' => $lang['Category_Permissions'], + 'L_VIEW_LEVEL' => $lang['View_level'], + 'S_VIEW_LEVEL' => $auth_select['auth_view'], + 'L_UPLOAD_LEVEL' => $lang['Upload_level'], + 'S_UPLOAD_LEVEL' => $auth_select['auth_post'], + 'L_RATE_LEVEL' => $lang['Rate_level'], + 'S_RATE_LEVEL' => $auth_select['auth_rate'], + 'L_COMMENT_LEVEL' => $lang['Comment_level'], + 'S_COMMENT_LEVEL' => $auth_select['auth_comment'], + 'L_EDIT_LEVEL' => $lang['Edit_level'], + 'S_EDIT_LEVEL' => $auth_select['auth_edit'], + 'L_DELETE_LEVEL' => $lang['Delete_level'], + 'S_DELETE_LEVEL' => $auth_select['auth_delete'], + 'L_APPROVAL_LEVEL' => $lang['Approval_level'], + 'S_APPROVAL_LEVEL' => $auth_select['auth_approval'], + 'L_APPROVAL_EDIT_LEVEL' => $lang['Approval_edit_level'], ! 'S_APPROVAL_EDIT_LEVEL' => $auth_select['auth_approval_edit'], 'L_DISABLED' => $lang['Disabled'], 'S_HIDDEN' => '<input type="hidden" name="catid" value="' . $cat_id . '">' ) ); |
|
From: Jon O. <jon...@us...> - 2006-07-03 12:46:37
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1210/modules/mx_linkdb/linkdb/includes Modified Files: functions_linkdb.php Log Message: Working... Index: functions_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_linkdb.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** functions_linkdb.php 1 Jul 2006 21:32:19 -0000 1.9 --- functions_linkdb.php 3 Jul 2006 12:23:30 -0000 1.10 *************** *** 855,859 **** --- 855,885 ---- $cat_name = ( isset( $_POST['cat_name'] ) ) ? htmlspecialchars( $_POST['cat_name'] ) : ''; + $cat_desc = ( isset( $_POST['cat_desc'] ) ) ? htmlspecialchars( $_POST['cat_desc'] ) : ''; $cat_parent = ( isset( $_POST['cat_parent'] ) ) ? intval( $_POST['cat_parent'] ) : 0; + $cat_allow_file = ( isset( $_POST['cat_allow_file'] ) ) ? intval( $_POST['cat_allow_file'] ) : 0; + + $cat_use_comments = ( isset( $_POST['cat_allow_comments'] ) ) ? intval( $_POST['cat_allow_comments'] ) : 0; + $cat_internal_comments = ( isset( $_POST['internal_comments'] ) ) ? intval( $_POST['internal_comments'] ) : 0; + $cat_autogenerate_comments = ( isset( $_POST['autogenerate_comments'] ) ) ? intval( $_POST['autogenerate_comments'] ) : 0; + $comments_forum_id = intval( $_POST['comments_forum_id'] ); + + $cat_show_pretext = ( isset( $_POST['show_pretext'] ) ) ? intval( $_POST['show_pretext'] ) : 0; + + $cat_use_ratings = ( isset( $_POST['cat_allow_ratings'] ) ) ? intval( $_POST['cat_allow_ratings'] ) : 0; + + $cat_notify = ( isset( $_POST['notify'] ) ) ? intval( $_POST['notify'] ) : 0; + $cat_notify_group = ( isset( $_POST['notify_group'] ) ) ? intval( $_POST['notify_group'] ) : 0; + + // + // Permissions + // + $view_level = intval( $_POST['auth_view'] ); + $post_level = intval( $_POST['auth_post'] ); + $rate_level = intval( $_POST['auth_rate'] ); + $comment_level = intval( $_POST['auth_comment'] ); + $edit_level = intval( $_POST['auth_edit'] ); + $delete_level = intval( $_POST['auth_delete'] ); + $approval_level = intval( $_POST['auth_approval'] ); + $approval_edit_level = intval( $_POST['auth_approval_edit'] ); if ( empty( $cat_name ) ) *************** *** 862,872 **** } ! /*if($cat_parent) { ! if(!$this->cat_rowset[$cat_parent]) { $this->error[] = $lang['Cat_conflict']; } ! }*/ if ( sizeof( $this->error ) ) --- 888,898 ---- } ! if ( $cat_parent ) { ! if ( !$this->cat_rowset[$cat_parent]['cat_allow_file'] && !$cat_allow_file ) { $this->error[] = $lang['Cat_conflict']; } ! } if ( sizeof( $this->error ) ) *************** *** 876,879 **** --- 902,906 ---- $cat_name = str_replace( "\'", "''", $cat_name ); + $cat_desc = str_replace( "\'", "''", $cat_desc ); if ( !$cat_id ) *************** *** 893,898 **** $cat_order += 10; ! $sql = 'INSERT INTO ' . LINK_CATEGORIES_TABLE . " (cat_name, cat_parent, cat_order) ! VALUES('$cat_name', $cat_parent, $cat_order)"; if ( !( $db->sql_query( $sql ) ) ) --- 920,925 ---- $cat_order += 10; ! $sql = 'INSERT INTO ' . LINK_CATEGORIES_TABLE . " (cat_name, cat_desc, cat_parent, cat_order, cat_allow_file, cat_allow_ratings, cat_allow_comments, internal_comments, autogenerate_comments, comments_forum_id, show_pretext, notify, notify_group, 'auth_view', 'auth_post', 'auth_rate', 'auth_comment', 'auth_edit', 'auth_delete', 'auth_approval', 'auth_approval_edit') ! VALUES('$cat_name', '$cat_desc', $cat_parent, $cat_order, $cat_allow_file, $cat_use_ratings, $cat_use_comments, $cat_internal_comments, $cat_autogenerate_comments, $comments_forum_id, $cat_show_pretext, $cat_notify, $cat_notify_group, $view_level, $post_level, $rate_level, $comment_level, $edit_level, $delete_level, $approval_level, $approval_edit_level)"; if ( !( $db->sql_query( $sql ) ) ) *************** *** 904,908 **** { $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " ! SET cat_name = '$cat_name', cat_parent = $cat_parent WHERE cat_id = $cat_id"; --- 931,935 ---- { $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " ! SET cat_name = '$cat_name', cat_desc = '$cat_desc', cat_parent = $cat_parent, cat_allow_file = $cat_allow_file, cat_allow_ratings = $cat_use_ratings, cat_allow_comments = $cat_use_comments, internal_comments = $cat_internal_comments, autogenerate_comments = $cat_autogenerate_comments, comments_forum_id = $comments_forum_id, show_pretext = $cat_show_pretext, notify = $cat_notify, notify_group = $cat_notify_group, auth_view = $view_level, auth_post = $post_level, auth_rate = $rate_level, auth_comment = $comment_level, auth_edit = $edit_level, auth_delete = $delete_level, auth_approval = $approval_level, auth_approval_edit = $approval_edit_level WHERE cat_id = $cat_id"; |
|
From: Jon O. <jon...@us...> - 2006-07-03 12:46:14
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1210/modules/mx_linkdb/linkdb/admin Modified Files: admin_cat_manage.php admin_setting.php Log Message: Working... Index: admin_cat_manage.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/admin/admin_cat_manage.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_cat_manage.php 1 Jul 2006 21:32:18 -0000 1.6 --- admin_cat_manage.php 3 Jul 2006 12:23:30 -0000 1.7 *************** *** 75,79 **** default: $template_file = 'admin/linkdb_admin_cat.tpl'; ! $l_title = $lang['Link_cat_manage']; $l_explain = $lang['Catexplain']; $s_hidden_fields = '<input type="hidden" name="mode" value="add">'; --- 75,79 ---- default: $template_file = 'admin/linkdb_admin_cat.tpl'; ! $l_title = $lang['Panel_cat_title']; $l_explain = $lang['Catexplain']; $s_hidden_fields = '<input type="hidden" name="mode" value="add">'; *************** *** 139,143 **** --- 139,199 ---- } $cat_list .= ( !$_POST['cat_parent'] ) ? $this->generate_jumpbox() : $this->generate_jumpbox( 0, 0, array( $_POST['cat_parent'] => 1 ) ); + $checked_yes = ( $_POST['cat_allow_file'] ) ? ' checked' : ''; + $checked_no = ( !$_POST['cat_allow_file'] ) ? ' checked' : ''; $cat_name = ( !empty( $_POST['cat_name'] ) ) ? $_POST['cat_name'] : ''; + $cat_desc = ( !empty( $_POST['cat_desc'] ) ) ? $_POST['cat_desc'] : ''; + + // + // Comments + // + $use_comments_yes = ""; + $use_comments_no = ""; + $use_comments_default = "checked=\"checked\""; + + $internal_comments_internal = ""; + $internal_comments_phpbb = ""; + $internal_comments_default = "checked=\"checked\""; + + $autogenerate_comments_yes = ""; + $autogenerate_comments_no = ""; + $autogenerate_comments_default = "checked=\"checked\""; + + $comments_forum_id = -1; + + // + // Ratings + // + $use_ratings_yes = ""; + $use_ratings_no = ""; + $use_ratings_default = "checked=\"checked\""; + + // + // Instructions + // + $pretext_show = ""; + $pretext_hide = ""; + $pretext_default = "checked=\"checked\""; + + // + // Notification + // + $notify_none = ""; + $notify_pm = ""; + $notify_email = ""; + $notify_default = "checked=\"checked\""; + + $notify_group_list = mx_get_groups('', 'notify_group'); + + // + // Permissions + // + $this->cat_rowset[$cat_id]['auth_view'] = 0; + $this->cat_rowset[$cat_id]['auth_post'] = 1; + $this->cat_rowset[$cat_id]['auth_rate'] = 1; + $this->cat_rowset[$cat_id]['auth_comment'] = 1; + $this->cat_rowset[$cat_id]['auth_edit'] = 1; + $this->cat_rowset[$cat_id]['auth_delete'] = 2; + $this->cat_rowset[$cat_id]['auth_approval'] = 5; + $this->cat_rowset[$cat_id]['auth_approval_edit'] = 5; } else *************** *** 153,169 **** $cat_list .= $this->generate_jumpbox( 0, 0, array( $this->cat_rowset[$cat_id]['cat_parent'] => 1 ) ); $cat_name = $this->cat_rowset[$cat_id]['cat_name']; } $template->assign_vars( array( 'CAT_NAME' => $cat_name, 'L_CAT_NAME' => $lang['Catname'], 'L_CAT_NAME_INFO' => $lang['Catnameinfo'], 'L_CAT_PARENT' => $lang['Catparent'], 'L_CAT_PARENT_INFO' => $lang['Catparentinfo'], 'L_NONE' => $lang['None'], 'L_CAT_NAME_FIELD_EMPTY' => $lang['Cat_name_missing'], ! 'S_CAT_LIST' => $cat_list ) ! ); } elseif ( $mode == 'delete' ) --- 209,417 ---- $cat_list .= $this->generate_jumpbox( 0, 0, array( $this->cat_rowset[$cat_id]['cat_parent'] => 1 ) ); + if ( $this->cat_rowset[$cat_id]['cat_allow_file'] ) + { + $checked_yes = ' checked'; + $checked_no = ''; + } + else + { + $checked_yes = ''; + $checked_no = ' checked'; + } + $cat_name = $this->cat_rowset[$cat_id]['cat_name']; + $cat_desc = $this->cat_rowset[$cat_id]['cat_desc']; + + // + // Comments + // + $use_comments_yes = ( $this->cat_rowset[$cat_id]['cat_allow_comments'] == 1 ) ? "checked=\"checked\"" : ""; + $use_comments_no = ( $this->cat_rowset[$cat_id]['cat_allow_comments'] == 0 ) ? "checked=\"checked\"" : ""; + $use_comments_default = ( $this->cat_rowset[$cat_id]['cat_allow_comments'] == -1 ) ? "checked=\"checked\"" : ""; + + $internal_comments_internal = ( $this->cat_rowset[$cat_id]['internal_comments'] == 1 ) ? "checked=\"checked\"" : ""; + $internal_comments_phpbb = ( $this->cat_rowset[$cat_id]['internal_comments'] == 0 ) ? "checked=\"checked\"" : ""; + $internal_comments_default = ( $this->cat_rowset[$cat_id]['internal_comments'] == -1 ) ? "checked=\"checked\"" : ""; + + $comments_forum_id = $this->cat_rowset[$cat_id]['comments_forum_id']; + + $autogenerate_comments_yes = ( $this->cat_rowset[$cat_id]['autogenerate_comments'] == 1 ) ? "checked=\"checked\"" : ""; + $autogenerate_comments_no = ( $this->cat_rowset[$cat_id]['autogenerate_comments'] == 0 ) ? "checked=\"checked\"" : ""; + $autogenerate_comments_default = ( $this->cat_rowset[$cat_id]['autogenerate_comments'] == -1 ) ? "checked=\"checked\"" : ""; + + // + // Ratings + // + $use_ratings_yes = ( $this->cat_rowset[$cat_id]['cat_allow_ratings'] == 1 ) ? "checked=\"checked\"" : ""; + $use_ratings_no = ( $this->cat_rowset[$cat_id]['cat_allow_ratings'] == 0 ) ? "checked=\"checked\"" : ""; + $use_ratings_default = ( $this->cat_rowset[$cat_id]['cat_allow_ratings'] == -1 ) ? "checked=\"checked\"" : ""; + + // + // Instructions + // + $pretext_show = ( $this->cat_rowset[$cat_id]['show_pretext'] == 1 ) ? "checked=\"checked\"" : ""; + $pretext_hide = ( $this->cat_rowset[$cat_id]['show_pretext'] == 0 ) ? "checked=\"checked\"" : ""; + $pretext_default = ( $this->cat_rowset[$cat_id]['show_pretext'] == -1 ) ? "checked=\"checked\"" : ""; + + // + // Notification + // + $notify_none = ( $this->cat_rowset[$cat_id]['notify'] == 0 ) ? "checked=\"checked\"" : ""; + $notify_pm = ( $this->cat_rowset[$cat_id]['notify'] == 1 ) ? "checked=\"checked\"" : ""; + $notify_email = ( $this->cat_rowset[$cat_id]['notify'] == 2 ) ? "checked=\"checked\"" : ""; + $notify_default = ( $this->cat_rowset[$cat_id]['notify'] == -1 ) ? "checked=\"checked\"" : ""; + + $notify_group_list = mx_get_groups($this->cat_rowset[$cat_id]['notify_group'], 'notify_group'); + + + } + + $cat_auth_levels = array( 'ALL', 'REG', 'PRIVATE', 'MOD', 'ADMIN' ); + $cat_auth_const = array( AUTH_ALL, AUTH_REG, AUTH_ACL, AUTH_MOD, AUTH_ADMIN ); + $global_auth = array( 'auth_view', 'auth_post', 'auth_rate', 'auth_comment', 'auth_edit', 'auth_delete', 'auth_approval', 'auth_approval_edit' ); + $auth_select = array(); + + foreach( $global_auth as $auth ) + { + $auth_select[$auth] = ' <select name="' . $auth . '">'; + for( $k = 0; $k < count( $cat_auth_levels ); $k++ ) + { + $selected = ( $this->cat_rowset[$cat_id][$auth] == $cat_auth_const[$k] ) ? ' selected="selected"' : ''; + $auth_select[$auth] .= '<option value="' . $cat_auth_const[$k] . '"' . $selected . '>' . $lang['Forum_' . $cat_auth_levels[$k]] . '</option>'; + } + $auth_select[$auth] .= '</select> '; } $template->assign_vars( array( 'CAT_NAME' => $cat_name, + 'CAT_DESC' => $cat_desc, + 'CHECKED_YES' => $checked_yes, + 'CHECKED_NO' => $checked_no, + + // + // Comments + // + 'L_COMMENTS_TITLE' => $lang['Comments_title'], + + 'L_USE_COMMENTS' => $lang['Use_comments'], + 'L_USE_COMMENTS_EXPLAIN' => $lang['Use_comments_explain'], + 'S_USE_COMMENTS_YES' => $use_comments_yes, + 'S_USE_COMMENTS_NO' => $use_comments_no, + 'S_USE_COMMENTS_DEFAULT' => $use_comments_default, + + 'L_INTERNAL_COMMENTS' => $lang['Internal_comments'], + 'L_INTERNAL_COMMENTS_EXPLAIN' => $lang['Internal_comments_explain'], + 'S_INTERNAL_COMMENTS_INTERNAL' => $internal_comments_internal, + 'S_INTERNAL_COMMENTS_PHPBB' => $internal_comments_phpbb, + 'S_INTERNAL_COMMENTS_DEFAULT' => $internal_comments_default, + 'L_INTERNAL_COMMENTS_INTERNAL' => $lang['Internal_comments_internal'], + 'L_INTERNAL_COMMENTS_PHPBB' => $lang['Internal_comments_phpBB'], + + 'L_FORUM_ID' => $lang['Forum_id'], + 'L_FORUM_ID_EXPLAIN' => $lang['Forum_id_explain'], + 'FORUM_LIST' => $this->get_forums( $comments_forum_id, true, 'comments_forum_id' ), + + 'L_AUTOGENERATE_COMMENTS' => $lang['Autogenerate_comments'], + 'L_AUTOGENERATE_COMMENTS_EXPLAIN' => $lang['Autogenerate_comments_explain'], + 'S_AUTOGENERATE_COMMENTS_YES' => $autogenerate_comments_yes, + 'S_AUTOGENERATE_COMMENTS_NO' => $autogenerate_comments_no, + 'S_AUTOGENERATE_COMMENTS_DEFAULT' => $autogenerate_comments_default, + + // + // Ratings + // + 'L_RATINGS_TITLE' => $lang['Ratings_title'], + + 'L_USE_RATINGS' => $lang['Use_ratings'], + 'L_USE_RATINGS_EXPLAIN' => $lang['Use_ratings_explain'], + 'S_USE_RATINGS_YES' => $use_ratings_yes, + 'S_USE_RATINGS_NO' => $use_ratings_no, + 'S_USE_RATINGS_DEFAULT' => $use_ratings_default, + + // + // Instructions + // + 'L_INSTRUCTIONS_TITLE' => $lang['Instructions_title'], + + 'L_PRE_TEXT_NAME' => $lang['Pre_text_name'], + 'L_PRE_TEXT_EXPLAIN' => $lang['Pre_text_explain'], + 'S_SHOW_PRETEXT' => $pretext_show, + 'S_HIDE_PRETEXT' => $pretext_hide, + 'S_DEFAULT_PRETEXT' => $pretext_default, + + 'L_SHOW' => $lang['Show'], + 'L_HIDE' => $lang['Hide'], + + // + // Notifications + // + 'L_NOTIFICATIONS_TITLE' => $lang['Notifications_title'], + + 'L_NOTIFY' => $lang['Notify'], + 'L_NOTIFY_EXPLAIN' => $lang['Notify_explain'], + 'L_EMAIL' => $lang['Email'], + 'L_PM' => $lang['PM'], + + 'S_NOTIFY_NONE' => $notify_none, + 'S_NOTIFY_EMAIL' => $notify_email, + 'S_NOTIFY_PM' => $notify_pm, + 'S_NOTIFY_DEFAULT' => $notify_default, + + 'L_NOTIFY_GROUP' => $lang['Notify_group'], + 'L_NOTIFY_GROUP_EXPLAIN' => $lang['Notify_group_explain'], + 'NOTIFY_GROUP' => $notify_group_list, + 'L_CAT_NAME' => $lang['Catname'], 'L_CAT_NAME_INFO' => $lang['Catnameinfo'], + 'L_CAT_DESC' => $lang['Catdesc'], + 'L_CAT_DESC_INFO' => $lang['Catdescinfo'], 'L_CAT_PARENT' => $lang['Catparent'], 'L_CAT_PARENT_INFO' => $lang['Catparentinfo'], + 'L_CAT_ALLOWFILE' => $lang['Allow_file'], + 'L_CAT_ALLOWFILE_INFO' => $lang['Allow_file_info'], + 'L_CAT_ALLOWCOMMENTS' => $lang['Allow_comments'], + 'L_CAT_ALLOWCOMMENTS_INFO' => $lang['Allow_comments_info'], + 'L_CAT_ALLOWRATINGS' => $lang['Allow_ratings'], + 'L_CAT_ALLOWRATINGS_INFO' => $lang['Allow_ratings_info'], + + 'L_DEFAULT' => $lang['Use_default'], 'L_NONE' => $lang['None'], + 'L_YES' => $lang['Yes'], + 'L_NO' => $lang['No'], 'L_CAT_NAME_FIELD_EMPTY' => $lang['Cat_name_missing'], ! 'S_CAT_LIST' => $cat_list, ! ! // ! // Cat permissions ! // ! 'L_CAT_PERMISSIONS' => $lang['Category_Permissions'], ! ! 'L_VIEW_LEVEL' => $lang['View_level'], ! 'S_VIEW_LEVEL' => $auth_select['auth_view'], ! ! 'L_UPLOAD_LEVEL' => $lang['Upload_level'], ! 'S_UPLOAD_LEVEL' => $auth_select['auth_post'], ! ! 'L_RATE_LEVEL' => $lang['Rate_level'], ! 'S_RATE_LEVEL' => $auth_select['auth_rate'], ! ! 'L_COMMENT_LEVEL' => $lang['Comment_level'], ! 'S_COMMENT_LEVEL' => $auth_select['auth_comment'], ! ! 'L_EDIT_LEVEL' => $lang['Edit_level'], ! 'S_EDIT_LEVEL' => $auth_select['auth_edit'], ! ! 'L_DELETE_LEVEL' => $lang['Delete_level'], ! 'S_DELETE_LEVEL' => $auth_select['auth_delete'], ! ! 'L_APPROVAL_LEVEL' => $lang['Approval_level'], ! 'S_APPROVAL_LEVEL' => $auth_select['auth_approval'], ! ! 'L_APPROVAL_EDIT_LEVEL' => $lang['Approval_edit_level'], ! 'S_APPROVAL_EDIT_LEVEL' => $auth_select['auth_approval_edit'], ! ! 'L_DISABLED' => $lang['Disabled'], ! ! )); } elseif ( $mode == 'delete' ) *************** *** 229,232 **** --- 477,531 ---- return; } + + /** + * Enter description here... + * + * @param unknown_type $sel_id + * @param unknown_type $use_default_option + * @param unknown_type $select_name + * @return unknown + */ + function get_forums( $sel_id = 0, $use_default_option = false, $select_name = 'forum_id' ) + { + global $db, $lang; + + $sql = "SELECT forum_id, forum_name + FROM " . FORUMS_TABLE; + + if ( !$result = $db->sql_query( $sql ) ) + { + mx_message_die( GENERAL_ERROR, "Couldn't get list of forums", "", __LINE__, __FILE__, $sql ); + } + + $forumlist = '<select name="'.$select_name.'">'; + + if ( $sel_id == 0 ) + { + $forumlist .= '<option value="0" selected >'.$lang['Select_topic_id'].'</option>'; + } + + if ( $use_default_option ) + { + $status = $sel_id == "-1" ? "selected" : ""; + $forumlist .= '<option value="-1" '.$status.' >::'.$lang['Use_default'].'::</option>'; + } + + while ( $row = $db->sql_fetchrow( $result ) ) + { + if ( $sel_id == $row['forum_id'] ) + { + $status = "selected"; + } + else + { + $status = ''; + } + $forumlist .= '<option value="' . $row['forum_id'] . '" ' . $status . '>' . $row['forum_name'] . '</option>'; + } + + $forumlist .= '</select>'; + + return $forumlist; + } } ?> \ No newline at end of file Index: admin_setting.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/admin/admin_setting.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_setting.php 3 Jul 2006 09:18:01 -0000 1.6 --- admin_setting.php 3 Jul 2006 12:23:30 -0000 1.7 *************** *** 18,22 **** function main( $action ) { ! global $db, $template, $lang, $phpEx, $linkdb_functions; $submit = ( isset( $_POST['submit'] ) ) ? true : false; --- 18,22 ---- function main( $action ) { ! global $db, $template, $lang, $phpEx, $linkdb_functions, $linkdb_cache; $submit = ( isset( $_POST['submit'] ) ) ? true : false; *************** *** 47,50 **** --- 47,51 ---- if ( $submit ) { + $linkdb_cache->unload(); $message = $lang['Settings_changed'] . '<br /><br />' . sprintf( $lang['Click_return'], '<a href="' . append_sid( "admin_linkdb.$phpEx?action=setting" ) . '">', '</a>' ) . '<br /><br />' . sprintf( $lang['Click_return_admin_index'], '<a href="' . append_sid( "index.$phpEx?pane=right" ) . '">', '</a>' ); mx_message_die( GENERAL_MESSAGE, $message ); *************** *** 54,133 **** $template->set_filenames( array( 'body' => 'admin/linkdb_admin_settings.tpl' ) ); $template->assign_vars( array( 'S_SETTINGS_ACTION' => append_sid( "admin_linkdb.$phpEx" ), ! 'L_SETTINGS' => $lang['Configuration'], ! 'L_SETTINGSTITLE' => $lang['Settingstitle'], ! 'L_SETTINGSEXPLAIN' => $lang['Settingsexplain'], - 'LOCK_SUBMIT_SITE_YES' => ( $new['lock_submit_site'] ) ? "checked=\"checked\"" : "", - 'LOCK_SUBMIT_SITE_NO' => ( !$new['lock_submit_site'] ) ? "checked=\"checked\"" : "", - 'L_LOCK_SUBMIT_SITE' => $lang['lock_submit_site'], - 'CAT_COL' => $new['cat_col'], - 'L_CAT_COL' => $lang['cat_col'], - 'SPLIT_LINKS_YES' => ( $new['split_links'] ) ? "checked=\"checked\"" : "", - 'SPLIT_LINKS_NO' => ( !$new['split_links'] ) ? "checked=\"checked\"" : "", - 'L_SPLIT_LINKS' => $lang['split_links'], 'L_SITE_LOGO' => $lang['site_logo'], 'L_SITE_URL' => $lang['site_url'], ! 'L_WIDTH' => $lang['width'], ! 'L_HEIGHT' => $lang['height'], 'L_SETTINGS_LINK_PAGE' => $lang['settings_link_page'], 'L_DISPLAY_INTERVAL' => $lang['interval'], - 'L_PAGINATION' => $lang['display_logo'], 'INTERVAL' => $new['display_interval'], ! 'PAGINATION' => $new['pagination'], ! 'SITE_LOGO' => $new['site_logo'], ! 'SITE_URL' => $new['site_url'], 'WIDTH' => $new['width'], 'HEIGHT' => $new['height'], - 'SETTINGS_LINK_PAGE' => $new['settings_link_page'], ! 'ALLOW_GUEST_SUBMIT_SITE_YES' => ( $new['allow_guest_submit_site'] ) ? "checked=\"checked\"" : "", ! 'ALLOW_GUEST_SUBMIT_SITE_NO' => ( !$new['allow_guest_submit_site'] ) ? "checked=\"checked\"" : "", ! 'L_ALLOW_GUEST_SUBMIT_SITE' => $lang['allow_guest_submit_site'], 'ALLOW_NO_LOGO_YES' => ( $new['allow_no_logo'] ) ? "checked=\"checked\"" : "", 'ALLOW_NO_LOGO_NO' => ( !$new['allow_no_logo'] ) ? "checked=\"checked\"" : "", ! 'L_ALLOW_NO_LOGO' => $lang['allow_no_logo'], 'DISLAY_LINKS_LOGO_YES' => ( $new['display_links_logo'] ) ? "checked=\"checked\"" : "", 'DISLAY_LINKS_LOGO_NO' => ( !$new['display_links_logo'] ) ? "checked=\"checked\"" : "", - 'L_DISPLAY_LINKS_LOGO' => $lang['Link_display_links_logo'], - 'EMAIL_YES' => ( $new['email_notify'] ) ? "checked=\"checked\"" : "", - 'EMAIL_NO' => ( !$new['email_notify'] ) ? "checked=\"checked\"" : "", - 'L_LINK_EMAIL_NOTIFY' => $lang['Link_email_notify'], - 'PM_YES' => ( $new['pm_notify'] ) ? "checked=\"checked\"" : "", - 'PM_NO' => ( !$new['pm_notify'] ) ? "checked=\"checked\"" : "", - 'L_LINK_PM_NOTIFY' => $lang['Link_pm_notify'], - 'RATE_YES' => ( $new['allow_vote'] ) ? "checked=\"checked\"" : "", - 'RATE_NO' => ( !$new['allow_vote'] ) ? "checked=\"checked\"" : "", - 'L_LINK_ALLOW_RATE' => $lang['Link_allow_rate'], - 'L_YES' => $lang['Yes'], - 'L_NO' => $lang['No'], - 'NEED_VALIDATION_YES' => ( $new['link_validation'] ) ? "checked=\"checked\"" : "", - 'NEED_VALIDATION_NO' => ( !$new['link_validation'] ) ? "checked=\"checked\"" : "", ! 'L_NEED_VALIDATION' => $lang['Need_validation'], ! 'L_DEFAULT_SORT_METHOD' => $lang['Default_sort_method'], ! 'L_DEFAULT_SORT_ORDER' => $lang['Default_sort_order'], ! 'L_DOWNLOADS' => $lang['Hits'], ! 'L_DATE' => $lang['Date'], ! 'L_NAME' => $lang['Sitename'], ! 'L_LINK_SITE_DESC' => $lang['Siteld'], ! 'L_ASC' => $lang['Sort_Ascending'], ! 'L_DESC' => $lang['Sort_Descending'], ! 'SORT_NAME' => ( $new['sort_method'] == 'link_name' ) ? 'selected="selected"' : '', ! 'SORT_TIME' => ( $new['sort_method'] == 'link_time' ) ? 'selected="selected"' : '', ! 'SORT_RATING' => ( $new['sort_method'] == 'link_longdesc' ) ? 'selected="selected"' : '', ! 'SORT_DOWNLOADS' => ( $new['sort_method'] == 'link_hits' ) ? 'selected="selected"' : '', ! 'SORT_ASC' => ( $new['sort_order'] == 'ASC' ) ? 'selected="selected"' : '', ! 'SORT_DESC' => ( $new['sort_order'] == 'DESC' ) ? 'selected="selected"' : '', ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'] ) ! ); $template->pparse( 'body' ); } } ?> \ No newline at end of file --- 55,490 ---- $template->set_filenames( array( 'body' => 'admin/linkdb_admin_settings.tpl' ) ); + // + // General Settings + // + $module_name = $new['module_name']; + + $enable_module_yes = ( $new['enable_module'] ) ? "checked=\"checked\"" : ""; + $enable_module_no = ( !$new['enable_module'] ) ? "checked=\"checked\"" : ""; + + $wysiwyg_path = $new['wysiwyg_path']; + + // + // Appearance + // + $pagination = $new['pagination']; + + $sort_method_options = array(); + $sort_method_options = array( "file_name", "file_time", "file_rating", "file_dls", "file_update_time" ); + + $sort_method_list = '<select name="sort_method">'; + for( $j = 0; $j < count( $sort_method_options ); $j++ ) + { + if ( $new['sort_method'] == $sort_method_options[$j] ) + { + $status = "selected"; + } + else + { + $status = ''; + } + $sort_method_list .= '<option value="' . $sort_method_options[$j] . '" ' . $status . '>' . $sort_method_options[$j] . '</option>'; + } + $sort_method_list .= '</select>'; + + $sort_order_options = array(); + $sort_order_options = array( "DESC", "ASC" ); + + $sort_order_list = '<select name="sort_order">'; + + for( $j = 0; $j < count( $sort_order_options ); $j++ ) + { + if ( $new['sort_order'] == $sort_order_options[$j] ) + { + $status = "selected"; + } + else + { + $status = ''; + } + $sort_order_list .= '<option value="' . $sort_order_options[$j] . '" ' . $status . '>' . $sort_order_options[$j] . '</option>'; + } + $sort_order_list .= '</select>'; + + // + // Instructions + // + $pretext_show = ( $new['show_pretext'] ) ? "checked=\"checked\"" : ""; + $pretext_hide = ( !$new['show_pretext'] ) ? "checked=\"checked\"" : ""; + + $pt_header = $new['pt_header']; + $pt_body = $new['pt_body']; + + // + // Comments (default settings) + // + $use_comments_yes = ( $new['use_comments'] ) ? "checked=\"checked\"" : ""; + $use_comments_no = ( !$new['use_comments'] ) ? "checked=\"checked\"" : ""; + + $internal_comments_internal = ( $new['internal_comments'] ) ? "checked=\"checked\"" : ""; + $internal_comments_phpbb = ( !$new['internal_comments'] ) ? "checked=\"checked\"" : ""; + + $comments_forum_id = $new['comments_forum_id']; + + $del_topic_yes = ( $new['del_topic'] ) ? "checked=\"checked\"" : ""; + $del_topic_no = ( !$new['del_topic'] ) ? "checked=\"checked\"" : ""; + + $autogenerate_comments_yes = ( $new['autogenerate_comments'] ) ? "checked=\"checked\"" : ""; + $autogenerate_comments_no = ( !$new['autogenerate_comments'] ) ? "checked=\"checked\"" : ""; + + $allow_comment_wysiwyg_yes = ( $new['allow_comment_wysiwyg'] ) ? "checked=\"checked\"" : ""; + $allow_comment_wysiwyg_no = ( !$new['allow_comment_wysiwyg'] ) ? "checked=\"checked\"" : ""; + + $allow_comment_html_yes = ( $new['allow_comment_html'] ) ? "checked=\"checked\"" : ""; + $allow_comment_html_no = ( !$new['allow_comment_html'] ) ? "checked=\"checked\"" : ""; + + $allowed_comment_html_tags = $new['allowed_comment_html_tags']; + + $allow_comment_bbcode_yes = ( $new['allow_comment_bbcode'] ) ? "checked=\"checked\"" : ""; + $allow_comment_bbcode_no = ( !$new['allow_comment_bbcode'] ) ? "checked=\"checked\"" : ""; + + $allow_comment_smilies_yes = ( $new['allow_comment_smilies'] ) ? "checked=\"checked\"" : ""; + $allow_comment_smilies_no = ( !$new['allow_comment_smilies'] ) ? "checked=\"checked\"" : ""; + + $allow_comment_links_yes = ( $new['allow_comment_links'] ) ? "checked=\"checked\"" : ""; + $allow_comment_links_no = ( !$new['allow_comment_links'] ) ? "checked=\"checked\"" : ""; + + $allow_comment_images_yes = ( $new['allow_comment_images'] ) ? "checked=\"checked\"" : ""; + $allow_comment_images_no = ( !$new['allow_comment_images'] ) ? "checked=\"checked\"" : ""; + + $no_comment_link_message = $new['no_comment_link_message']; + $no_comment_image_message = $new['no_comment_image_message']; + + $max_comment_chars = $new['max_comment_chars']; + $max_comment_subject_chars = $new['max_comment_subject_chars']; + + $format_comment_truncate_links_yes = ( $new['formatting_comment_truncate_links'] ) ? "checked=\"checked\"" : ""; + $format_comment_truncate_links_no = ( !$new['formatting_comment_truncate_links'] ) ? "checked=\"checked\"" : ""; + + $format_comment_image_resize = $new['formatting_comment_image_resize']; + + $format_comment_wordwrap_yes = ( $new['formatting_comment_wordwrap'] ) ? "checked=\"checked\"" : ""; + $format_comment_wordwrap_no = ( !$new['formatting_comment_wordwrap'] ) ? "checked=\"checked\"" : ""; + + $comments_pag = $new['comments_pagination']; + + // + // Ratings (default settings) + // + $use_ratings_yes = ( $new['use_ratings'] ) ? "checked=\"checked\"" : ""; + $use_ratings_no = ( !$new['use_ratings'] ) ? "checked=\"checked\"" : ""; + + $votes_check_ip_yes = ( $new['votes_check_ip'] ) ? "checked=\"checked\"" : ""; + $votes_check_ip_no = ( !$new['votes_check_ip'] ) ? "checked=\"checked\"" : ""; + + $votes_check_userid_yes = ( $new['votes_check_userid'] ) ? "checked=\"checked\"" : ""; + $votes_check_userid_no = ( !$new['votes_check_userid'] ) ? "checked=\"checked\"" : ""; + + // + // Notifications + // + $notify_none = ( $new['notify'] == 0 ) ? "checked=\"checked\"" : ""; + $notify_pm = ( $new['notify'] == 1 ) ? "checked=\"checked\"" : ""; + $notify_email = ( $new['notify'] == 2 ) ? "checked=\"checked\"" : ""; + + $notify_group_list = mx_get_groups($new['notify_group'], 'notify_group'); + $template->assign_vars( array( 'S_SETTINGS_ACTION' => append_sid( "admin_linkdb.$phpEx" ), ! 'L_CONFIGURATION_TITLE' => $lang['Panel_config_title'], ! 'L_CONFIGURATION_EXPLAIN' => $lang['Panel_config_explain'], ! ! 'L_RESET' => $lang['Reset'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_YES' => $lang['Yes'], ! 'L_NO' => $lang['No'], ! 'L_NONE' => $lang['Acc_None'], ! ! // ! // General ! // ! 'L_GENERAL_TITLE' => $lang['General_title'], ! ! 'L_MODULE_NAME' => $lang['Module_name'], ! 'L_MODULE_NAME_EXPLAIN' => $lang['Module_name_explain'], ! 'MODULE_NAME' => $module_name, ! ! 'L_ENABLE_MODULE' => $lang['Enable_module'], ! 'L_ENABLE_MODULE_EXPLAIN' => $lang['Enable_module_explain'], ! 'S_ENABLE_MODULE_YES' => $enable_module_yes, ! 'S_ENABLE_MODULE_NO' => $enable_module_no, ! ! 'L_WYSIWYG_PATH' => $lang['Wysiwyg_path'], ! 'L_WYSIWYG_PATH_EXPLAIN' => $lang['Wysiwyg_path_explain'], ! 'WYSIWYG_PATH' => $wysiwyg_path, 'L_SITE_LOGO' => $lang['site_logo'], + 'SITE_LOGO' => $new['site_logo'], + 'L_SITE_URL' => $lang['site_url'], ! 'SITE_URL' => $new['site_url'], ! 'L_SETTINGS_LINK_PAGE' => $lang['settings_link_page'], + 'SETTINGS_LINK_PAGE' => $new['settings_link_page'], + + 'L_LOCK_SUBMIT_SITE' => $lang['lock_submit_site'], + 'LOCK_SUBMIT_SITE_YES' => ( $new['lock_submit_site'] ) ? "checked=\"checked\"" : "", + 'LOCK_SUBMIT_SITE_NO' => ( !$new['lock_submit_site'] ) ? "checked=\"checked\"" : "", + 'L_DISPLAY_INTERVAL' => $lang['interval'], 'INTERVAL' => $new['display_interval'], ! ! ! // ! // Link ! // ! 'L_WIDTH' => $lang['width'], 'WIDTH' => $new['width'], + + 'L_HEIGHT' => $lang['height'], 'HEIGHT' => $new['height'], ! 'SPLIT_LINKS_YES' => ( $new['split_links'] ) ? "checked=\"checked\"" : "", ! 'SPLIT_LINKS_NO' => ( !$new['split_links'] ) ? "checked=\"checked\"" : "", ! 'L_SPLIT_LINKS' => $lang['split_links'], ! ! 'L_ALLOW_NO_LOGO' => $lang['allow_no_logo'], 'ALLOW_NO_LOGO_YES' => ( $new['allow_no_logo'] ) ? "checked=\"checked\"" : "", 'ALLOW_NO_LOGO_NO' => ( !$new['allow_no_logo'] ) ? "checked=\"checked\"" : "", ! ! 'L_DISPLAY_LINKS_LOGO' => $lang['Link_display_links_logo'], 'DISLAY_LINKS_LOGO_YES' => ( $new['display_links_logo'] ) ? "checked=\"checked\"" : "", 'DISLAY_LINKS_LOGO_NO' => ( !$new['display_links_logo'] ) ? "checked=\"checked\"" : "", ! // ! // Appearance ! // ! 'L_APPEARANCE_TITLE' => $lang['Appearance_title'], ! 'L_PAGINATION' => $lang['File_pagination'], ! 'L_PAGINATION_EXPLAIN' => $lang['File_pagination_explain'], ! 'PAGINATION' => $pagination, ! 'L_SORT_METHOD' => $lang['Sort_method'], ! 'L_SORT_METHOD_EXPLAIN' => $lang['Sort_method_explain'], ! 'SORT_METHOD' => $sort_method_list, ! ! 'L_SORT_ORDER' => $lang['Sort_order'], ! 'L_SORT_ORDER_EXPLAIN' => $lang['Sort_order_explain'], ! 'SORT_ORDER' => $sort_order_list, ! ! 'CAT_COL' => $new['cat_col'], ! 'L_CAT_COL' => $lang['cat_col'], ! ! // ! // Comments ! // ! 'L_COMMENTS_TITLE' => $lang['Comments_title'], ! 'L_COMMENTS_TITLE_EXPLAIN' => $lang['Comments_title_explain'], ! ! 'L_USE_COMMENTS' => $lang['Use_comments'], ! 'L_USE_COMMENTS_EXPLAIN' => $lang['Use_comments_explain'], ! 'S_USE_COMMENTS_YES' => $use_comments_yes, ! 'S_USE_COMMENTS_NO' => $use_comments_no, ! ! 'L_INTERNAL_COMMENTS' => $lang['Internal_comments'], ! 'L_INTERNAL_COMMENTS_EXPLAIN' => $lang['Internal_comments_explain'], ! 'S_INTERNAL_COMMENTS_INTERNAL' => $internal_comments_internal, ! 'S_INTERNAL_COMMENTS_PHPBB' => $internal_comments_phpbb, ! 'L_INTERNAL_COMMENTS_INTERNAL' => $lang['Internal_comments_internal'], ! 'L_INTERNAL_COMMENTS_PHPBB' => $lang['Internal_comments_phpBB'], ! ! 'L_FORUM_ID' => $lang['Forum_id'], ! 'L_FORUM_ID_EXPLAIN' => $lang['Forum_id_explain'], ! 'FORUM_LIST' => $this->get_forums( $comments_forum_id, false, 'comments_forum_id' ), ! ! 'L_AUTOGENERATE_COMMENTS' => $lang['Autogenerate_comments'], ! 'L_AUTOGENERATE_COMMENTS_EXPLAIN' => $lang['Autogenerate_comments_explain'], ! 'S_AUTOGENERATE_COMMENTS_YES' => $autogenerate_comments_yes, ! 'S_AUTOGENERATE_COMMENTS_NO' => $autogenerate_comments_no, ! ! 'L_ALLOW_COMMENT_WYSIWYG' => $lang['Allow_Wysiwyg'], ! 'L_ALLOW_COMMENT_WYSIWYG_EXPLAIN' => $lang['Allow_Wysiwyg_explain'], ! 'S_ALLOW_COMMENT_WYSIWYG_YES' => $allow_comment_wysiwyg_yes, ! 'S_ALLOW_COMMENT_WYSIWYG_NO' => $allow_comment_wysiwyg_no, ! ! 'L_ALLOW_COMMENT_HTML' => $lang['Allow_HTML'], ! 'L_ALLOW_COMMENT_HTML_EXPLAIN' => $lang['Allow_html_explain'], ! 'S_ALLOW_COMMENT_HTML_YES' => $allow_comment_html_yes, ! 'S_ALLOW_COMMENT_HTML_NO' => $allow_comment_html_no, ! ! 'L_ALLOW_COMMENT_BBCODE' => $lang['Allow_BBCode'], ! 'L_ALLOW_COMMENT_BBCODE_EXPLAIN' => $lang['Allow_bbcode_explain'], ! 'S_ALLOW_COMMENT_BBCODE_YES' => $allow_comment_bbcode_yes, ! 'S_ALLOW_COMMENT_BBCODE_NO' => $allow_comment_bbcode_no, ! ! 'L_ALLOW_COMMENT_SMILIES' => $lang['Allow_smilies'], ! 'L_ALLOW_COMMENT_SMILIES_EXPLAIN' => $lang['Allow_smilies_explain'], ! 'S_ALLOW_COMMENT_SMILIES_YES' => $allow_comment_smilies_yes, ! 'S_ALLOW_COMMENT_SMILIES_NO' => $allow_comment_smilies_no, ! ! 'L_ALLOWED_COMMENT_HTML_TAGS' => $lang['Allowed_tags'], ! 'L_ALLOWED_COMMENT_HTML_TAGS_EXPLAIN' => $lang['Allowed_tags_explain'], ! 'ALLOWED_COMMENT_HTML_TAGS' => $allowed_comment_html_tags, ! ! 'L_ALLOW_COMMENT_IMAGES' => $lang['Allow_images'], ! 'L_ALLOW_COMMENT_IMAGES_EXPLAIN' => $lang['Allow_images_explain'], ! 'S_ALLOW_COMMENT_IMAGES_YES' => $allow_comment_images_yes, ! 'S_ALLOW_COMMENT_IMAGES_NO' => $allow_comment_images_no, ! ! 'L_ALLOW_COMMENT_LINKS' => $lang['Allow_links'], ! 'L_ALLOW_COMMENT_LINKS_EXPLAIN' => $lang['Allow_links_explain'], ! 'S_ALLOW_COMMENT_LINKS_YES' => $allow_comment_links_yes, ! 'S_ALLOW_COMMENT_LINKS_NO' => $allow_comment_links_no, ! ! 'L_COMMENT_LINKS_MESSAGE' => $lang['Allow_links_message'], ! 'L_COMMENT_LINKS_MESSAGE_EXPLAIN' => $lang['Allow_links_message_explain'], ! 'COMMENT_MESSAGE_LINK' => $no_comment_link_message, ! ! 'L_COMMENT_IMAGES_MESSAGE' => $lang['Allow_images_message'], ! 'L_COMMENT_IMAGES_MESSAGE_EXPLAIN' => $lang['Allow_images_message_explain'], ! 'COMMENT_MESSAGE_IMAGE' => $no_comment_image_message, ! ! 'L_COMMENT_MAX_SUBJECT_CHAR' => $lang['Max_subject_char'], ! 'L_COMMENT_MAX_SUBJECT_CHAR_EXPLAIN' => $lang['Max_subject_char_explain'], ! 'COMMENT_MAX_SUBJECT_CHAR' => $max_comment_subject_chars, ! ! 'L_COMMENT_MAX_CHAR' => $lang['Max_char'], ! 'L_COMMENT_MAX_CHAR_EXPLAIN' => $lang['Max_char_explain'], ! 'COMMENT_MAX_CHAR' => $max_comment_chars, ! ! 'L_COMMENT_FORMAT_WORDWRAP' => $lang['Format_wordwrap'], ! 'L_COMMENT_FORMAT_WORDWRAP_EXPLAIN' => $lang['Format_wordwrap_explain'], ! 'S_COMMENT_FORMAT_WORDWRAP_YES' => $format_comment_wordwrap_yes, ! 'S_COMMENT_FORMAT_WORDWRAP_NO' => $format_comment_wordwrap_no, ! ! 'L_COMMENT_FORMAT_IMAGE_RESIZE' => $lang['Format_image_resize'], ! 'L_COMMENT_FORMAT_IMAGE_RESIZE_EXPLAIN' => $lang['Format_image_resize_explain'], ! 'COMMENT_FORMAT_IMAGE_RESIZE' => $format_comment_image_resize, ! ! 'L_COMMENT_FORMAT_TRUNCATE_LINKS' => $lang['Format_truncate_links'], ! 'L_COMMENT_FORMAT_TRUNCATE_LINKS_EXPLAIN' => $lang['Format_truncate_links_explain'], ! 'S_COMMENT_FORMAT_TRUNCATE_LINKS_YES' => $format_comment_truncate_links_yes, ! 'S_COMMENT_FORMAT_TRUNCATE_LINKS_NO' => $format_comment_truncate_links_no, ! ! 'L_COMMENTS_PAG' => $lang['Comments_pag'], ! 'L_COMMENTS_PAG_EXPLAIN' => $lang['Comments_pag_explain'], ! 'COMMENTS_PAG' => $comments_pag, ! ! 'L_DEL_TOPIC' => $lang['Del_topic'], ! 'L_DEL_TOPIC_EXPLAIN' => $lang['Del_topic_explain'], ! 'S_DEL_TOPIC_YES' => $del_topic_yes, ! 'S_DEL_TOPIC_NO' => $del_topic_no, ! ! // ! // Ratings ! // ! 'L_RATINGS_TITLE' => $lang['Ratings_title'], ! 'L_RATINGS_TITLE_EXPLAIN' => $lang['Ratings_title_explain'], ! ! 'L_USE_RATINGS' => $lang['Use_ratings'], ! 'L_USE_RATINGS_EXPLAIN' => $lang['Use_ratings_explain'], ! 'S_USE_RATINGS_YES' => $use_ratings_yes, ! 'S_USE_RATINGS_NO' => $use_ratings_no, ! ! 'L_VOTES_CHECK_IP' => $lang['Votes_check_ip'], ! 'L_VOTES_CHECK_IP_EXPLAIN' => $lang['Votes_check_ip_explain'], ! 'S_VOTES_CHECK_IP_YES' => $votes_check_ip_yes, ! 'S_VOTES_CHECK_IP_NO' => $votes_check_ip_no, ! ! 'L_VOTES_CHECK_USERID' => $lang['Votes_check_userid'], ! 'L_VOTES_CHECK_USERID_EXPLAIN' => $lang['Votes_check_userid_explain'], ! 'S_VOTES_CHECK_USERID_YES' => $votes_check_userid_yes, ! 'S_VOTES_CHECK_USERID_NO' => $votes_check_userid_no, ! ! // ! // Instructions ! // ! 'L_INSTRUCTIONS_TITLE' => $lang['Instructions_title'], ! ! 'L_SHOW' => $lang['Show'], ! 'L_HIDE' => $lang['Hide'], ! 'L_PRE_TEXT_NAME' => $lang['Pre_text_name'], ! 'L_PRE_TEXT_HEADER' => $lang['Pre_text_header'], ! 'L_PRE_TEXT_BODY' => $lang['Pre_text_body'], ! 'L_PRE_TEXT_EXPLAIN' => $lang['Pre_text_explain'], ! 'S_SHOW_PRETEXT' => $pretext_show, ! 'S_HIDE_PRETEXT' => $pretext_hide, ! 'L_PT_HEADER' => $pt_header, ! 'L_PT_BODY' => $pt_body, ! ! // ! // Notifications ! // ! 'L_NOTIFICATIONS_TITLE' => $lang['Notifications_title'], ! ! 'L_NOTIFY' => $lang['Notify'], ! 'L_NOTIFY_EXPLAIN' => $lang['Notify_explain'], ! 'L_EMAIL' => $lang['Email'], ! 'L_PM' => $lang['PM'], ! 'S_NOTIFY_NONE' => $notify_none, ! 'S_NOTIFY_EMAIL' => $notify_email, ! 'S_NOTIFY_PM' => $notify_pm, ! ! 'L_NOTIFY_GROUP' => $lang['Notify_group'], ! 'L_NOTIFY_GROUP_EXPLAIN' => $lang['Notify_group_explain'], ! 'NOTIFY_GROUP' => $notify_group_list, ! ! )); $template->pparse( 'body' ); } + + /** + * Enter description here... + * + * @param unknown_type $sel_id + * @param unknown_type $use_default_option + * @param unknown_type $select_name + * @return unknown + */ + function get_forums( $sel_id = 0, $use_default_option = false, $select_name = 'forum_id' ) + { + global $db, $lang; + + $sql = "SELECT forum_id, forum_name + FROM " . FORUMS_TABLE; + + if ( !$result = $db->sql_query( $sql ) ) + { + mx_message_die( GENERAL_ERROR, "Couldn't get list of forums", "", __LINE__, __FILE__, $sql ); + } + + $forumlist = '<select name="'.$select_name.'">'; + + if ( $sel_id == 0 ) + { + $forumlist .= '<option value="0" selected >'.$lang['Select_topic_id'].'</option>'; + } + + if ( $use_default_option ) + { + $status = $sel_id == "-1" ? "selected" : ""; + $forumlist .= '<option value="-1" '.$status.' >::'.$lang['Use_default'].'::</option>'; + } + + while ( $row = $db->sql_fetchrow( $result ) ) + { + if ( $sel_id == $row['forum_id'] ) + { + $status = "selected"; + } + else + { + $status = ''; + } + $forumlist .= '<option value="' . $row['forum_id'] . '" ' . $status . '>' . $row['forum_name'] . '</option>'; + } + + $forumlist .= '</select>'; + + return $forumlist; + } } ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2006-07-03 12:46:02
|
Update of /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv1210/modules/mx_linkdb/templates/subSilver/admin Modified Files: linkdb_admin_cat_edit.tpl linkdb_admin_settings.tpl Log Message: Working... Index: linkdb_admin_settings.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin/linkdb_admin_settings.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** linkdb_admin_settings.tpl 3 Jul 2006 09:18:01 -0000 1.2 --- linkdb_admin_settings.tpl 3 Jul 2006 12:23:30 -0000 1.3 *************** *** 1,104 **** ! <h1>{L_SETTINGSTITLE}</h1> ! <p>{L_SETTINGSEXPLAIN}</p> ! <form action="{S_SETTINGS_ACTION}" method="post"> ! <table width="100%" cellpadding="3" cellspacing="1" class="forumline"> ! <tr> ! <th colspan="2" class="thHead">{L_SETTINGS}</th> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_LOCK_SUBMIT_SITE}</span></td> ! <td class="row2"><input type="radio" name="lock_submit_site" value="1" {LOCK_SUBMIT_SITE_YES} /> {L_YES} <input type="radio" name="lock_submit_site" value="0" {LOCK_SUBMIT_SITE_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_CAT_COL}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="2" size="5" name="cat_col" value="{CAT_COL}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SPLIT_LINKS}</span></td> ! <td class="row2"><input type="radio" name="split_links" value="1" {SPLIT_LINKS_YES} /> {L_YES} <input type="radio" name="split_links" value="0" {SPLIT_LINKS_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SITE_LOGO}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="100" size="60" name="site_logo" value="{SITE_LOGO}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SITE_URL}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="100" size="60" name="site_url" value="{SITE_URL}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_WIDTH}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="width" value="{WIDTH}" /></td> ! </tr> <tr> ! <td class="row1"><span class="genmed">{L_HEIGHT}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="2" size="5" name="height" value="{HEIGHT}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SETTINGS_LINK_PAGE}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="9" size="5" name="settings_link_page" value="{SETTINGS_LINK_PAGE}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_DEFAULT_SORT_METHOD}</span></td> ! <td class="row2"> ! <select name="sort_method"> ! <option {SORT_NAME} value='link_name'>{L_NAME}</option> ! <option {SORT_TIME} value='link_time'>{L_DATE}</option> ! <option {SORT_RATING} value='link_longdesc'>{L_LINK_SITE_DESC}</option> ! <option {SORT_DOWNLOADS} value='link_hits'>{L_DOWNLOADS}</option> ! </select> ! </td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_DEFAULT_SORT_ORDER}</span></td> ! <td class="row2"> ! <select name="sort_order"> ! <option {SORT_ASC} value='ASC'>{L_ASC}</option> ! <option {SORT_DESC} value='DESC'>{L_DESC}</option> ! </select> ! </td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_DISPLAY_INTERVAL}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="9" size="5" name="display_interval" value="{INTERVAL}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_PAGINATION}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="9" size="5" name="pagination" value="{PAGINATION}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_ALLOW_GUEST_SUBMIT_SITE}</span></td> ! <td class="row2"><input type="radio" name="allow_guest_submit_site" value="1" {ALLOW_GUEST_SUBMIT_SITE_YES} /> {L_YES} <input type="radio" name="allow_guest_submit_site" value="0" {ALLOW_GUEST_SUBMIT_SITE_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_NEED_VALIDATION}</span></td> ! <td class="row2"><input type="radio" name="link_validation" value="1" {NEED_VALIDATION_YES} /> {L_YES} <input type="radio" name="link_validation" value="0" {NEED_VALIDATION_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_ALLOW_NO_LOGO}</span></td> ! <td class="row2"><input type="radio" name="allow_no_logo" value="1" {ALLOW_NO_LOGO_YES} /> {L_YES} <input type="radio" name="allow_no_logo" value="0" {ALLOW_NO_LOGO_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_DISPLAY_LINKS_LOGO}</span></td> ! <td class="row2"><input type="radio" name="display_links_logo" value="1" {DISLAY_LINKS_LOGO_YES} /> {L_YES} <input type="radio" name="display_links_logo" value="0" {DISLAY_LINKS_LOGO_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_LINK_EMAIL_NOTIFY}</span></td> ! <td class="row2"><input type="radio" name="email_notify" value="1" {EMAIL_YES} /> {L_YES} <input type="radio" name="email_notify" value="0" {EMAIL_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_LINK_PM_NOTIFY}</span></td> ! <td class="row2"><input type="radio" name="pm_notify" value="1" {PM_YES} /> {L_YES} <input type="radio" name="pm_notify" value="0" {PM_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_LINK_ALLOW_RATE}</span></td> ! <td class="row2"><input type="radio" name="allow_vote" value="1" {RATE_YES} /> {L_YES} <input type="radio" name="allow_vote" value="0" {RATE_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td align="center" class="cat" colspan="2"><input class="liteoption" type="submit" value="{L_SUBMIT}" name="submit" /> <input type="reset" value="{L_RESET}" class="liteoption" /> ! </td> ! </tr> </table> </form> \ No newline at end of file --- 1,221 ---- ! <h1>{L_CONFIGURATION_TITLE}</h1> ! <p>{L_CONFIGURATION_EXPLAIN}</p> ! <form action="{S_ACTION}" method="post"> ! <table width="100%" cellpadding="3" cellspacing="1" border="0" align="center" class="forumline"> <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" colspan="2"> {L_GENERAL_TITLE}</th> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_MODULE_NAME}<br /><span class="gensmall">{L_MODULE_NAME_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input text="text" name="module_name" value="{MODULE_NAME}" size="20" maxlength="50" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ENABLE_MODULE}<br /><span class="gensmall">{L_ENABLE_MODULE_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="enable_module" value="1" {S_ENABLE_MODULE_YES} /> {L_YES} <input type="radio" name="enable_module" value="0" {S_ENABLE_MODULE_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_WYSIWYG_PATH}<br /><span class="gensmall">{L_WYSIWYG_PATH_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input text="text" name="wysiwyg_path" value="{WYSIWYG_PATH}" size="20" maxlength="50" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SITE_LOGO}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="100" size="60" name="site_logo" value="{SITE_LOGO}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SITE_URL}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="100" size="60" name="site_url" value="{SITE_URL}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SETTINGS_LINK_PAGE}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="9" size="5" name="settings_link_page" value="{SETTINGS_LINK_PAGE}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_DISPLAY_INTERVAL}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="9" size="5" name="display_interval" value="{INTERVAL}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_LOCK_SUBMIT_SITE}</span></td> ! <td class="row2"><input type="radio" name="lock_submit_site" value="1" {LOCK_SUBMIT_SITE_YES} /> {L_YES} <input type="radio" name="lock_submit_site" value="0" {LOCK_SUBMIT_SITE_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" colspan="2"> {L_LINK_TITLE}</th> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_WIDTH}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="5" size="5" name="width" value="{WIDTH}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_HEIGHT}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="2" size="5" name="height" value="{HEIGHT}" /></td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_DISPLAY_LINKS_LOGO}</span></td> ! <td class="row2"><input type="radio" name="display_links_logo" value="1" {DISLAY_LINKS_LOGO_YES} /> {L_YES} <input type="radio" name="display_links_logo" value="0" {DISLAY_LINKS_LOGO_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_ALLOW_NO_LOGO}</span></td> ! <td class="row2"><input type="radio" name="allow_no_logo" value="1" {ALLOW_NO_LOGO_YES} /> {L_YES} <input type="radio" name="allow_no_logo" value="0" {ALLOW_NO_LOGO_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_SPLIT_LINKS}</span></td> ! <td class="row2"><input type="radio" name="split_links" value="1" {SPLIT_LINKS_YES} /> {L_YES} <input type="radio" name="split_links" value="0" {SPLIT_LINKS_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" colspan="2"> {L_APPEARANCE_TITLE}</th> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_PAGINATION}<br /><span class="gensmall">{L_PAGINATION_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input class="post" type="text" name="pagination" value="{PAGINATION}" size="5" maxlength="4" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_SORT_METHOD}<br /><span class="gensmall">{L_SORT_METHOD_EXPLAIN}</span></td> ! <td class="row2" width="50%">{SORT_METHOD} </td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_SORT_ORDER}<br /><span class="gensmall">{L_SORT_ORDER_EXPLAIN}</span></td> ! <td class="row2" width="50%">{SORT_ORDER} </td> ! </tr> ! <tr> ! <td class="row1"><span class="genmed">{L_CAT_COL}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="2" size="5" name="cat_col" value="{CAT_COL}" /></td> ! </tr> ! <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" colspan="2"> {L_COMMENTS_TITLE}<br /><span class="gensmall">{L_COMMENTS_TITLE_EXPLAIN}</span></th> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_USE_COMMENTS}<br /><span class="gensmall">{L_USE_COMMENTS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="use_comments" value="1" {S_USE_COMMENTS_YES} /> {L_YES} <input type="radio" name="use_comments" value="0" {S_USE_COMMENTS_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_INTERNAL_COMMENTS}<br /><span class="gensmall">{L_INTERNAL_COMMENTS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="internal_comments" value="1" {S_INTERNAL_COMMENTS_INTERNAL} /> {L_INTERNAL_COMMENTS_INTERNAL} <input type="radio" name="internal_comments" value="0" {S_INTERNAL_COMMENTS_PHPBB} /> {L_INTERNAL_COMMENTS_PHPBB}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_FORUM_ID}<br /><span class="gensmall">{L_FORUM_ID_EXPLAIN}</span></td> ! <td class="row2" width="50%">{FORUM_LIST}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_COMMENTS_PAG}<br /><span class="gensmall">{L_COMMENTS_PAG_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input class="post" type="text" name="comments_pagination" value="{COMMENTS_PAG}" size="5" maxlength="4" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_AUTOGENERATE_COMMENTS}<br /><span class="gensmall">{L_AUTOGENERATE_COMMENTS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="autogenerate_comments" value="1" {S_AUTOGENERATE_COMMENTS_YES} /> {L_YES} <input type="radio" name="autogenerate_comments" value="0" {S_AUTOGENERATE_COMMENTS_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_DEL_TOPIC}<br /><span class="gensmall">{L_DEL_TOPIC_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="del_topic" value="1" {S_DEL_TOPIC_YES} /> {L_YES} <input type="radio" name="del_topic" value="0" {S_DEL_TOPIC_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ALLOW_COMMENT_WYSIWYG}<br /><span class="gensmall">{L_ALLOW_COMMENT_WYSIWYG_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="allow_comment_wysiwyg" value="1" {S_ALLOW_COMMENT_WYSIWYG_YES} /> {L_YES} <input type="radio" name="allow_comment_wysiwyg" value="0" {S_ALLOW_COMMENT_WYSIWYG_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ALLOW_COMMENT_HTML}<br /><span class="gensmall">{L_ALLOW_COMMENT_HTML_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input class="radio" type="radio" name="allow_comment_html" value="1" {S_ALLOW_COMMENT_HTML_YES} /> {L_YES} <input type="radio" name="allow_comment_html" value="0" {S_ALLOW_COMMENT_HTML_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ALLOWED_COMMENT_HTML_TAGS}<br /><span class="gensmall">{L_ALLOWED_HTML_TAGS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input text="text" name="allowed_comment_html_tags" value="{ALLOWED_COMMENT_HTML_TAGS}" size="15" maxlength="50" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ALLOW_COMMENT_BBCODE}<br /><span class="gensmall">{L_ALLOW_BBCODE_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="allow_comment_bbcode" value="1" {S_ALLOW_COMMENT_BBCODE_YES} /> {L_YES} <input type="radio" name="allow_comment_bbcode" value="0" {S_ALLOW_COMMENT_BBCODE_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ALLOW_COMMENT_SMILIES}<br /><span class="gensmall">{L_ALLOW_SMILIES_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="allow_comment_smilies" value="1" {S_ALLOW_COMMENT_SMILIES_YES} /> {L_YES} <input type="radio" name="allow_comment_smilies" value="0" {S_ALLOW_COMMENT_SMILIES_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ALLOW_COMMENT_IMAGES}<br /><span class="gensmall">{L_ALLOW_IMAGES_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="allow_comment_images" value="1" {S_ALLOW_COMMENT_IMAGES_YES} /> {L_YES} <input type="radio" name="allow_comment_images" value="0" {S_ALLOW_COMMENT_IMAGES_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1">{L_COMMENT_IMAGES_MESSAGE}<br><span class="gensmall">{L_COMMENT_IMAGES_MESSAGE_EXPLAIN}</span></td> ! <td class="row2"><input type="text" class="post" size="50" name="no_comment_image_message" value="{COMMENT_MESSAGE_IMAGE}" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_ALLOW_COMMENT_LINKS}<br /><span class="gensmall">{L_ALLOW_COMMENT_LINKS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="allow_comment_links" value="1" {S_ALLOW_COMMENT_LINKS_YES} /> {L_YES} <input type="radio" name="allow_comment_links" value="0" {S_ALLOW_COMMENT_LINKS_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1">{L_COMMENT_LINKS_MESSAGE}<br><span class="gensmall">{L_COMMENT_LINKS_MESSAGE_EXPLAIN}</span></td> ! <td class="row2"><input type="text" class="post" size="50" name="no_comment_link_message" value="{COMMENT_MESSAGE_LINK}" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_COMMENT_FORMAT_WORDWRAP}<br /><span class="gensmall">{L_COMMENT_FORMAT_WORDWRAP_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="formatting_comment_wordwrap" value="1" {S_COMMENT_FORMAT_WORDWRAP_YES} /> {L_YES} <input type="radio" name="formatting_comment_wordwrap" value="0" {S_COMMENT_FORMAT_WORDWRAP_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1">{L_COMMENT_FORMAT_IMAGE_RESIZE}<br><span class="gensmall">{L_COMMENT_FORMAT_IMAGE_RESIZE_EXPLAIN}</span></td> ! <td class="row2"><input type="text" class="post" size="50" name="formatting_comment_image_resize" value="{COMMENT_FORMAT_IMAGE_RESIZE}" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_COMMENT_FORMAT_TRUNCATE_LINKS}<br /><span class="gensmall">{L_COMMENT_FORMAT_TRUNCATE_LINKS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="formatting_comment_truncate_links" value="1" {S_COMMENT_FORMAT_TRUNCATE_LINKS_YES} /> {L_YES} <input type="radio" name="formatting_comment_truncate_links" value="0" {S_COMMENT_FORMAT_TRUNCATE_LINKS_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1">{L_COMMENT_MAX_SUBJECT_CHAR}<br><span class="gensmall">{L_COMMENT_MAX_SUBJECT_CHAR_EXPLAIN}</span></td> ! <td class="row2"><input type="text" class="post" size="50" name="max_comment_subject_chars" value="{COMMENT_MAX_SUBJECT_CHAR}" /></td> ! </tr> ! <tr> ! <td class="row1">{L_COMMENT_MAX_CHAR}<br><span class="gensmall">{L_COMMENT_MAX_CHAR_EXPLAIN}</span></td> ! <td class="row2"><input type="text" class="post" size="50" name="max_comment_chars" value="{COMMENT_MAX_CHAR}" /></td> ! </tr> ! <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" colspan="2"> {L_RATINGS_TITLE}<br /><span class="gensmall">{L_RATINGS_TITLE_EXPLAIN}</span></th> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_USE_RATINGS}<br /><span class="gensmall">{L_USE_RATINGS_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="use_ratings" value="1" {S_USE_RATINGS_YES} /> {L_YES} <input type="radio" name="use_ratings" value="0" {S_USE_RATINGS_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_VOTES_CHECK_IP}<br /><span class="gensmall">{L_VOTES_CHECK_IP_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="votes_check_ip" value="1" {S_VOTES_CHECK_IP_YES} /> {L_YES} <input type="radio" name="votes_check_ip" value="0" {S_VOTES_CHECK_IP_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_VOTES_CHECK_USERID}<br /><span class="gensmall">{L_VOTES_CHECK_USERID_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="votes_check_userid" value="1" {S_VOTES_CHECK_USERID_YES} /> {L_YES} <input type="radio" name="votes_check_userid" value="0" {S_VOTES_CHECK_USERID_NO} /> {L_NO}</td> ! </tr> ! <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" colspan="2"> {L_INSTRUCTIONS_TITLE}</th> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_PRE_TEXT_NAME}<br /><span class="gensmall">{L_PRE_TEXT_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="show_pretext" value="1" {S_SHOW_PRETEXT} /> {L_SHOW} <input type="radio" name="show_pretext" value="0" {S_HIDE_PRETEXT} /> {L_HIDE}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_PRE_TEXT_HEADER}</td> ! <td class="row2" width="50%"><input text="text" name="pt_header" value="{L_PT_HEADER}" size="40" maxlength="100" /></td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_PRE_TEXT_BODY}</td> ! <td class="row2" width="50%"><textarea name="pt_body" cols="40" rows="5">{L_PT_BODY}</textarea></td> ! </tr> ! <tr> ! <!-- TITLE ------------------------------------------------------------------------------------------- --> ! <th class="thHead" colspan="2"> {L_NOTIFICATIONS_TITLE}</th> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_NOTIFY}<br /><span class="gensmall">{L_NOTIFY_EXPLAIN}</span></td> ! <td class="row2" width="50%"><input type="radio" name="notify" value="0" {S_NOTIFY_NONE} />{L_NONE} <input type="radio" name="notify" value="2" {S_NOTIFY_EMAIL} />{L_EMAIL} <input type="radio" name="notify" value="1" {S_NOTIFY_PM} />{L_PM}</td> ! </tr> ! <tr> ! <td class="row1" width="50%">{L_NOTIFY_GROUP}<br /><span class="gensmall">{L_NOTIFY_GROUP_EXPLAIN}</span></td> ! <td class="row2" width="50%">{NOTIFY_GROUP}</td> ! </tr> ! <tr> ! <td align="center" class="cat" colspan="2"><input class="liteoption" type="submit" value="{L_SUBMIT}" name="submit" /> <input type="reset" value="{L_RESET}" class="liteoption" /> ! </td> ! </tr> </table> </form> \ No newline at end of file Index: linkdb_admin_cat_edit.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin/linkdb_admin_cat_edit.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** linkdb_admin_cat_edit.tpl 9 Jan 2005 21:42:02 -0000 1.1 --- linkdb_admin_cat_edit.tpl 3 Jul 2006 12:23:30 -0000 1.2 *************** *** 2,6 **** <!-- var error_msg = ""; ! function checkAddForm() { error_msg = ""; --- 2,6 ---- <!-- var error_msg = ""; ! function checkAddForm() { error_msg = ""; *************** *** 10,14 **** error_msg += "{L_CAT_NAME_FIELD_EMPTY}"; } ! if(error_msg != "") { --- 10,14 ---- error_msg += "{L_CAT_NAME_FIELD_EMPTY}"; } ! if(error_msg != "") { *************** *** 50,57 **** --- 50,152 ---- </tr> <tr> + <td class="row1">{L_CAT_DESC}<br><span class="gensmall">{L_CAT_DESC_INFO}</span></td> + <td class="row2"><input type="text" class="post" size="50" name="cat_desc" value="{CAT_DESC}"></td> + </tr> + <tr> <td class="row1">{L_CAT_PARENT}<br><span class="gensmall">{L_CAT_PARENT_INFO}</span></td> <td class="row2"><select name="cat_parent" class="forminput">{S_CAT_LIST}</select></td> </tr> <tr> + <td class="row1">{L_CAT_ALLOWFILE}<br><span class="gensmall">{L_CAT_ALLOWFILE_INFO}</span></td> + <td class="row2"> + <input type="radio" name="cat_allow_file" value="1" {CHECKED_YES}>{L_YES} + <input type="radio" name="cat_allow_file" value="0" {CHECKED_NO}>{L_NO} + </td> + </tr> + <tr> + <!-- TITLE ------------------------------------------------------------------------------------------- --> + <th class="thHead" colspan="2"> {L_COMMENTS_TITLE}</th> + </tr> + <tr> + <td class="row1" width="50%">{L_USE_COMMENTS}<br /><span class="gensmall">{L_USE_COMMENTS_EXPLAIN}</span></td> + <td class="row2" width="50%"><input type="radio" name="cat_allow_comments" value="-1" {S_USE_COMMENTS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="cat_allow_comments" value="1" {S_USE_COMMENTS_YES} /> {L_YES} <input type="radio" name="cat_allow_comments" value="0" {S_USE_COMMENTS_NO} /> {L_NO}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_INTERNAL_COMMENTS}<br /><span class="gensmall">{L_INTERNAL_COMMENTS_EXPLAIN}</span></td> + <td class="row2" width="50%"><input type="radio" name="internal_comments" value="-1" {S_INTERNAL_COMMENTS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="internal_comments" value="1" {S_INTERNAL_COMMENTS_INTERNAL} /> {L_INTERNAL_COMMENTS_INTERNAL} <input type="radio" name="internal_comments" value="0" {S_INTERNAL_COMMENTS_PHPBB} /> {L_INTERNAL_COMMENTS_PHPBB}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_FORUM_ID}<br /><span class="gensmall">{L_FORUM_ID_EXPLAIN}</span></td> + <td class="row2" width="50%">{FORUM_LIST}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_AUTOGENERATE_COMMENTS}<br /><span class="gensmall">{L_AUTOGENERATE_COMMENTS_EXPLAIN}</span></td> + <td class="row2" width="50%"><input type="radio" name="autogenerate_comments" value="-1" {S_AUTOGENERATE_COMMENTS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="autogenerate_comments" value="1" {S_AUTOGENERATE_COMMENTS_YES} /> {L_YES} <input type="radio" name="autogenerate_comments" value="0" {S_AUTOGENERATE_COMMENTS_NO} /> {L_NO}</td> + </tr> + <tr> + <!-- TITLE ------------------------------------------------------------------------------------------- --> + <th class="thHead" colspan="2"> {L_RATINGS_TITLE}</th> + </tr> + <tr> + <td class="row1" width="50%">{L_USE_RATINGS}<br /><span class="gensmall">{L_USE_RATINGS_EXPLAIN}</span></td> + <td class="row2" width="50%"><input type="radio" name="cat_allow_ratings" value="-1" {S_USE_RATINGS_DEFAULT} /> {L_DEFAULT} <input type="radio" name="cat_allow_ratings" value="1" {S_USE_RATINGS_YES} /> {L_YES} <input type="radio" name="cat_allow_ratings" value="0" {S_USE_RATINGS_NO} /> {L_NO}</td> + </tr> + <tr> + <!-- TITLE ------------------------------------------------------------------------------------------- --> + <th class="thHead" colspan="2"> {L_INSTRUCTIONS_TITLE}</th> + </tr> + <tr> + <td class="row1" width="50%">{L_PRE_TEXT_NAME}<br /><span class="gensmall">{L_PRE_TEXT_EXPLAIN}</span></td> + <td class="row2" width="50%"><input type="radio" name="show_pretext" value="-1" {S_DEFAULT_PRETEXT} /> {L_DEFAULT} <input type="radio" name="show_pretext" value="1" {S_SHOW_PRETEXT} /> {L_SHOW} <input type="radio" name="show_pretext" value="0" {S_HIDE_PRETEXT} /> {L_HIDE}</td> + </tr> + <tr> + <!-- TITLE ------------------------------------------------------------------------------------------- --> + <th class="thHead" colspan="2"> {L_NOTIFICATIONS_TITLE}</th> + </tr> + <tr> + <td class="row1" width="50%">{L_NOTIFY}<br /><span class="gensmall">{L_NOTIFY_EXPLAIN}</span></td> + <td class="row2" width="50%"><input type="radio" name="notify" value="-1" {S_NOTIFY_DEFAULT} />{L_DEFAULT} <input type="radio" name="notify" value="0" {S_NOTIFY_NONE} />{L_NONE} <input type="radio" name="notify" value="2" {S_NOTIFY_EMAIL} />{L_EMAIL} <input type="radio" name="notify" value="1" {S_NOTIFY_PM} />{L_PM}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_NOTIFY_GROUP}<br /><span class="gensmall">{L_NOTIFY_GROUP_EXPLAIN}</span></td> + <td class="row2" width="50%">{NOTIFY_GROUP}</td> + </tr> + <tr> + <!-- TITLE ------------------------------------------------------------------------------------------- --> + <th class="thHead" height="25" nowrap="nowrap" colspan="2">{L_CAT_PERMISSIONS}</th> + </tr> + <tr> + <td class="row1" width="50%">{L_VIEW_LEVEL}<br><span class="gensmall">{L_VIEW_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_VIEW_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_UPLOAD_LEVEL}<br><span class="gensmall">{L_UPLOAD_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_UPLOAD_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_RATE_LEVEL}<br><span class="gensmall">{L_RATE_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_RATE_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_COMMENT_LEVEL}<br><span class="gensmall">{L_COMMENT_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_COMMENT_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_EDIT_LEVEL}<br><span class="gensmall">{L_EDIT_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_EDIT_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_DELETE_LEVEL}<br><span class="gensmall">{L_DELETE_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_DELETE_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_APPROVAL_LEVEL}<br><span class="gensmall">{L_APPROVAL_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_APPROVAL_LEVEL}</td> + </tr> + <tr> + <td class="row1" width="50%">{L_APPROVAL_EDIT_LEVEL}<br><span class="gensmall">{L_APPROVAL_EDIT_LEVEL_INFO}</span></td> + <td class="row2" width="50%">{S_APPROVAL_EDIT_LEVEL}</td> + </tr> + <tr> <td align="center" class="cat" colspan="2"> {S_HIDDEN_FIELDS} |
|
From: Jon O. <jon...@us...> - 2006-07-03 09:18:26
|
Update of /cvsroot/mxbb/mx_linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22188/modules/mx_linkdb/admin Modified Files: admin_linkdb.php Log Message: Working... Index: admin_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/admin/admin_linkdb.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** admin_linkdb.php 1 Jul 2006 21:32:18 -0000 1.7 --- admin_linkdb.php 3 Jul 2006 09:18:00 -0000 1.8 *************** *** 16,19 **** --- 16,20 ---- $module['LinkDb']['Configuration'] = 'modules/mx_linkdb/admin/' . $filename . "?action=setting"; $module['LinkDb']['Link_cat_manage'] = 'modules/mx_linkdb/admin/' . $filename . "?action=cat_manage"; + $module['LinkDb']['Link_auth_manage'] = 'modules/mx_linkdb/admin/' . $filename . "?action=auth_manage"; $module['LinkDb']['Link_manage'] = 'modules/mx_linkdb/admin/' . $filename . "?action=link_manage"; return; *************** *** 47,52 **** // an array of all expected actions // ! $actions = array( 'setting' => 'setting', 'cat_manage' => 'cat_manage', 'link_manage' => 'link_manage' ); --- 48,55 ---- // an array of all expected actions // ! $actions = array( ! 'setting' => 'setting', 'cat_manage' => 'cat_manage', + 'auth_manage' => 'auth_manage', 'link_manage' => 'link_manage' ); |
|
From: Jon O. <jon...@us...> - 2006-07-03 09:18:06
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22188/modules/mx_linkdb Modified Files: db_install.php db_upgrade.php Log Message: Working... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/db_install.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** db_install.php 1 Jul 2006 22:01:23 -0000 1.10 --- db_install.php 3 Jul 2006 09:18:01 -0000 1.11 *************** *** 57,115 **** cat_id int(10) NOT NULL auto_increment, cat_name text, cat_parent int(50) default NULL, parents_data text NOT NULL, cat_order int(50) default NULL, cat_links mediumint(8) NOT NULL default '-1', PRIMARY KEY (cat_id), KEY cat_order (cat_order) )", ! "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (1,'PHP',0,'',1,1)", ! "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (2,'Bulletin Board',1,'',2,-1)", "CREATE TABLE " . $mx_table_prefix . "linkdb ( link_id mediumint(8) unsigned NOT NULL auto_increment, link_name text, link_longdesc text, link_catid mediumint(8) unsigned NOT NULL default '0', link_url varchar(100) NOT NULL default '', link_logo_src varchar(120) default NULL, link_time int(25) default '0', - link_approved tinyint(1) NOT NULL default '0', - link_hits int(10) unsigned NOT NULL default '0', user_id mediumint(8) NOT NULL default '0', poster_ip varchar(8) NOT NULL default '', - last_user_ip varchar(8) NOT NULL default '', post_username varchar(25) default NULL, PRIMARY KEY (link_id) )", ! "INSERT INTO " . $mx_table_prefix . "linkdb VALUES (1, 'phpBB Official Website', 'Official phpBB Website', 2, 'http://www.phpbb.com/', 'linkdb/images/phpBB_88a.gif', " . time() . ", 1, 0, " . $tmp . ", '', '', '')", "CREATE TABLE " . $mx_table_prefix . "linkdb_config ( config_name varchar(255) NOT NULL default '', ! config_value varchar(255) NOT NULL default '' )", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_logo', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "linkdb/images/web_logo88a.gif')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_url', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('width', '88')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('height', '31')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('settings_link_page', '10')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('display_interval', '6000')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('display_logo_num', '10')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('display_links_logo', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('email_notify', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('pm_notify ', '0')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('lock_submit_site', '0')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_no_logo', '0')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('cat_col', '2')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('sort_method', 'link_time')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('sort_order', 'DESC')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_guest_submit_site', '0')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('split_links', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_vote', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('linkdb_versions', '0.0.7')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('link_validation', '1')", "CREATE TABLE " . $mx_table_prefix . "linkdb_custom ( --- 57,153 ---- cat_id int(10) NOT NULL auto_increment, cat_name text, + cat_desc text, cat_parent int(50) default NULL, parents_data text NOT NULL, cat_order int(50) default NULL, + cat_allow_file tinyint(2) NOT NULL default '1', + + cat_allow_comments tinyint(2) NOT NULL default '-1', + internal_comments tinyint(2) NOT NULL default '-1', + autogenerate_comments tinyint(2) NOT NULL default '-1', + comments_forum_id mediumint(8) NOT NULL DEFAULT '-1', + + cat_allow_ratings tinyint(2) NOT NULL default '-1', + + show_pretext tinyint(2) NOT NULL default '-1', + + notify tinyint(2) NOT NULL default '-1', + notify_group mediumint(8) NOT NULL default '-1', + cat_links mediumint(8) NOT NULL default '-1', + cat_last_link_id mediumint(8) unsigned NOT NULL default '0', + cat_last_link_name varchar(255) NOT NULL default '', + cat_last_link_time INT(50) UNSIGNED NOT NULL default '0', + + auth_view tinyint(3) NOT NULL DEFAULT '0', + auth_post tinyint(3) NOT NULL DEFAULT '0', + auth_rate tinyint(3) NOT NULL DEFAULT '0', + auth_comment tinyint(3) NOT NULL DEFAULT '0', + auth_edit tinyint(3) NOT NULL DEFAULT '0', + auth_delete tinyint(3) NOT NULL DEFAULT '2', + auth_approval tinyint(3) NOT NULL DEFAULT '0', + auth_approval_edit tinyint(3) NOT NULL DEFAULT '0', + + auth_view_groups smallint(5) NOT NULL default '0', + auth_post_groups smallint(5) NOT NULL default '0', + auth_rate_groups smallint(5) NOT NULL default '0', + auth_comment_groups smallint(5) NOT NULL default '0', + auth_edit_groups smallint(5) NOT NULL default '0', + auth_delete_groups smallint(5) NOT NULL default '0', + auth_approval_groups smallint(5) NOT NULL default '0', + auth_approval_edit_groups smallint(5) NOT NULL default '0', + + auth_moderator_groups smallint(5) NOT NULL default '0', + PRIMARY KEY (cat_id), KEY cat_order (cat_order) )", ! "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (1, 'PHP', '', '', '', '1', 0, '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", ! "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (2, 'Bulletin Board', '', 1, '', '2', 1, '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "CREATE TABLE " . $mx_table_prefix . "linkdb ( link_id mediumint(8) unsigned NOT NULL auto_increment, link_name text, + link_desc text, link_longdesc text, link_catid mediumint(8) unsigned NOT NULL default '0', + link_approved tinyint(1) NOT NULL default '0', + link_url varchar(100) NOT NULL default '', link_logo_src varchar(120) default NULL, + link_time int(25) default '0', user_id mediumint(8) NOT NULL default '0', poster_ip varchar(8) NOT NULL default '', post_username varchar(25) default NULL, + last_user_ip varchar(8) NOT NULL default '', + link_hits int(10) unsigned NOT NULL default '0', + PRIMARY KEY (link_id) )", ! "INSERT INTO " . $mx_table_prefix . "linkdb VALUES (1, 'phpBB Official Website', 'Official phpBB Website', '', 2, 1, 'http://www.phpbb.com/', 'linkdb/images/phpBB_88a.gif', " . time() . ", " . $userdata['user_id'] . ", '', '', '', '')", "CREATE TABLE " . $mx_table_prefix . "linkdb_config ( config_name varchar(255) NOT NULL default '', ! config_value varchar(255) NOT NULL default '', ! PRIMARY KEY (config_name) )", ! // -------------------------------------------------------- ! // Table structure for table `phpbb_pa_comments` ! "CREATE TABLE " . $mx_table_prefix . "linkdb_comments ( ! comments_id int(10) NOT NULL auto_increment, ! link_id int(10) NOT NULL default '0', ! comments_text text NOT NULL, ! comments_title text NOT NULL, ! comments_time int(50) NOT NULL default '0', ! comment_bbcode_uid varchar(10) default NULL, ! poster_id mediumint(8) NOT NULL default '0', ! PRIMARY KEY (comments_id), ! KEY comments_id (comments_id), ! FULLTEXT KEY comment_bbcode_uid (comment_bbcode_uid) ! )", "CREATE TABLE " . $mx_table_prefix . "linkdb_custom ( *************** *** 136,140 **** rate_point tinyint(3) unsigned NOT NULL default '0', KEY user_id (user_id) ! )" ); --- 174,240 ---- rate_point tinyint(3) unsigned NOT NULL default '0', KEY user_id (user_id) ! )", ! ! // General ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('enable_module', '0')", // settings_disable ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('module_name', 'Download Database')", // settings_dbname ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('wysiwyg_path', 'modules/mx_shared/')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_logo', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "linkdb/images/web_logo88a.gif')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_url', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('settings_link_page', '10')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('display_interval', '6000')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('lock_submit_site', '0')", ! ! // Link ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('width', '88')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('height', '31')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('display_links_logo', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_no_logo', '0')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('split_links', '1')", ! ! // Appearance ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('sort_method', 'link_time')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('sort_order', 'DESC')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('pagination', '10')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('cat_col', '2')", ! ! // New -------------------- ! // Comments ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('use_comments', '0')", // comments_show ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('internal_comments', '1')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('formatting_comment_wordwrap', '1')", // formatting_comment_fixup ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('formatting_comment_image_resize', '300')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('formatting_comment_truncate_links', '1')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('max_comment_subject_chars', '50')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('max_comment_chars', '5000')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_wysiwyg', '0')", // allow_wysiwyg_comments & allow_wysiwyg ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_html', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_bbcode', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_smilies', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_links', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_images', '0')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('no_comment_image_message', '[No image please]')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('no_comment_link_message', '[No links please]')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allowed_comment_html_tags', 'b,i,u,a')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('del_topic', '1')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('autogenerate_comments', '1')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('comments_pagination', '5')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('comments_forum_id', '0')", // New ! ! // Ratings ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('use_ratings', '0')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('votes_check_userid', '1')", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('votes_check_ip', '1')", ! ! // Instructions ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('show_pretext', '0')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('pt_header', 'Link Submission Instructions')", // NEW ! "INSERT INTO " . $mx_table_prefix . "linkdb_config values ('pt_body', 'Please check your references and include as much information as you can.')", // NEW ! ! ! // Notifications ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('notify', 'pm')", // pm_notify ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('notify_group', '0')", // NEW ! ); Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/db_upgrade.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** db_upgrade.php 1 Jul 2006 22:01:23 -0000 1.12 --- db_upgrade.php 3 Jul 2006 09:18:01 -0000 1.13 *************** *** 58,66 **** { //$sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('comments_forum_id', '0')"; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_cat MODIFY cat_allow_ratings tinyint(2) NOT NULL default '-1' "; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_cat ADD auth_approval_groups tinyint(2) NOT NULL default '0' "; --- 58,183 ---- { //$sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('comments_forum_id', '0')"; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories MODIFY cat_allow_ratings tinyint(2) NOT NULL default '-1' "; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_approval_groups tinyint(2) NOT NULL default '0' "; ! ! // ! // Category ! // ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD cat_desc text "; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD cat_allow_file tinyint(2) NOT NULL default '1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD cat_allow_comments tinyint(2) NOT NULL default '-1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD internal_comments tinyint(2) NOT NULL default '-1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD autogenerate_comments tinyint(2) NOT NULL default '-1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD comments_forum_id mediumint(8) NOT NULL DEFAULT '-1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD cat_allow_ratings tinyint(2) NOT NULL default '-1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD show_pretext tinyint(2) NOT NULL default '-1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD notify tinyint(2) NOT NULL default '-1' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD notify_group mediumint(8) NOT NULL default '-1' "; + + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD cat_last_link_id mediumint(8) unsigned NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD cat_last_link_name varchar(255) NOT NULL default '' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD cat_last_link_time INT(50) UNSIGNED NOT NULL default '0' "; + + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_view tinyint(3) NOT NULL DEFAULT '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_post tinyint(3) NOT NULL DEFAULT '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_rate tinyint(3) NOT NULL DEFAULT '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_comment tinyint(3) NOT NULL DEFAULT '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_edit tinyint(3) NOT NULL DEFAULT '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_delete tinyint(3) NOT NULL DEFAULT '2' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_approval tinyint(3) NOT NULL DEFAULT '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_approval_edit tinyint(3) NOT NULL DEFAULT '0' "; + + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_view_groups smallint(5) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_post_groups smallint(5) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_rate_groups smallint(5) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_comment_groups smallint(5) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_edit_groups smallint(5) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_delete_groups smallint(5) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_approval_groups smallint(5) NOT NULL default '0' "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_approval_edit_groups smallint(5) NOT NULL default '0' "; + + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_categories ADD auth_moderator_groups smallint(5) NOT NULL default '0' "; + + // + // linkdb + // + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb ADD link_desc text "; + + // + // Config + // + $sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_config DROP PRIMARY KEY, ADD PRIMARY KEY (config_name) "; + + $sql[] = "DELETE FROM " . $mx_table_prefix . "linkdb_config" . " WHERE config_name = 'allow_guest_submit_site'"; + $sql[] = "DELETE FROM " . $mx_table_prefix . "linkdb_config" . " WHERE config_name = 'allow_vote'"; + $sql[] = "DELETE FROM " . $mx_table_prefix . "linkdb_config" . " WHERE config_name = 'linkdb_versions'"; + $sql[] = "DELETE FROM " . $mx_table_prefix . "linkdb_config" . " WHERE config_name = 'link_validation'"; + $sql[] = "DELETE FROM " . $mx_table_prefix . "linkdb_config" . " WHERE config_name = 'email_notify'"; + + $sql[] = "UPDATE " . $mx_table_prefix . "linkdb_config" . " + SET config_name = 'notify', + config_value = 'pm' + WHERE config_name = 'pm_notify'"; + + $sql[] = "UPDATE " . $mx_table_prefix . "linkdb_config" . " + SET config_name = 'pagination' + WHERE config_name = 'display_logo_num'"; + + // General + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('enable_module', '0') "; // settings_disable + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('module_name', 'Download Database') "; // settings_dbname + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('wysiwyg_path', 'modules/mx_shared/') "; // settings_dbname + + // Comments + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('use_comments', '0') "; // comments_show + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('internal_comments', '1') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('formatting_comment_wordwrap', '1') "; // formatting_comment_fixup + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('formatting_comment_image_resize', '300') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('formatting_comment_truncate_links', '1') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('max_comment_subject_chars', '50') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('max_comment_chars', '5000') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_wysiwyg', '0') "; // allow_wysiwyg_comments & allow_wysiwyg + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_html', '1') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_bbcode', '1') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_smilies', '1') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_links', '1') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allow_comment_images', '0') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('no_comment_image_message', '[No image please]') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('no_comment_link_message', '[No links please]') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('allowed_comment_html_tags', 'b,i,u,a') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('del_topic', '1') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('autogenerate_comments', '1') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('comments_pagination', '5') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('comments_forum_id', '0') "; // New + + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('show_pretext', '0') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('pt_header', 'Link Submission Instructions') "; // NEW + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config values ('pt_body', 'Please check your references and include as much information as you can.') "; // NEW + + // Ratings + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('use_ratings', '0') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('votes_check_userid', '1') "; + $sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('votes_check_ip', '1') "; + + // + // Comments + // + // -------------------------------------------------------- + // Table structure for table `phpbb_pa_comments` + $sql[] = "CREATE TABLE " . $mx_table_prefix . "linkdb_comments ( + comments_id int(10) NOT NULL auto_increment, + link_id int(10) NOT NULL default '0', + comments_text text NOT NULL, + comments_title text NOT NULL, + comments_time int(50) NOT NULL default '0', + comment_bbcode_uid varchar(10) default NULL, + poster_id mediumint(8) NOT NULL default '0', + PRIMARY KEY (comments_id), + KEY comments_id (comments_id), + FULLTEXT KEY comment_bbcode_uid (comment_bbcode_uid) + )"; |
|
From: Jon O. <jon...@us...> - 2006-07-03 09:18:06
|
Update of /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22188/modules/mx_linkdb/templates/subSilver/admin Modified Files: linkdb_admin_settings.tpl Log Message: Working... Index: linkdb_admin_settings.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/templates/subSilver/admin/linkdb_admin_settings.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** linkdb_admin_settings.tpl 9 Jan 2005 21:42:02 -0000 1.1 --- linkdb_admin_settings.tpl 3 Jul 2006 09:18:01 -0000 1.2 *************** *** 7,11 **** <tr> <th colspan="2" class="thHead">{L_SETTINGS}</th> ! </tr> <tr> <td class="row1"><span class="genmed">{L_LOCK_SUBMIT_SITE}</span></td> --- 7,11 ---- <tr> <th colspan="2" class="thHead">{L_SETTINGS}</th> ! </tr> <tr> <td class="row1"><span class="genmed">{L_LOCK_SUBMIT_SITE}</span></td> *************** *** 66,71 **** </tr> <tr> ! <td class="row1"><span class="genmed">{L_DISPLAY_LOGO_NUM}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="9" size="5" name="display_logo_num" value="{LOGO_NUM}" /></td> </tr> <tr> --- 66,71 ---- </tr> <tr> ! <td class="row1"><span class="genmed">{L_PAGINATION}</span></td> ! <td class="row2"><input class="post" type="text" maxlength="9" size="5" name="pagination" value="{PAGINATION}" /></td> </tr> <tr> *************** *** 101,104 **** </td> </tr> ! </table> </form> \ No newline at end of file --- 101,104 ---- </td> </tr> ! </table> </form> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2006-07-03 09:18:05
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22188/modules/mx_linkdb/linkdb/admin Modified Files: admin_setting.php Log Message: Working... Index: admin_setting.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/admin/admin_setting.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_setting.php 30 Jun 2006 19:54:14 -0000 1.5 --- admin_setting.php 3 Jul 2006 09:18:01 -0000 1.6 *************** *** 75,81 **** 'L_SETTINGS_LINK_PAGE' => $lang['settings_link_page'], 'L_DISPLAY_INTERVAL' => $lang['interval'], ! 'L_DISPLAY_LOGO_NUM' => $lang['display_logo'], 'INTERVAL' => $new['display_interval'], ! 'LOGO_NUM' => $new['display_logo_num'], 'SITE_LOGO' => $new['site_logo'], 'SITE_URL' => $new['site_url'], --- 75,81 ---- 'L_SETTINGS_LINK_PAGE' => $lang['settings_link_page'], 'L_DISPLAY_INTERVAL' => $lang['interval'], ! 'L_PAGINATION' => $lang['display_logo'], 'INTERVAL' => $new['display_interval'], ! 'PAGINATION' => $new['pagination'], 'SITE_LOGO' => $new['site_logo'], 'SITE_URL' => $new['site_url'], |
|
From: Jon O. <jon...@us...> - 2006-07-03 09:18:05
|
Update of /cvsroot/mxbb/mx_linkdb/language/lang_english In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22188/modules/mx_linkdb/language/lang_english Modified Files: lang_admin.php Log Message: Working... Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/language/lang_english/lang_admin.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lang_admin.php 30 Jun 2006 19:54:14 -0000 1.3 --- lang_admin.php 3 Jul 2006 09:18:01 -0000 1.4 *************** *** 49,52 **** --- 49,86 ---- // + // Admin Panels - Permissions + // + $lang['Linkdb_Auth_Title'] = 'Linkdb Permissions'; + $lang['Linkdb_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for each Linkdb category, or just has the private access'; + $lang['Select_a_Category'] = 'Select a Category'; + $lang['Look_up_Category'] = 'Look up Category'; + $lang['Linkdb_Auth_successfully'] = 'Auth has been updated successfully'; + $lang['Click_return_Linkdb_auth'] = 'Click %sHere%s to return to the Linkdb Permissions'; + + $lang['Upload'] = 'Upload'; + $lang['Rate'] = 'Rate'; + $lang['Comment'] = 'Comment'; + $lang['Approval'] = 'Approval'; + $lang['Approval_edit'] = 'Approval Edit'; + + $lang['Allow_rating'] = 'Allow ratings'; + $lang['Allow_rating_explain'] = 'Users are allowed to rate links.'; + + $lang['Allow_anonymos_rating'] = 'Allow anonymous ratings'; + $lang['Allow_anonymos_rating_explain'] = 'If ratings are activated, allow anonymous users to add ratings to your articles'; + + $lang['Category_Permissions'] = 'Category Permissions'; + $lang['Category_Title'] = 'Category Title'; + $lang['Category_Desc'] = 'Category Description'; + $lang['View_level'] = 'View Level'; + $lang['Upload_level'] = 'Upload Level'; + $lang['Rate_level'] = 'Rate Level'; + $lang['Comment_level'] = 'Comment Level'; + $lang['Edit_level'] = ' Edit Level'; + $lang['Delete_level'] = 'Delete Level'; + $lang['Approval_level'] = 'Approval Level'; + $lang['Approval_edit_level'] = 'Approval Edit Level'; + + // // Configuration // |
|
From: Jon O. <jon...@us...> - 2006-07-03 09:17:31
|
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22143/modules/mx_pafiledb Modified Files: db_install.php Log Message: Working... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_install.php,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** db_install.php 27 Jun 2006 21:38:43 -0000 1.23 --- db_install.php 3 Jul 2006 09:17:28 -0000 1.24 *************** *** 59,90 **** "DROP TABLE IF EXISTS " . $mx_table_prefix . "pa_files ", - // Table structure for table `pa_auth` - "CREATE TABLE " . $mx_table_prefix . "pa_auth ( - group_id mediumint(8) DEFAULT '0' NOT NULL, - cat_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL, - auth_view tinyint(1) DEFAULT '0' NOT NULL, - auth_read tinyint(1) DEFAULT '0' NOT NULL, - auth_view_file tinyint(1) DEFAULT '0' NOT NULL, - auth_edit_file tinyint(1) DEFAULT '0' NOT NULL, - auth_delete_file tinyint(1) DEFAULT '0' NOT NULL, - auth_upload tinyint(1) DEFAULT '0' NOT NULL, - auth_download tinyint(1) DEFAULT '0' NOT NULL, - auth_rate tinyint(1) DEFAULT '0' NOT NULL, - auth_email tinyint(1) DEFAULT '0' NOT NULL, - auth_view_comment tinyint(1) DEFAULT '0' NOT NULL, - auth_post_comment tinyint(1) DEFAULT '0' NOT NULL, - auth_edit_comment tinyint(1) DEFAULT '0' NOT NULL, - auth_delete_comment tinyint(1) DEFAULT '0' NOT NULL, - auth_approval tinyint(1) DEFAULT '0' NOT NULL, - auth_approval_groups tinyint(1) DEFAULT '0' NOT NULL, - auth_mod tinyint(1) DEFAULT '1' NOT NULL, - auth_search tinyint(1) DEFAULT '1' NOT NULL, - auth_stats tinyint(1) DEFAULT '1' NOT NULL, - auth_toplist tinyint(1) DEFAULT '1' NOT NULL, - auth_viewall tinyint(1) DEFAULT '1' NOT NULL, - KEY group_id (group_id), - KEY cat_id (cat_id) - )", - // Table structure for table `pa_cat` "CREATE TABLE " . $mx_table_prefix . "pa_cat ( --- 59,62 ---- *************** *** 129,133 **** auth_approval tinyint(2) NOT NULL default '0', auth_approval_groups tinyint(2) NOT NULL default '0', ! PRIMARY KEY (cat_id) )", --- 101,107 ---- auth_approval tinyint(2) NOT NULL default '0', auth_approval_groups tinyint(2) NOT NULL default '0', ! ! PRIMARY KEY (cat_id), ! KEY cat_order (cat_order) )", *************** *** 138,141 **** --- 112,158 ---- "INSERT INTO " . $mx_table_prefix . "pa_cat VALUES (2, 'Test Cagegory', 'Just a test category', 1, '', '', 1, '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', '-1', 0, '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", + // -------------------------------------------------------- + // Table structure for table `phpbb_pa_files` + "CREATE TABLE " . $mx_table_prefix . "pa_files ( + file_id int(10) NOT NULL auto_increment, + file_name text, + file_desc text, + file_longdesc text, + file_catid int(10) default NULL, + file_approved TINYINT(1) NOT NULL default '1', + + file_size int(20) NOT NULL default '0', + unique_name varchar(255) NOT NULL default '', + real_name VARCHAR(255) NOT NULL, + file_dir VARCHAR(255) NOT NULL, + file_creator text, + file_version text, + file_ssurl text, + file_sshot_link tinyint(2) NOT NULL default '0', + file_dlurl text, + file_posticon text, + file_license int(10) default NULL, + file_docsurl text, + + file_time int(50) default NULL, + user_id mediumint(8) NOT NULL default '0', + poster_ip varchar(8) NOT NULL default '', + file_update_time int(50) NOT NULL default '0', + file_last int(50) default NULL, + file_pin int(2) default NULL, + file_broken TINYINT(1) DEFAULT '0' NOT NULL, + topic_id mediumint(8) unsigned NOT NULL default '0', + file_dls int(10) DEFAULT '0' NOT NULL, + + PRIMARY KEY (file_id) + )", + + // -------------------------------------------------------- + // Table structure for table `phpbb_pa_config` + "CREATE TABLE " . $mx_table_prefix . "pa_config ( + config_name varchar(255) NOT NULL default '', + config_value varchar(255) NOT NULL default '', + PRIMARY KEY (config_name) + )", // -------------------------------------------------------- *************** *** 155,166 **** // -------------------------------------------------------- - // Table structure for table `phpbb_pa_config` - "CREATE TABLE " . $mx_table_prefix . "pa_config ( - config_name varchar(255) NOT NULL default '', - config_value varchar(255) NOT NULL default '', - PRIMARY KEY (config_name) - )", - - // -------------------------------------------------------- // Table structure for table `phpbb_pa_custom` "CREATE TABLE " . $mx_table_prefix . "pa_custom ( --- 172,175 ---- *************** *** 195,231 **** // -------------------------------------------------------- - // Table structure for table `phpbb_pa_files` - "CREATE TABLE " . $mx_table_prefix . "pa_files ( - file_id int(10) NOT NULL auto_increment, - user_id mediumint(8) NOT NULL default '0', - poster_ip varchar(8) NOT NULL default '', - file_name text, - file_size int(20) NOT NULL default '0', - unique_name varchar(255) NOT NULL default '', - real_name VARCHAR(255) NOT NULL, - file_dir VARCHAR(255) NOT NULL, - file_desc text, - file_creator text, - file_version text, - file_longdesc text, - file_ssurl text, - file_sshot_link tinyint(2) NOT NULL default '0', - file_dlurl text, - file_time int(50) default NULL, - file_update_time int(50) NOT NULL default '0', - file_catid int(10) default NULL, - file_posticon text, - file_license int(10) default NULL, - file_dls int(10) DEFAULT '0' NOT NULL, - file_last int(50) default NULL, - file_pin int(2) default NULL, - file_docsurl text, - file_approved TINYINT(1) DEFAULT '1' NOT NULL, - file_broken TINYINT(1) DEFAULT '0' NOT NULL, - topic_id mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (file_id) - )", - - // -------------------------------------------------------- "CREATE TABLE " . $mx_table_prefix . "pa_mirrors ( mirror_id mediumint(8) NOT NULL auto_increment, --- 204,207 ---- *************** *** 266,269 **** --- 242,273 ---- )", + // Table structure for table `pa_auth` + "CREATE TABLE " . $mx_table_prefix . "pa_auth ( + group_id mediumint(8) DEFAULT '0' NOT NULL, + cat_id smallint(5) UNSIGNED DEFAULT '0' NOT NULL, + auth_view tinyint(1) DEFAULT '0' NOT NULL, + auth_read tinyint(1) DEFAULT '0' NOT NULL, + auth_view_file tinyint(1) DEFAULT '0' NOT NULL, + auth_edit_file tinyint(1) DEFAULT '0' NOT NULL, + auth_delete_file tinyint(1) DEFAULT '0' NOT NULL, + auth_upload tinyint(1) DEFAULT '0' NOT NULL, + auth_download tinyint(1) DEFAULT '0' NOT NULL, + auth_rate tinyint(1) DEFAULT '0' NOT NULL, + auth_email tinyint(1) DEFAULT '0' NOT NULL, + auth_view_comment tinyint(1) DEFAULT '0' NOT NULL, + auth_post_comment tinyint(1) DEFAULT '0' NOT NULL, + auth_edit_comment tinyint(1) DEFAULT '0' NOT NULL, + auth_delete_comment tinyint(1) DEFAULT '0' NOT NULL, + auth_approval tinyint(1) DEFAULT '0' NOT NULL, + auth_approval_groups tinyint(1) DEFAULT '0' NOT NULL, + auth_mod tinyint(1) DEFAULT '1' NOT NULL, + auth_search tinyint(1) DEFAULT '1' NOT NULL, + auth_stats tinyint(1) DEFAULT '1' NOT NULL, + auth_toplist tinyint(1) DEFAULT '1' NOT NULL, + auth_viewall tinyint(1) DEFAULT '1' NOT NULL, + KEY group_id (group_id), + KEY cat_id (cat_id) + )", + // // Config values |
|
From: Jon O. <jon...@us...> - 2006-07-03 09:17:06
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv21756/modules/mx_kb Modified Files: db_install.php db_upgrade.php Log Message: Working... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_install.php,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** db_install.php 27 Jun 2006 21:37:26 -0000 1.40 --- db_install.php 3 Jul 2006 09:17:01 -0000 1.41 *************** *** 55,83 **** "DROP TABLE IF EXISTS " . $mx_table_prefix . "kb_votes ", - "CREATE TABLE " . $mx_table_prefix . "kb_articles ( - article_id mediumint(8) unsigned NOT NULL auto_increment, - article_category_id mediumint(8) unsigned NOT NULL default '0', - article_title varchar(255) binary NOT NULL default '', - article_description varchar(255) binary NOT NULL default '', - article_date varchar(255) binary NOT NULL default '', - article_author_id mediumint(8) NOT NULL, - username VARCHAR(255), - bbcode_uid varchar(10) binary NOT NULL default '', - article_body text NOT NULL, - article_type mediumint(8) unsigned NOT NULL default '0', - approved tinyint(1) unsigned NOT NULL default '0', - topic_id mediumint(8) unsigned NOT NULL default '0', - views BIGINT(8) NOT NULL DEFAULT '0', - article_rating double(6,4) NOT NULL default '0.0000', - article_totalvotes int(255) NOT NULL default '0', - KEY article_id (article_id) - )", - "CREATE TABLE " . $mx_table_prefix . "kb_categories ( ! category_id mediumint(8) unsigned NOT NULL auto_increment, ! category_name VARCHAR(255) binary NOT NULL, category_details text, ! parent mediumint(8) unsigned, ! cat_order mediumint(8) unsigned NOT NULL, cat_allow_comments tinyint(2) NOT NULL default '-1', --- 55,64 ---- "DROP TABLE IF EXISTS " . $mx_table_prefix . "kb_votes ", "CREATE TABLE " . $mx_table_prefix . "kb_categories ( ! category_id int(10) NOT NULL auto_increment, ! category_name text, category_details text, ! parent int(50) default NULL, ! cat_order int(50) default NULL, cat_allow_comments tinyint(2) NOT NULL default '-1', *************** *** 118,126 **** auth_moderator_groups smallint(5) NOT NULL default '0', ! KEY category_id (category_id) )", "INSERT INTO " . $mx_table_prefix . "kb_categories VALUES (1, 'Test Category', 'Just a test category', '0', '10', '-1', '-1','-1','-1','-1','-1','-1','-1', '-1', '0', '', '0', '0', '0', '0', '0', '0', '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0' )", "CREATE TABLE " . $mx_table_prefix . "kb_config ( config_name VARCHAR(255) NOT NULL default '', --- 99,130 ---- auth_moderator_groups smallint(5) NOT NULL default '0', ! PRIMARY KEY (category_id), ! KEY cat_order (cat_order) )", "INSERT INTO " . $mx_table_prefix . "kb_categories VALUES (1, 'Test Category', 'Just a test category', '0', '10', '-1', '-1','-1','-1','-1','-1','-1','-1', '-1', '0', '', '0', '0', '0', '0', '0', '0', '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0' )", + "CREATE TABLE " . $mx_table_prefix . "kb_articles ( + article_id mediumint(8) unsigned NOT NULL auto_increment, + article_title varchar(255) binary NOT NULL default '', + article_description varchar(255) binary NOT NULL default '', + article_category_id mediumint(8) unsigned NOT NULL default '0', + approved tinyint(1) unsigned NOT NULL default '0', + + article_body text NOT NULL, + bbcode_uid varchar(10) binary NOT NULL default '', + article_type mediumint(8) unsigned NOT NULL default '0', + + article_date varchar(255) binary NOT NULL default '', + article_author_id mediumint(8) NOT NULL, + username VARCHAR(255), + topic_id mediumint(8) unsigned NOT NULL default '0', + views BIGINT(8) NOT NULL DEFAULT '0', + article_rating double(6,4) NOT NULL default '0.0000', + article_totalvotes int(255) NOT NULL default '0', + + PRIMARY KEY (article_id) + )", + "CREATE TABLE " . $mx_table_prefix . "kb_config ( config_name VARCHAR(255) NOT NULL default '', *************** *** 129,132 **** --- 133,185 ---- )", + // -------------------------------------------------------- + // Table structure for table `phpbb_pa_comments` + "CREATE TABLE " . $mx_table_prefix . "kb_comments ( + comments_id int(10) NOT NULL auto_increment, + article_id int(10) NOT NULL default '0', + comments_text text NOT NULL, + comments_title text NOT NULL, + comments_time int(50) NOT NULL default '0', + comment_bbcode_uid varchar(10) default NULL, + poster_id mediumint(8) NOT NULL default '0', + PRIMARY KEY (comments_id), + KEY comments_id (comments_id), + FULLTEXT KEY comment_bbcode_uid (comment_bbcode_uid) + )", + + "CREATE TABLE " . $mx_table_prefix . "kb_types ( + id mediumint(8) unsigned NOT NULL auto_increment, + type varchar(255) binary DEFAULT '' NOT NULL, + KEY id (id) + )", + + "INSERT INTO " . $mx_table_prefix . "kb_types VALUES (1, 'Test Type 1')", + + "CREATE TABLE " . $mx_table_prefix . "kb_votes ( + votes_ip varchar(50) NOT NULL default '0', + votes_userid varchar(50) NOT NULL default '0', + votes_file int(50) NOT NULL default '0' + )", + + // -------------------------------------------------------- + // Table structure for table `phpbb_pa_custom` + "CREATE TABLE " . $mx_table_prefix . "kb_custom ( + custom_id int(50) NOT NULL auto_increment, + custom_name text NOT NULL, + custom_description text NOT NULL, + data text NOT NULL, + field_order int(20) NOT NULL default '0', + field_type tinyint(2) NOT NULL default '0', + regex varchar(255) NOT NULL default '', + PRIMARY KEY (custom_id) + )", + // -------------------------------------------------------- + // Table structure for table `phpbb_pa_customdata` + "CREATE TABLE " . $mx_table_prefix . "kb_customdata ( + customdata_file int(50) NOT NULL default '0', + customdata_custom int(50) NOT NULL default '0', + data text NOT NULL + )", + // // Insert Configs *************** *** 198,250 **** "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('notify_group', '0')", // admin_id - // -------------------------------------------------------- - // Table structure for table `phpbb_pa_comments` - "CREATE TABLE " . $mx_table_prefix . "kb_comments ( - comments_id int(10) NOT NULL auto_increment, - article_id int(10) NOT NULL default '0', - comments_text text NOT NULL, - comments_title text NOT NULL, - comments_time int(50) NOT NULL default '0', - comment_bbcode_uid varchar(10) default NULL, - poster_id mediumint(8) NOT NULL default '0', - PRIMARY KEY (comments_id), - KEY comments_id (comments_id), - FULLTEXT KEY comment_bbcode_uid (comment_bbcode_uid) - )", - - "CREATE TABLE " . $mx_table_prefix . "kb_types ( - id mediumint(8) unsigned NOT NULL auto_increment, - type varchar(255) binary DEFAULT '' NOT NULL, - KEY id (id) - )", - - "INSERT INTO " . $mx_table_prefix . "kb_types VALUES (1, 'Test Type 1')", - - "CREATE TABLE " . $mx_table_prefix . "kb_votes ( - votes_ip varchar(50) NOT NULL default '0', - votes_userid varchar(50) NOT NULL default '0', - votes_file int(50) NOT NULL default '0' - )", - - // -------------------------------------------------------- - // Table structure for table `phpbb_pa_custom` - "CREATE TABLE " . $mx_table_prefix . "kb_custom ( - custom_id int(50) NOT NULL auto_increment, - custom_name text NOT NULL, - custom_description text NOT NULL, - data text NOT NULL, - field_order int(20) NOT NULL default '0', - field_type tinyint(2) NOT NULL default '0', - regex varchar(255) NOT NULL default '', - PRIMARY KEY (custom_id) - )", - // -------------------------------------------------------- - // Table structure for table `phpbb_pa_customdata` - "CREATE TABLE " . $mx_table_prefix . "kb_customdata ( - customdata_file int(50) NOT NULL default '0', - customdata_custom int(50) NOT NULL default '0', - data text NOT NULL - )" - ); --- 251,254 ---- Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_upgrade.php,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** db_upgrade.php 28 Jun 2006 13:58:07 -0000 1.33 --- db_upgrade.php 3 Jul 2006 09:17:01 -0000 1.34 *************** *** 408,412 **** --- 408,418 ---- $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_categories MODIFY notify_group mediumint(8) NOT NULL default '-1' "; $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_categories MODIFY number_articles mediumint(8) NOT NULL default '-1' "; + + $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_categories MODIFY category_id int(10) NOT NULL auto_increment "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_categories MODIFY category_name text "; $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_categories MODIFY category_details text "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_categories MODIFY parent int(50) default NULL "; + $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_categories MODIFY cat_order int(50) default NULL "; + } else |
|
From: Jon O. <jon...@us...> - 2006-07-01 22:01:27
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22600/modules/mx_linkdb Modified Files: db_install.php db_upgrade.php Log Message: fixing installation Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/db_install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** db_install.php 30 Jun 2006 19:54:14 -0000 1.9 --- db_install.php 1 Jul 2006 22:01:23 -0000 1.10 *************** *** 33,36 **** --- 33,44 ---- $mx_module_copy = 'Original phpBB <i>LinkDb</i> MOD by <a href="http://www.phpbb.com/phpBB/viewtopic.php?p=1183059" target="_blank">CRLin</a>, <a href="http://www.hostsector.com/~mohd/" target="_blank">pafileDB</a> & <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=110836" target="_blank">Advanced Links Mod</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; + // For compatibility with core 2.7.+ + define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); + + if ( MXBB_27x ) + { + include_once( $mx_root_path . 'modules/mx_pafiledb/pafiledb/includes/functions_mx.' . $phpEx ); + } + // If fresh install if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "linkdb_config" ) ) *************** *** 47,80 **** "CREATE TABLE " . $mx_table_prefix . "linkdb_categories ( ! cat_id int(10) NOT NULL auto_increment, ! cat_name text, ! cat_parent int(50) default NULL, ! parents_data text NOT NULL, ! cat_order int(50) default NULL, ! cat_links mediumint(8) NOT NULL default '-1', ! PRIMARY KEY (cat_id), ! KEY cat_order (cat_order))", ! "CREATE TABLE " . $mx_table_prefix . "linkdb ( ! link_id mediumint(8) unsigned NOT NULL auto_increment, ! link_name text, ! link_longdesc text, ! link_catid mediumint(8) unsigned NOT NULL default '0', ! link_url varchar(100) NOT NULL default '', ! link_logo_src varchar(120) default NULL, ! link_time int(25) default '0', ! link_approved tinyint(1) NOT NULL default '0', ! link_hits int(10) unsigned NOT NULL default '0', ! user_id mediumint(8) NOT NULL default '0', ! poster_ip varchar(8) NOT NULL default '', ! last_user_ip varchar(8) NOT NULL default '', ! post_username varchar(25) default NULL, ! PRIMARY KEY (link_id))", "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (1,'PHP',0,'',1,1)", "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (2,'Bulletin Board',1,'',2,-1)", "INSERT INTO " . $mx_table_prefix . "linkdb VALUES (1, 'phpBB Official Website', 'Official phpBB Website', 2, 'http://www.phpbb.com/', 'linkdb/images/phpBB_88a.gif', " . time() . ", 1, 0, " . $tmp . ", '', '', '')", "CREATE TABLE " . $mx_table_prefix . "linkdb_config ( ! config_name varchar(255) NOT NULL default '', ! config_value varchar(255) NOT NULL default '' ! )", "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_logo', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "linkdb/images/web_logo88a.gif')", "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_url', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "')", --- 55,95 ---- "CREATE TABLE " . $mx_table_prefix . "linkdb_categories ( ! cat_id int(10) NOT NULL auto_increment, ! cat_name text, ! cat_parent int(50) default NULL, ! parents_data text NOT NULL, ! cat_order int(50) default NULL, ! cat_links mediumint(8) NOT NULL default '-1', ! PRIMARY KEY (cat_id), ! KEY cat_order (cat_order) ! )", ! "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (1,'PHP',0,'',1,1)", "INSERT INTO " . $mx_table_prefix . "linkdb_categories VALUES (2,'Bulletin Board',1,'',2,-1)", + + "CREATE TABLE " . $mx_table_prefix . "linkdb ( + link_id mediumint(8) unsigned NOT NULL auto_increment, + link_name text, + link_longdesc text, + link_catid mediumint(8) unsigned NOT NULL default '0', + link_url varchar(100) NOT NULL default '', + link_logo_src varchar(120) default NULL, + link_time int(25) default '0', + link_approved tinyint(1) NOT NULL default '0', + link_hits int(10) unsigned NOT NULL default '0', + user_id mediumint(8) NOT NULL default '0', + poster_ip varchar(8) NOT NULL default '', + last_user_ip varchar(8) NOT NULL default '', + post_username varchar(25) default NULL, + PRIMARY KEY (link_id) + )", + "INSERT INTO " . $mx_table_prefix . "linkdb VALUES (1, 'phpBB Official Website', 'Official phpBB Website', 2, 'http://www.phpbb.com/', 'linkdb/images/phpBB_88a.gif', " . time() . ", 1, 0, " . $tmp . ", '', '', '')", + "CREATE TABLE " . $mx_table_prefix . "linkdb_config ( ! config_name varchar(255) NOT NULL default '', ! config_value varchar(255) NOT NULL default '' ! )", ! "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_logo', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "linkdb/images/web_logo88a.gif')", "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('site_url', 'http://" . $board_config['server_name'] . $board_config['script_path'] . "')", *************** *** 97,120 **** "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('linkdb_versions', '0.0.7')", "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('link_validation', '1')", "CREATE TABLE " . $mx_table_prefix . "linkdb_custom ( ! custom_id int(50) NOT NULL auto_increment, ! custom_name text NOT NULL, ! custom_description text NOT NULL, ! data text NOT NULL, ! field_order int(20) NOT NULL default '0', ! field_type tinyint(2) NOT NULL default '0', ! regex varchar(255) NOT NULL default '', ! PRIMARY KEY (custom_id))", "CREATE TABLE " . $mx_table_prefix . "linkdb_customdata ( ! customdata_file int(50) NOT NULL default '0', ! customdata_custom int(50) NOT NULL default '0', ! data text NOT NULL)", "CREATE TABLE " . $mx_table_prefix . "linkdb_votes ( ! user_id mediumint(8) NOT NULL default '0', ! votes_ip varchar(50) NOT NULL default '0', ! votes_link int(50) NOT NULL default '0', ! rate_point tinyint(3) unsigned NOT NULL default '0', ! KEY user_id (user_id))" ! ); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " --- 112,141 ---- "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('linkdb_versions', '0.0.7')", "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('link_validation', '1')", + "CREATE TABLE " . $mx_table_prefix . "linkdb_custom ( ! custom_id int(50) NOT NULL auto_increment, ! custom_name text NOT NULL, ! custom_description text NOT NULL, ! data text NOT NULL, ! field_order int(20) NOT NULL default '0', ! field_type tinyint(2) NOT NULL default '0', ! regex varchar(255) NOT NULL default '', ! PRIMARY KEY (custom_id) ! )", ! "CREATE TABLE " . $mx_table_prefix . "linkdb_customdata ( ! customdata_file int(50) NOT NULL default '0', ! customdata_custom int(50) NOT NULL default '0', ! data text NOT NULL ! )", ! "CREATE TABLE " . $mx_table_prefix . "linkdb_votes ( ! user_id mediumint(8) NOT NULL default '0', ! votes_ip varchar(50) NOT NULL default '0', ! votes_link int(50) NOT NULL default '0', ! rate_point tinyint(3) unsigned NOT NULL default '0', ! KEY user_id (user_id) ! )" ! ); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/db_upgrade.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** db_upgrade.php 30 Jun 2006 19:54:14 -0000 1.11 --- db_upgrade.php 1 Jul 2006 22:01:23 -0000 1.12 *************** *** 35,156 **** $sql = array(); // Precheck ! if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "kb_config" ) ) { // Upgrade checks ! $upgrade_101 = 0; ! $upgrade_102 = 0; ! $upgrade_103 = 0; ! $upgrade_104 = 0; ! $upgrade_105 = 0; ! $upgrade_106 = 0; ! $upgrade_107 = 0; ! $upgrade_108 = 0; ! // validate before 1.05 ! if ( !$result = $db->sql_query( "SELECT article_rating from " . $mx_table_prefix . "kb_articles" ) ) ! { ! $upgrade_105 = 1; ! } ! // validate before 1.06 ! if ( !$result = $db->sql_query( "SELECT votes_userid from " . $mx_table_prefix . "kb_votes" ) ) { ! $upgrade_106 = 1; } ! // validate before 1.07 ! $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "kb_config WHERE config_name = 'comments_pagination'" ); ! if ( $db->sql_numrows( $result ) == 0 ) { ! $upgrade_107 = 1; } - // validate before 1.08 - $result = $db->sql_query( "SELECT parameter_id from " . $mx_table_prefix . "parameter WHERE parameter_name = 'kb_type_select'" ); - if ( $db->sql_numrows( $result ) == 0 ) - { - $upgrade_108 = 1; - } $message = "<b>Upgrading!</b><br/><br/>"; ! if ( $upgrade_105 == 1 ) ! { ! $message .= "<b>Upgrading to v. 1.05...</b><br/><br/>"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "kb_votes ( ! votes_ip varchar(50) NOT NULL default '0', ! votes_file int(50) NOT NULL default '0' ! ) TYPE=MyISAM"; ! ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('allow_rating', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('allow_anonymos_rating', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('comments_show', '1')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('mod_group', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('bump_post', '1')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('stats_list', '1')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('header_banner', '1')"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_articles ADD article_rating double(6,4) NOT NULL default '0.0000' "; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_articles ADD article_totalvotes int(255) NOT NULL default '0' "; ! } ! ! if ( $upgrade_106 == 1 ) ! { ! $message .= "<b>Upgrading to v. 1.06...</b><br/><br/>"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('votes_check_userid', '1')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('votes_check_ip', '1')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('art_pagination', '5')"; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_votes ADD votes_userid int(50) NOT NULL default '0' AFTER votes_ip "; ! } ! ! if ( $upgrade_107 == 1 ) { ! $message .= "<b>Upgrading to v. 1.07...</b><br/><br/>"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('comments_pagination', '5')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('news_sort', 'Alphabetic')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('news_sort_par', 'ASC')"; ! } - if ( $upgrade_108 == 1 ) - { - $message .= "<b>Upgrading to v. 1.08...</b><br/><br/>"; - $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('comments_pagination', '5')"; - $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('news_sort', 'Alphabetic')"; - $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('news_sort_par', 'ASC')"; - /* - // Now add some new parameters - // First get function_id - $sqltmp = "SELECT function_id - FROM " . $mx_table_prefix . "function" . " - WHERE function_file = 'kb.php' - LIMIT 1"; - if ( !( $result = $db->sql_query( $sqltmp ) ) ) - { - mx_message_die( CRITICAL_ERROR, "Could not query portal version", "", __LINE__, __FILE__, $sql ); - } - $row = $db->sql_fetchrow( $result ) ; - $function_id = $row['function_id']; - // Then get block_id(s) - $sqltmp2 = "SELECT block_id - FROM " . $mx_table_prefix . "block" . " - WHERE function_id = '$function_id' - LIMIT 1"; - if ( !( $result = $db->sql_query( $sqltmp2 ) ) ) - { - mx_message_die( CRITICAL_ERROR, "Could not query portal version", "", __LINE__, __FILE__, $sql ); - } - $parameter_id = getMaxId( PARAMETER_TABLE, 'parameter_id' ); - $parameter_id1 = $parameter_id + 1; - $sql[] = "REPLACE INTO " . $mx_table_prefix . "parameter VALUES('" . $parameter_id1 . "', '" . $function_id . "', 'kb_type_select', 'Text', 'array(\"init\"=>\"1\")', '')"; - while ( $row = $db->sql_fetchrow( $result ) ) - { - $block_id = $row['block_id']; - $sql[] = "REPLACE INTO " . $mx_table_prefix . "block_system_parameter VALUES('" . $block_id . "', '" . $parameter_id1 . "', 'array(\"init\"=>\"1\")', NULL)"; - } - // Also, enable function admin file - $sql[] = "UPDATE " . $mx_table_prefix . "function SET function_admin = 'modules/mx_kb/admin/kb_config.php' - WHERE function_id = '" . $function_id . "' OR function_file = 'kb.php'"; - */ } else --- 35,68 ---- $sql = array(); // Precheck ! if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "linkdb_config" ) ) { // Upgrade checks ! $upgrade_280 = 0; ! ! // validate before 2.8.0 ! $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "linkdb_config WHERE config_name = 'comments_forum_id'" ); ! if ( $db->sql_numrows( $result ) == 0 || true) { ! $upgrade_280 = 1; ! $message .= "<b>Upgrading to v. 2.8.0...ok</b><br/><br/>"; } ! else { ! $message .= "<b>Validating v. 2.8.0...ok</b><br/><br/>"; } $message = "<b>Upgrading!</b><br/><br/>"; ! if ( $upgrade_280 == 1 ) { ! //$sql[] = "INSERT INTO " . $mx_table_prefix . "linkdb_config VALUES ('comments_forum_id', '0')"; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_cat MODIFY cat_allow_ratings tinyint(2) NOT NULL default '-1' "; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "linkdb_cat ADD auth_approval_groups tinyint(2) NOT NULL default '0' "; } else *************** *** 159,166 **** } ! $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); --- 71,81 ---- } ! if ( !MXBB_27x ) ! { ! $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; + } $message .= mx_do_install_upgrade( $sql ); *************** *** 169,173 **** { // If not installed ! $message = "<b>Module is not installed...and thus cannot be upgraded ;)</b><br/><br/>"; } --- 84,88 ---- { // If not installed ! $message = "<b>Module not installed...and thus cannot be upgraded ;)</b><br/><br/>"; } |
|
From: Jon O. <jon...@us...> - 2006-07-01 21:32:24
|
Update of /cvsroot/mxbb/mx_linkdb/templates/subSilver In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10721/modules/mx_linkdb/templates/subSilver Added Files: link_footer.tpl link_header.tpl Removed Files: pa_footer.tpl pa_header.tpl Log Message: Ok. Moving files. Renaming files. Adding code... --- pa_header.tpl DELETED --- --- NEW FILE: link_footer.tpl --- </td> </tr> <tr> <td align="left" valign="middle" height="35" width="50%"> <form method="get" name="jumpbox" action="{S_JUMPBOX_ACTION}" onSubmit="if(document.jumpbox.cat_id.value == -1){return false;}"> <input type="hidden" name="action" value="category" /> <input type="hidden" name="page" value="{MX_PAGE}" /> <select name="cat_id" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"> <option value="-1">{L_JUMP}</option> {JUMPMENU} </select> </form> </td> <td align="right" valign="middle"> <!--<span class="gensmall" >{S_TIMEZONE}</span>--> </td> </tr> </table> </td> </tr> </table> <!-- <div align="center"><span class="copyright"><br /> Based on linkdb {LINKDB_VERSION} © 2003 <a href="http://www.phpbb.com/phpBB/viewtopic.php?p=1183059" target="_blank">CRLin</a>, <a href="http://www.hostsector.com/~mohd/" target="_blank">pafiledb</a> and <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=110836" target="_blank">Advanced Links Mod</a><br /> This script (LinkDb v. 1.0.0 :: mxBB Portal Module 2004) is modified by the <a href="http://www.mx-system.com/" target="_blank">mxBB Team</a></span></div> --> --- NEW FILE: link_header.tpl --- <table width="100%" cellpadding="0" cellspacing="0" > <tr> <td align="center" width="100%" height="100%" valign="top"> <table width="100%" cellpadding="3" cellspacing="1" class="forumline" style="border-top:none;"> <tr> <td align="center" class="row1"> <span class="gen"> <a href="{U_PASEARCH}" class="gen">{L_SEARCH}</a> <!-- BEGIN ADD_LINK --> • <a href="{U_UPLOAD}" class="gen"><b>{L_UPLOAD}</b></a> <!-- END ADD_LINK --> </span></br> <span class="genmed"> <a href="{U_VIEW_ALL}" class="gensmall">{L_VIEW_ALL}</a> • <a href="{U_DESCEND_BY_HITS}" class="gensmall">{L_STATS_MOST_POPULAR}</a> • <a href="{U_DESCEND_BY_JOIN}" class="gensmall">{L_STATS_LATEST}</a> • <a href="{U_DESCEND_BY_RATINGS}" class="gensmall">{L_STATS_TOPRATED}</a> </span> </br><hr> </td> </tr> </table> <table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td width="100%" valign="top" colspan="2"> --- pa_footer.tpl DELETED --- |
|
From: Jon O. <jon...@us...> - 2006-07-01 21:32:23
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10721/modules/mx_linkdb/linkdb Added Files: linkdb_common.php Log Message: Ok. Moving files. Renaming files. Adding code... --- NEW FILE: linkdb_common.php --- <?php /** * * @package mxBB Portal Module - mx_linkdb * @version $Id: linkdb_common.php,v 1.1 2006/07/01 21:32:19 jonohlsson Exp $ * @copyright (c) 2002-2006 [CRLin, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') ) { die("Hacking attempt"); } /* // // addslashes to vars if magic_quotes_gpc is off // if ( !@function_exists( 'slash_input_data' ) ) { function slash_input_data( &$data ) { if ( is_array( $data ) ) { foreach ( $data as $k => $v ) { $data[$k] = ( is_array( $v ) ) ? slash_input_data( $v ) : addslashes( $v ); } } return $data; } } // // to make it work with php version under 4.1 and other stuff // if ( @phpversion() < '4.1' ) { $_GET = &$HTTP_GET_VARS; $_POST = &$HTTP_POST_VARS; $_COOKIE = &$HTTP_COOKIE_VARS; $_SERVER = &$HTTP_SERVER_VARS; $_ENV = &$HTTP_ENV_VARS; $_FILES = &$HTTP_POST_FILES; $_SESSION = &$HTTP_SESSION_VARS; } if ( !isset( $_REQUEST ) ) { $_REQUEST = array_merge( $_GET, $_POST, $_COOKIE ); } if ( !get_magic_quotes_gpc() ) { $_GET = slash_input_data( $_GET ); $_POST = slash_input_data( $_POST ); $_COOKIE = slash_input_data( $_COOKIE ); $_REQUEST = slash_input_data( $_REQUEST ); } */ // // Include linkdb data file // include_once( $module_root_path . 'linkdb/includes/linkdb_constants.' . $phpEx ); include_once( $module_root_path . 'linkdb/includes/functions.' . $phpEx ); include_once( $module_root_path . 'linkdb/includes/functions_cache.' . $phpEx ); include_once( $module_root_path . 'linkdb/includes/functions_auth.' . $phpEx ); //include_once( $module_root_path . 'linkdb/includes/functions_mx.' . $phpEx ); include_once( $module_root_path . 'linkdb/includes/functions_linkdb.' . $phpEx ); $linkdb_cache = new linkdb_cache(); $linkdb_functions = new linkdb_functions(); if ( $linkdb_cache->exists( 'config' ) ) { $linkdb_config = $linkdb_cache->get( 'config' ); } else { $linkdb_config = $linkdb_functions->linkdb_config(); $linkdb_cache->put( 'config', $linkdb_config ); } $linkdb_user = new linkdb_user_info(); $linkdb = new linkdb_public(); ?> |
|
From: Jon O. <jon...@us...> - 2006-07-01 21:32:22
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/modules In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10721/modules/mx_linkdb/linkdb/modules Modified Files: link_category.php link_main.php link_rate.php link_search.php link_user_upload.php Log Message: Ok. Moving files. Renaming files. Adding code... Index: link_user_upload.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_user_upload.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** link_user_upload.php 30 Jun 2006 19:54:15 -0000 1.5 --- link_user_upload.php 1 Jul 2006 21:32:19 -0000 1.6 *************** *** 22,26 **** $edit_link_id = ( isset( $_REQUEST['link_id'] ) ) ? intval( $_REQUEST['link_id'] ) : 0; ! include( $module_root_path . 'linkdb/includes/functions_linkdb_field.' . $phpEx ); $custom_field = new custom_field(); --- 22,26 ---- $edit_link_id = ( isset( $_REQUEST['link_id'] ) ) ? intval( $_REQUEST['link_id'] ) : 0; ! include( $module_root_path . 'linkdb/includes/functions_field.' . $phpEx ); $custom_field = new custom_field(); *************** *** 171,175 **** $link_name = ''; $link_longdesc = ''; ! $link_cat_list = ( !$cat_id ) ? $this->jumpmenu_option( 0, 0, '', true, true ) : $this->jumpmenu_option( 0, 0, array( $cat_id => 1 ), true, true ); $link_download = 0; $approved_checked_yes = ' checked'; --- 171,175 ---- $link_name = ''; $link_longdesc = ''; ! $link_cat_list = ( !$cat_id ) ? $this->generate_jumpbox( 0, 0, '', true, true ) : $this->generate_jumpbox( 0, 0, array( $cat_id => 1 ), true, true ); $link_download = 0; $approved_checked_yes = ' checked'; *************** *** 216,220 **** $link_name = $link_info['link_name']; $link_longdesc = $link_info['link_longdesc']; ! $link_cat_list = $this->jumpmenu_option( 0, 0, array( $link_info['link_catid'] => 1 ), true, true ); $link_download = $link_info['link_hits']; $approved_checked_yes = $link_info['link_approved'] == 1 ? ' checked' : ''; --- 216,220 ---- $link_name = $link_info['link_name']; $link_longdesc = $link_info['link_longdesc']; ! $link_cat_list = $this->generate_jumpbox( 0, 0, array( $link_info['link_catid'] => 1 ), true, true ); $link_download = $link_info['link_hits']; $approved_checked_yes = $link_info['link_approved'] == 1 ? ' checked' : ''; Index: link_search.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_search.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** link_search.php 30 Jun 2006 19:54:15 -0000 1.6 --- link_search.php 1 Jul 2006 21:32:19 -0000 1.7 *************** *** 519,523 **** } ! $dropmenu = $this->jumpmenu_option(); $template->assign_vars( array( --- 519,523 ---- } ! $dropmenu = $this->generate_jumpbox(); $template->assign_vars( array( Index: link_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_category.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** link_category.php 30 Jun 2006 19:54:14 -0000 1.5 --- link_category.php 1 Jul 2006 21:32:19 -0000 1.6 *************** *** 81,85 **** // assign var for naviagation // ! $this->generate_category_nav( $cat_id ); $template->assign_vars( array( --- 81,85 ---- // assign var for naviagation // ! $this->generate_navigation( $cat_id ); $template->assign_vars( array( *************** *** 100,104 **** $no_file_message = false; ! $this->category_display( $cat_id ); } --- 100,104 ---- $no_file_message = false; ! $this->display_categories( $cat_id ); } Index: link_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_rate.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** link_rate.php 30 Jun 2006 19:54:15 -0000 1.5 --- link_rate.php 1 Jul 2006 21:32:19 -0000 1.6 *************** *** 57,61 **** } ! $this->generate_category_nav( $link_data['link_catid'] ); $template->assign_vars( array( 'L_INDEX' => sprintf( $lang['Forum_Index'], $board_config['sitename'] ), --- 57,61 ---- } ! $this->generate_navigation( $link_data['link_catid'] ); $template->assign_vars( array( 'L_INDEX' => sprintf( $lang['Forum_Index'], $board_config['sitename'] ), Index: link_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_main.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** link_main.php 30 Jun 2006 19:54:15 -0000 1.4 --- link_main.php 1 Jul 2006 21:32:19 -0000 1.5 *************** *** 33,37 **** // Show the Category // ! $this->category_display(); $this->display( $lang['Links_Title'], 'link_main_body.tpl' ); --- 33,37 ---- // Show the Category // ! $this->display_categories(); $this->display( $lang['Links_Title'], 'link_main_body.tpl' ); |
|
From: Jon O. <jon...@us...> - 2006-07-01 21:32:22
|
Update of /cvsroot/mxbb/mx_linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10721/modules/mx_linkdb/admin Modified Files: admin_linkdb.php Log Message: Ok. Moving files. Renaming files. Adding code... Index: admin_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/admin/admin_linkdb.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_linkdb.php 30 Jun 2006 21:12:10 -0000 1.6 --- admin_linkdb.php 1 Jul 2006 21:32:18 -0000 1.7 *************** *** 25,29 **** require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! include( $module_root_path . 'linkdb/includes/linkdb_common.' . $phpEx ); // ********************************************************************** --- 25,29 ---- require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! include( $module_root_path . 'linkdb/linkdb_common.' . $phpEx ); // ********************************************************************** |
|
From: Jon O. <jon...@us...> - 2006-07-01 21:32:22
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10721/modules/mx_linkdb/linkdb/includes Modified Files: functions.php functions_linkdb.php linkdb_constants.php Added Files: functions_auth.php functions_cache.php functions_comment.php functions_field.php functions_mx.php Removed Files: functions_linkdb_field.php linkdb_common.php Log Message: Ok. Moving files. Renaming files. Adding code... Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** functions.php 17 Jun 2006 20:48:33 -0000 1.7 --- functions.php 1 Jul 2006 21:32:18 -0000 1.8 *************** *** 129,131 **** --- 129,1642 ---- } } + + /** + * linkdb_user_info + * + * This class is used to determin Browser and operating system info of the user + * + * @access public [...1486 lines suppressed...] + if ( $force_standalone_mode || !$is_block ) + { + $mxurl = $mx_root_path . 'modules/mx_linkdb/linkdb.' . $phpEx . ( $args == '' ? '' : '?' . $args ); + } + else + { + $mxurl = $mx_root_path . 'index.' . $phpEx; + if ( is_numeric( $page_id ) ) + { + $mxurl .= '?page=' . $page_id . ( $args == '' ? '' : ( $non_html_amp ? '&' : '&' ) . $args ); + } + else + { + $mxurl .= ( $args == '' ? '' : '?' . $args ); + } + } + return $mxurl; + } ?> \ No newline at end of file --- linkdb_common.php DELETED --- --- NEW FILE: functions_cache.php --- <?php /** * * @package mxBBmodule_mx_linkdb * @version $Id: functions_cache.php,v 1.1 2006/07/01 21:32:19 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, linkdb, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Enter description here... * */ class linkdb_cache { var $vars = ''; var $vars_ts = array(); var $modified = false; /** * Enter description here... * * @return linkdb_cache */ function linkdb_cache() { global $phpbb_root_path; global $mx_root_path, $module_root_path, $is_block, $phpEx; $this->cache_dir = $module_root_path . 'linkdb/cache/'; } /** * Enter description here... * */ function load() { global $phpEx; @include( $this->cache_dir . 'data_global.' . $phpEx ); } /** * Enter description here... * */ function unload() { $this->save(); unset( $this->vars ); unset( $this->vars_ts ); } /** * Enter description here... * */ function save() { if ( !$this->modified ) { return; } global $phpEx; $file = '<?php $this->vars=' . $this->format_array( $this->vars ) . ";\n\$this->vars_ts=" . $this->format_array( $this->vars_ts ) . ' ?>'; if ( $fp = @fopen( $this->cache_dir . 'data_global.' . $phpEx, 'wb' ) ) { @flock( $fp, LOCK_EX ); fwrite( $fp, $file ); @flock( $fp, LOCK_UN ); fclose( $fp ); } } /** * Enter description here... * * @param unknown_type $expire_time */ function tidy( $expire_time = 0 ) { global $phpEx; $dir = opendir( $this->cache_dir ); while ( $entry = readdir( $dir ) ) { if ( $entry{0} == '.' || substr( $entry, 0, 4 ) != 'sql_' ) { continue; } if ( time() - $expire_time >= filemtime( $this->cache_dir . $entry ) ) { unlink( $this->cache_dir . $entry ); } } if ( file_exists( $this->cache_dir . 'data_global.' . $phpEx ) ) { foreach ( $this->vars_ts as $varname => $timestamp ) { if ( time() - $expire_time >= $timestamp ) { $this->destroy( $varname ); } } } else { $this->vars = $this->vars_ts = array(); $this->modified = true; } } /** * Enter description here... * * @param unknown_type $varname * @param unknown_type $expire_time * @return unknown */ function get( $varname, $expire_time = 0 ) { return ( $this->exists( $varname, $expire_time ) ) ? $this->vars[$varname] : null; } /** * Enter description here... * * @param unknown_type $varname * @param unknown_type $var */ function put( $varname, $var ) { $this->vars[$varname] = $var; $this->vars_ts[$varname] = time(); $this->modified = true; } /** * Enter description here... * * @param unknown_type $varname */ function destroy( $varname ) { if ( isset( $this->vars[$varname] ) ) { $this->modified = true; unset( $this->vars[$varname] ); unset( $this->vars_ts[$varname] ); } } /** * Enter description here... * * @param unknown_type $varname * @param unknown_type $expire_time * @return unknown */ function exists( $varname, $expire_time = 0 ) { if ( !is_array( $this->vars ) ) { $this->load(); } if ( $expire_time > 0 && isset( $this->vars_ts[$varname] ) ) { if ( $this->vars_ts[$varname] <= time() - $expire_time ) { $this->destroy( $varname ); return false; } } return isset( $this->vars[$varname] ); } /** * Enter description here... * * @param unknown_type $array * @return unknown */ function format_array( $array ) { $lines = array(); foreach ( $array as $k => $v ) { if ( is_array( $v ) ) { $lines[] = "'$k'=>" . $this->format_array( $v ); }elseif ( is_int( $v ) ) { $lines[] = "'$k'=>$v"; }elseif ( is_bool( $v ) ) { $lines[] = "'$k'=>" . ( ( $v ) ? 'TRUE' : 'FALSE' ); } else { $lines[] = "'$k'=>'" . str_replace( "'", "\'", str_replace( '\\', '\\\\', $v ) ) . "'"; } } return 'array(' . implode( ',', $lines ) . ')'; } } ?> --- NEW FILE: functions_mx.php --- <?php /** * * @package mxBBmodule_mx_kb * @version $Id: functions_mx.php,v 1.1 2006/07/01 21:32:19 jonohlsson Exp $ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if( !defined('IN_PORTAL') ) { die("Hacking attempt"); } if ( !function_exists( mx_smilies_pass ) ) { /** * Enter description here... * * @param unknown_type $message * @return unknown */ function mx_smilies_pass($message) { global $board_config; $smilies_path = $board_config['smilies_path']; $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; $message = smilies_pass($message); $board_config['smilies_path'] = $smilies_path; return $message; } } if ( !function_exists( mx_generate_smilies ) ) { /** * Enter description here... * * @param unknown_type $mode * @param unknown_type $page_id */ function mx_generate_smilies($mode, $page_id) { global $board_config, $template, $phpEx; $smilies_path = $board_config['smilies_path']; $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; generate_smilies($mode, $page_id); $board_config['smilies_path'] = $smilies_path; $template->assign_vars(array( 'U_MORE_SMILIES' => append_sid(PHPBB_URL . "posting.$phpEx?mode=smilies")) ); } } if ( !function_exists( mx_message_die ) ) { /** * Enter description here... * * @param unknown_type $msg_code * @param unknown_type $msg_text * @param unknown_type $msg_title * @param unknown_type $err_line * @param unknown_type $err_file * @param unknown_type $sql */ function mx_message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '') { global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header, $images; global $userdata, $user_ip, $session_length; global $starttime; message_die($msg_code, $msg_text, $msg_title, $err_line, $err_file, $sql); } } if ( !function_exists( mx_is_group_member ) ) { /** * Validates if user belongs to group included in group_ids list * Also, adds all usergroups to userdata array * * @param unknown_type $group_ids * @param unknown_type $group_mod_mode * @return unknown */ function mx_is_group_member( $group_ids = '', $group_mod_mode = false ) { global $userdata, $db; if ( $group_ids == '' ) { return false; } $group_ids_array = explode(",", $group_ids); // Try to reuse usergroups result. if ( $group_mod_mode ) { $userdata_key = 'mx_usergroups_mod' . $userdata['user_id']; if ( empty( $userdata[$userdata_key] ) ) { // Check if user is group moderator.. $sql = "SELECT gr.group_id FROM " . GROUPS_TABLE . " gr, " . USER_GROUP_TABLE . " ugr WHERE gr.group_id = ugr.group_id AND gr.group_moderator = '" . $userdata['user_id'] . "' AND ugr.user_pending = '0' "; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, "Could not query group rights information", '', '', '', '' ); } $group_row = $db->sql_fetchrowset( $result ); $userdata[$userdata_key_mod] = $group_row; } } else { $userdata_key = 'mx_usergroups' . $userdata['user_id']; if ( empty( $userdata[$userdata_key] ) ) { // Check if user is member of the proper group.. $sql = "SELECT group_id FROM " . USER_GROUP_TABLE . " WHERE user_id='" . $userdata['user_id'] . "' AND user_pending = 0"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, "Could not query group rights information", '', '', '', '' ); } $group_row = $db->sql_fetchrowset( $result ); $userdata[$userdata_key] = $group_row; } } for ( $i = 0; $i < count( $userdata[$userdata_key] ); $i++ ) { if ( in_array( $userdata[$userdata_key][$i]['group_id'], $group_ids_array ) ) { $is_member = true; return $is_member; } } return false; } } if ( !function_exists(mx_do_install_upgrade) ) { /** * Generating output. * * @param unknown_type $sql * @param unknown_type $main_install * @return unknown */ function mx_do_install_upgrade( $sql = '', $main_install = false ) { global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config, $HTTP_POST_VARS; $inst_error = false; $n = 0; $message = "<b>This is the result list of the SQL queries needed for the install/upgrade</b><br /><br />"; while ( $sql[$n] ) { if ( !$result = $db->sql_query( $sql[$n] ) ) { $message .= '<b><font color=#FF0000>[Error or Already added]</font></b> line: ' . ( $n + 1 ) . ' , ' . $sql[$n] . '<br />'; $inst_error = true; } else { $message .= '<b><font color=#0000fF>[Added/Updated]</font></b> line: ' . ( $n + 1 ) . ' , ' . $sql[$n] . '<br />'; } $n++; } $message .= '<br /> If you get some Errors, Already Added or Updated messages, relax, this is normal when updating modules'; if ( $main_install ) { if ( !$inst_error ) { $message .= '-> no db errors :-)<br /><br /><b>Portal installed successfully! </b><hr><br /><br />'; $message .= '1) Now, delete the /install and /contrib folders!!!<br /><br />'; $message .= '2) If you haven\'t already done a db backup, now is the time ;)<br /><br />'; $message .= '3) Then (after step 1), you HAVE to configure MX core and its modules from within the adminCP, simply \'upgrade\' MX portal Core and all modules in use!!!<br /><br />'; $message .= 'Click <a href=../admin/admin_mx_module.php>Here</a> to administer/upgrade the portal/modules. You will be promted for an admin username and pass. The upgrade process provide informative output...'; } else { $message .= '<br /><br /><b>Portal installed successfully (with some warnings)! </b><hr><br /><br />'; $message .= '1) Now, delete the /install and /contrib folders!!!<br /><br />'; $message .= '2) If you haven\'t already done a db backup, now is the time ;)<br /><br />'; $message .= '3) Now (after step 1), you HAVE to configure MX core and its modules from within the adminCP, simply \'upgrade\' MX portal Core and all modules in use!!!<br /><br />'; $message .= 'Click <a href=../admin/admin_mx_module.php>Here</a> to administer/upgrade the portal/modules. You will be promted for an admin username and pass. The upgrade process provide informative output...'; } } return $message; } } ?> --- NEW FILE: functions_comment.php --- <?php /** * * @package mxBBmodule_mx_linkdb * @version $Id: functions_comment.php,v 1.1 2006/07/01 21:32:19 jonohlsson Exp $ * @copyright (c) 2002-2006 [Mohd Basri, PHP Arena, linkdb, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Enter description here... * */ [...1316 lines suppressed...] $return_data = $this->delete_phpbb_post($this->forum_id, $this->topic_id, $cid ); $this->validate_topic_id(); break; case 'insert': $return_data = $this->insert_phpbb_post( $title, $comments_text, $this->forum_id, $user_id, $username, $user_attach_sig, $this->topic_id, '', $title_first, $comments_text_first, $comment_bbcode_uid ); break; case 'update': $return_data = $this->insert_phpbb_post( $title, $comments_text, $this->forum_id, $user_id, $username, $user_attach_sig, $this->topic_id, $cid, $title_first, $comments_text_first, $comment_bbcode_uid ); break; default: mx_message_die(GENERAL_ERROR, 'bad post mode'); } return $return_data; } } ?> --- NEW FILE: functions_auth.php --- <?php /** * * @package mxBBmodule_mx_kb * @version $Id: functions_auth.php,v 1.1 2006/07/01 21:32:19 jonohlsson Exp $ * @copyright (c) 2002-2006 [wGEric, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } /** * Enter description here... * */ class linkdb_auth { var $auth_user = array(); /** * Enter description here... * * @param unknown_type $type * @param unknown_type $cat_id * @param unknown_type $userdata * @param unknown_type $f_access * @param unknown_type $f_access_group * @return unknown */ function auth( $type, $cat_id, $userdata, $f_access = '', $f_access_group = '' ) { global $db, $lang; switch ( $type ) { case AUTH_ALL: $a_sql = 'a.auth_view, a.auth_post, a.auth_rate, a.auth_comment, a.auth_edit, a.auth_delete, a.auth_approval, a.auth_approval_edit'; $a_sql_groups = 'a.auth_view_groups, a.auth_post_groups, a.auth_rate_groups, a.auth_comment_groups, a.auth_edit_groups, a.auth_delete_groups, a.auth_approval_groups, a.auth_approval_edit_groups'; $auth_fields = array( 'auth_view', 'auth_post', 'auth_rate', 'auth_comment', 'auth_edit', 'auth_delete', 'auth_approval', 'auth_approval_edit' ); $auth_fields_groups = array( 'auth_view_groups', 'auth_post_groups', 'auth_rate_groups', 'auth_comment_groups', 'auth_edit_groups', 'auth_delete_groups', 'auth_approval_groups', 'auth_approval_edit_groups' ); break; case AUTH_VIEW: $a_sql = 'a.auth_view'; $a_sql_groups = 'a.auth_view_groups'; $auth_fields = array( 'auth_view' ); $auth_fields_groups = array( 'auth_view_groups' ); break; case AUTH_POST: $a_sql = 'a.auth_post'; $a_sql_groups = 'a.auth_post_groups'; $auth_fields = array( 'auth_post' ); $auth_fields_groups = array( 'auth_post_groups' ); break; case AUTH_RATE: $a_sql = 'a.auth_rate'; $a_sql_groups = 'a.auth_rate_groups'; $auth_fields = array( 'auth_rate' ); $auth_fields_groups = array( 'auth_rate_groups' ); break; case AUTH_COMMENT: $a_sql = 'a.auth_comment'; $a_sql_groups = 'a.auth_comment_groups'; $auth_fields = array( 'auth_comment' ); $auth_fields_groups = array( 'auth_comment_groups' ); break; case AUTH_EDIT: $a_sql = 'a.auth_edit'; $a_sql_groups = 'a.auth_edit_groups'; $auth_fields = array( 'auth_edit' ); $auth_fields_groups = array( 'auth_edit_groups' ); break; case AUTH_DELETE: $a_sql = 'a.auth_delete'; $a_sql_groups = 'a.auth_delete_groups'; $auth_fields = array( 'auth_delete' ); $auth_fields_groups = array( 'auth_delete_groups' ); break; case AUTH_APPROVAL: $a_sql = 'a.auth_approval'; $a_sql_groups = 'a.auth_approval_groups'; $auth_fields = array( 'auth_approval' ); $auth_fields_groups = array( 'auth_approval_groups' ); break; case AUTH_APPROVAL_EDIT: $a_sql = 'a.auth_approval_edit'; $a_sql_groups = 'a.auth_approval_edit_groups'; $auth_fields = array( 'auth_approval_edit' ); $auth_fields_groups = array( 'auth_approval_edit_groups' ); break; default: break; } $is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? true : 0; // // If f_access has not been passed, or auth is needed to return an array of forums // then we need to pull the auth information on the given forum (or all forums) // if ( empty($f_access) ) { $forum_match_sql = ( $cat_id != AUTH_LIST_ALL ) ? "WHERE a.category_id = $cat_id" : ''; $sql = "SELECT a.category_id, $a_sql FROM " . KB_CATEGORIES_TABLE . " a $forum_match_sql"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql); } $sql_fetchrow = ( $cat_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset'; if ( !($f_access = $db->$sql_fetchrow($result)) ) { $db->sql_freeresult($result); return array(); } $db->sql_freeresult($result); } // // If f_access_group has not been passed, or auth is needed to return an array of forums // then we need to pull the auth information on the given forum (or all forums) // if ( empty($f_access_group) ) { $forum_match_sql = ( $cat_id != AUTH_LIST_ALL ) ? "WHERE a.category_id = $cat_id" : ''; $sql = "SELECT a.category_id, $a_sql_groups, a.auth_moderator_groups FROM " . KB_CATEGORIES_TABLE . " a $forum_match_sql"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql); } $sql_fetchrow = ( $cat_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset'; if ( !($f_access_group = $db->$sql_fetchrow($result)) ) { $db->sql_freeresult($result); return array(); } $db->sql_freeresult($result); } $auth_user = array(); for( $i = 0; $i < count( $auth_fields ); $i++ ) { $key = $auth_fields[$i]; $key_groups = $auth_fields_groups[$i]; // If the user is logged on and the module type is either ALL or REG then the user has access // If the type if ACL, MOD or ADMIN then we need to see if the user has specific permissions // to do whatever it is they want to do ... to do this we pull relevant information for the // user (and any groups they belong to) // Now we compare the users access level against the modules. We assume here that a moderator // and admin automatically have access to an ACL module, similarly we assume admins meet an // auth requirement of MOD if ( $cat_id != AUTH_LIST_ALL ) { $value = $f_access[$key]; $value_groups = $f_access_group[$key_groups]; switch ( $value ) { case AUTH_ALL: $this->auth_user[$key] = true; $this->auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_REG: $this->auth_user[$key] = ( $userdata['session_logged_in'] ) ? true : 0; $this->auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; break; case AUTH_ANONYMOUS: $this->auth_user[$key] = ( ! $userdata['session_logged_in'] ) ? true : 0; $this->auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_ACL: // PRIVATE $this->auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member( $value_groups ) || $is_admin : 0; $this->auth_user[$key . '_type'] = $lang['Auth_Users_granted_access']; break; case AUTH_MOD: $this->auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member( $f_access_group['auth_moderator_groups'] ) || $is_admin : 0; $this->auth_user[$key . '_type'] = $lang['Auth_Moderators']; break; case AUTH_ADMIN: $this->auth_user[$key] = $is_admin; $this->auth_user[$key . '_type'] = $lang['Auth_Administrators']; break; default: $this->auth_user[$key] = 0; break; } } else { for($k = 0; $k < count($f_access); $k++) { $value = $f_access[$k][$key]; $value_groups = $f_access_group[$k][$key_groups]; $f_cat_id = $f_access[$k]['category_id']; switch ( $value ) { case AUTH_ALL: $this->auth_user[$f_cat_id][$key] = true; $this->auth_user[$f_cat_id][$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_REG: $this->auth_user[$f_cat_id][$key] = ( $userdata['session_logged_in'] ) ? true : 0; $this->auth_user[$f_cat_id][$key . '_type'] = $lang['Auth_Registered_Users']; break; case AUTH_ANONYMOUS: $this->auth_user[$f_cat_id][$key] = ( ! $userdata['session_logged_in'] ) ? true : 0; $this->auth_user[$f_cat_id][$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_ACL: // PRIVATE $this->auth_user[$f_cat_id][$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member( $value_groups ) || $is_admin : 0; $this->auth_user[$f_cat_id][$key . '_type'] = $lang['Auth_Users_granted_access']; break; case AUTH_MOD: $this->auth_user[$f_cat_id][$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member( $f_access_group[$k]['auth_moderator_groups'] ) || $is_admin : 0; $this->auth_user[$f_cat_id][$key . '_type'] = $lang['Auth_Moderators']; break; case AUTH_ADMIN: $this->auth_user[$f_cat_id][$key] = $is_admin; $this->auth_user[$f_cat_id][$key . '_type'] = $lang['Auth_Administrators']; break; default: $this->auth_user[$f_cat_id][$key] = 0; break; } } } } // // Is user a moderator? // if ( $cat_id != AUTH_LIST_ALL ) { $this->auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? mx_is_group_member( $f_access_group['auth_moderator_groups'] ) || $is_admin : 0; } else { for($k = 0; $k < count($f_access); $k++) { $f_cat_id = $f_access[$k]['category_id']; $this->auth_user[$f_cat_id]['auth_mod'] = ( $userdata['session_logged_in'] ) ? mx_is_group_member( $f_access_group[$k]['auth_moderator_groups'] ) || $is_admin : 0; } } return $this->auth_user; } /** * Enter description here... * * @param unknown_type $cat_id * @return unknown */ function ns_auth_cat( $cat_id ) { global $kb_type_select_data, $kb_config; if ( !MXBB_MODULE || MXBB_27x ) { return true; } $tmp_kb = $kb_type_select_data[$cat_id] == 1; return $tmp_kb; } } ?> Index: linkdb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/linkdb_constants.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** linkdb_constants.php 30 Jun 2006 19:54:14 -0000 1.8 --- linkdb_constants.php 1 Jul 2006 21:32:19 -0000 1.9 *************** *** 14,28 **** } ! define( 'LINKDB_ROOT_CAT', 0 ); ! // ! // Field Types ! // ! define( 'INPUT', 0 ); ! define( 'TEXTAREA', 1 ); ! define( 'RADIO', 2 ); ! define( 'SELECT', 3 ); ! define( 'SELECT_MULTIPLE', 4 ); ! define( 'CHECKBOX', 5 ); // --- 14,34 ---- } ! if ( !MXBB_MODULE ) ! { ! $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; ! $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); ! $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; ! $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); ! $script_name = ($script_name == '') ? $script_name : '/' . $script_name; ! define( 'PORTAL_URL', $server_protocol . $server_name . $server_port . $script_name . '/' ); ! define( 'PHPBB_URL', PORTAL_URL ); ! ! $kb_config['news_operate_mode'] = false; ! $mx_table_prefix = $table_prefix; ! $is_block = false; ! } ! ! define( 'LINKDB_ROOT_CAT', 0 ); // *************** *** 31,34 **** --- 37,41 ---- define( 'LINKS_TABLE', $mx_table_prefix . 'linkdb' ); define( 'LINK_CATEGORIES_TABLE', $mx_table_prefix . 'linkdb_categories' ); + define( 'LINK_COMMENTS_TABLE', $mx_table_prefix . 'linkdb_comments' ); define( 'LINK_CONFIG_TABLE', $mx_table_prefix . 'linkdb_config' ); define( 'LINK_VOTES_TABLE', $mx_table_prefix . 'linkdb_votes' ); *************** *** 36,52 **** define( 'LINK_CUSTOM_DATA_TABLE', $mx_table_prefix . 'linkdb_customdata' ); ! if (is_object($mx_page)) ! { ! // ------------------------------------------------------------------------- ! // Extend User Style with module lang and images ! // Usage: $mx_user->extend(LANG, IMAGES) ! // Switches: ! // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE ! // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE ! // ------------------------------------------------------------------------- ! $mx_user->extend(); ! $mx_page->add_copyright( 'mxBB LinkDb Module' ); } ?> \ No newline at end of file --- 43,77 ---- define( 'LINK_CUSTOM_DATA_TABLE', $mx_table_prefix . 'linkdb_customdata' ); ! // ! // Field Types ! // ! define( 'INPUT', 0 ); ! define( 'TEXTAREA', 1 ); ! define( 'RADIO', 2 ); ! define( 'SELECT', 3 ); ! define( 'SELECT_MULTIPLE', 4 ); ! define( 'CHECKBOX', 5 ); ! if ( !MXBB_MODULE || MXBB_27x ) ! { ! $linkdb_module_version = "linkDB Manager v. 2.8.0"; ! $linkdb_module_author = "Jon"; ! $linkdb_module_orig_author = "CRLin"; } + else + { + if (is_object($mx_page)) + { + // ------------------------------------------------------------------------- + // Extend User Style with module lang and images + // Usage: $mx_user->extend(LANG, IMAGES) + // Switches: + // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE + // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE + // ------------------------------------------------------------------------- + $mx_user->extend(); + $mx_page->add_copyright( 'mxBB linkDB Module' ); + } + } ?> \ No newline at end of file Index: functions_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_linkdb.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** functions_linkdb.php 30 Jun 2006 19:54:14 -0000 1.8 --- functions_linkdb.php 1 Jul 2006 21:32:19 -0000 1.9 *************** *** 22,28 **** var $module_name = ''; ! // load module ! // $module name : send module name to load it ! function adminmodule( $module_name ) { --- 22,30 ---- var $module_name = ''; ! /** ! * Enter description here... ! * ! * @param unknown_type $module_name ! */ function adminmodule( $module_name ) { *************** *** 43,46 **** --- 45,53 ---- } + /** + * Enter description here... + * + * @param unknown_type $module_name + */ function module( $module_name ) { *************** *** 83,103 **** } ! // ! // linkdb class ! // ! class linkdb { var $cat_rowset = array(); var $subcat_rowset = array(); var $modified = false; var $auth = array(); var $auth_global = array(); ! var $total_cat = 0; ! // var $depth_info = array(); ! var $error = array(); ! function init() { --- 90,127 ---- } ! /** ! * linkdb class ! * ! */ ! class linkdb extends linkdb_auth { var $cat_rowset = array(); var $subcat_rowset = array(); + var $total_cat = 0; + + var $comments = array(); + var $ratings = array(); + var $information = array(); + var $notification = array(); var $modified = false; + var $error = array(); + var $page_title = ''; + var $jumpbox = ''; + var $auth_can_list = ''; + var $navigation = ''; + + var $debug = true; + var $debug_msg = array(); + + // Specific for linkdb var $auth = array(); var $auth_global = array(); ! /** ! * Prepare data ! * ! */ function init() { *************** *** 106,109 **** --- 130,137 ---- unset( $this->cat_rowset ); unset( $this->subcat_rowset ); + unset( $this->comments ); + unset( $this->ratings ); + unset( $this->information ); + unset( $this->notification ); $sql = 'SELECT * *************** *** 111,115 **** ORDER BY cat_order ASC'; ! if ( !( $result = $db->sql_query( $sql, 300 ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); --- 139,143 ---- ORDER BY cat_order ASC'; ! if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); *************** *** 119,128 **** $db->sql_freeresult( $result ); for( $i = 0; $i < count( $cat_rowset ); $i++ ) { ! $this->cat_rowset[$cat_rowset[$i]['cat_id']] = $cat_rowset[$i]; ! $this->subcat_rowset[$cat_rowset[$i]['cat_parent']][$cat_rowset[$i]['cat_id']] = $cat_rowset[$i]; ! $this->total_cat++; } } --- 147,345 ---- $db->sql_freeresult( $result ); + //$this->auth( AUTH_ALL, AUTH_LIST_ALL, $userdata, $cat_rowset ); + for( $i = 0; $i < count( $cat_rowset ); $i++ ) { ! if ( $this->auth_user[$cat_rowset[$i]['category_id']]['auth_view'] || true) ! { ! $this->cat_rowset[$cat_rowset[$i]['cat_id']] = $cat_rowset[$i]; ! $this->subcat_rowset[$cat_rowset[$i]['cat_parent']][$cat_rowset[$i]['cat_id']] = $cat_rowset[$i]; ! $this->total_cat++; ! } ! ! /* ! // ! // Comments ! // Note: some settings are category dependent, but may use default config settings ! // ! $this->comments[$cat_rowset[$i]['category_id']]['activated'] = $cat_rowset[$i]['cat_allow_comments'] == -1 ? ($kb_config['use_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['cat_allow_comments'] == 1 ? true : false ); ! $this->comments[$cat_rowset[$i]['category_id']]['internal_comments'] = $cat_rowset[$i]['internal_comments'] == -1 ? ($kb_config['internal_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['internal_comments'] == 1 ? true : false ); // phpBB or internal comments ! $this->comments[$cat_rowset[$i]['category_id']]['autogenerate_comments'] = $cat_rowset[$i]['autogenerate_comments'] == -1 ? ($kb_config['autogenerate_comments'] == 1 ? true : false ) : ( $cat_rowset[$i]['autogenerate_comments'] == 1 ? true : false ); // autocreate comments when updated ! $this->comments[$cat_rowset[$i]['category_id']]['comments_forum_id'] = $cat_rowset[$i]['comments_forum_id'] < 1 ? ( intval($kb_config['comments_forum_id']) ) : ( intval($cat_rowset[$i]['comments_forum_id']) ); // phpBB target forum (only used for phpBB comments) ! ! if (!$this->comments[$cat_rowset[$i]['category_id']]['internal_comments'] && intval($this->comments[$cat_rowset[$i]['category_id']]['comments_forum_id']) < 1) ! { ! mx_message_die(GENERAL_ERROR, 'Init Failure, phpBB comments with no target forum_id :(<br> Category: ' . $cat_rowset[$i]['category_name'] . ' Forum_id: ' . $this->comments[$cat_rowset[$i]['category_id']]['comments_forum_id']); ! } ! ! // ! // Ratings ! // ! $this->ratings[$cat_rowset[$i]['category_id']]['activated'] = $cat_rowset[$i]['cat_allow_ratings'] == -1 ? ($kb_config['use_ratings'] == 1 ? true : false ) : ( $cat_rowset[$i]['cat_allow_ratings'] == 1 ? true : false ); ! ! // ! // Information ! // ! $this->information[$cat_rowset[$i]['category_id']]['activated'] = $cat_rowset[$i]['show_pretext'] == -1 ? ($kb_config['show_pretext'] == 1 ? true : false ) : ( $cat_rowset[$i]['show_pretext'] == 1 ? true : false ); // phpBB or internal ratings ! ! // ! // Notification ! // ! $this->notification[$cat_rowset[$i]['category_id']]['activated'] = $cat_rowset[$i]['notify'] == -1 ? (intval($kb_config['notify'])) : ( intval($cat_rowset[$i]['notify']) ); // -1, 0, 1, 2 ! $this->notification[$cat_rowset[$i]['category_id']]['notify_group'] = $cat_rowset[$i]['notify_group'] == -1 || $cat_rowset[$i]['notify_group'] == 0 ? (intval($kb_config['notify_group'])) : ( intval($cat_rowset[$i]['notify_group']) ); // Group_id ! */ ! } ! } ! ! /** ! * Enter description here... ! * ! */ ! function _linkdb() ! { ! if ( $this->modified ) ! { ! $this->sync_all(); ! } ! } ! ! /** ! * Add debug message. ! * ! * @param unknown_type $debug_msg ! * @param unknown_type $file ! * @param unknown_type $line_break ! */ ! function debug($debug_msg, $file = '', $line_break = true) ! { ! if ($this->debug) ! { ! $module_name = !empty($this->module_name) ? $this->module_name . ' :: ' : ''; ! $file = !empty($file) ? ' (' . $file . ')' : ''; ! $line_break = $line_break ? '<br>' : ''; ! $this->debug_msg[] = $line_break . $module_name . $debug_msg . $file ; ! } ! } ! ! /** ! * Display debug message. ! * ! * @return unknown ! */ ! function display_debug() ! { ! if ($this->debug) ! { ! $debug_message = ''; ! foreach ($this->debug_msg as $key => $value) ! { ! $debug_message .= $value; ! } ! ! return $debug_message; ! } ! } ! ! function sync_all() ! { ! foreach( $this->cat_rowset as $cat_id => $void ) ! { ! $this->sync( $cat_id, false ); ! } ! $this->init(); ! } ! ! function sync( $cat_id, $init = true ) ! { ! global $db; ! ! $cat_nav = array(); ! $this->category_nav( $this->cat_rowset[$cat_id]['cat_parent'], &$cat_nav ); ! ! $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " ! SET parents_data = '' ! WHERE cat_parent = " . $this->cat_rowset[$cat_id]['cat_parent']; ! ! if ( !( $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); } + + $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " + SET cat_links = '-1' + WHERE cat_id = '" . $cat_id . "'"; + + if ( !( $db->sql_query( $sql ) ) ) + { + mx_message_die( GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql ); + } + if ( $init ) + { + $this->init(); + } + return; + } + + function category_nav( $parent_id, &$cat_nav ) + { + if ( !empty( $this->cat_rowset[$parent_id] ) ) + { + $this->category_nav( $this->cat_rowset[$parent_id]['cat_parent'], &$cat_nav ); + $cat_nav[$parent_id] = $this->cat_rowset[$parent_id]['cat_name']; + } + return; + } + + // + // if there is no cat + // + function cat_empty() + { + return ( $this->total_cat == 0 ) ? true : false; + } + + function modified( $true_false = false ) + { + $this->modified = $true_false; + } + + function file_in_cat( $cat_id ) + { + if ( $this->cat_rowset[$cat_id]['cat_links'] == -1 || $this->modified ) + { + global $db; + + $sql = 'SELECT COUNT(link_id) as total_files + FROM ' . LINKS_TABLE . " + WHERE link_approved = '1' + AND link_catid IN (" . $this->gen_cat_ids( $cat_id ) . ') + ORDER BY link_time DESC'; + + if ( !( $result = $db->sql_query( $sql ) ) ) + { + mx_message_die( GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql ); + } + + $files_no = 0; + if ( $row = $db->sql_fetchrow( $result ) ) + { + $files_no = $row['total_files']; + } + + $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " + SET cat_links = $files_no + WHERE cat_id = $cat_id"; + + if ( !( $result = $db->sql_query( $sql ) ) ) + { + mx_message_die( GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql ); + } + } + else + { + $files_no = $this->cat_rowset[$cat_id]['cat_links']; + } + + return $files_no; } *************** *** 135,139 **** // $check_upload: if true permission for upload will be checked // ! function jumpmenu_option( $cat_id = 0, $depth = 0, $default = '', $for_file = false, $check_upload = false ) { static $cat_rowset = false; --- 352,356 ---- // $check_upload: if true permission for upload will be checked // ! function generate_jumpbox( $cat_id = 0, $depth = 0, $default = '', $for_file = false, $check_upload = false ) { static $cat_rowset = false; *************** *** 186,190 **** $cat_class = ( !$cat['cat_allow_file'] ) ? 'class="greyed"' : ''; $cat_list .= '<option value="' . $sub_cat_id . '"' . $sel . ' ' . $cat_class . ' />' . $pre . $cat_pre . $cat['cat_name'] . '</option>'; ! $cat_list .= $this->jumpmenu_option( $cat['cat_id'], $depth + 1, $default, $for_file, $check_upload ); } } --- 403,407 ---- $cat_class = ( !$cat['cat_allow_file'] ) ? 'class="greyed"' : ''; $cat_list .= '<option value="' . $sub_cat_id . '"' . $sel . ' ' . $cat_class . ' />' . $pre . $cat_pre . $cat['cat_name'] . '</option>'; ! $cat_list .= $this->generate_jumpbox( $cat['cat_id'], $depth + 1, $default, $for_file, $check_upload ); } } *************** *** 198,214 **** // - // if there is no cat - // - function cat_empty() - { - return ( $this->total_cat == 0 ) ? true : false; - } - - function modified( $true_false = false ) - { - $this->modified = $true_false; - } - - // // get all sub category in side certain category // $cat_id : category id --- 415,418 ---- *************** *** 216,219 **** --- 420,425 ---- function get_sub_cat( $cat_id ) { + global $mx_root_path, $module_root_path, $is_block, $phpEx; + $cat_sub .= ''; if ( !empty( $this->subcat_rowset[$cat_id] ) ) *************** *** 245,294 **** } ! /*function last_file_in_cat($cat_id, &$file_info) ! { ! if((empty($this->cat_rowset[$cat_id]['cat_last_file_id']) && empty($this->cat_rowset[$cat_id]['cat_last_file_name']) && empty($this->cat_rowset[$cat_id]['cat_last_file_time'])) || $this->modified) ! { ! global $db; ! ! $sql = 'SELECT file_time, file_id, file_name, file_catid ! FROM ' . LINKS_TABLE . " ! WHERE file_approved = '1' ! AND file_catid IN (" . $this->gen_cat_ids($cat_id) . ") ! ORDER BY file_time DESC"; ! ! if ( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql); ! } ! ! while($row = $db->sql_fetchrow($result)) ! { ! $temp_cat[] = $row; ! } ! ! $file_info = $temp_cat[0]; ! if(!empty($file_info)) ! { ! $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " ! SET cat_last_file_id = " . intval($file_info['file_id']) . ", ! cat_last_file_name = '" . addslashes($file_info['file_name']) . "', ! cat_last_file_time = " . intval($file_info['file_time']) . " ! WHERE cat_id = $cat_id"; ! ! if ( !($db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql); ! } ! } ! } ! else ! { ! $file_info['file_id'] = $this->cat_rowset[$cat_id]['cat_last_file_id']; ! $file_info['file_name'] = $this->cat_rowset[$cat_id]['cat_last_file_name']; ! $file_info['file_time'] = $this->cat_rowset[$cat_id]['cat_last_file_time']; ! } ! }*/ ! ! function generate_category_nav( $cat_id ) { global $template, $db; --- 451,455 ---- } ! function generate_navigation( $cat_id ) { global $template, $db; *************** *** 332,384 **** } ! function category_nav( $parent_id, &$cat_nav ) { ! if ( !empty( $this->cat_rowset[$parent_id] ) ) { ! $this->category_nav( $this->cat_rowset[$parent_id]['cat_parent'], &$cat_nav ); ! $cat_nav[$parent_id] = $this->cat_rowset[$parent_id]['cat_name']; } ! return; } ! function file_in_cat( $cat_id ) { ! if ( $this->cat_rowset[$cat_id]['cat_links'] == -1 || $this->modified ) { global $db; ! $sql = 'SELECT COUNT(link_id) as total_files FROM ' . LINKS_TABLE . " ! WHERE link_approved = '1' ! AND link_catid IN (" . $this->gen_cat_ids( $cat_id ) . ') ! ORDER BY link_time DESC'; ! if ( !( $result = $db->sql_query( $sql ) ) ) { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql ); } ! $files_no = 0; ! if ( $row = $db->sql_fetchrow( $result ) ) { ! $files_no = $row['total_files']; } ! $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " ! SET cat_links = $files_no WHERE cat_id = $cat_id"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql ); } } else { ! $files_no = $this->cat_rowset[$cat_id]['cat_links']; } ! ! return $files_no; ! } function gen_cat_ids( $cat_id, $cat_ids = '' ) --- 493,569 ---- } ! /** ! * Enter description here... ! * ! * @param unknown_type $cat_id ! * @return unknown ! */ ! /* ! function new_file_in_cat( $cat_id ) { ! global $pafiledb_config, $board_config, $db, $_COOKIE; ! ! $cat_array = explode(',', $this->gen_cat_ids( $cat_id )); ! ! $files_new = 0; ! ! $time = time() - ( $pafiledb_config['settings_newdays'] * 24 * 60 * 60 ); ! ! foreach ( $cat_array as $key => $cat_id ) { ! if ( $this->auth[$cat_id]['auth_read'] && $this->cat_rowset[$cat_id]['cat_last_file_time'] > $time) ! { ! $files_new++; ! } } ! ! return $files_new; } + */ ! /*function last_file_in_cat($cat_id, &$file_info) { ! if((empty($this->cat_rowset[$cat_id]['cat_last_file_id']) && empty($this->cat_rowset[$cat_id]['cat_last_file_name']) && empty($this->cat_rowset[$cat_id]['cat_last_file_time'])) || $this->modified) { global $db; ! $sql = 'SELECT file_time, file_id, file_name, file_catid FROM ' . LINKS_TABLE . " ! WHERE file_approved = '1' ! AND file_catid IN (" . $this->gen_cat_ids($cat_id) . ") ! ORDER BY file_time DESC"; ! if ( !($result = $db->sql_query($sql)) ) { ! mx_message_die(GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql); } ! while($row = $db->sql_fetchrow($result)) { ! $temp_cat[] = $row; } ! $file_info = $temp_cat[0]; ! if(!empty($file_info)) ! { ! $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " ! SET cat_last_file_id = " . intval($file_info['file_id']) . ", ! cat_last_file_name = '" . addslashes($file_info['file_name']) . "', ! cat_last_file_time = " . intval($file_info['file_time']) . " WHERE cat_id = $cat_id"; ! if ( !($db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql); ! } } } else { ! $file_info['file_id'] = $this->cat_rowset[$cat_id]['cat_last_file_id']; ! $file_info['file_name'] = $this->cat_rowset[$cat_id]['cat_last_file_name']; ! $file_info['file_time'] = $this->cat_rowset[$cat_id]['cat_last_file_time']; } ! }*/ function gen_cat_ids( $cat_id, $cat_ids = '' ) *************** *** 399,403 **** } ! function category_display( $cat_id = LINKDB_ROOT_CAT ) { global $db, $template, $lang, $userdata, $phpEx, $images; --- 584,588 ---- } ! function display_categories( $cat_id = LINKDB_ROOT_CAT ) { global $db, $template, $lang, $userdata, $phpEx, $images; *************** *** 987,1030 **** } - function sync( $cat_id, $init = true ) - { - global $db; - - $cat_nav = array(); - $this->category_nav( $this->cat_rowset[$cat_id]['cat_parent'], &$cat_nav ); - - $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " - SET parents_data = '' - WHERE cat_parent = " . $this->cat_rowset[$cat_id]['cat_parent']; - - if ( !( $db->sql_query( $sql ) ) ) - { - mx_message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); - } - - $sql = 'UPDATE ' . LINK_CATEGORIES_TABLE . " - SET cat_links = '-1' - WHERE cat_id = '" . $cat_id . "'"; - - if ( !( $db->sql_query( $sql ) ) ) - { - mx_message_die( GENERAL_ERROR, 'Couldnt Query Files info', '', __LINE__, __FILE__, $sql ); - } - if ( $init ) - { - $this->init(); - } - return; - } - - function sync_all() - { - foreach( $this->cat_rowset as $cat_id => $void ) - { - $this->sync( $cat_id, false ); - } - $this->init(); - } - function update_add_link( $file_id = false ) { --- 1172,1175 ---- *************** *** 1125,1133 **** } ! function _linkdb() { ! if ( $this->modified ) { ! $this->sync_all(); } } --- 1270,1438 ---- } ! /** ! * Enter description here... ! * ! * @param unknown_type $article_data ! * @param unknown_type $item_id ! * @param unknown_type $cid ! * @param unknown_type $subject ! * @param unknown_type $message ! * @param unknown_type $html_on ! * @param unknown_type $bbcode_on ! * @param unknown_type $smilies_on ! */ ! function update_add_comment($file_data = '', $item_id, $cid, $subject = '', $message = '', $html_on = false, $bbcode_on = true, $smilies_on = false) { ! global $pafiledb_template, $pafiledb_functions, $lang, $board_config, $phpEx, $pafiledb_config, $db, $images, $userdata; ! global $html_entities_match, $html_entities_replace, $unhtml_specialchars_match, $unhtml_specialchars_replace; ! global $mx_root_path, $module_root_path, $phpbb_root_path, $is_block, $phpEx, $mx_request_vars; ! ! // ! // Ensure we have article_data defined ! // ! if (!is_array($article_data) && !empty($item_id) && $item_id > 0) { ! $sql = "SELECT * ! FROM " . PA_FILES_TABLE . " ! WHERE file_id = '" . $item_id . "'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt select download', '', __LINE__, __FILE__, $sql ); ! } ! ! if ( !$article_data = $db->sql_fetchrow( $result ) ) ! { ! mx_message_die( GENERAL_MESSAGE, $lang['Article_not_exsist'] ); ! } ! ! $db->sql_freeresult( $result ); ! } ! ! // ! // vars (can both be POSTed or send through the function) ! // ! $update_comment = $cid > 0 ? true : false; ! $subject = !empty($subject) ? $subject : $_POST['subject']; ! $message = !empty($message) ? $message : $_POST['message']; ! ! $length = strlen( $message ); ! ! // ! // Instantiate the mx_text class ! // ! include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); ! $mx_text = new mx_text(); ! $mx_text->init($html_on, $bbcode_on, $smilies_on); ! //$mx_text->allow_all_html_tags = $parameter_data['parameter_type'] = 'WysiwygTextBlock' ? true : false; ! ! // ! // Encode for db storage ! // ! $title = $mx_text->encode_simple($subject); ! $comments_text = $mx_text->encode($message); ! $comment_bbcode_uid = $mx_text->bbcode_uid; ! ! if ( $length > $pafiledb_config['max_comment_chars'] ) ! { ! mx_message_die( GENERAL_ERROR, 'Your comment is too long!<br/>The maximum length allowed in characters is ' . $pafiledb_config['max_comment_chars'] . '' ); ! } ! ! if ( $update_comment ) ! { ! if ( $this->comments[$file_data['file_catid']]['internal_comments'] ) ! { ! $sql = "UPDATE " . PA_COMMENTS_TABLE . " ! SET comments_text = '" . str_replace( "\'", "''", $comments_text ) . "', ! comments_title = '" . str_replace( "\'", "''", $title ) . "', ! comment_bbcode_uid = '" . $comment_bbcode_uid . "' ! WHERE comments_id = " . $cid . " ! AND file_id = ". $item_id; ! ! if ( !( $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt update comments', '', __LINE__, __FILE__, $sql ); ! } ! } ! else ! { ! include( $module_root_path . 'pafiledb/includes/functions_comment.' . $phpEx ); ! $pafiledb_comments = new pafiledb_comments(); ! $pafiledb_comments->init( $item_id ); ! ! $return_data = $pafiledb_comments->post( 'update', $cid, $title, $comments_text, $userdata['user_id'], $userdata['username'], 0, '', '', $comment_bbcode_uid); ! } ! ! } ! else ! { ! if ( $this->comments[$file_data['file_catid']]['internal_comments'] ) ! { ! $time = time(); ! $poster_id = intval( $userdata['user_id'] ); ! $sql = "INSERT INTO " . PA_COMMENTS_TABLE . "(file_id, comments_text, comments_title, comments_time, comment_bbcode_uid, poster_id) ! VALUES('$item_id','" . str_replace( "\'", "''", $comments_text ) . "','" . str_replace( "\'", "''", $title ) . "','$time', '$comment_bbcode_uid','$poster_id')"; ! ! if ( !( $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt insert comments', '', __LINE__, __FILE__, $sql ); ! } ! } ! else ! { ! include( $module_root_path . 'pafiledb/includes/functions_comment.' . $phpEx ); ! $pafiledb_comments = new pafiledb_comments(); ! $pafiledb_comments->init( $item_id ); ! ! $return_data = $pafiledb_comments->post( 'insert', '', $title, $comments_text, $userdata['user_id'], $userdata['username'], 0, '', '', $comment_bbcode_uid); ! } ! } ! ! if ( !$this->comments[$file_data['file_catid']]['internal_comments'] ) ! { ! ! // ! // Update the item data itself ! // ! if ($file_data['topic_id'] == 0 ) ! { ! // ! // Update item with new topic_id ! // ! $sql = "UPDATE " . PA_FILES_TABLE . " ! SET topic_id = '" . $return_data['topic_id'] . "' ! WHERE file_id = ". $item_id; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Couldnt update item', '', __LINE__, __FILE__, $sql ); ! } ! ! $db->sql_freeresult( $result ); ! } ! } ! } ! ! /** ! * Enter description here... ! * ! * @param unknown_type $cat_id ! */ ! function auth_can($cat_id) ! { ! global $lang; ! ! $this->auth_can_list = '<br />' . ( ( $this->auth[$cat_id]['auth_upload'] ) ? $lang['PA_Rules_upload_can'] : $lang['PA_Rules_upload_cannot'] ) . '<br />'; ! $this->auth_can_list .= ( ( $this->auth[$cat_id]['auth_view_file'] ) ? $lang['PA_Rules_view_file_can'] : $lang['PA_Rules_view_file_cannot'] ) . '<br />'; ! $this->auth_can_list .= ( ( $this->auth[$cat_id]['auth_edit_file'] ) ? $lang['PA_Rules_edit_file_can'] : $lang['PA_Rules_edit_file_cannot'] ) . '<br />'; ! $this->auth_can_list .= ( ( $this->auth[$cat_id]['auth_delete_file'] ) ? $lang['PA_Rules_delete_file_can'] : $lang['PA_Rules_delete_file_cannot'] ) . '<br />'; ! $this->auth_can_list .= ( ( $this->comments[$cat_id]['activated'] ? ( ( $this->auth[$cat_id]['auth_view_comment'] ? $lang['PA_Rules_view_comment_can'] : $lang['PA_Rules_view_comment_cannot'] ) . '<br />') : '')); ! $this->auth_can_list .= ( ( $this->comments[$cat_id]['activated'] ? ( ( $this->auth[$cat_id]['auth_post_comment'] ? $lang['PA_Rules_post_comment_can'] : $lang['PA_Rules_post_comment_cannot'] ) . '<br />') : '')); ! $this->auth_can_list .= ( ( $this->ratings[$cat_id]['activated'] ? ( ( $this->auth[$cat_id]['auth_rate'] ? $lang['PA_Rules_rate_can'] : $lang['PA_Rules_rate_cannot'] ) . '<br />') : '')); ! $this->auth_can_list .= ( ( $this->auth[$cat_id]['auth_download'] ) ? $lang['PA_Rules_download_can'] : $lang['PA_Rules_download_cannot'] ) . '<br />'; ! ! if ( $this->auth[$cat_id]['auth_mod'] ) ! { ! $this->auth_can_list .= $lang['PA_Rules_moderate_can']; } } --- functions_linkdb_field.php DELETED --- --- NEW FILE: functions_field.php --- <?php /** * * @package mxBB Portal Module - mx_linkdb * @version $Id: functions_field.php,v 1.1 2006/07/01 21:32:19 jonohlsson Exp $ * @copyright (c) 2002-2006 [CRLin, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } class custom_field { var $field_rowset = array(); var $field_data_rowset = array(); // // prepare data // function init() { global $db; $sql = "SELECT * FROM " . LINK_CUSTOM_TABLE . " ORDER BY field_order ASC"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt Query Custom field', '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) { $this->field_rowset[$row['custom_id']] = $row; } unset( $row ); $db->sql_freeresult( $result ); $sql = "SELECT * FROM " . LINK_CUSTOM_DATA_TABLE; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Couldnt Query Custom field', '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) { $this->field_data_rowset[$row['customdata_file']][$row['customdata_custom']] = $row; } unset( $row ); $db->sql_freeresult( $result ); } // // check if there is a data in the database // function field_data_exist() { if ( !empty( $this->field_data_rowset ) ) { return true; } return false; } function field_exist() { if ( !empty( $this->field_rowset ) ) { return true; } return false; } // // display data in the file page // function display_data( $file_id ) { global $template; if ( $this->field_data_exist() ) { if ( isset( $this->field_data_rowset[$file_id] ) ) { foreach( $this->field_data_rowset[$file_id] as $field_id => $data ) { if ( !empty( $data['data'] ) ) { switch ( $this->field_rowset[$field_id]['field_type'] ) { case INPUT: case TEXTAREA: case RADIO: case SELECT: $field_data = $data['data']; break; case SELECT_MULTIPLE: case CHECKBOX: $field_data = @implode( ', ', unserialize( $data['data'] ) ); break; } $template->assign_block_vars( 'custom_field', array( 'CUSTOM_NAME' => $this->field_rowset[$field_id]['custom_name'], 'DATA' => $field_data ) ); } else { global $db; $sql = "DELETE FROM " . LINK_CUSTOM_DATA_TABLE . " WHERE customdata_file = '$file_id' AND customdata_custom = '$field_id'"; if ( !( $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Could not delete custom data', '', __LINE__, __FILE__, $sql ); } } } } else { return false; } } else { return false; } } // display custom field and data in the add/edit page function display_edit( $file_id = false ) { $return = false; if ( $this->field_exist() ) { foreach( $this->field_rowset as $field_id => $field_data ) { switch ( $field_data['field_type'] ) { case INPUT: $this->display_edit_input( $file_id, $field_id, $field_data ); break; case TEXTAREA: $this->display_edit_textarea( $file_id, $field_id, $field_data ); break; case RADIO: $this->display_edit_radio( $file_id, $field_id, $field_data ); break; case SELECT: $this->display_edit_select( $file_id, $field_id, $field_data ); break; case SELECT_MULTIPLE: $this->display_edit_select_multiple( $file_id, $field_id, $field_data ); break; case CHECKBOX: $this->display_edit_checkbox( $file_id, $field_id, $field_data ); break; } $return = true; } } return $return; } function display_edit_input( $file_id, $field_id, $field_data ) { global $template; $template->assign_block_vars( 'input', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'], 'FIELD_VALUE' => ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : '' ) ); } function display_edit_textarea( $file_id, $field_id, $field_data ) { global $template; $template->assign_block_vars( 'textarea', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'], 'FIELD_VALUE' => ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : '' ) ); } function display_edit_radio( $file_id, $field_id, $field_data ) { global $template; $template->assign_block_vars( 'radio', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'] ) ); $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : array(); $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); if ( !empty( $field_datas ) ) { foreach( $field_datas as $key => $value ) { $template->assign_block_vars( 'radio.row', array( 'FIELD_VALUE' => $value, 'FIELD_SELECTED' => ( $data == $value ) ? ' checked="checked"' : '' ) ); } } } function display_edit_select( $file_id, $field_id, $field_data ) { global $template; $template->assign_block_vars( 'select', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'] ) ); $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? $this->field_data_rowset[$file_id][$field_id]['data'] : ''; $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); if ( !empty( $field_datas ) ) { foreach( $field_datas as $key => $value ) { $template->assign_block_vars( 'select.row', array( 'FIELD_VALUE' => $value, 'FIELD_SELECTED' => ( $data == $value ) ? ' selected="selected"' : '' ) ); } } } function display_edit_select_multiple( $file_id, $field_id, $field_data ) { global $template; $template->assign_block_vars( 'select_multiple', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'] ) ); $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? unserialize( $this->field_data_rowset[$file_id][$field_id]['data'] ) : array(); $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); if ( !empty( $field_datas ) ) { foreach( $field_datas as $key => $value ) { $selected = ''; foreach( $data as $field_value ) { if ( $field_value == $value ) { $selected = ' selected="selected"'; break; } } $template->assign_block_vars( 'select_multiple.row', array( 'FIELD_VALUE' => $value, 'FIELD_SELECTED' => $selected ) ); } } } function display_edit_checkbox( $file_id, $field_id, $field_data ) { global $template; $template->assign_block_vars( 'checkbox', array( 'FIELD_NAME' => $field_data['custom_name'], 'FIELD_ID' => $field_data['custom_id'], 'FIELD_DESCRIPTION' => $field_data['custom_description'] ) ); $data = ( !empty( $this->field_data_rowset[$file_id][$field_id]['data'] ) ) ? unserialize( $this->field_data_rowset[$file_id][$field_id]['data'] ) : array(); $field_datas = ( !empty( $field_data['data'] ) ) ? unserialize( stripslashes( $field_data['data'] ) ) : array(); if ( !empty( $field_datas ) ) { foreach( $field_datas as $key => $value ) { $checked = ''; foreach( $data as $field_value ) { if ( $field_value == $value ) { $checked = ' checked'; break; } } $template->assign_block_vars( 'checkbox.row', array( 'FIELD_VALUE' => $value, 'FIELD_CHECKED' => $checked ) ); } } } function update_add_field( $field_type, $field_id = false ) { global $db, $db, $_POST, $lang; $field_name = ( isset( $_POST['field_name'] ) ) ? htmlspecialchars( $_POST['field_name'] ) : ''; $field_desc = ( isset( $_POST['field_desc'] ) ) ? htmlspecialchars( $_POST['field_desc'] ) : ''; $regex = ( isset( $_POST['regex'] ) ) ? $_POST['regex'] : ''; $data = ( isset( $_POST['data'] ) ) ? $_POST['data'] : ''; $field_order = ( isset( $_POST['field_order'] ) ) ? $_POST['field_order'] : ''; if ( $field_id ) { $field_order = ( isset( $_POST['field_... [truncated message content] |
|
From: Jon O. <jon...@us...> - 2006-07-01 21:32:22
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10721/modules/mx_linkdb Modified Files: linkdb.php Log Message: Ok. Moving files. Renaming files. Adding code... Index: linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** linkdb.php 30 Jun 2006 19:54:14 -0000 1.9 --- linkdb.php 1 Jul 2006 21:32:18 -0000 1.10 *************** *** 9,59 **** */ ! if ( !function_exists( 'read_block_config' ) ) { define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once( $mx_root_path . 'common.' . $phpEx ); - // // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if ( empty( $block_id ) ) { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'linkdb' LIMIT 1"; ! if ( !$result = $db->sql_query( $sql ) ) { ! mx_message_die( GENERAL_ERROR, "Could not query Smartor_Album module information", "", __LINE__, __FILE__, $sql ); } ! $row = $db->sql_fetchrow( $result ); ! $block_id = $row['block_id']; } ! $is_block = false; ! } ! else ! { ! if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! die("Hacking attempt"); ! } ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; ! $desc = $mx_block->block_info['block_desc']; ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! $is_block = true; ! global $images; } // // Include the common file // ! include( $module_root_path . 'linkdb/includes/linkdb_common.' . $phpEx ); // --- 9,104 ---- */ ! if ( file_exists( './viewtopic.php' ) ) // -------------------------------------------- phpBB MOD MODE { + define( 'MXBB_MODULE', false ); + define( 'IN_PHPBB', true ); define( 'IN_PORTAL', true ); ! define( 'IN_DOWNLOAD', true ); ! ! // When run as a phpBB mod these paths are identical ;) ! $phpbb_root_path = $module_root_path = $mx_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include( $phpbb_root_path . 'common.' . $phpEx ); ! ! include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); ! include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); ! ! define( 'PAGE_DOWNLOAD', -501 ); // If this id generates a conflict with other mods, change it ;) // Start session management ! $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); ! init_userprefs( $userdata ); ! // End session management ! } ! else ! { ! define( 'MXBB_MODULE', true ); ! if ( !function_exists( 'read_block_config' ) ) { ! if( isset($_REQUEST['action']) && $_REQUEST['action'] == 'download' ) { ! define('MX_GZIP_DISABLED', true); } ! ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! // Start session management ! $mx_user->init($user_ip, PAGE_INDEX); ! // End session management ! ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if ( empty( $block_id ) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'linkdb' LIMIT 1"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query PafileDB module information", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $block_id = $row['block_id']; ! } ! $is_block = false; } ! else { ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! die("Hacking attempt"); ! } ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; ! $desc = $mx_block->block_info['block_desc']; ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! $is_block = true; ! global $images; ! } ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); } + // ------------------------------------------------------------------------------------------------------------------------- + // ------------------------------------------------------------------------------------------------------------------------- + // Start + // ------------------------------------------------------------------------------------------------------------------------- + // ------------------------------------------------------------------------------------------------------------------------- + + // =================================================== + // ? + // =================================================== + list( $trash, $mx_script_name_temp ) = split ( trim( $board_config['server_name'] ), PORTAL_URL ); + $mx_script_name = preg_replace( '#^\/?(.*?)\/?$#', '\1', trim( $mx_script_name_temp ) ); + // // Include the common file // ! include( $module_root_path . 'linkdb/linkdb_common.' . $phpEx ); // *************** *** 62,65 **** --- 107,125 ---- $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'main'; + // =================================================== + // 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( $pafiledb_config['module_enable'] ) ) + { + mx_message_die( GENERAL_MESSAGE, $lang['pafiledb_disable'] ); + } + */ + // // an array of all expected actions *************** *** 76,81 **** // Lets Build the page // - $linkdb->module( $actions[$action] ); - $linkdb->modules[$actions[$action]]->main( $action ); if ( !$is_block ) { --- 136,139 ---- *************** *** 83,135 **** } ! // ! // page header for linkdb ! // ! if ( $action == 'category' ) ! { ! $upload_url = append_sid( linkdb_this_mxurl( "action=user_upload&cat_id={$_REQUEST['cat_id']}" ) ); ! } ! else ! { ! $upload_url = append_sid( linkdb_this_mxurl( "action=user_upload" ) ); ! } ! ! if ( !$linkdb_config['lock_submit_site'] || $userdata['user_level'] == ADMIN ) ! { ! $template->assign_block_vars( 'ADD_LINK', array() ); ! } ! ! $template->set_filenames( array( 'pa_header' => "pa_header.tpl" )); ! ! $template->assign_vars( array( ! 'L_TITLE' => $title, ! // BEGIN linkdb ! 'LINKS' => $lang['Links_Title'], ! 'U_LINK' => append_sid( linkdb_this_mxurl() ), ! // END linkdb ! 'L_SEARCH' => $lang['Link_Search'], ! 'L_UPLOAD' => $lang['AddLink'], ! 'L_VIEW_ALL' => $lang['Viewall'], ! 'L_DESCEND_BY_HITS' => $lang['Descend_by_hits'], ! 'L_DESCEND_BY_JOIN' => $lang['Descend_by_joindate'], ! ! 'L_STATS_MOST_POPULAR' => $lang['Link_most_popular'], ! 'L_STATS_LATEST' => $lang['Link_latest'], ! 'L_STATS_TOPRATED' => $lang['Link_toprated'], ! ! 'U_PASEARCH' => append_sid( linkdb_this_mxurl( "action=search" ) ), ! 'U_UPLOAD' => $upload_url, ! 'U_VIEW_ALL' => append_sid( linkdb_this_mxurl( "action=viewall" ) ), ! 'U_DESCEND_BY_HITS' => append_sid( linkdb_this_mxurl( "action=viewall&&sort_method=link_hits&sort_order=DESC" ) ), ! 'U_DESCEND_BY_JOIN' => append_sid( linkdb_this_mxurl( "action=viewall&sort_method=link_time&sort_order=DESC" ) ), ! 'U_DESCEND_BY_RATINGS' => append_sid( linkdb_this_mxurl( "action=viewall&sort_method=rating&sort_order=DESC" ) ), ! ! 'L_JUMP' => $lang['Jump'], ! 'JUMPMENU' => $linkdb->modules[$linkdb->module_name]->jumpmenu_option(), ! 'S_JUMPBOX_ACTION' => append_sid( "index." . $phpEx ), ! 'U_PORTAL_PAGE' => $page_id ! )); ! $template->pparse( 'pa_header' ); // --- 141,148 ---- } ! $linkdb->module( $actions[$action] ); ! $linkdb->modules[$actions[$action]]->main( $action ); ! linkdb_page_header(); // *************** *** 140,156 **** $template->pparse( 'body' ); ! // ! // page footer for linkdb ! // ! $template->set_filenames( array( 'pa_footer' => "pa_footer.tpl" ) ); ! ! $template->assign_vars( array( ! 'S_TIMEZONE' => sprintf( $lang['All_times'], $lang[number_format( $board_config['board_timezone'] )] ), ! 'LINKDB_VERSION' => $linkdb_config['linkdb_versions'] ! ) ); ! ! $linkdb->modules[$linkdb->module_name]->_linkdb(); ! ! $template->pparse( 'pa_footer' ); if ( !$is_block ) --- 153,157 ---- $template->pparse( 'body' ); ! linkdb_page_footer(); if ( !$is_block ) |
|
From: Jon O. <jon...@us...> - 2006-07-01 21:32:21
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10721/modules/mx_linkdb/linkdb/admin Modified Files: admin_cat_manage.php admin_link_manage.php Log Message: Ok. Moving files. Renaming files. Adding code... Index: admin_cat_manage.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/admin/admin_cat_manage.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_cat_manage.php 30 Jun 2006 19:54:14 -0000 1.5 --- admin_cat_manage.php 1 Jul 2006 21:32:18 -0000 1.6 *************** *** 138,142 **** $cat_list .= '<option value="0">' . $lang['None'] . '</option>'; } ! $cat_list .= ( !$_POST['cat_parent'] ) ? $this->jumpmenu_option() : $this->jumpmenu_option( 0, 0, array( $_POST['cat_parent'] => 1 ) ); $cat_name = ( !empty( $_POST['cat_name'] ) ) ? $_POST['cat_name'] : ''; } --- 138,142 ---- $cat_list .= '<option value="0">' . $lang['None'] . '</option>'; } ! $cat_list .= ( !$_POST['cat_parent'] ) ? $this->generate_jumpbox() : $this->generate_jumpbox( 0, 0, array( $_POST['cat_parent'] => 1 ) ); $cat_name = ( !empty( $_POST['cat_name'] ) ) ? $_POST['cat_name'] : ''; } *************** *** 151,155 **** $cat_list .= '<option value="0">' . $lang['None'] . '</option>\n'; } ! $cat_list .= $this->jumpmenu_option( 0, 0, array( $this->cat_rowset[$cat_id]['cat_parent'] => 1 ) ); $cat_name = $this->cat_rowset[$cat_id]['cat_name']; --- 151,155 ---- $cat_list .= '<option value="0">' . $lang['None'] . '</option>\n'; } ! $cat_list .= $this->generate_jumpbox( 0, 0, array( $this->cat_rowset[$cat_id]['cat_parent'] => 1 ) ); $cat_name = $this->cat_rowset[$cat_id]['cat_name']; *************** *** 169,174 **** elseif ( $mode == 'delete' ) { ! $select_cat = $this->jumpmenu_option( 0, 0, array( $cat_id => 1 ) ); ! $file_to_select_cat = $this->jumpmenu_option( 0, 0, '', true ); $template->assign_vars( array( --- 169,174 ---- elseif ( $mode == 'delete' ) { ! $select_cat = $this->generate_jumpbox( 0, 0, array( $cat_id => 1 ) ); ! $file_to_select_cat = $this->generate_jumpbox( 0, 0, '', true ); $template->assign_vars( array( Index: admin_link_manage.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/admin/admin_link_manage.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_link_manage.php 30 Jun 2006 19:54:14 -0000 1.5 --- admin_link_manage.php 1 Jul 2006 21:32:18 -0000 1.6 *************** *** 20,24 **** global $module_root_path, $phpbb_root_path, $db, $template, $lang, $phpEx, $linkdb_functions, $linkdb_config; ! include( $module_root_path . 'linkdb/includes/functions_linkdb_field.' . $phpEx ); $custom_field = new custom_field(); --- 20,24 ---- global $module_root_path, $phpbb_root_path, $db, $template, $lang, $phpEx, $linkdb_functions, $linkdb_config; ! include( $module_root_path . 'linkdb/includes/functions_field.' . $phpEx ); $custom_field = new custom_field(); *************** *** 339,343 **** $cat_list .= '<option value="0">' . $lang['None'] . '</option>\n'; } ! $cat_list .= $this->jumpmenu_option( 0, 0, array( $cat_id => 1 ), true ); $cat_list .= '</select>'; --- 339,343 ---- $cat_list .= '<option value="0">' . $lang['None'] . '</option>\n'; } ! $cat_list .= $this->generate_jumpbox( 0, 0, array( $cat_id => 1 ), true ); $cat_list .= '</select>'; *************** *** 420,424 **** $link_name = ''; $link_longdesc = ''; ! $file_cat_list = $this->jumpmenu_option( 0, 0, '', true ); $file_download = 0; $approved_checked_yes = ' checked'; --- 420,424 ---- $link_name = ''; $link_longdesc = ''; ! $file_cat_list = $this->generate_jumpbox( 0, 0, '', true ); $file_download = 0; $approved_checked_yes = ' checked'; *************** *** 442,446 **** $link_logo_src = $file_info['link_logo_src']; if ( empty( $link_logo_src ) ) $link_logo_src = 'linkdb/images/weblink_88x31.png'; ! $file_cat_list = $this->jumpmenu_option( 0, 0, array( $file_info['link_catid'] => 1 ), true ); $file_download = intval( $file_info['link_hits'] ); $approved_checked_yes = ( $file_info['link_approved'] ) ? ' checked' : ''; --- 442,446 ---- $link_logo_src = $file_info['link_logo_src']; if ( empty( $link_logo_src ) ) $link_logo_src = 'linkdb/images/weblink_88x31.png'; ! $file_cat_list = $this->generate_jumpbox( 0, 0, array( $file_info['link_catid'] => 1 ), true ); $file_download = intval( $file_info['link_hits'] ); $approved_checked_yes = ( $file_info['link_approved'] ) ? ' checked' : ''; |