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: OryNider <ory...@us...> - 2007-09-20 15:32:13
|
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32285 Modified Files: album_cat.php Log Message: Index: album_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_cat.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** album_cat.php 9 Aug 2007 13:16:55 -0000 1.12 --- album_cat.php 20 Sep 2007 15:32:05 -0000 1.13 *************** *** 825,828 **** --- 825,829 ---- 'L_TIME' => $lang['Time'], 'L_PIC_TITLE' => $lang['Pic_Title'], + 'L_PIC_ID' => $lang['Pic_ID'], 'L_USERNAME' => $lang['Sort_Username'], |
|
From: OryNider <ory...@us...> - 2007-09-20 15:31:19
|
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31150 Modified Files: Tag: core28x album_cat.php Log Message: Index: album_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_cat.php,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** album_cat.php 9 Aug 2007 13:16:55 -0000 1.12 --- album_cat.php 20 Sep 2007 15:31:08 -0000 1.12.2.1 *************** *** 825,828 **** --- 825,829 ---- 'L_TIME' => $lang['Time'], 'L_PIC_TITLE' => $lang['Pic_Title'], + 'L_PIC_ID' => $lang['Pic_ID'], 'L_USERNAME' => $lang['Sort_Username'], |
|
From: OryNider <ory...@us...> - 2007-09-17 07:25:54
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4445 Modified Files: Tag: core28x radiocast_index_body.tpl Log Message: This is the upgrade for mxBB 2.8.1 :D Index: radiocast_index_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/templates/subSilver/radiocast_index_body.tpl,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast_index_body.tpl 6 Jun 2007 23:04:11 -0000 1.1 --- radiocast_index_body.tpl 17 Sep 2007 07:25:49 -0000 1.1.2.1 *************** *** 7,11 **** <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /> ! </span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a href="{U_MUSIC}" class="nav">{L_MUSIC}</a></span></td> </tr> </table> --- 7,12 ---- <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /> ! </span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a href="{U_MUSIC}" class="nav">{L_MUSIC}</a> {SUBCAT_NAV}</span> ! </td> </tr> </table> *************** *** 73,77 **** </tr> <tr> ! <td class="catLeft" colspan="4" height="28"><span class="cattitle">{L_PUBLIC_CATS}</span></td> </tr> <!-- BEGIN catrow --> --- 74,78 ---- </tr> <tr> ! <td class="catLeft" colspan="4" height="28"><span class="cattitle">{L_PUBLIC_CATS} {SUBCAT_NAV}</span></td> </tr> <!-- BEGIN catrow --> *************** *** 79,83 **** <td class="row1" height="50"><span class="forumlink"> <a href="{catrow.U_VIEW_CAT}" class="forumlink">{catrow.CAT_TITLE}</a><br /> </span> <span class="genmed">{catrow.CAT_DESC}<br /> ! </span><span class="gensmall">{catrow.L_MODERATORS} {catrow.MODERATORS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.CAT_VIEWS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.STATIONS}</span></td> --- 80,84 ---- <td class="row1" height="50"><span class="forumlink"> <a href="{catrow.U_VIEW_CAT}" class="forumlink">{catrow.CAT_TITLE}</a><br /> </span> <span class="genmed">{catrow.CAT_DESC}<br /> ! </span><span class="gensmall">{catrow.L_MODERATORS} {catrow.MODERATORS} <!-- BEGIN subcat_link -->{subcat_link.SUBCATS}<!-- END subcat_link --></span></td> <td class="row2" align="center"><span class="gensmall">{catrow.CAT_VIEWS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.STATIONS}</span></td> |
|
From: OryNider <ory...@us...> - 2007-09-17 07:25:53
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4445/admin Modified Files: Tag: core28x radiocast_cat_body.tpl radiocast_cat_new_body.tpl Log Message: This is the upgrade for mxBB 2.8.1 :D Index: radiocast_cat_new_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin/radiocast_cat_new_body.tpl,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast_cat_new_body.tpl 6 Jun 2007 23:04:05 -0000 1.1 --- radiocast_cat_new_body.tpl 17 Sep 2007 07:25:48 -0000 1.1.2.1 *************** *** 4,7 **** --- 4,9 ---- <form action="{S_RADIOCAST_ACTION}" method="post"> + {CAT_PARENT} + {CAT_TYPE} <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> Index: radiocast_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin/radiocast_cat_body.tpl,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast_cat_body.tpl 6 Jun 2007 23:04:05 -0000 1.1 --- radiocast_cat_body.tpl 17 Sep 2007 07:25:48 -0000 1.1.2.1 *************** *** 6,14 **** <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" colspan="4">{L_RADIOCAST_CAT_TITLE}</th> </tr> <!-- BEGIN catrow --> <tr> ! <td class="{catrow.COLOR}" width="60%" height="25"><span class="gen">{catrow.TITLE}<br /></span><span class="gensmall">{catrow.DESC}</span></td> <td class="{catrow.COLOR}" align="center"><span class="genmed"><a href="{catrow.S_MOVE_UP}">{L_MOVE_UP}</a><br /><a href="{catrow.S_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> --- 6,15 ---- <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" colspan="5">{L_RADIOCAST_CAT_TITLE}</th> </tr> <!-- BEGIN catrow --> <tr> ! <td colspan="{catrow.COLSPAN}" class="{catrow.COLOR}" width="60%" height="25"><span class="gen">{catrow.TITLE}<br /></span><span class="gensmall">{catrow.DESC}</span></td> ! {catrow.ADD_SC} <td class="{catrow.COLOR}" align="center"><span class="genmed"><a href="{catrow.S_MOVE_UP}">{L_MOVE_UP}</a><br /><a href="{catrow.S_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> *************** *** 20,24 **** <!-- END catrow --> <tr> ! <td class="catBottom" align="center" height="28" colspan="4"><input type="hidden" value="new" name="mode" /><input name="submit" type="submit" value="{L_CREATE_CATEGORY}" class="liteoption"></td> </tr> </table> --- 21,25 ---- <!-- END catrow --> <tr> ! <td class="catBottom" align="center" height="28" colspan="5"><form action="{S_RADIOCAST_ACTION}" method="post"><input type="hidden" value="new" name="mode" /><input name="submit" type="submit" value="{L_CREATE_RADIOCAST}" class="liteoption"></form><form action="{S_RADIOCAST_ACTION}&newcat" method="post"><input type="hidden" value="newcat" name="mode" /><input name="submit" type="submit" value="{L_CREATE_CATEGORY}" class="liteoption"></td> </tr> </table> |
|
From: OryNider <ory...@us...> - 2007-09-17 07:25:37
|
Update of /cvsroot/mxbb/mx_radiocast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4376 Modified Files: Tag: core28x lang_admin.php lang_main.php Log Message: This is the upgrade for mxBB 2.8.1 :D Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/language/lang_english/lang_main.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** lang_main.php 2 Jul 2007 20:01:32 -0000 1.2 --- lang_main.php 17 Sep 2007 07:25:32 -0000 1.2.2.1 *************** *** 22,25 **** --- 22,26 ---- $lang['Last_Station'] = 'Last Station'; $lang['Public_Categories'] = 'Public Categories'; + $lang['RadioCast_sub_categories'] = 'Sub-categories'; $lang['No_Stations'] = 'No Station'; $lang['Top_Stations'] = 'Top Stations'; Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/language/lang_english/lang_admin.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** lang_admin.php 6 Jun 2007 23:03:56 -0000 1.1 --- lang_admin.php 17 Sep 2007 07:25:32 -0000 1.1.2.1 *************** *** 18,22 **** // setlocale(LC_ALL, "en"); ! $lang['display_most_posts'] = "Display most posts"; $lang['display_random_posts'] = "Display random posts"; $lang['display_top_ranked'] = "Display top ranked"; --- 18,22 ---- // setlocale(LC_ALL, "en"); ! $lang['display_most_posts'] = "Display most posts"; $lang['display_random_posts'] = "Display random posts"; $lang['display_top_ranked'] = "Display top ranked"; *************** *** 98,101 **** --- 98,103 ---- $lang['Category_deleted'] = 'This category has been deleted successfully'; $lang['Category_changed_order'] = 'This category has been changed order successfully'; + $lang['Create_radiocast'] = 'Create new radio'; + $lang['Create_sub_radio'] = 'Create sub-radio'; // |
|
From: OryNider <ory...@us...> - 2007-09-17 07:25:16
|
Update of /cvsroot/mxbb/mx_radiocast/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3785/admin Modified Files: Tag: core28x admin_radio_auth.php admin_radio_cat.php admin_radio_cfg.php admin_radio_ext.php Log Message: This is the upgrade for mxBB 2.8.1 :D Index: admin_radio_ext.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_ext.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** admin_radio_ext.php 6 Jun 2007 23:03:47 -0000 1.1 --- admin_radio_ext.php 17 Sep 2007 07:24:29 -0000 1.1.2.1 *************** *** 93,97 **** if ( isset( $HTTP_POST_VARS['submit'] ) ) { ! $message = $lang['radiocast_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_radiocast_config'], "<a href=\"" . append_sid( "admin_radio_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 93,97 ---- if ( isset( $HTTP_POST_VARS['submit'] ) ) { ! $message = $lang['radiocast_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_radiocast_config'], "<a href=\"" . append_sid( "admin_radio_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } Index: admin_radio_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_cat.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** admin_radio_cat.php 6 Jun 2007 23:03:46 -0000 1.1 --- admin_radio_cat.php 17 Sep 2007 07:24:28 -0000 1.1.2.1 *************** *** 21,26 **** // Let's set the root dir for phpBB // ! $module_root_path = '../'; ! $mx_root_path = '../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 21,26 ---- // Let's set the root dir for phpBB // ! $module_root_path = './../'; ! $mx_root_path = './../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 29,33 **** // ! // Get general radiocast information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); --- 29,33 ---- // ! // Get general music information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); *************** *** 104,107 **** --- 104,108 ---- 'L_DELETE' => $lang['Delete'], 'S_MODE' => 'new', + 'L_CREATE_RADIOCAST' => !empty($lang['Create_radiocast']) ? $lang['Create_radiocast'] : 'Create radiocast', 'L_CREATE_CATEGORY' => $lang['Create_category']) ); *************** *** 109,116 **** $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." ORDER BY cat_order ASC"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } while ($row = $db->sql_fetchrow($result)) --- 110,118 ---- $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = 0 ORDER BY cat_order ASC"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } while ($row = $db->sql_fetchrow($result)) *************** *** 121,128 **** --- 123,145 ---- for( $i = 0; $i < count($catrow); $i++ ) { + if ($catrow[$i]['cat_type'] != 0) + { + $colspan = 1; + $add_sc = "<td class=\"" . (($i % 2) ? 'row1' : 'row2') . "\" align=\"center\">" . + "<form action=\"" . append_sid("admin_radio_cat.$phpEx") . "\" method=\"post\"><input type=\"hidden\" value=\"new\" name=\"mode\" /><input type=\"hidden\" value=\"" . $catrow[$i]['cat_id'] . "\" name=\"cat_parent\"><input name=\"submit\" type=\"submit\" value=\"" . $lang['Create_sub_radio'] . "\" class=\"liteoption\">" . + "</form></td>"; + } + else + { + $colspan = 2; + $add_sc = ""; + } + $template->assign_block_vars('catrow', array( 'COLOR' => ($i % 2) ? 'row1' : 'row2', 'TITLE' => $catrow[$i]['cat_title'], 'DESC' => $catrow[$i]['cat_desc'], + 'COLSPAN' => $colspan, + 'ADD_SC' => $add_sc, 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_id=" . $catrow[$i]['cat_id']), 'S_MOVE_DOWN' => append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_id=" . $catrow[$i]['cat_id']), *************** *** 131,134 **** --- 148,182 ---- ) ); + + if ($catrow[$i]['cat_type'] != 0) + { + // this is a parent category + $sc_sql = "SELECT * + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = " . $catrow[$i]['cat_id'] . " + GROUP BY cat_id + ORDER BY cat_order ASC"; + + if ( !($sc_result = $db->sql_query($sc_sql)) ) + { + mx_mx_message_die(GENERAL_ERROR, 'Could not query sub categories', '', __LINE__, __FILE__, $sc_sql); + } + + while ($subcatrow = $db->sql_fetchrow($sc_result)) + { + $template->assign_block_vars('catrow', array( + 'COLSPAN' => 2, + 'ADD_SC' => '', + 'COLOR' => ($i % 2) ? 'row1' : 'row2', + 'TITLE' => " " . $subcatrow['cat_title'], + 'DESC' => " " . preg_replace("#\n#", "<br> ", $subcatrow['cat_desc']), + 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), + 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), + 'S_EDIT_ACTION' => append_sid("admin_radio_cat.$phpEx?action=edit&cat_id=" . $subcatrow['cat_id']), + 'S_DELETE_ACTION' => append_sid("admin_radio_cat.$phpEx?action=delete&cat_id=" . $subcatrow['cat_id']) + ) + ); + } + } } *************** *** 148,152 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) == 0 ) --- 196,200 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) == 0 ) *************** *** 247,251 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } --- 295,299 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } *************** *** 268,272 **** } ! $select_to = '<select name="target"><option value="0">'. $lang['Delete_all_STATIONS'] .'</option>'; for ($i = 0; $i < count($catrow); $i++) { --- 316,320 ---- } ! $select_to = '<select name="target"><option value="0">'. $lang['Delete_all_stations'] .'</option>'; for ($i = 0; $i < count($catrow); $i++) { *************** *** 310,314 **** // Return a message... ! $message = $lang['Category_changed_order'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 358,362 ---- // Return a message... ! $message = $lang['Category_changed_order'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 316,322 **** } } ! else ! { ! if( $HTTP_POST_VARS['mode'] == 'new' ) { if( !isset($HTTP_POST_VARS['cat_title']) ) --- 364,370 ---- } } ! else ! { ! if(( $HTTP_POST_VARS['mode'] == 'new' ) || ($HTTP_POST_VARS['mode'] == 'newcat')) { if( !isset($HTTP_POST_VARS['cat_title']) ) *************** *** 326,329 **** --- 374,391 ---- ); + if ( !isset($HTTP_POST_VARS['cat_parent']) ) + { + $cat_parent = ""; + } + else + { + $cat_parent = "<input type=\"hidden\" value=\"" . $HTTP_POST_VARS['cat_parent'] . "\" name=\"cat_parent\">"; + } + + if ($HTTP_POST_VARS['mode'] == 'newcat') + { + $cat_type = "<input type=\"hidden\" value=\"1\" name=\"cat_type\">"; + } + $template->assign_vars(array( 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], *************** *** 364,367 **** --- 426,432 ---- 'S_ADMIN' => RADIOCAST_ADMIN, + 'CAT_PARENT' => $cat_parent, + 'CAT_TYPE' => $cat_type, + 'L_PANEL_TITLE' => $lang['Create_category']) ); *************** *** 374,377 **** --- 439,460 ---- { // Get posting variables + + if ( !isset($HTTP_POST_VARS['cat_parent']) ) + { + $cat_parent = 0; + } + else + { + $cat_parent = intval($HTTP_POST_VARS['cat_parent']); + } + if ( !isset($HTTP_POST_VARS['cat_type']) ) + { + $cat_type = 0; + } + else + { + $cat_type = 1; + } + $cat_title = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['cat_title']))); $cat_desc = str_replace("\'", "''", trim($HTTP_POST_VARS['cat_desc'])); *************** *** 390,394 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); --- 473,477 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); *************** *** 397,409 **** // Here we insert a new row into the db ! $sql = "INSERT INTO ". RADIOCAST_CAT_TABLE ." (cat_title, cat_desc, cat_order, cat_view_level, cat_upload_level, cat_rate_level, cat_comment_level, cat_edit_level, cat_delete_level, cat_approval) ! VALUES ('$cat_title', '$cat_desc', '$cat_order', '$view_level', '$upload_level', '$rate_level', '$comment_level', '$edit_level', '$delete_level', '$cat_approval')"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not create new radiocast Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['New_category_created'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 480,492 ---- // Here we insert a new row into the db ! $sql = "INSERT INTO ". RADIOCAST_CAT_TABLE ." (cat_title, cat_desc, cat_order, cat_view_level, cat_upload_level, cat_rate_level, cat_comment_level, cat_edit_level, cat_delete_level, cat_approval, cat_parent, cat_type) ! VALUES ('$cat_title', '$cat_desc', '$cat_order', '$view_level', '$upload_level', '$rate_level', '$comment_level', '$edit_level', '$delete_level', '$cat_approval', $cat_parent, $cat_type)"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not create new music Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['New_category_created'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 430,438 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not update this radiocast Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['Category_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 513,521 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not update this music Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['Category_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 445,476 **** if( $target == 0 ) // Delete All { ! // Get file information of all STATIONS in this category ! $sql = "SELECT station_id, station_filename, station_cat_id FROM ". RADIOCAST_TABLE ." ! WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast information', '', __LINE__, __FILE__, $sql); } ! $stationrow = array(); while( $row = $db ->sql_fetchrow($result) ) { ! $stationrow[] = $row; ! $station_id_row[] = $row['station_id']; } ! if( count($stationrow) != 0 ) // if this category is not empty { ! // Delete all physical station ! for ($i = 0; $i < count($stationrow); $i++) { ! @unlink('../' . RADIOCAST_UPLOAD_PATH . $stationrow[$i]['station_filename']); } ! $station_id_sql = '(' . implode(',', $station_id_row) . ')'; // Delete all related ratings $sql = "DELETE FROM ". RADIOCAST_RATE_TABLE ." ! WHERE rate_station_id IN ". $station_id_sql; if(!$result = $db->sql_query($sql)) { --- 528,559 ---- if( $target == 0 ) // Delete All { ! // Get file information of all stations in this category ! $sql = "SELECT song_id, song_filename, song_cat_id FROM ". RADIOCAST_TABLE ." ! WHERE song_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music information', '', __LINE__, __FILE__, $sql); } ! $songrow = array(); while( $row = $db ->sql_fetchrow($result) ) { ! $songrow[] = $row; ! $song_id_row[] = $row['song_id']; } ! if( count($songrow) != 0 ) // if this category is not empty { ! // Delete all physical song ! for ($i = 0; $i < count($songrow); $i++) { ! @unlink('../' . RADIOCAST_UPLOAD_PATH . $songrow[$i]['song_filename']); } ! $song_id_sql = '(' . implode(',', $song_id_row) . ')'; // Delete all related ratings $sql = "DELETE FROM ". RADIOCAST_RATE_TABLE ." ! WHERE rate_song_id IN ". $song_id_sql; if(!$result = $db->sql_query($sql)) { *************** *** 480,484 **** // Delete all related comments $sql = "DELETE FROM ". RADIOCAST_COMMENT_TABLE ." ! WHERE comment_station_id IN ". $station_id_sql; if(!$result = $db->sql_query($sql)) { --- 563,567 ---- // Delete all related comments $sql = "DELETE FROM ". RADIOCAST_COMMENT_TABLE ." ! WHERE comment_song_id IN ". $song_id_sql; if(!$result = $db->sql_query($sql)) { *************** *** 486,495 **** } ! // Delete station entries in db $sql = "DELETE FROM ". RADIOCAST_TABLE ." ! WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not delete station entries in the DB', '', __LINE__, __FILE__, $sql); } } --- 569,578 ---- } ! // Delete song entries in db $sql = "DELETE FROM ". RADIOCAST_TABLE ." ! WHERE song_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not delete song entries in the DB', '', __LINE__, __FILE__, $sql); } } *************** *** 507,511 **** // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 590,594 ---- // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 514,519 **** { $sql = "UPDATE ". RADIOCAST_TABLE ." ! SET station_cat_id = '$target' ! WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { --- 597,602 ---- { $sql = "UPDATE ". RADIOCAST_TABLE ." ! SET song_cat_id = '$target' ! WHERE song_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { *************** *** 533,537 **** // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 616,620 ---- // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); Index: admin_radio_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_auth.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** admin_radio_auth.php 6 Jun 2007 23:03:45 -0000 1.1 --- admin_radio_auth.php 17 Sep 2007 07:24:28 -0000 1.1.2.1 *************** *** 206,210 **** // okay, return a message... ! $message = $lang['RadioCast_Auth_successfully'] . '<br /><br />' . sprintf($lang['Click_return_radiocast_auth'], '<a href="' . append_sid("admin_radio_auth.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); --- 206,210 ---- // okay, return a message... ! $message = $lang['RadioCast_Auth_successfully'] . '<br /><br />' . sprintf($lang['Click_return_radiocast_auth'], '<a href="' . append_sid("admin_radio_auth.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); Index: admin_radio_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_cfg.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** admin_radio_cfg.php 6 Jun 2007 23:03:46 -0000 1.1 --- admin_radio_cfg.php 17 Sep 2007 07:24:28 -0000 1.1.2.1 *************** *** 85,89 **** if( isset($HTTP_POST_VARS['submit']) ) { ! $message = $lang['RadioCast_config_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_config'], "<a href=\"" . append_sid("admin_radio_cfg.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); --- 85,89 ---- if( isset($HTTP_POST_VARS['submit']) ) { ! $message = $lang['RadioCast_config_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_config'], "<a href=\"" . append_sid("admin_radio_cfg.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); |
|
From: OryNider <ory...@us...> - 2007-09-17 07:24:35
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3785 Modified Files: Tag: core28x db_install.php radiocast.php Added Files: Tag: core28x db_upgrade.php Log Message: This is the upgrade for mxBB 2.8.1 :D Index: radiocast.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radiocast.php 6 Jun 2007 23:03:45 -0000 1.1 --- radiocast.php 17 Sep 2007 07:24:30 -0000 1.1.2.1 *************** *** 169,176 **** */ $sql = "SELECT c.*, COUNT(s.station_id) AS count FROM ". RADIOCAST_CAT_TABLE ." AS c LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id ! WHERE cat_id <> 0 GROUP BY cat_id ORDER BY cat_order ASC"; --- 169,206 ---- */ + $cat_id = $_POST['c'] ? $_POST['c'] : ( $_GET['c'] ? $_GET['c'] : 0 ); + $cat_where = "cat_parent = $cat_id"; + + if ($cat_id != 0) + { + $sql = "SELECT cat_id,cat_title + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_id = $cat_id"; + if ( $result = $db->sql_query($sql) ) + { + $thiscat_parent = array(); + $thiscat_parent = $db->sql_fetchrow($result); + + $template->assign_vars(array( + 'U_VIEW_CAT_PARENT' => append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])), + 'SUBCAT_NAV' => ' ' . $lang['Nav_Separator'] . ' <a class="nav" href="' . append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])) . '">' . $thiscat_parent['cat_title'] . '</a>', + 'CAT_PARENT_TITLE' => $thiscat_parent['cat_title'], + 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss&c=" . $thiscat_parent['cat_id'] . "&sid=" . $userdata['session_id'], true)), + 'CAT_PARENT' => $thiscat_parent['cat_id']) + ); + } + } + else + { + $template->assign_vars(array( + 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss" . "&sid=" . $userdata['session_id'], true)) + )); + + } + $sql = "SELECT c.*, COUNT(s.station_id) AS count FROM ". RADIOCAST_CAT_TABLE ." AS c LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id ! WHERE $cat_where GROUP BY cat_id ORDER BY cat_order ASC"; *************** *** 251,343 **** // ------------------------------------------ ! if ($catrows[$i]['count'] == 0) ! { ! // ! // Oh, this category is empty ! // ! $last_station_info = $lang['No_Stations']; ! $u_last_station = ''; ! $last_station_title = ''; ! } ! else ! { ! // ---------------------------- ! // Check Station Approval ! // ---------------------------- ! ! if(($catrows[$i]['cat_approval'] == RADIOCAST_ADMIN) or ($catrows[$i]['cat_approval'] == RADIOCAST_MOD)) { ! $station_approval_sql = 'AND s.station_approval = 1'; // station Approval ON } else { ! $station_approval_sql = ''; // station Approval OFF ! } - // ---------------------------- - // OK, we may do a query now... - // ---------------------------- ! $sql = "SELECT s.station_id, s.station_title, s.station_singer, s.station_user_id, s.station_username, s.station_time, s.station_cat_id, u.user_id, u.username ! FROM ". RADIOCAST_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id ! WHERE s.station_cat_id = '". $catrows[$i]['cat_id'] ."' $station_approval_sql ! ORDER BY s.station_time DESC ! LIMIT 1"; ! if ( !$result = $db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not get last station information', '', __LINE__, __FILE__, $sql); ! } ! $lastrow = $db->sql_fetchrow($result); - // ---------------------------- - // Write the Date - // ---------------------------- ! $last_station_info = create_date($board_config['default_dateformat'], $lastrow['station_time'], $board_config['board_timezone']); ! $last_station_info .= '<br />'; - // ---------------------------- - // Write username of last poster - // ---------------------------- ! if( ($lastrow['user_id'] == RADIOCAST_GUEST) or ($lastrow['username'] == '') ) ! { ! $last_station_info .= ($lastrow['station_username'] == '') ? $lang['Guest'] : $lastrow['station_username']; ! } ! else ! { ! $last_station_info .= $lang['Poster'] .': <a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $lastrow['user_id']) .'">'. $lastrow['username'] .'</a>'; ! } - // ---------------------------- - // Write the last station's title. - // Truncate it if it's too long - // ---------------------------- ! if( !isset($radiocast_config['last_station_title_length']) ) ! { ! $radiocast_config['last_station_title_length'] = 25; ! } ! $lastrow['station_title'] = $lastrow['station_title']; ! if (strlen($lastrow['station_title']) > $radiocast_config['last_station_title_length']) ! { ! $lastrow['station_title'] = substr($lastrow['station_title'], 0, $radiocast_config['last_station_title_length']) . '...'; ! } ! $last_station_info .= '<br />'. $lang['Station_Title'] .': <a href="'; ! $last_station_info .= append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $lastrow['station_id'])) .'">' ; ! $last_station_info .= $lastrow['station_title'] .'</a>'; ! } ! // END of Last Station // ------------------------------------------ --- 281,430 ---- // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) ! { ! if ($catrows[$i]['count'] == 0) { ! // ! // Oh, this category is empty ! // ! $last_station_info = $lang['No_Stations']; ! $u_last_station = ''; ! $last_station_title = ''; } else { ! // ---------------------------- ! // Check Station Approval ! // ---------------------------- + if(($catrows[$i]['cat_approval'] == RADIOCAST_ADMIN) or ($catrows[$i]['cat_approval'] == RADIOCAST_MOD)) + { + $station_approval_sql = 'AND s.station_approval = 1'; // station Approval ON + } + else + { + $station_approval_sql = ''; // station Approval OFF + } ! // ---------------------------- ! // OK, we may do a query now... ! // ---------------------------- + $sql = "SELECT s.station_id, s.station_title, s.station_singer, s.station_user_id, s.station_username, s.station_time, s.station_cat_id, u.user_id, u.username + FROM ". RADIOCAST_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id + WHERE s.station_cat_id = '". $catrows[$i]['cat_id'] ."' $station_approval_sql + ORDER BY s.station_time DESC + LIMIT 1"; + if ( !$result = $db->sql_query($sql) ) + { + mx_message_die(GENERAL_ERROR, 'Could not get last station information', '', __LINE__, __FILE__, $sql); + } + $lastrow = $db->sql_fetchrow($result); ! // ---------------------------- ! // Write the Date ! // ---------------------------- ! $last_station_info = create_date($board_config['default_dateformat'], $lastrow['station_time'], $board_config['board_timezone']); + $last_station_info .= '<br />'; ! // ---------------------------- ! // Write username of last poster ! // ---------------------------- + if( ($lastrow['user_id'] == RADIOCAST_GUEST) or ($lastrow['username'] == '') ) + { + $last_station_info .= ($lastrow['station_username'] == '') ? $lang['Guest'] : $lastrow['station_username']; + } + else + { + $last_station_info .= $lang['Poster'] .': <a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $lastrow['user_id']) .'">'. $lastrow['username'] .'</a>'; + } ! // ---------------------------- ! // Write the last station's title. ! // Truncate it if it's too long ! // ---------------------------- ! if( !isset($radiocast_config['last_station_title_length']) ) ! { ! $radiocast_config['last_station_title_length'] = 25; ! } ! $lastrow['station_title'] = $lastrow['station_title']; ! if (strlen($lastrow['station_title']) > $radiocast_config['last_station_title_length']) ! { ! $lastrow['station_title'] = substr($lastrow['station_title'], 0, $radiocast_config['last_station_title_length']) . '...'; ! } ! $last_station_info .= '<br />'. $lang['Station_Title'] .': <a href="'; ! $last_station_info .= append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $lastrow['station_id'])) .'">' ; + $last_station_info .= $lastrow['station_title'] .'</a>'; + } + // END of Last Station + } + else + { + // this is a parent category + $sc_sql = "SELECT * + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = " . $catrows[$i]['cat_id'] . " + GROUP BY cat_id + ORDER BY cat_order ASC"; + + if ( !($sc_result = $db->sql_query($sc_sql)) ) + { + message_die(GENERAL_ERROR, 'Could not query sub categories', '', __LINE__, __FILE__, $sql); + } + + $sql_count = "SELECT count(cat_id) as count + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = " . $catrows[$i]['cat_id']; + if ( ($result_count = $db->sql_query($sql_count)) ) + { + $subcat_count = $db->sql_fetchrow($result_count); + $subcat_count = $subcat_count['count'] . " sub catagories"; + } + else + { + $subcat_count = ""; + } + + $subcats = '<br /><span class="gensmall"><b>' . $lang['RadioCast_sub_categories'] . ':</b><br />'; + while ( $subcatrow = $db->sql_fetchrow($sc_result) ) + { + $subcats .= ' - <a class="gensmall" href="' . append_sid(this_rc_mxurl('radiocast_mode=radiocast_cat&cat_id='. $subcatrow['cat_id'])) . '">' . $subcatrow['cat_title'] . '</a><br />'; + } + $subcats .= '</span><br />'; + + $template->assign_block_vars('catrow', array( + 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_index&c=". $catrows[$i]['cat_id'])), + 'CAT_TITLE' => $catrows[$i]['cat_title'], + 'CAT_DESC' => $catrows[$i]['cat_desc'], + 'SONGS' => $subcat_count, + 'CAT_VIEWS' => $catrows[$i]['cat_views'], + 'L_MODERATORS' => $l_moderators, + 'L_ALL_CAT_PICS' => $lang['Category_pics'], + 'L_ALL_CAT_SONGS' => $lang['Category_stations'], + 'MODERATORS' => $moderators_list, + 'LAST_SONG_INFO' => $last_station_info) + ); + + if ($radiocast_config['show_index_subcats'] == 1) + { + $template->assign_block_vars('catrow.subcat_link', array( + 'L_SUBCATS' => $lang['RadioCast_sub_categories'], + 'SUBCATS' => $subcats) + ); + } + } // ------------------------------------------ *************** *** 345,358 **** // ------------------------------------------ ! $template->assign_block_vars('catrow', array( ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=". $catrows[$i]['cat_id'])), ! 'CAT_TITLE' => $catrows[$i]['cat_title'], ! 'CAT_DESC' => $catrows[$i]['cat_desc'], ! 'CAT_VIEWS' => $catrows[$i]['cat_views'], ! 'L_MODERATORS' => $l_moderators, ! 'MODERATORS' => $moderators_list, ! 'STATIONS' => $catrows[$i]['count'], ! 'LAST_STATION_INFO' => $last_station_info) ! ); } // END of Categories Index --- 432,448 ---- // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) ! { ! $template->assign_block_vars('catrow', array( ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=". $catrows[$i]['cat_id'])), ! 'CAT_TITLE' => $catrows[$i]['cat_title'], ! 'CAT_DESC' => $catrows[$i]['cat_desc'], ! 'CAT_VIEWS' => $catrows[$i]['cat_views'], ! 'L_MODERATORS' => $l_moderators, ! 'MODERATORS' => $moderators_list, ! 'STATIONS' => $catrows[$i]['count'], ! 'LAST_STATION_INFO' => $last_station_info) ! ); ! } } // END of Categories Index *************** *** 465,470 **** // We may do query now // ! ! if ($allowed_cat != '') { $sql = "SELECT s.station_id, s.station_title, s.station_desc, s.station_singer, s.station_user_id, s.station_user_ip, s.station_username, s.station_time, s.station_cat_id, s.station_view_count, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment --- 555,559 ---- // We may do query now // ! if ( ($allowed_cat != '') && ($radiocast_config['top'] > '0') ) { $sql = "SELECT s.station_id, s.station_title, s.station_desc, s.station_singer, s.station_user_id, s.station_user_ip, s.station_username, s.station_time, s.station_cat_id, s.station_view_count, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment *************** *** 483,497 **** } ! $topstationrow = array(); while( $row = $db->sql_fetchrow($result) ) { ! $topstationrow[] = $row; } ! if (count($topstationrow) > 0) { ! for ($i = 0; $i < count($topstationrow); $i += $radiocast_config['rows_per_page']) { $template->assign_block_vars('top_stations', array()); --- 572,586 ---- } ! $topsongrow = array(); while( $row = $db->sql_fetchrow($result) ) { ! $topsongrow[] = $row; } ! if (count($topsongrow) > 0) { ! for ($i = 0; $i < count($topsongrow); $i += $radiocast_config['rows_per_page']) { $template->assign_block_vars('top_stations', array()); *************** *** 499,549 **** for ($j = $i; $j < ($i + $radiocast_config['rows_per_page']); $j++) { ! if( $j >= count($topstationrow) ) { break; } ! if(!$topstationrow[$j]['rating']) { ! $topstationrow[$j]['rating'] = $lang['Not_rated']; } else { ! $topstationrow[$j]['rating'] = round($topstationrow[$j]['rating'], 2); } $template->assign_block_vars('top_stations.top_row', array( ! 'U_STATION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topstationrow[$j]['station_id'])), ! 'DESC' => $topstationrow[$j]['station_desc'] ) ); ! if( ($topstationrow[$j]['user_id'] == RADIOCAST_GUEST) or ($topstationrow[$j]['username'] == '') ) { ! $top_poster = ($topstationrow[$j]['station_username'] == '') ? $lang['Guest'] : $topstationrow[$j]['station_username']; } else { ! $top_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topstationrow[$j]['user_id']) .'">'. $topstationrow[$j]['username'] .'</a>'; } $template->assign_block_vars('top_stations.top_detail', array( ! 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['station_title'] . '</a>', ! ! 'SINGER' => $topstationrow[$j]['station_singer'], 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, ! 'TIME' => create_date($board_config['default_dateformat'], $topstationrow[$j]['station_time'], $board_config['board_timezone']), ! ! 'VIEW' => $topstationrow[$j]['station_view_count'], ! 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['rating'] . '</a>' ) : '', ! 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['comments'] . '</a>' ) : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($topstationrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($topstationrow[$j]['station_user_ip']) .'</a><br />' : '' ) ); --- 588,636 ---- for ($j = $i; $j < ($i + $radiocast_config['rows_per_page']); $j++) { ! if( $j >= count($topsongrow) ) { break; } ! if(!$topsongrow[$j]['rating']) { ! $topsongrow[$j]['rating'] = $lang['Not_rated']; } else { ! $topsongrow[$j]['rating'] = round($topsongrow[$j]['rating'], 2); } $template->assign_block_vars('top_stations.top_row', array( ! 'U_SONG' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])), ! 'DESC' => $topsongrow[$j]['station_desc'] ) ); ! if( ($topsongrow[$j]['user_id'] == RADIOCAST_GUEST) or ($topsongrow[$j]['username'] == '') ) { ! $top_poster = ($topsongrow[$j]['station_username'] == '') ? $lang['Guest'] : $topsongrow[$j]['station_username']; } else { ! $top_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topsongrow[$j]['user_id']) .'">'. $topsongrow[$j]['username'] .'</a>'; } $template->assign_block_vars('top_stations.top_detail', array( ! 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['station_title'] . '</a>', ! 'SINGER' => $topsongrow[$j]['station_singer'], 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, + 'TIME' => create_date($board_config['default_dateformat'], $topsongrow[$j]['station_time'], $board_config['board_timezone']), ! 'VIEW' => $topsongrow[$j]['station_view_count'], ! 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['rating'] . '</a>' ) : '', ! 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['comments'] . '</a>' ) : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($topsongrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($topsongrow[$j]['station_user_ip']) .'</a><br />' : '' ) ); *************** *** 551,554 **** --- 638,773 ---- } } + else if ( ($mode == 'radiocast_index') && !isset($_GET['c']) ) + { + $sql = "SELECT c.*, COUNT(s.station_id) AS count + FROM ". RADIOCAST_CAT_TABLE ." AS c + LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id + WHERE cat_id <> 0 + GROUP BY cat_id + ORDER BY cat_order ASC"; + if( !($result = $db->sql_query($sql)) ) + { + mx_message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql); + } + + $catsrow = array(); + + while( $row = $db->sql_fetchrow($result) ) + { + $radiocast_user_access = radiocast_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW + if ($radiocast_user_access['view'] == 1) + { + $catsrow[] = $row; + } + } + + for ($i = 0; $i < count($catsrow); $i++) + { + // -------------------------------- + // Build allowed category-list (for recent stations after here) + // -------------------------------- + + $allowed_cat .= ($allowed_cat == '') ? $catsrow[$i]['cat_id'] : ',' . $catsrow[$i]['cat_id']; + } + + if ( ($allowed_cat != '') && ($radiocast_config['top'] > '0') ) + { + $sql = "SELECT s.station_id, s.station_title, s.station_desc, s.station_singer, s.station_user_id, s.station_user_ip, s.station_username, s.station_time, s.station_cat_id, s.station_view_count, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment + FROM ". RADIOCAST_TABLE ." AS s + LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id + LEFT JOIN ". RADIOCAST_CAT_TABLE ." AS ct ON s.station_cat_id = ct.cat_id + LEFT JOIN ". RADIOCAST_RATE_TABLE ." AS r ON s.station_id = r.rate_station_id + LEFT JOIN ". RADIOCAST_COMMENT_TABLE ." AS c ON s.station_id = c.comment_station_id + WHERE s.station_cat_id IN ($allowed_cat) AND ( s.station_approval = 1 OR ct.cat_approval = 0 ) + GROUP BY s.station_id + ORDER BY $sort_method DESC + LIMIT $station_limit"; + if( !($result = $db->sql_query($sql)) ) + { + mx_message_die(GENERAL_ERROR, 'Could not query top stations information', '', __LINE__, __FILE__, $sql); + } + + $topsongrow = array(); + + while( $row = $db->sql_fetchrow($result) ) + { + $topsongrow[] = $row; + } + + + if (count($topsongrow) > 0) + { + for ($i = 0; $i < count($topsongrow); $i += $radiocast_config['rows_per_page']) + { + $template->assign_block_vars('top_stations', array()); + + for ($j = $i; $j < ($i + $radiocast_config['rows_per_page']); $j++) + { + if( $j >= count($topsongrow) ) + { + break; + } + + if(!$topsongrow[$j]['rating']) + { + $topsongrow[$j]['rating'] = $lang['Not_rated']; + } + else + { + $topsongrow[$j]['rating'] = round($topsongrow[$j]['rating'], 2); + } + + $template->assign_block_vars('top_stations.top_row', array( + 'U_SONG' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])), + 'DESC' => $topsongrow[$j]['station_desc'] + ) + ); + + if( ($topsongrow[$j]['user_id'] == RADIOCAST_GUEST) or ($topsongrow[$j]['username'] == '') ) + { + $top_poster = ($topsongrow[$j]['station_username'] == '') ? $lang['Guest'] : $topsongrow[$j]['station_username']; + } + else + { + $top_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topsongrow[$j]['user_id']) .'">'. $topsongrow[$j]['username'] .'</a>'; + } + + $template->assign_block_vars('top_stations.top_detail', array( + 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['station_title'] . '</a>', + 'SINGER' => $topsongrow[$j]['station_singer'], + + 'RADIO_FRONT_IMG' => $mx_images['radio_front'], + + 'POSTER' => $top_poster, + 'TIME' => create_date($board_config['default_dateformat'], $topsongrow[$j]['station_time'], $board_config['board_timezone']), + + 'VIEW' => $topsongrow[$j]['station_view_count'], + + 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['rating'] . '</a>' ) : '', + + 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['comments'] . '</a>' ) : '', + + 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($topsongrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($topsongrow[$j]['station_user_ip']) .'</a><br />' : '' + ) + ); + } + } + } + else + { + // + // No stations Found + // + $template->assign_block_vars('no_stations', array()); + } + } + else + { + // + // No stations Found + // + $template->assign_block_vars('no_stations', array()); + } + } else { Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_install.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** db_install.php 6 Jun 2007 23:03:43 -0000 1.1 --- db_install.php 17 Sep 2007 07:24:29 -0000 1.1.2.1 *************** *** 8,12 **** * */ ! ini_set( 'display_errors', '1' ); define( 'IN_PORTAL', true ); --- 8,12 ---- * */ ! //ini_set( 'display_errors', '1' ); define( 'IN_PORTAL', true ); *************** *** 33,37 **** } ! $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; --- 33,37 ---- } ! $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; *************** *** 108,111 **** --- 108,113 ---- $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast_cat ( cat_id mediumint(8) UNSIGNED NOT NULL auto_increment, + cat_parent mediumint(8) UNSIGNED NOT NULL DEFAULT '0', + cat_type tinyint NOT NULL DEFAULT '0', cat_title varchar(255) NOT NULL, cat_desc text, --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: db_upgrade.php,v 1.1.2.2 2007/09/17 07:24:30 orynider Exp $ * @copyright (c) 2002-2006 [Markus, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; $sql = array(); // // Precheck // if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "radiocast_config" ) ) { // // Upgrade checks // $upgrade_101 = 0; // // validate before 1.01 // $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "radiocast_config WHERE config_name = 'show_index_subcats'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_101 = 1; } $message = "<b>Upgrading!</b><br/><br/>"; if ( $upgrade_101 == 1 ) { $message .= "<b>Upgrading to v. 1.0.1...</b><br/><br/>"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('show_index_subcats', '1')"; $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast_cat ADD cat_parent mediumint(8) UNSIGNED NOT NULL DEFAULT '0' AFTER cat_id"; $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast_cat ADD cat_type tinyint NOT NULL DEFAULT '0' AFTER cat_parent"; $sql[] = "UPDATE ". $mx_table_prefix ."radiocast_config SET config_value = '0.1' WHERE config_name = 'radiocast_version'"; } else { $message .= "<b>Nothing to upgrade...</b><br/><br/>"; } $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 ); } else { // // If not installed // $message = "<b>Module is not installed...and thus cannot be upgraded ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> |
|
From: OryNider <ory...@us...> - 2007-09-17 07:24:35
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3785/includes Modified Files: Tag: core28x radiocast_player.php radiocast_stream.php Log Message: This is the upgrade for mxBB 2.8.1 :D Index: radiocast_stream.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_stream.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** radiocast_stream.php 2 Jul 2007 20:01:16 -0000 1.2 --- radiocast_stream.php 17 Sep 2007 07:24:30 -0000 1.2.2.1 *************** *** 16,45 **** } - // - // Let's include some stuff... - // - $phpEx = substr(strrchr(__FILE__, '.'), 1); - - if ( !defined('TEMPLATE_ROOT_PATH') ) - { - include_once($mx_root_path . 'common.' . $phpEx); - - // - // Start session management - // - $mx_user->init($user_ip, PAGE_INDEX); - // - // End session management - // - } - - $radiocast_root_path = $module_root_path . 'radiocast_mod/'; - // - // Get general music information - // - include_once($radiocast_root_path . 'radiocast_common.'.$phpEx); - // ------------------------------------ // Check the request --- 16,21 ---- *************** *** 187,191 **** // Establish response headers header("HTTP/1.0 200 OK"); ! header("Content-Type: audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3"); header("Content-Transfer-Encoding: binary"); --- 163,167 ---- // Establish response headers header("HTTP/1.0 200 OK"); ! header("Content-Type: audio/x-mpeg, audio/x-mpeg-4, audio/mpeg4"); header("Content-Transfer-Encoding: binary"); Index: radiocast_player.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_player.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** radiocast_player.php 2 Jul 2007 20:01:16 -0000 1.2 --- radiocast_player.php 17 Sep 2007 07:24:30 -0000 1.2.2.1 *************** *** 466,477 **** if( empty($url_station) ) { ! $url_station = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id . '&player_mode=' . $player_mode . '&stream_mode=' . $stream_mode); ! //$url_station = append_sid(this_rc_mxurl("radiocast_mode=radiocast_station&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode)); } ! $url_media = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'media' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode)); ! $url_real = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'real' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode)); ! $url_forced = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . 'forced' . "&block_mode=" . $block_mode)); ! $url_window = append_sid($module_root_path . "radiocast." . $phpEx . "?radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode . "&block_mode=" . 'true'); $template->assign_vars(array( --- 466,477 ---- if( empty($url_station) ) { ! //$url_station = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id . '&player_mode=' . $player_mode . '&stream_mode=' . $stream_mode); ! $url_station = append_sid(this_rc_mxurl("radiocast_mode=radiocast_station&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode, true)); } ! $url_media = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'media' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, true)); ! $url_real = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'real' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, true)); ! $url_forced = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . 'forced' . "&block_mode=" . $block_mode, true)); ! $url_window = append_sid($module_root_path . "radiocast." . $phpEx . "?radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode . "&block_mode=" . 'true', true); $template->assign_vars(array( |
|
From: OryNider <ory...@us...> - 2007-09-17 07:24:35
|
Update of /cvsroot/mxbb/mx_radiocast/radiocast_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3785/radiocast_mod Modified Files: Tag: core28x radiocast_common.php Log Message: This is the upgrade for mxBB 2.8.1 :D Index: radiocast_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast_mod/radiocast_common.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** radiocast_common.php 30 Aug 2007 03:49:01 -0000 1.2 --- radiocast_common.php 17 Sep 2007 07:24:31 -0000 1.2.2.1 *************** *** 119,123 **** 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', ! 'RADIOCAST_VERSION' => '1' . $radiocast_config['radiocast_version'], 'RADIOCAST_COPYRIGHT' => $radiocast_module_copyright, 'L_INDEX' => '<<', --- 119,123 ---- 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', ! 'RADIOCAST_VERSION' => '1.' . $radiocast_config['radiocast_version'], 'RADIOCAST_COPYRIGHT' => $radiocast_module_copyright, 'L_INDEX' => '<<', |
|
From: OryNider <ory...@us...> - 2007-09-17 07:22:27
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2753 Added Files: db_upgrade.php Log Message: db upgrade file added. --- NEW FILE: db_upgrade.php --- <?php /** * * @package mxBB Portal Module - mx_radiocast * @version $Id: db_upgrade.php,v 1.1 2007/09/17 07:22:18 orynider Exp $ * @copyright (c) 2002-2006 [Markus, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; $sql = array(); // // Precheck // if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "radiocast_config" ) ) { // // Upgrade checks // $upgrade_101 = 0; // // validate before 1.01 // $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "radiocast_config WHERE config_name = 'show_index_subcats'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_101 = 1; } $message = "<b>Upgrading!</b><br/><br/>"; if ( $upgrade_101 == 1 ) { $message .= "<b>Upgrading to v. 1.0.1...</b><br/><br/>"; $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('show_index_subcats', '1')"; $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast_cat ADD cat_parent mediumint(8) UNSIGNED NOT NULL DEFAULT '0' AFTER cat_id"; $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast_cat ADD cat_type tinyint NOT NULL DEFAULT '0' AFTER cat_parent"; $sql[] = "UPDATE ". $mx_table_prefix ."radiocast_config SET config_value = '0.1' WHERE config_name = 'radiocast_version'"; } else { $message .= "<b>Nothing to upgrade...</b><br/><br/>"; } $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 ); } else { // // If not installed // $message = "<b>Module is not installed...and thus cannot be upgraded ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> |
|
From: OryNider <ory...@us...> - 2007-09-17 07:20:30
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1570/admin Modified Files: radiocast_cat_body.tpl radiocast_cat_new_body.tpl Log Message: This will add subcategories to mx radiocast.. Index: radiocast_cat_new_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin/radiocast_cat_new_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radiocast_cat_new_body.tpl 6 Jun 2007 23:04:05 -0000 1.1 --- radiocast_cat_new_body.tpl 17 Sep 2007 07:20:25 -0000 1.2 *************** *** 4,7 **** --- 4,9 ---- <form action="{S_RADIOCAST_ACTION}" method="post"> + {CAT_PARENT} + {CAT_TYPE} <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> Index: radiocast_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/templates/subSilver/admin/radiocast_cat_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radiocast_cat_body.tpl 6 Jun 2007 23:04:05 -0000 1.1 --- radiocast_cat_body.tpl 17 Sep 2007 07:20:24 -0000 1.2 *************** *** 6,14 **** <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" colspan="4">{L_RADIOCAST_CAT_TITLE}</th> </tr> <!-- BEGIN catrow --> <tr> ! <td class="{catrow.COLOR}" width="60%" height="25"><span class="gen">{catrow.TITLE}<br /></span><span class="gensmall">{catrow.DESC}</span></td> <td class="{catrow.COLOR}" align="center"><span class="genmed"><a href="{catrow.S_MOVE_UP}">{L_MOVE_UP}</a><br /><a href="{catrow.S_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> --- 6,15 ---- <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <tr> ! <th class="thHead" height="25" colspan="5">{L_RADIOCAST_CAT_TITLE}</th> </tr> <!-- BEGIN catrow --> <tr> ! <td colspan="{catrow.COLSPAN}" class="{catrow.COLOR}" width="60%" height="25"><span class="gen">{catrow.TITLE}<br /></span><span class="gensmall">{catrow.DESC}</span></td> ! {catrow.ADD_SC} <td class="{catrow.COLOR}" align="center"><span class="genmed"><a href="{catrow.S_MOVE_UP}">{L_MOVE_UP}</a><br /><a href="{catrow.S_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> *************** *** 20,24 **** <!-- END catrow --> <tr> ! <td class="catBottom" align="center" height="28" colspan="4"><input type="hidden" value="new" name="mode" /><input name="submit" type="submit" value="{L_CREATE_CATEGORY}" class="liteoption"></td> </tr> </table> --- 21,25 ---- <!-- END catrow --> <tr> ! <td class="catBottom" align="center" height="28" colspan="5"><form action="{S_RADIOCAST_ACTION}" method="post"><input type="hidden" value="new" name="mode" /><input name="submit" type="submit" value="{L_CREATE_RADIOCAST}" class="liteoption"></form><form action="{S_RADIOCAST_ACTION}&newcat" method="post"><input type="hidden" value="newcat" name="mode" /><input name="submit" type="submit" value="{L_CREATE_CATEGORY}" class="liteoption"></td> </tr> </table> |
|
From: OryNider <ory...@us...> - 2007-09-17 07:20:29
|
Update of /cvsroot/mxbb/mx_radiocast/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1570 Modified Files: radiocast_index_body.tpl Log Message: This will add subcategories to mx radiocast.. Index: radiocast_index_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/templates/subSilver/radiocast_index_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radiocast_index_body.tpl 6 Jun 2007 23:04:11 -0000 1.1 --- radiocast_index_body.tpl 17 Sep 2007 07:20:25 -0000 1.2 *************** *** 7,11 **** <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /> ! </span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a href="{U_MUSIC}" class="nav">{L_MUSIC}</a></span></td> </tr> </table> --- 7,12 ---- <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /> ! </span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a> {NAV_SEP} <a href="{U_MUSIC}" class="nav">{L_MUSIC}</a> {SUBCAT_NAV}</span> ! </td> </tr> </table> *************** *** 73,77 **** </tr> <tr> ! <td class="catLeft" colspan="4" height="28"><span class="cattitle">{L_PUBLIC_CATS}</span></td> </tr> <!-- BEGIN catrow --> --- 74,78 ---- </tr> <tr> ! <td class="catLeft" colspan="4" height="28"><span class="cattitle">{L_PUBLIC_CATS} {SUBCAT_NAV}</span></td> </tr> <!-- BEGIN catrow --> *************** *** 79,83 **** <td class="row1" height="50"><span class="forumlink"> <a href="{catrow.U_VIEW_CAT}" class="forumlink">{catrow.CAT_TITLE}</a><br /> </span> <span class="genmed">{catrow.CAT_DESC}<br /> ! </span><span class="gensmall">{catrow.L_MODERATORS} {catrow.MODERATORS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.CAT_VIEWS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.STATIONS}</span></td> --- 80,84 ---- <td class="row1" height="50"><span class="forumlink"> <a href="{catrow.U_VIEW_CAT}" class="forumlink">{catrow.CAT_TITLE}</a><br /> </span> <span class="genmed">{catrow.CAT_DESC}<br /> ! </span><span class="gensmall">{catrow.L_MODERATORS} {catrow.MODERATORS} <!-- BEGIN subcat_link -->{subcat_link.SUBCATS}<!-- END subcat_link --></span></td> <td class="row2" align="center"><span class="gensmall">{catrow.CAT_VIEWS}</span></td> <td class="row2" align="center"><span class="gensmall">{catrow.STATIONS}</span></td> |
|
From: OryNider <ory...@us...> - 2007-09-17 07:20:14
|
Update of /cvsroot/mxbb/mx_radiocast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1080 Modified Files: lang_admin.php lang_main.php Log Message: This will add subcategories to mx radiocast.. Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/language/lang_english/lang_main.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lang_main.php 2 Jul 2007 20:01:32 -0000 1.2 --- lang_main.php 17 Sep 2007 07:20:00 -0000 1.3 *************** *** 22,25 **** --- 22,26 ---- $lang['Last_Station'] = 'Last Station'; $lang['Public_Categories'] = 'Public Categories'; + $lang['RadioCast_sub_categories'] = 'Sub-categories'; $lang['No_Stations'] = 'No Station'; $lang['Top_Stations'] = 'Top Stations'; Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/language/lang_english/lang_admin.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_admin.php 6 Jun 2007 23:03:56 -0000 1.1 --- lang_admin.php 17 Sep 2007 07:20:00 -0000 1.2 *************** *** 18,22 **** // setlocale(LC_ALL, "en"); ! $lang['display_most_posts'] = "Display most posts"; $lang['display_random_posts'] = "Display random posts"; $lang['display_top_ranked'] = "Display top ranked"; --- 18,22 ---- // setlocale(LC_ALL, "en"); ! $lang['display_most_posts'] = "Display most posts"; $lang['display_random_posts'] = "Display random posts"; $lang['display_top_ranked'] = "Display top ranked"; *************** *** 98,101 **** --- 98,103 ---- $lang['Category_deleted'] = 'This category has been deleted successfully'; $lang['Category_changed_order'] = 'This category has been changed order successfully'; + $lang['Create_radiocast'] = 'Create new radio'; + $lang['Create_sub_radio'] = 'Create sub-radio'; // |
|
From: OryNider <ory...@us...> - 2007-09-17 07:19:50
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv960 Modified Files: db_install.php radiocast.php Log Message: This will add subcategories to mx radiocast.. Index: radiocast.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radiocast.php 6 Jun 2007 23:03:45 -0000 1.1 --- radiocast.php 17 Sep 2007 07:19:37 -0000 1.2 *************** *** 169,176 **** */ $sql = "SELECT c.*, COUNT(s.station_id) AS count FROM ". RADIOCAST_CAT_TABLE ." AS c LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id ! WHERE cat_id <> 0 GROUP BY cat_id ORDER BY cat_order ASC"; --- 169,206 ---- */ + $cat_id = $_POST['c'] ? $_POST['c'] : ( $_GET['c'] ? $_GET['c'] : 0 ); + $cat_where = "cat_parent = $cat_id"; + + if ($cat_id != 0) + { + $sql = "SELECT cat_id,cat_title + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_id = $cat_id"; + if ( $result = $db->sql_query($sql) ) + { + $thiscat_parent = array(); + $thiscat_parent = $db->sql_fetchrow($result); + + $template->assign_vars(array( + 'U_VIEW_CAT_PARENT' => append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])), + 'SUBCAT_NAV' => ' ' . $lang['Nav_Separator'] . ' <a class="nav" href="' . append_sid(this_rc_mxurl("c=" . $thiscat_parent['cat_id'])) . '">' . $thiscat_parent['cat_title'] . '</a>', + 'CAT_PARENT_TITLE' => $thiscat_parent['cat_title'], + 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss&c=" . $thiscat_parent['cat_id'] . "&sid=" . $userdata['session_id'], true)), + 'CAT_PARENT' => $thiscat_parent['cat_id']) + ); + } + } + else + { + $template->assign_vars(array( + 'U_RSS' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_rss" . "&sid=" . $userdata['session_id'], true)) + )); + + } + $sql = "SELECT c.*, COUNT(s.station_id) AS count FROM ". RADIOCAST_CAT_TABLE ." AS c LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id ! WHERE $cat_where GROUP BY cat_id ORDER BY cat_order ASC"; *************** *** 251,343 **** // ------------------------------------------ ! if ($catrows[$i]['count'] == 0) ! { ! // ! // Oh, this category is empty ! // ! $last_station_info = $lang['No_Stations']; ! $u_last_station = ''; ! $last_station_title = ''; ! } ! else ! { ! // ---------------------------- ! // Check Station Approval ! // ---------------------------- ! ! if(($catrows[$i]['cat_approval'] == RADIOCAST_ADMIN) or ($catrows[$i]['cat_approval'] == RADIOCAST_MOD)) { ! $station_approval_sql = 'AND s.station_approval = 1'; // station Approval ON } else { ! $station_approval_sql = ''; // station Approval OFF ! } - // ---------------------------- - // OK, we may do a query now... - // ---------------------------- ! $sql = "SELECT s.station_id, s.station_title, s.station_singer, s.station_user_id, s.station_username, s.station_time, s.station_cat_id, u.user_id, u.username ! FROM ". RADIOCAST_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id ! WHERE s.station_cat_id = '". $catrows[$i]['cat_id'] ."' $station_approval_sql ! ORDER BY s.station_time DESC ! LIMIT 1"; ! if ( !$result = $db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not get last station information', '', __LINE__, __FILE__, $sql); ! } ! $lastrow = $db->sql_fetchrow($result); - // ---------------------------- - // Write the Date - // ---------------------------- ! $last_station_info = create_date($board_config['default_dateformat'], $lastrow['station_time'], $board_config['board_timezone']); ! $last_station_info .= '<br />'; - // ---------------------------- - // Write username of last poster - // ---------------------------- ! if( ($lastrow['user_id'] == RADIOCAST_GUEST) or ($lastrow['username'] == '') ) ! { ! $last_station_info .= ($lastrow['station_username'] == '') ? $lang['Guest'] : $lastrow['station_username']; ! } ! else ! { ! $last_station_info .= $lang['Poster'] .': <a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $lastrow['user_id']) .'">'. $lastrow['username'] .'</a>'; ! } - // ---------------------------- - // Write the last station's title. - // Truncate it if it's too long - // ---------------------------- ! if( !isset($radiocast_config['last_station_title_length']) ) ! { ! $radiocast_config['last_station_title_length'] = 25; ! } ! $lastrow['station_title'] = $lastrow['station_title']; ! if (strlen($lastrow['station_title']) > $radiocast_config['last_station_title_length']) ! { ! $lastrow['station_title'] = substr($lastrow['station_title'], 0, $radiocast_config['last_station_title_length']) . '...'; ! } ! $last_station_info .= '<br />'. $lang['Station_Title'] .': <a href="'; ! $last_station_info .= append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $lastrow['station_id'])) .'">' ; ! $last_station_info .= $lastrow['station_title'] .'</a>'; ! } ! // END of Last Station // ------------------------------------------ --- 281,430 ---- // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) ! { ! if ($catrows[$i]['count'] == 0) { ! // ! // Oh, this category is empty ! // ! $last_station_info = $lang['No_Stations']; ! $u_last_station = ''; ! $last_station_title = ''; } else { ! // ---------------------------- ! // Check Station Approval ! // ---------------------------- + if(($catrows[$i]['cat_approval'] == RADIOCAST_ADMIN) or ($catrows[$i]['cat_approval'] == RADIOCAST_MOD)) + { + $station_approval_sql = 'AND s.station_approval = 1'; // station Approval ON + } + else + { + $station_approval_sql = ''; // station Approval OFF + } ! // ---------------------------- ! // OK, we may do a query now... ! // ---------------------------- + $sql = "SELECT s.station_id, s.station_title, s.station_singer, s.station_user_id, s.station_username, s.station_time, s.station_cat_id, u.user_id, u.username + FROM ". RADIOCAST_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id + WHERE s.station_cat_id = '". $catrows[$i]['cat_id'] ."' $station_approval_sql + ORDER BY s.station_time DESC + LIMIT 1"; + if ( !$result = $db->sql_query($sql) ) + { + mx_message_die(GENERAL_ERROR, 'Could not get last station information', '', __LINE__, __FILE__, $sql); + } + $lastrow = $db->sql_fetchrow($result); ! // ---------------------------- ! // Write the Date ! // ---------------------------- ! $last_station_info = create_date($board_config['default_dateformat'], $lastrow['station_time'], $board_config['board_timezone']); + $last_station_info .= '<br />'; ! // ---------------------------- ! // Write username of last poster ! // ---------------------------- + if( ($lastrow['user_id'] == RADIOCAST_GUEST) or ($lastrow['username'] == '') ) + { + $last_station_info .= ($lastrow['station_username'] == '') ? $lang['Guest'] : $lastrow['station_username']; + } + else + { + $last_station_info .= $lang['Poster'] .': <a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $lastrow['user_id']) .'">'. $lastrow['username'] .'</a>'; + } ! // ---------------------------- ! // Write the last station's title. ! // Truncate it if it's too long ! // ---------------------------- ! if( !isset($radiocast_config['last_station_title_length']) ) ! { ! $radiocast_config['last_station_title_length'] = 25; ! } ! $lastrow['station_title'] = $lastrow['station_title']; ! if (strlen($lastrow['station_title']) > $radiocast_config['last_station_title_length']) ! { ! $lastrow['station_title'] = substr($lastrow['station_title'], 0, $radiocast_config['last_station_title_length']) . '...'; ! } ! $last_station_info .= '<br />'. $lang['Station_Title'] .': <a href="'; ! $last_station_info .= append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $lastrow['station_id'])) .'">' ; + $last_station_info .= $lastrow['station_title'] .'</a>'; + } + // END of Last Station + } + else + { + // this is a parent category + $sc_sql = "SELECT * + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = " . $catrows[$i]['cat_id'] . " + GROUP BY cat_id + ORDER BY cat_order ASC"; + + if ( !($sc_result = $db->sql_query($sc_sql)) ) + { + message_die(GENERAL_ERROR, 'Could not query sub categories', '', __LINE__, __FILE__, $sql); + } + + $sql_count = "SELECT count(cat_id) as count + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = " . $catrows[$i]['cat_id']; + if ( ($result_count = $db->sql_query($sql_count)) ) + { + $subcat_count = $db->sql_fetchrow($result_count); + $subcat_count = $subcat_count['count'] . " sub catagories"; + } + else + { + $subcat_count = ""; + } + + $subcats = '<br /><span class="gensmall"><b>' . $lang['RadioCast_sub_categories'] . ':</b><br />'; + while ( $subcatrow = $db->sql_fetchrow($sc_result) ) + { + $subcats .= ' - <a class="gensmall" href="' . append_sid(this_rc_mxurl('radiocast_mode=radiocast_cat&cat_id='. $subcatrow['cat_id'])) . '">' . $subcatrow['cat_title'] . '</a><br />'; + } + $subcats .= '</span><br />'; + + $template->assign_block_vars('catrow', array( + 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_index&c=". $catrows[$i]['cat_id'])), + 'CAT_TITLE' => $catrows[$i]['cat_title'], + 'CAT_DESC' => $catrows[$i]['cat_desc'], + 'SONGS' => $subcat_count, + 'CAT_VIEWS' => $catrows[$i]['cat_views'], + 'L_MODERATORS' => $l_moderators, + 'L_ALL_CAT_PICS' => $lang['Category_pics'], + 'L_ALL_CAT_SONGS' => $lang['Category_stations'], + 'MODERATORS' => $moderators_list, + 'LAST_SONG_INFO' => $last_station_info) + ); + + if ($radiocast_config['show_index_subcats'] == 1) + { + $template->assign_block_vars('catrow.subcat_link', array( + 'L_SUBCATS' => $lang['RadioCast_sub_categories'], + 'SUBCATS' => $subcats) + ); + } + } // ------------------------------------------ *************** *** 345,358 **** // ------------------------------------------ ! $template->assign_block_vars('catrow', array( ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=". $catrows[$i]['cat_id'])), ! 'CAT_TITLE' => $catrows[$i]['cat_title'], ! 'CAT_DESC' => $catrows[$i]['cat_desc'], ! 'CAT_VIEWS' => $catrows[$i]['cat_views'], ! 'L_MODERATORS' => $l_moderators, ! 'MODERATORS' => $moderators_list, ! 'STATIONS' => $catrows[$i]['count'], ! 'LAST_STATION_INFO' => $last_station_info) ! ); } // END of Categories Index --- 432,448 ---- // ------------------------------------------ ! if ($catrows[$i]['cat_type'] == 0) ! { ! $template->assign_block_vars('catrow', array( ! 'U_VIEW_CAT' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_cat&cat_id=". $catrows[$i]['cat_id'])), ! 'CAT_TITLE' => $catrows[$i]['cat_title'], ! 'CAT_DESC' => $catrows[$i]['cat_desc'], ! 'CAT_VIEWS' => $catrows[$i]['cat_views'], ! 'L_MODERATORS' => $l_moderators, ! 'MODERATORS' => $moderators_list, ! 'STATIONS' => $catrows[$i]['count'], ! 'LAST_STATION_INFO' => $last_station_info) ! ); ! } } // END of Categories Index *************** *** 465,470 **** // We may do query now // ! ! if ($allowed_cat != '') { $sql = "SELECT s.station_id, s.station_title, s.station_desc, s.station_singer, s.station_user_id, s.station_user_ip, s.station_username, s.station_time, s.station_cat_id, s.station_view_count, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment --- 555,559 ---- // We may do query now // ! if ( ($allowed_cat != '') && ($radiocast_config['top'] > '0') ) { $sql = "SELECT s.station_id, s.station_title, s.station_desc, s.station_singer, s.station_user_id, s.station_user_ip, s.station_username, s.station_time, s.station_cat_id, s.station_view_count, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment *************** *** 483,497 **** } ! $topstationrow = array(); while( $row = $db->sql_fetchrow($result) ) { ! $topstationrow[] = $row; } ! if (count($topstationrow) > 0) { ! for ($i = 0; $i < count($topstationrow); $i += $radiocast_config['rows_per_page']) { $template->assign_block_vars('top_stations', array()); --- 572,586 ---- } ! $topsongrow = array(); while( $row = $db->sql_fetchrow($result) ) { ! $topsongrow[] = $row; } ! if (count($topsongrow) > 0) { ! for ($i = 0; $i < count($topsongrow); $i += $radiocast_config['rows_per_page']) { $template->assign_block_vars('top_stations', array()); *************** *** 499,549 **** for ($j = $i; $j < ($i + $radiocast_config['rows_per_page']); $j++) { ! if( $j >= count($topstationrow) ) { break; } ! if(!$topstationrow[$j]['rating']) { ! $topstationrow[$j]['rating'] = $lang['Not_rated']; } else { ! $topstationrow[$j]['rating'] = round($topstationrow[$j]['rating'], 2); } $template->assign_block_vars('top_stations.top_row', array( ! 'U_STATION' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topstationrow[$j]['station_id'])), ! 'DESC' => $topstationrow[$j]['station_desc'] ) ); ! if( ($topstationrow[$j]['user_id'] == RADIOCAST_GUEST) or ($topstationrow[$j]['username'] == '') ) { ! $top_poster = ($topstationrow[$j]['station_username'] == '') ? $lang['Guest'] : $topstationrow[$j]['station_username']; } else { ! $top_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topstationrow[$j]['user_id']) .'">'. $topstationrow[$j]['username'] .'</a>'; } $template->assign_block_vars('top_stations.top_detail', array( ! 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['station_title'] . '</a>', ! ! 'SINGER' => $topstationrow[$j]['station_singer'], 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, ! 'TIME' => create_date($board_config['default_dateformat'], $topstationrow[$j]['station_time'], $board_config['board_timezone']), ! ! 'VIEW' => $topstationrow[$j]['station_view_count'], ! 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['rating'] . '</a>' ) : '', ! 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $topstationrow[$j]['station_id'])) . '">' . $topstationrow[$j]['comments'] . '</a>' ) : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($topstationrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($topstationrow[$j]['station_user_ip']) .'</a><br />' : '' ) ); --- 588,636 ---- for ($j = $i; $j < ($i + $radiocast_config['rows_per_page']); $j++) { ! if( $j >= count($topsongrow) ) { break; } ! if(!$topsongrow[$j]['rating']) { ! $topsongrow[$j]['rating'] = $lang['Not_rated']; } else { ! $topsongrow[$j]['rating'] = round($topsongrow[$j]['rating'], 2); } $template->assign_block_vars('top_stations.top_row', array( ! 'U_SONG' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])), ! 'DESC' => $topsongrow[$j]['station_desc'] ) ); ! if( ($topsongrow[$j]['user_id'] == RADIOCAST_GUEST) or ($topsongrow[$j]['username'] == '') ) { ! $top_poster = ($topsongrow[$j]['station_username'] == '') ? $lang['Guest'] : $topsongrow[$j]['station_username']; } else { ! $top_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topsongrow[$j]['user_id']) .'">'. $topsongrow[$j]['username'] .'</a>'; } $template->assign_block_vars('top_stations.top_detail', array( ! 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['station_title'] . '</a>', ! 'SINGER' => $topsongrow[$j]['station_singer'], 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, + 'TIME' => create_date($board_config['default_dateformat'], $topsongrow[$j]['station_time'], $board_config['board_timezone']), ! 'VIEW' => $topsongrow[$j]['station_view_count'], ! 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['rating'] . '</a>' ) : '', ! 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['comments'] . '</a>' ) : '', ! 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($topsongrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($topsongrow[$j]['station_user_ip']) .'</a><br />' : '' ) ); *************** *** 551,554 **** --- 638,773 ---- } } + else if ( ($mode == 'radiocast_index') && !isset($_GET['c']) ) + { + $sql = "SELECT c.*, COUNT(s.station_id) AS count + FROM ". RADIOCAST_CAT_TABLE ." AS c + LEFT JOIN ". RADIOCAST_TABLE ." AS s ON c.cat_id = s.station_cat_id + WHERE cat_id <> 0 + GROUP BY cat_id + ORDER BY cat_order ASC"; + if( !($result = $db->sql_query($sql)) ) + { + mx_message_die(GENERAL_ERROR, 'Could not query categories list', '', __LINE__, __FILE__, $sql); + } + + $catsrow = array(); + + while( $row = $db->sql_fetchrow($result) ) + { + $radiocast_user_access = radiocast_user_access($row['cat_id'], $row, 1, 0, 0, 0, 0, 0); // VIEW + if ($radiocast_user_access['view'] == 1) + { + $catsrow[] = $row; + } + } + + for ($i = 0; $i < count($catsrow); $i++) + { + // -------------------------------- + // Build allowed category-list (for recent stations after here) + // -------------------------------- + + $allowed_cat .= ($allowed_cat == '') ? $catsrow[$i]['cat_id'] : ',' . $catsrow[$i]['cat_id']; + } + + if ( ($allowed_cat != '') && ($radiocast_config['top'] > '0') ) + { + $sql = "SELECT s.station_id, s.station_title, s.station_desc, s.station_singer, s.station_user_id, s.station_user_ip, s.station_username, s.station_time, s.station_cat_id, s.station_view_count, u.user_id, u.username, r.rate_station_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment + FROM ". RADIOCAST_TABLE ." AS s + LEFT JOIN ". USERS_TABLE ." AS u ON s.station_user_id = u.user_id + LEFT JOIN ". RADIOCAST_CAT_TABLE ." AS ct ON s.station_cat_id = ct.cat_id + LEFT JOIN ". RADIOCAST_RATE_TABLE ." AS r ON s.station_id = r.rate_station_id + LEFT JOIN ". RADIOCAST_COMMENT_TABLE ." AS c ON s.station_id = c.comment_station_id + WHERE s.station_cat_id IN ($allowed_cat) AND ( s.station_approval = 1 OR ct.cat_approval = 0 ) + GROUP BY s.station_id + ORDER BY $sort_method DESC + LIMIT $station_limit"; + if( !($result = $db->sql_query($sql)) ) + { + mx_message_die(GENERAL_ERROR, 'Could not query top stations information', '', __LINE__, __FILE__, $sql); + } + + $topsongrow = array(); + + while( $row = $db->sql_fetchrow($result) ) + { + $topsongrow[] = $row; + } + + + if (count($topsongrow) > 0) + { + for ($i = 0; $i < count($topsongrow); $i += $radiocast_config['rows_per_page']) + { + $template->assign_block_vars('top_stations', array()); + + for ($j = $i; $j < ($i + $radiocast_config['rows_per_page']); $j++) + { + if( $j >= count($topsongrow) ) + { + break; + } + + if(!$topsongrow[$j]['rating']) + { + $topsongrow[$j]['rating'] = $lang['Not_rated']; + } + else + { + $topsongrow[$j]['rating'] = round($topsongrow[$j]['rating'], 2); + } + + $template->assign_block_vars('top_stations.top_row', array( + 'U_SONG' => append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])), + 'DESC' => $topsongrow[$j]['station_desc'] + ) + ); + + if( ($topsongrow[$j]['user_id'] == RADIOCAST_GUEST) or ($topsongrow[$j]['username'] == '') ) + { + $top_poster = ($topsongrow[$j]['station_username'] == '') ? $lang['Guest'] : $topsongrow[$j]['station_username']; + } + else + { + $top_poster = '<a href="'. append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topsongrow[$j]['user_id']) .'">'. $topsongrow[$j]['username'] .'</a>'; + } + + $template->assign_block_vars('top_stations.top_detail', array( + 'TITLE' => '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['station_title'] . '</a>', + 'SINGER' => $topsongrow[$j]['station_singer'], + + 'RADIO_FRONT_IMG' => $mx_images['radio_front'], + + 'POSTER' => $top_poster, + 'TIME' => create_date($board_config['default_dateformat'], $topsongrow[$j]['station_time'], $board_config['board_timezone']), + + 'VIEW' => $topsongrow[$j]['station_view_count'], + + 'RATING' => ($radiocast_config['rate'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_rate&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['rating'] . '</a>' ) : '', + + 'COMMENTS' => ($radiocast_config['comment'] == 1) ? ( '<a href="'. append_sid(this_rc_mxurl("radiocast_mode=radiocast_comment&station_id=". $topsongrow[$j]['station_id'])) . '">' . $topsongrow[$j]['comments'] . '</a>' ) : '', + + 'IP' => ($userdata['user_level'] == ADMIN) ? $lang['IP_Address'] . ': <a href="http://www.nic.com/cgi-bin/whois.cgi?query=' . decode_ip($topsongrow[$j]['station_user_ip']) . '" target="_blank">' . decode_ip($topsongrow[$j]['station_user_ip']) .'</a><br />' : '' + ) + ); + } + } + } + else + { + // + // No stations Found + // + $template->assign_block_vars('no_stations', array()); + } + } + else + { + // + // No stations Found + // + $template->assign_block_vars('no_stations', array()); + } + } else { Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_install.php 6 Jun 2007 23:03:43 -0000 1.1 --- db_install.php 17 Sep 2007 07:19:37 -0000 1.2 *************** *** 8,12 **** * */ ! ini_set( 'display_errors', '1' ); define( 'IN_PORTAL', true ); --- 8,12 ---- * */ ! //ini_set( 'display_errors', '1' ); define( 'IN_PORTAL', true ); *************** *** 33,37 **** } ! $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; --- 33,37 ---- } ! $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; *************** *** 108,111 **** --- 108,113 ---- $sql[] = "CREATE TABLE ". $mx_table_prefix . "radiocast_cat ( cat_id mediumint(8) UNSIGNED NOT NULL auto_increment, + cat_parent mediumint(8) UNSIGNED NOT NULL DEFAULT '0', + cat_type tinyint NOT NULL DEFAULT '0', cat_title varchar(255) NOT NULL, cat_desc text, |
|
From: OryNider <ory...@us...> - 2007-09-17 07:19:44
|
Update of /cvsroot/mxbb/mx_radiocast/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv960/admin Modified Files: admin_radio_auth.php admin_radio_cat.php admin_radio_cfg.php admin_radio_ext.php Log Message: This will add subcategories to mx radiocast.. Index: admin_radio_ext.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_ext.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_radio_ext.php 6 Jun 2007 23:03:47 -0000 1.1 --- admin_radio_ext.php 17 Sep 2007 07:19:37 -0000 1.2 *************** *** 93,97 **** if ( isset( $HTTP_POST_VARS['submit'] ) ) { ! $message = $lang['radiocast_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_radiocast_config'], "<a href=\"" . append_sid( "admin_radio_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } --- 93,97 ---- if ( isset( $HTTP_POST_VARS['submit'] ) ) { ! $message = $lang['radiocast_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_radiocast_config'], "<a href=\"" . append_sid( "admin_radio_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } Index: admin_radio_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_cat.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_radio_cat.php 6 Jun 2007 23:03:46 -0000 1.1 --- admin_radio_cat.php 17 Sep 2007 07:19:36 -0000 1.2 *************** *** 21,26 **** // Let's set the root dir for phpBB // ! $module_root_path = '../'; ! $mx_root_path = '../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); --- 21,26 ---- // Let's set the root dir for phpBB // ! $module_root_path = './../'; ! $mx_root_path = './../../../'; $radiocast_root_path = $module_root_path . 'radiocast_mod/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); *************** *** 29,33 **** // ! // Get general radiocast information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); --- 29,33 ---- // ! // Get general music information // include($radiocast_root_path . 'radiocast_common.'.$phpEx); *************** *** 104,107 **** --- 104,108 ---- 'L_DELETE' => $lang['Delete'], 'S_MODE' => 'new', + 'L_CREATE_RADIOCAST' => !empty($lang['Create_radiocast']) ? $lang['Create_radiocast'] : 'Create radiocast', 'L_CREATE_CATEGORY' => $lang['Create_category']) ); *************** *** 109,116 **** $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." ORDER BY cat_order ASC"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } while ($row = $db->sql_fetchrow($result)) --- 110,118 ---- $sql = "SELECT * FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = 0 ORDER BY cat_order ASC"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } while ($row = $db->sql_fetchrow($result)) *************** *** 121,128 **** --- 123,145 ---- for( $i = 0; $i < count($catrow); $i++ ) { + if ($catrow[$i]['cat_type'] != 0) + { + $colspan = 1; + $add_sc = "<td class=\"" . (($i % 2) ? 'row1' : 'row2') . "\" align=\"center\">" . + "<form action=\"" . append_sid("admin_radio_cat.$phpEx") . "\" method=\"post\"><input type=\"hidden\" value=\"new\" name=\"mode\" /><input type=\"hidden\" value=\"" . $catrow[$i]['cat_id'] . "\" name=\"cat_parent\"><input name=\"submit\" type=\"submit\" value=\"" . $lang['Create_sub_radio'] . "\" class=\"liteoption\">" . + "</form></td>"; + } + else + { + $colspan = 2; + $add_sc = ""; + } + $template->assign_block_vars('catrow', array( 'COLOR' => ($i % 2) ? 'row1' : 'row2', 'TITLE' => $catrow[$i]['cat_title'], 'DESC' => $catrow[$i]['cat_desc'], + 'COLSPAN' => $colspan, + 'ADD_SC' => $add_sc, 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_id=" . $catrow[$i]['cat_id']), 'S_MOVE_DOWN' => append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_id=" . $catrow[$i]['cat_id']), *************** *** 131,134 **** --- 148,182 ---- ) ); + + if ($catrow[$i]['cat_type'] != 0) + { + // this is a parent category + $sc_sql = "SELECT * + FROM ". RADIOCAST_CAT_TABLE ." + WHERE cat_parent = " . $catrow[$i]['cat_id'] . " + GROUP BY cat_id + ORDER BY cat_order ASC"; + + if ( !($sc_result = $db->sql_query($sc_sql)) ) + { + mx_mx_message_die(GENERAL_ERROR, 'Could not query sub categories', '', __LINE__, __FILE__, $sc_sql); + } + + while ($subcatrow = $db->sql_fetchrow($sc_result)) + { + $template->assign_block_vars('catrow', array( + 'COLSPAN' => 2, + 'ADD_SC' => '', + 'COLOR' => ($i % 2) ? 'row1' : 'row2', + 'TITLE' => " " . $subcatrow['cat_title'], + 'DESC' => " " . preg_replace("#\n#", "<br> ", $subcatrow['cat_desc']), + 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=-15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), + 'S_MOVE_UP' => append_sid("admin_radio_cat.$phpEx?action=move&move=15&cat_parent=" . $catrow[$i]['cat_id'] . "&cat_id=" . $subcatrow['cat_id']), + 'S_EDIT_ACTION' => append_sid("admin_radio_cat.$phpEx?action=edit&cat_id=" . $subcatrow['cat_id']), + 'S_DELETE_ACTION' => append_sid("admin_radio_cat.$phpEx?action=delete&cat_id=" . $subcatrow['cat_id']) + ) + ); + } + } } *************** *** 148,152 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) == 0 ) --- 196,200 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } if( $db->sql_numrows($result) == 0 ) *************** *** 247,251 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } --- 295,299 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } *************** *** 268,272 **** } ! $select_to = '<select name="target"><option value="0">'. $lang['Delete_all_STATIONS'] .'</option>'; for ($i = 0; $i < count($catrow); $i++) { --- 316,320 ---- } ! $select_to = '<select name="target"><option value="0">'. $lang['Delete_all_stations'] .'</option>'; for ($i = 0; $i < count($catrow); $i++) { *************** *** 310,314 **** // Return a message... ! $message = $lang['Category_changed_order'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 358,362 ---- // Return a message... ! $message = $lang['Category_changed_order'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 316,322 **** } } ! else ! { ! if( $HTTP_POST_VARS['mode'] == 'new' ) { if( !isset($HTTP_POST_VARS['cat_title']) ) --- 364,370 ---- } } ! else ! { ! if(( $HTTP_POST_VARS['mode'] == 'new' ) || ($HTTP_POST_VARS['mode'] == 'newcat')) { if( !isset($HTTP_POST_VARS['cat_title']) ) *************** *** 326,329 **** --- 374,391 ---- ); + if ( !isset($HTTP_POST_VARS['cat_parent']) ) + { + $cat_parent = ""; + } + else + { + $cat_parent = "<input type=\"hidden\" value=\"" . $HTTP_POST_VARS['cat_parent'] . "\" name=\"cat_parent\">"; + } + + if ($HTTP_POST_VARS['mode'] == 'newcat') + { + $cat_type = "<input type=\"hidden\" value=\"1\" name=\"cat_type\">"; + } + $template->assign_vars(array( 'L_RADIOCAST_CAT_TITLE' => $lang['RadioCast_Categories_Title'], *************** *** 364,367 **** --- 426,432 ---- 'S_ADMIN' => RADIOCAST_ADMIN, + 'CAT_PARENT' => $cat_parent, + 'CAT_TYPE' => $cat_type, + 'L_PANEL_TITLE' => $lang['Create_category']) ); *************** *** 374,377 **** --- 439,460 ---- { // Get posting variables + + if ( !isset($HTTP_POST_VARS['cat_parent']) ) + { + $cat_parent = 0; + } + else + { + $cat_parent = intval($HTTP_POST_VARS['cat_parent']); + } + if ( !isset($HTTP_POST_VARS['cat_type']) ) + { + $cat_type = 0; + } + else + { + $cat_type = 1; + } + $cat_title = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['cat_title']))); $cat_desc = str_replace("\'", "''", trim($HTTP_POST_VARS['cat_desc'])); *************** *** 390,394 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast Categories information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); --- 473,477 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music Categories information', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); *************** *** 397,409 **** // Here we insert a new row into the db ! $sql = "INSERT INTO ". RADIOCAST_CAT_TABLE ." (cat_title, cat_desc, cat_order, cat_view_level, cat_upload_level, cat_rate_level, cat_comment_level, cat_edit_level, cat_delete_level, cat_approval) ! VALUES ('$cat_title', '$cat_desc', '$cat_order', '$view_level', '$upload_level', '$rate_level', '$comment_level', '$edit_level', '$delete_level', '$cat_approval')"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not create new radiocast Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['New_category_created'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 480,492 ---- // Here we insert a new row into the db ! $sql = "INSERT INTO ". RADIOCAST_CAT_TABLE ." (cat_title, cat_desc, cat_order, cat_view_level, cat_upload_level, cat_rate_level, cat_comment_level, cat_edit_level, cat_delete_level, cat_approval, cat_parent, cat_type) ! VALUES ('$cat_title', '$cat_desc', '$cat_order', '$view_level', '$upload_level', '$rate_level', '$comment_level', '$edit_level', '$delete_level', '$cat_approval', $cat_parent, $cat_type)"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not create new music Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['New_category_created'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 430,438 **** if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not update this radiocast Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['Category_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 513,521 ---- if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not update this music Category', '', __LINE__, __FILE__, $sql); } // Return a message... ! $message = $lang['Category_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 445,476 **** if( $target == 0 ) // Delete All { ! // Get file information of all STATIONS in this category ! $sql = "SELECT station_id, station_filename, station_cat_id FROM ". RADIOCAST_TABLE ." ! WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query radiocast information', '', __LINE__, __FILE__, $sql); } ! $stationrow = array(); while( $row = $db ->sql_fetchrow($result) ) { ! $stationrow[] = $row; ! $station_id_row[] = $row['station_id']; } ! if( count($stationrow) != 0 ) // if this category is not empty { ! // Delete all physical station ! for ($i = 0; $i < count($stationrow); $i++) { ! @unlink('../' . RADIOCAST_UPLOAD_PATH . $stationrow[$i]['station_filename']); } ! $station_id_sql = '(' . implode(',', $station_id_row) . ')'; // Delete all related ratings $sql = "DELETE FROM ". RADIOCAST_RATE_TABLE ." ! WHERE rate_station_id IN ". $station_id_sql; if(!$result = $db->sql_query($sql)) { --- 528,559 ---- if( $target == 0 ) // Delete All { ! // Get file information of all stations in this category ! $sql = "SELECT song_id, song_filename, song_cat_id FROM ". RADIOCAST_TABLE ." ! WHERE song_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not query music information', '', __LINE__, __FILE__, $sql); } ! $songrow = array(); while( $row = $db ->sql_fetchrow($result) ) { ! $songrow[] = $row; ! $song_id_row[] = $row['song_id']; } ! if( count($songrow) != 0 ) // if this category is not empty { ! // Delete all physical song ! for ($i = 0; $i < count($songrow); $i++) { ! @unlink('../' . RADIOCAST_UPLOAD_PATH . $songrow[$i]['song_filename']); } ! $song_id_sql = '(' . implode(',', $song_id_row) . ')'; // Delete all related ratings $sql = "DELETE FROM ". RADIOCAST_RATE_TABLE ." ! WHERE rate_song_id IN ". $song_id_sql; if(!$result = $db->sql_query($sql)) { *************** *** 480,484 **** // Delete all related comments $sql = "DELETE FROM ". RADIOCAST_COMMENT_TABLE ." ! WHERE comment_station_id IN ". $station_id_sql; if(!$result = $db->sql_query($sql)) { --- 563,567 ---- // Delete all related comments $sql = "DELETE FROM ". RADIOCAST_COMMENT_TABLE ." ! WHERE comment_song_id IN ". $song_id_sql; if(!$result = $db->sql_query($sql)) { *************** *** 486,495 **** } ! // Delete station entries in db $sql = "DELETE FROM ". RADIOCAST_TABLE ." ! WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not delete station entries in the DB', '', __LINE__, __FILE__, $sql); } } --- 569,578 ---- } ! // Delete song entries in db $sql = "DELETE FROM ". RADIOCAST_TABLE ." ! WHERE song_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not delete song entries in the DB', '', __LINE__, __FILE__, $sql); } } *************** *** 507,511 **** // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 590,594 ---- // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); *************** *** 514,519 **** { $sql = "UPDATE ". RADIOCAST_TABLE ." ! SET station_cat_id = '$target' ! WHERE station_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { --- 597,602 ---- { $sql = "UPDATE ". RADIOCAST_TABLE ." ! SET song_cat_id = '$target' ! WHERE song_cat_id = '$cat_id'"; if(!$result = $db->sql_query($sql)) { *************** *** 533,537 **** // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); --- 616,620 ---- // Return a message... ! $message = $lang['Category_deleted'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_category'], "<a href=\"" . append_sid("admin_radio_cat.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); mx_message_die(GENERAL_MESSAGE, $message); Index: admin_radio_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_auth.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_radio_auth.php 6 Jun 2007 23:03:45 -0000 1.1 --- admin_radio_auth.php 17 Sep 2007 07:19:36 -0000 1.2 *************** *** 206,210 **** // okay, return a message... ! $message = $lang['RadioCast_Auth_successfully'] . '<br /><br />' . sprintf($lang['Click_return_radiocast_auth'], '<a href="' . append_sid("admin_radio_auth.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); --- 206,210 ---- // okay, return a message... ! $message = $lang['RadioCast_Auth_successfully'] . '<br /><br />' . sprintf($lang['Click_return_radiocast_auth'], '<a href="' . append_sid("admin_radio_auth.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); Index: admin_radio_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/admin/admin_radio_cfg.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_radio_cfg.php 6 Jun 2007 23:03:46 -0000 1.1 --- admin_radio_cfg.php 17 Sep 2007 07:19:36 -0000 1.2 *************** *** 85,89 **** if( isset($HTTP_POST_VARS['submit']) ) { ! $message = $lang['RadioCast_config_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_config'], "<a href=\"" . append_sid("admin_radio_cfg.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid("index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); --- 85,89 ---- if( isset($HTTP_POST_VARS['submit']) ) { ! $message = $lang['RadioCast_config_updated'] . "<br /><br />" . sprintf($lang['Click_return_radiocast_config'], "<a href=\"" . append_sid("admin_radio_cfg.$phpEx") . "\">", "</a>") . "<br /><br />" . sprintf($lang['Click_return_admin_index'], "<a href=\"" . append_sid($mx_root_path . "admin/index.$phpEx?pane=right") . "\">", "</a>"); message_die(GENERAL_MESSAGE, $message); |
|
From: OryNider <ory...@us...> - 2007-09-17 07:19:44
|
Update of /cvsroot/mxbb/mx_radiocast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv960/includes Modified Files: radiocast_player.php radiocast_stream.php Log Message: This will add subcategories to mx radiocast.. Index: radiocast_stream.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_stream.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radiocast_stream.php 2 Jul 2007 20:01:16 -0000 1.2 --- radiocast_stream.php 17 Sep 2007 07:19:37 -0000 1.3 *************** *** 16,45 **** } - // - // Let's include some stuff... - // - $phpEx = substr(strrchr(__FILE__, '.'), 1); - - if ( !defined('TEMPLATE_ROOT_PATH') ) - { - include_once($mx_root_path . 'common.' . $phpEx); - - // - // Start session management - // - $mx_user->init($user_ip, PAGE_INDEX); - // - // End session management - // - } - - $radiocast_root_path = $module_root_path . 'radiocast_mod/'; - // - // Get general music information - // - include_once($radiocast_root_path . 'radiocast_common.'.$phpEx); - // ------------------------------------ // Check the request --- 16,21 ---- *************** *** 187,191 **** // Establish response headers header("HTTP/1.0 200 OK"); ! header("Content-Type: audio/x-mpeg, audio/x-mpeg-3, audio/mpeg3"); header("Content-Transfer-Encoding: binary"); --- 163,167 ---- // Establish response headers header("HTTP/1.0 200 OK"); ! header("Content-Type: audio/x-mpeg, audio/x-mpeg-4, audio/mpeg4"); header("Content-Transfer-Encoding: binary"); Index: radiocast_player.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/includes/radiocast_player.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radiocast_player.php 2 Jul 2007 20:01:16 -0000 1.2 --- radiocast_player.php 17 Sep 2007 07:19:37 -0000 1.3 *************** *** 466,477 **** if( empty($url_station) ) { ! $url_station = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id . '&player_mode=' . $player_mode . '&stream_mode=' . $stream_mode); ! //$url_station = append_sid(this_rc_mxurl("radiocast_mode=radiocast_station&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode)); } ! $url_media = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'media' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode)); ! $url_real = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'real' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode)); ! $url_forced = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . 'forced' . "&block_mode=" . $block_mode)); ! $url_window = append_sid($module_root_path . "radiocast." . $phpEx . "?radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode . "&block_mode=" . 'true'); $template->assign_vars(array( --- 466,477 ---- if( empty($url_station) ) { ! //$url_station = append_sid($module_root_path . 'radiocast.' . $phpEx . '?radiocast_mode=radiocast_station&station_id=' . $station_id . '&player_mode=' . $player_mode . '&stream_mode=' . $stream_mode); ! $url_station = append_sid(this_rc_mxurl("radiocast_mode=radiocast_station&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode, true)); } ! $url_media = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'media' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, true)); ! $url_real = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . 'real' . "&stream_mode=" . $stream_mode . "&block_mode=" . $block_mode, true)); ! $url_forced = append_sid(this_rc_mxurl("radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . 'forced' . "&block_mode=" . $block_mode, true)); ! $url_window = append_sid($module_root_path . "radiocast." . $phpEx . "?radiocast_mode=radiocast_player&station_id=" . $station_id . "&player_mode=" . $player_mode . "&stream_mode=" . $stream_mode . "&block_mode=" . 'true', true); $template->assign_vars(array( |
|
From: OryNider <ory...@us...> - 2007-09-17 07:19:44
|
Update of /cvsroot/mxbb/mx_radiocast/radiocast_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv960/radiocast_mod Modified Files: radiocast_common.php Log Message: This will add subcategories to mx radiocast.. Index: radiocast_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast_mod/radiocast_common.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radiocast_common.php 30 Aug 2007 03:49:01 -0000 1.2 --- radiocast_common.php 17 Sep 2007 07:19:37 -0000 1.3 *************** *** 119,123 **** 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', ! 'RADIOCAST_VERSION' => '1' . $radiocast_config['radiocast_version'], 'RADIOCAST_COPYRIGHT' => $radiocast_module_copyright, 'L_INDEX' => '<<', --- 119,123 ---- 'NAV_SEP' => $lang['Nav_Separator'], 'NAV_DOT' => '•', ! 'RADIOCAST_VERSION' => '1.' . $radiocast_config['radiocast_version'], 'RADIOCAST_COPYRIGHT' => $radiocast_module_copyright, 'L_INDEX' => '<<', |
|
From: OryNider <ory...@us...> - 2007-09-17 02:19:41
|
Update of /cvsroot/mxbb/mx_music/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19306 Modified Files: Tag: core28x music_cat_xs.tpl music_media_cat_body.tpl music_pic_cat_body.tpl Log Message: this fix will prevent autoplay with FF in categories. Index: music_pic_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/subSilver/music_pic_cat_body.tpl,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** music_pic_cat_body.tpl 12 Sep 2007 23:50:02 -0000 1.2.2.1 --- music_pic_cat_body.tpl 17 Sep 2007 02:19:26 -0000 1.2.2.2 *************** *** 175,179 **** document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="false"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); --- 175,179 ---- document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="0"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); Index: music_cat_xs.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/subSilver/music_cat_xs.tpl,v retrieving revision 1.7.2.1 retrieving revision 1.7.2.2 diff -C2 -d -r1.7.2.1 -r1.7.2.2 *** music_cat_xs.tpl 12 Sep 2007 23:50:01 -0000 1.7.2.1 --- music_cat_xs.tpl 17 Sep 2007 02:19:26 -0000 1.7.2.2 *************** *** 194,198 **** document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="false"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); --- 194,198 ---- document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="0"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); Index: music_media_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/subSilver/music_media_cat_body.tpl,v retrieving revision 1.2.2.1 retrieving revision 1.2.2.2 diff -C2 -d -r1.2.2.1 -r1.2.2.2 *** music_media_cat_body.tpl 12 Sep 2007 23:50:02 -0000 1.2.2.1 --- music_media_cat_body.tpl 17 Sep 2007 02:19:26 -0000 1.2.2.2 *************** *** 151,155 **** document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="false"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); --- 151,155 ---- document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="0"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); |
|
From: OryNider <ory...@us...> - 2007-09-17 02:18:51
|
Update of /cvsroot/mxbb/mx_music/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18826 Modified Files: music_cat_xs.tpl music_media_cat_body.tpl music_pic_cat_body.tpl Log Message: this fix will prevent autoplay with FF in categories. Index: music_pic_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/subSilver/music_pic_cat_body.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_pic_cat_body.tpl 10 Sep 2007 22:28:44 -0000 1.3 --- music_pic_cat_body.tpl 17 Sep 2007 02:18:32 -0000 1.4 *************** *** 175,179 **** document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="false"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); --- 175,179 ---- document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="0"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); Index: music_cat_xs.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/subSilver/music_cat_xs.tpl,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** music_cat_xs.tpl 13 Sep 2007 11:26:29 -0000 1.9 --- music_cat_xs.tpl 17 Sep 2007 02:18:28 -0000 1.10 *************** *** 194,198 **** document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="false"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); --- 194,198 ---- document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="0"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); Index: music_media_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_music/templates/subSilver/music_media_cat_body.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** music_media_cat_body.tpl 13 Sep 2007 11:26:29 -0000 1.4 --- music_media_cat_body.tpl 17 Sep 2007 02:18:28 -0000 1.5 *************** *** 151,155 **** document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="false"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); --- 151,155 ---- document.write (' ShowDisplay="1"'); document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="0"'); document.write (' AutoSize="0"'); document.write (' width="{song_detail.WIDTH}"'); |
|
From: Jon O. <jon...@us...> - 2007-09-15 21:04:01
|
Update of /cvsroot/mxbb/core/install/schemas In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5322 Modified Files: mysql_schema_install.sql Log Message: minor mistake... Index: mysql_schema_install.sql =================================================================== RCS file: /cvsroot/mxbb/core/install/schemas/mysql_schema_install.sql,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** mysql_schema_install.sql 15 Sep 2007 20:44:05 -0000 1.45 --- mysql_schema_install.sql 15 Sep 2007 21:03:56 -0000 1.46 *************** *** 406,410 **** INSERT INTO mx_table_module VALUES("30", "phpBB2 Blocks", "modules/mx_phpbb2blocks/", "mxBB Portal phpBB2 blocks", "", "mxBB Core Module", "Original mxBB <i>phpBB2 Blocks</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\"> The mxBB Development Team</a>"); INSERT INTO mx_table_module VALUES("40", "Navigation Menu", "modules/mx_navmenu/", "mxBB Portal Site Navigation", "", "mxBB Core Module", "Original mxBB <i>Navigation Menu</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); ! INSERT INTO mx_table_module VALUES("50", "Users and Groups", "modules/mx_users/", "Users and Group adminCP", "", "mxBB Core Module", "Based on original phpBB <i>Admin Tool MODs</i> by Adam Alkins, Omar Ramadan & wGEric :: Adapted for mxBB by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); # --- 406,410 ---- INSERT INTO mx_table_module VALUES("30", "phpBB2 Blocks", "modules/mx_phpbb2blocks/", "mxBB Portal phpBB2 blocks", "", "mxBB Core Module", "Original mxBB <i>phpBB2 Blocks</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\"> The mxBB Development Team</a>"); INSERT INTO mx_table_module VALUES("40", "Navigation Menu", "modules/mx_navmenu/", "mxBB Portal Site Navigation", "", "mxBB Core Module", "Original mxBB <i>Navigation Menu</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); ! INSERT INTO mx_table_module VALUES("50", "Users and Groups", "modules/mx_users/", "Users and Group adminCP", "1", "mxBB Core Module", "Based on original phpBB <i>Admin Tool MODs</i> by Adam Alkins, Omar Ramadan & wGEric :: Adapted for mxBB by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); # |
|
From: Jon O. <jon...@us...> - 2007-09-15 20:44:08
|
Update of /cvsroot/mxbb/core/install/schemas In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28867 Modified Files: mysql_schema_install.sql Log Message: Updated with new users and group module Index: mysql_schema_install.sql =================================================================== RCS file: /cvsroot/mxbb/core/install/schemas/mysql_schema_install.sql,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** mysql_schema_install.sql 13 Sep 2007 09:13:02 -0000 1.44 --- mysql_schema_install.sql 15 Sep 2007 20:44:05 -0000 1.45 *************** *** 405,410 **** INSERT INTO mx_table_module VALUES("20", "Textblocks", "modules/mx_textblocks/", "mxBB Portal Textblocks", "", "mxBB Core Module", "Original mxBB <i>Textblocks</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); INSERT INTO mx_table_module VALUES("30", "phpBB2 Blocks", "modules/mx_phpbb2blocks/", "mxBB Portal phpBB2 blocks", "", "mxBB Core Module", "Original mxBB <i>phpBB2 Blocks</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\"> The mxBB Development Team</a>"); ! INSERT INTO mx_table_module VALUES("50", "Navigation Menu", "modules/mx_navmenu/", "mxBB Portal Site Navigation", "", "mxBB Core Module", "Original mxBB <i>Navigation Menu</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); ! # --- 405,410 ---- INSERT INTO mx_table_module VALUES("20", "Textblocks", "modules/mx_textblocks/", "mxBB Portal Textblocks", "", "mxBB Core Module", "Original mxBB <i>Textblocks</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); INSERT INTO mx_table_module VALUES("30", "phpBB2 Blocks", "modules/mx_phpbb2blocks/", "mxBB Portal phpBB2 blocks", "", "mxBB Core Module", "Original mxBB <i>phpBB2 Blocks</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\"> The mxBB Development Team</a>"); ! INSERT INTO mx_table_module VALUES("40", "Navigation Menu", "modules/mx_navmenu/", "mxBB Portal Site Navigation", "", "mxBB Core Module", "Original mxBB <i>Navigation Menu</i> module by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); ! INSERT INTO mx_table_module VALUES("50", "Users and Groups", "modules/mx_users/", "Users and Group adminCP", "", "mxBB Core Module", "Based on original phpBB <i>Admin Tool MODs</i> by Adam Alkins, Omar Ramadan & wGEric :: Adapted for mxBB by <a href=\"http://www.mxbb.net\" target=\"_blank\">Jon</a>"); # |
|
From: Jon O. <jon...@us...> - 2007-09-15 20:36:23
|
Update of /cvsroot/mxbb/core/modules/mx_users/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25781 Added Files: admin_groupcp.php admin_groups.php admin_users.php Log Message: forgotten files --- NEW FILE: admin_groups.php --- <?php /*************************************************************************** * admin_groups.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: admin_groups.php,v 1.1 2007/09/15 20:36:19 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); $module['phpbb2admin']['2_phpbb2admin_Groups'] = 'modules/mx_phpbb2admin/admin/' . $filename; return; } $mx_root_path = './../../../'; $module_root_path = "./../"; $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } if ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) || isset($HTTP_GET_VARS[POST_GROUPS_URL]) ) { $group_id = ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) ) ? intval($HTTP_POST_VARS[POST_GROUPS_URL]) : intval($HTTP_GET_VARS[POST_GROUPS_URL]); } else { $group_id = 0; } if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; $mode = htmlspecialchars($mode); } else { $mode = ''; } if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) ) { // // Ok they are editing a group or creating a new group // $template->set_filenames(array( 'body' => 'admin/group_edit_body.tpl') ); if ( isset($HTTP_POST_VARS['edit']) ) { // // They're editing. Grab the vars. // switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE . " AND group_id = $group_id"; break; case 'phpbb3': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_name NOT IN ('BOTS', 'GUESTS') AND group_id = $group_id"; break; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); } if ( !($group_info = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); } $mode = 'editgroup'; $template->assign_block_vars('group_edit', array()); } else if ( isset($HTTP_POST_VARS['new']) ) { $group_info = array ( 'group_name' => '', 'group_description' => '', 'group_moderator' => '', 'group_type' => GROUP_OPEN); $group_open = ' checked="checked"'; $mode = 'newgroup'; } // // Ok, now we know everything about them, let's show the page. // if ($group_info['group_moderator'] != '') { $sql = "SELECT user_id, username FROM " . USERS_TABLE . " WHERE user_id = " . $group_info['group_moderator']; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql); } $group_moderator = $row['username']; } else { $group_moderator = ''; } $group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : ''; $group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : ''; $group_hidden = ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : ''; $s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="' . POST_GROUPS_URL . '" value="' . $group_id . '" />'; $template->assign_vars(array( 'GROUP_NAME' => $group_info['group_name'], 'GROUP_DESCRIPTION' => $group_info['group_description'], 'GROUP_MODERATOR' => $group_moderator, 'L_GROUP_TITLE' => $lang['Group_administration'], 'L_GROUP_EDIT_DELETE' => ( isset($HTTP_POST_VARS['new']) ) ? $lang['New_group'] : $lang['Edit_group'], 'L_GROUP_NAME' => $lang['group_name'], 'L_GROUP_DESCRIPTION' => $lang['group_description'], 'L_GROUP_MODERATOR' => $lang['group_moderator'], 'L_FIND_USERNAME' => $lang['Find_username'], 'L_GROUP_STATUS' => $lang['group_status'], 'L_GROUP_OPEN' => $lang['group_open'], 'L_GROUP_CLOSED' => $lang['group_closed'], 'L_GROUP_HIDDEN' => $lang['group_hidden'], 'L_GROUP_DELETE' => $lang['group_delete'], 'L_GROUP_DELETE_CHECK' => $lang['group_delete_check'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_DELETE_MODERATOR' => $lang['delete_group_moderator'], 'L_DELETE_MODERATOR_EXPLAIN' => $lang['delete_moderator_explain'], 'L_YES' => $lang['Yes'], 'U_SEARCH_USER' => mx_append_sid("../search.$phpEx?mode=searchuser"), 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, 'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED, 'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN, 'S_GROUP_OPEN_CHECKED' => $group_open, 'S_GROUP_CLOSED_CHECKED' => $group_closed, 'S_GROUP_HIDDEN_CHECKED' => $group_hidden, 'S_GROUP_ACTION' => mx_append_sid("admin_groups.$phpEx"), 'S_HIDDEN_FIELDS' => $s_hidden_fields) ); $template->pparse('body'); } else if ( isset($HTTP_POST_VARS['group_update']) ) { // // Ok, they are submitting a group, let's save the data based on if it's new or editing // if ( isset($HTTP_POST_VARS['group_delete']) ) { // // Reset User Moderator Level // // Is Group moderating a forum ? $sql = "SELECT auth_mod FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $group_id; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select auth_access', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if (intval($row['auth_mod']) == 1) { // Yes, get the assigned users and update their Permission if they are no longer moderator of one of the forums $sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " WHERE group_id = " . $group_id; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select user_group', '', __LINE__, __FILE__, $sql); } $rows = $db->sql_fetchrowset($result); for ($i = 0; $i < count($rows); $i++) { $sql = "SELECT g.group_id FROM " . AUTH_ACCESS_TABLE . " a, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug WHERE (a.auth_mod = 1) AND (g.group_id = a.group_id) AND (a.group_id = ug.group_id) AND (g.group_id = ug.group_id) AND (ug.user_id = " . intval($rows[$i]['user_id']) . ") AND (ug.group_id <> " . $group_id . ")"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain moderator permissions', '', __LINE__, __FILE__, $sql); } if ($db->sql_numrows($result) == 0) { $sql = "UPDATE " . USERS_TABLE . " SET user_level = " . USER . " WHERE user_level = " . MOD . " AND user_id = " . intval($rows[$i]['user_id']); if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update moderator permissions', '', __LINE__, __FILE__, $sql); } } } } // // Delete Group // $sql = "DELETE FROM " . GROUPS_TABLE . " WHERE group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . USER_GROUP_TABLE . " WHERE group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update user_group', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update auth_access', '', __LINE__, __FILE__, $sql); } $message = $lang['Deleted_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else { $group_type = isset($HTTP_POST_VARS['group_type']) ? intval($HTTP_POST_VARS['group_type']) : GROUP_OPEN; $group_name = isset($HTTP_POST_VARS['group_name']) ? htmlspecialchars(trim($HTTP_POST_VARS['group_name'])) : ''; $group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : ''; $group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : ''; $delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false; if ( $group_name == '' ) { mx_message_die(GENERAL_MESSAGE, $lang['No_group_name']); } else if ( $group_moderator == '' ) { mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } $this_userdata = mx_get_userdata($group_moderator, true); $group_moderator = $this_userdata['user_id']; if ( !$group_moderator ) { mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } if( $mode == "editgroup" ) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE . " AND group_id = $group_id"; break; case 'phpbb3': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_name NOT IN ('BOTS', 'GUESTS') AND group_id = $group_id"; break; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); } if( !($group_info = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); } if ( $group_info['group_moderator'] != $group_moderator ) { if ( $delete_old_moderator ) { $sql = "DELETE FROM " . USER_GROUP_TABLE . " WHERE user_id = " . $group_info['group_moderator'] . " AND group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); } } $sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " WHERE user_id = $group_moderator AND group_id = $group_id"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Failed to obtain current group moderator info', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result)) ) { $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) VALUES (" . $group_id . ", " . $group_moderator . ", 0)"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); } } } $sql = "UPDATE " . GROUPS_TABLE . " SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator WHERE group_id = $group_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); } $message = $lang['Updated_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; mx_message_die(GENERAL_MESSAGE, $message); } else if( $mode == 'newgroup' ) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user) VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0')"; break; case 'phpbb3': $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator) VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator)"; break; } if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not insert new group', '', __LINE__, __FILE__, $sql); } $new_group_id = $db->sql_nextid(); $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) VALUES ($new_group_id, $group_moderator, 0)"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql); } $message = $lang['Added_new_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; mx_message_die(GENERAL_MESSAGE, $message); } else { mx_message_die(GENERAL_MESSAGE, $lang['No_group_action']); } } } else { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE . " ORDER BY group_name ASC"; break; case 'phpbb3': $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " WHERE group_name NOT IN ('BOTS', 'GUESTS') ORDER BY group_name ASC"; break; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain group list', '', __LINE__, __FILE__, $sql); } $select_list = ''; if ( $row = $db->sql_fetchrow($result) ) { $select_list .= '<select name="' . POST_GROUPS_URL . '">'; do { $select_list .= '<option value="' . $row['group_id'] . '">' . $row['group_name'] . '</option>'; } while ( $row = $db->sql_fetchrow($result) ); $select_list .= '</select>'; } $template->set_filenames(array( 'body' => 'admin/group_select_body.tpl') ); $template->assign_vars(array( 'L_GROUP_TITLE' => $lang['Group_administration'], 'L_GROUP_EXPLAIN' => $lang['Group_admin_explain'], 'L_GROUP_SELECT' => $lang['Select_group'], 'L_LOOK_UP' => $lang['Look_up_group'], 'L_CP_UP' => $lang['Look_up_groupcp'], 'L_CREATE_NEW_GROUP' => $lang['New_group'], 'S_GROUP_ACTION' => mx_append_sid("admin_groups.$phpEx"), 'S_GROUPCP_ACTION' => mx_append_sid("admin_groupcp.$phpEx"), 'S_GROUP_SELECT' => $select_list) ); if ( $select_list != '' ) { $template->assign_block_vars('select_box', array()); } $template->pparse('body'); } include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- NEW FILE: admin_groupcp.php --- <?php /*************************************************************************** * admin_groupcp.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: admin_groupcp.php,v 1.1 2007/09/15 20:36:19 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. [...1308 lines suppressed...] 'S_USERGROUP_ACTION' => mx_append_sid("admin_groupcp.$phpEx"), 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'GROUP_LIST_SELECT' => $s_group_list, 'GROUP_PENDING_SELECT' => $s_pending_groups, 'GROUP_MEMBER_SELECT' => $s_member_groups) ); $template->pparse('user'); } else { mx_message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); } } include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- NEW FILE: admin_users.php --- <?php /*************************************************************************** * admin_users.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: admin_users.php,v 1.1 2007/09/15 20:36:19 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); //$module['phpbb2admin']['Users'] = 'modules/mx_phpbb2admin/admin/' . $filename; return; } $mx_root_path = './../../../'; $module_root_path = "./../"; $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); include_once($mx_root_path . 'includes/shared/phpbb2/includes/bbcode.'.$phpEx); include_once($mx_root_path . 'includes/shared/phpbb2/includes/functions_post.'.$phpEx); include_once($mx_root_path . 'includes/shared/phpbb2/includes/functions_selects.'.$phpEx); include_once($mx_root_path . 'includes/shared/phpbb2/includes/functions_validate.'.$phpEx); $html_entities_match = array('#<#', '#>#'); $html_entities_replace = array('<', '>'); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } // // Set mode // if( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { $mode = ( isset( $HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; $mode = htmlspecialchars($mode); } else { $mode = ''; } $action = (isset($HTTP_POST_VARS['id'])) && !empty($HTTP_POST_VARS['id']) ? 'do_update' : 'do_add'; // // Begin program // if ( $mode == 'edit' || $mode == 'add' || $mode == 'save' && ( isset($HTTP_GET_VARS['username']) || isset($HTTP_POST_VARS['username']) ) ) { // // Ok, the profile has been modified and submitted, let's update // if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) ) { $user_id = intval($HTTP_POST_VARS['id']); if ($mode == 'edit' && !($this_userdata = mx_get_userdata($user_id))) { mx_message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } if( $HTTP_POST_VARS['deleteuser'] && ( $userdata['user_id'] != $user_id ) ) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT g.group_id FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND g.group_single_user = 1"; break; case 'phpbb3': $sql = "SELECT g.group_id FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND g.group_name IN ('BOTS', 'GUESTS')"; break; } if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if (PORTAL_BACKEND != 'internal') { $sql = "UPDATE " . POSTS_TABLE . " SET poster_id = " . DELETED . ", post_username = '" . str_replace("\\'", "''", addslashes($this_userdata['username'])) . "' WHERE poster_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql); } $sql = "UPDATE " . TOPICS_TABLE . " SET topic_poster = " . DELETED . " WHERE topic_poster = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql); } $sql = "UPDATE " . VOTE_USERS_TABLE . " SET vote_user_id = " . DELETED . " WHERE vote_user_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql); } } $sql = "SELECT group_id FROM " . GROUPS_TABLE . " WHERE group_moderator = $user_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql); } while ( $row_group = $db->sql_fetchrow($result) ) { $group_moderator[] = $row_group['group_id']; } if ( count($group_moderator) ) { $update_moderator_id = implode(', ', $group_moderator); $sql = "UPDATE " . GROUPS_TABLE . " SET group_moderator = " . $userdata['user_id'] . " WHERE group_moderator IN ($update_moderator_id)"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql); } } $sql = "DELETE FROM " . USERS_TABLE . " WHERE user_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . USER_GROUP_TABLE . " WHERE user_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . GROUPS_TABLE . " WHERE group_id = " . $row['group_id']; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } if (PORTAL_BACKEND != 'internal') { $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $row['group_id']; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " WHERE user_id = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . BANLIST_TABLE . " WHERE ban_userid = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql); } } $sql = "DELETE FROM " . SESSIONS_TABLE . " WHERE session_user_id = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete sessions for this user', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . SESSIONS_KEYS_TABLE . " WHERE user_id = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete auto-login keys for this user', '', __LINE__, __FILE__, $sql); } if (PORTAL_BACKEND != 'internal') { $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " WHERE privmsgs_from_userid = $user_id OR privmsgs_to_userid = $user_id"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql); } // This little bit of code directly from the private messaging section. while ( $row_privmsgs = $db->sql_fetchrow($result) ) { $mark_list[] = $row_privmsgs['privmsgs_id']; } if ( count($mark_list) ) { $delete_sql_id = implode(', ', $mark_list); $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . " WHERE privmsgs_text_id IN ($delete_sql_id)"; $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . " WHERE privmsgs_id IN ($delete_sql_id)"; if ( !$db->sql_query($delete_sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql); } if ( !$db->sql_query($delete_text_sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql); } } } $message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . mx_append_sid("admin_userlist.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } $username = ( !empty($HTTP_POST_VARS['username']) ) ? phpBB2::phpbb_clean_username($HTTP_POST_VARS['username']) : ''; $email = ( !empty($HTTP_POST_VARS['email']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['email'] ) )) : ''; $password = ( !empty($HTTP_POST_VARS['password']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password'] ) )) : ''; $password_confirm = ( !empty($HTTP_POST_VARS['password_confirm']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password_confirm'] ) )) : ''; $user_status = ( !empty($HTTP_POST_VARS['user_status']) ) ? intval( $HTTP_POST_VARS['user_status'] ) : 0; } if( isset( $HTTP_POST_VARS['submit'] ) ) { $error = FALSE; if (stripslashes($username) != $this_userdata['username']) { unset($rename_user); if ( stripslashes(strtolower($username)) != strtolower($this_userdata['username']) ) { $result = validate_username($username); if ( $result['error'] ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $result['error_msg']; } else if ( strtolower(str_replace("\\'", "''", $username)) == strtolower($userdata['username']) ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Username_taken']; } } if (!$error) { $username_sql = "username = '" . str_replace("\\'", "''", $username) . "', "; $username_sql_add = "'" . str_replace("\\'", "''", $username) . "'"; $rename_user = $username; // Used for renaming usergroup } } $passwd_sql = ''; if( !empty($password) && !empty($password_confirm) ) { // // Awww, the user wants to change their password, isn't that cute.. // if($password != $password_confirm) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } else { $password = md5($password); $passwd_sql = "user_password = '$password', "; $passwd_sql_add = "'$password'"; } } else if( $password && !$password_confirm ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } else if( !$password && $password_confirm ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } else if( $action == 'do_add' ) // New user must have password { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } // // Update entry in DB // if( !$error ) { $email_sql = "'" . str_replace("\'", "''", $email) . "'"; if ($action == 'do_add') { $sql = "SELECT MAX(user_id) AS total FROM " . USERS_TABLE; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result)) ) { message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); } $user_id = $row['total'] + 1; $sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_password, user_email, user_active, user_regdate) VALUES ($user_id, $username_sql_add, $passwd_sql_add, $email_sql, $user_status, '".time()."')"; } else { $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = $email_sql, user_active = $user_status" . " WHERE user_id = $user_id"; } if( $result = $db->sql_query($sql) ) { if ($action == 'do_update') { if( isset($rename_user) ) { $sql = "UPDATE " . GROUPS_TABLE . " SET group_name = '".str_replace("\'", "''", $rename_user)."' WHERE group_name = '".str_replace("'", "''", $this_userdata['username'] )."'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not rename users group', '', __LINE__, __FILE__, $sql); } } // Delete user session, to prevent the user navigating the forum (if logged in) when disabled if (!$user_status) { $sql = "DELETE FROM " . SESSIONS_TABLE . " WHERE session_user_id = " . $user_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql); } } // We remove all stored login keys since the password has been updated // and change the current one (if applicable) if ( !empty($passwd_sql) ) { $mx_user->session_reset_keys($user_id, $user_ip); } } $message .= $action == 'do_update'? $lang['Admin_user_updated'] : $lang['Admin_user_added']; } else { mx_message_die(GENERAL_ERROR, 'Admin_user_fail', '', __LINE__, __FILE__, $sql); } $message .= '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . mx_append_sid("admin_userlist.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else { $template->set_filenames(array( 'reg_header' => 'error_body.tpl') ); $template->assign_vars(array( 'ERROR_MESSAGE' => $error_msg) ); $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); $username = htmlspecialchars(stripslashes($username)); $email = stripslashes($email); $password = ''; $password_confirm = ''; } } // // SHOW USER // else if( !isset( $HTTP_POST_VARS['submit'] ) && $mode != 'save' ) { if ($mode == 'edit') { if( isset( $HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) { $user_id = ( isset( $HTTP_POST_VARS[POST_USERS_URL]) ) ? intval( $HTTP_POST_VARS[POST_USERS_URL]) : intval( $HTTP_GET_VARS[POST_USERS_URL]); $this_userdata = mx_get_userdata($user_id); if( !$this_userdata ) { mx_message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } } else { //$this_userdata = mx_get_userdata($HTTP_POST_VARS['username'], true); $this_userdata = mx_get_userdata($HTTP_GET_VARS['username'], true); if( !$this_userdata ) { mx_message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } } } else { $this_userdata['user_id'] = '' ; $this_userdata['username'] = 'Enter' ; $this_userdata['user_email'] = 'me@somewhere' ; $this_userdata['user_active'] = '1' ; } // // Now parse and display it as a template // $user_id = $this_userdata['user_id']; $username = $this_userdata['username']; $email = $this_userdata['user_email']; $password = ''; $password_confirm = ''; $user_status = $this_userdata['user_active']; } $s_hidden_fields = '<input type="hidden" name="mode" value="save" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" />'; $s_hidden_fields .= '<input type="hidden" name="id" value="' . $user_id . '" />'; $template->set_filenames(array( "body" => "admin/user_edit_body.tpl") ); $template->assign_vars(array( 'USERNAME' => $username, 'EMAIL' => $email, 'USER_ACTIVE_YES' => ($user_status) ? 'checked="checked"' : '', 'USER_ACTIVE_NO' => (!$user_status) ? 'checked="checked"' : '', 'L_USERNAME' => $lang['Username'], 'L_USER_TITLE' => $lang['User_admin'], 'L_USER_EXPLAIN' => $lang['User_admin_explain'], 'L_NEW_PASSWORD' => $lang['New_password'], 'L_PASSWORD_IF_CHANGED' => $lang['password_if_changed'], 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], 'L_PASSWORD_CONFIRM_IF_CHANGED' => $lang['password_confirm_if_changed'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_SPECIAL' => $lang['User_special'], 'L_SPECIAL_EXPLAIN' => $lang['User_special_explain'], 'L_USER_ACTIVE' => $lang['User_status'], 'L_EMAIL_ADDRESS' => $lang['Email_address'], 'L_DELETE_USER' => $lang['User_delete'], 'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'], 'L_SELECT_RANK' => $lang['Rank_title'], 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_PROFILE_ACTION' => mx_append_sid("admin_users.$phpEx")) ); $template->pparse('body'); } else { // // Default user selection box // $template->set_filenames(array( 'body' => 'admin/user_select_body.tpl') ); $template->assign_vars(array( 'L_USER_TITLE' => $lang['User_admin'], 'L_USER_EXPLAIN' => $lang['User_admin_explain'], 'L_USER_SELECT' => $lang['Select_a_User'], 'L_LOOK_UP' => $lang['Look_up_user'], 'L_FIND_USERNAME' => $lang['Find_username'], 'U_SEARCH_USER' => mx_append_sid("./../search.$phpEx?mode=searchuser"), 'S_USER_ACTION' => mx_append_sid("admin_users.$phpEx"), 'S_USER_SELECT' => $select_list) ); $template->pparse('body'); } include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> |
|
From: Jon O. <jon...@us...> - 2007-09-15 20:35:20
|
Update of /cvsroot/mxbb/mx_phpbb2admin/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25347 Added Files: admin_groupcp.php admin_groups.php admin_users.php Log Message: forgotten files --- NEW FILE: admin_groups.php --- <?php /*************************************************************************** * admin_groups.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: admin_groups.php,v 1.1 2007/09/15 20:35:16 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); $module['phpbb2admin']['2_phpbb2admin_Groups'] = 'modules/mx_phpbb2admin/admin/' . $filename; return; } $mx_root_path = './../../../'; $module_root_path = "./../"; $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } if ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) || isset($HTTP_GET_VARS[POST_GROUPS_URL]) ) { $group_id = ( isset($HTTP_POST_VARS[POST_GROUPS_URL]) ) ? intval($HTTP_POST_VARS[POST_GROUPS_URL]) : intval($HTTP_GET_VARS[POST_GROUPS_URL]); } else { $group_id = 0; } if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; $mode = htmlspecialchars($mode); } else { $mode = ''; } if ( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) ) { // // Ok they are editing a group or creating a new group // $template->set_filenames(array( 'body' => 'admin/group_edit_body.tpl') ); if ( isset($HTTP_POST_VARS['edit']) ) { // // They're editing. Grab the vars. // switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE . " AND group_id = $group_id"; break; case 'phpbb3': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_name NOT IN ('BOTS', 'GUESTS') AND group_id = $group_id"; break; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); } if ( !($group_info = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); } $mode = 'editgroup'; $template->assign_block_vars('group_edit', array()); } else if ( isset($HTTP_POST_VARS['new']) ) { $group_info = array ( 'group_name' => '', 'group_description' => '', 'group_moderator' => '', 'group_type' => GROUP_OPEN); $group_open = ' checked="checked"'; $mode = 'newgroup'; } // // Ok, now we know everything about them, let's show the page. // if ($group_info['group_moderator'] != '') { $sql = "SELECT user_id, username FROM " . USERS_TABLE . " WHERE user_id = " . $group_info['group_moderator']; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain user info for moderator list', '', __LINE__, __FILE__, $sql); } $group_moderator = $row['username']; } else { $group_moderator = ''; } $group_open = ( $group_info['group_type'] == GROUP_OPEN ) ? ' checked="checked"' : ''; $group_closed = ( $group_info['group_type'] == GROUP_CLOSED ) ? ' checked="checked"' : ''; $group_hidden = ( $group_info['group_type'] == GROUP_HIDDEN ) ? ' checked="checked"' : ''; $s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="' . POST_GROUPS_URL . '" value="' . $group_id . '" />'; $template->assign_vars(array( 'GROUP_NAME' => $group_info['group_name'], 'GROUP_DESCRIPTION' => $group_info['group_description'], 'GROUP_MODERATOR' => $group_moderator, 'L_GROUP_TITLE' => $lang['Group_administration'], 'L_GROUP_EDIT_DELETE' => ( isset($HTTP_POST_VARS['new']) ) ? $lang['New_group'] : $lang['Edit_group'], 'L_GROUP_NAME' => $lang['group_name'], 'L_GROUP_DESCRIPTION' => $lang['group_description'], 'L_GROUP_MODERATOR' => $lang['group_moderator'], 'L_FIND_USERNAME' => $lang['Find_username'], 'L_GROUP_STATUS' => $lang['group_status'], 'L_GROUP_OPEN' => $lang['group_open'], 'L_GROUP_CLOSED' => $lang['group_closed'], 'L_GROUP_HIDDEN' => $lang['group_hidden'], 'L_GROUP_DELETE' => $lang['group_delete'], 'L_GROUP_DELETE_CHECK' => $lang['group_delete_check'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_DELETE_MODERATOR' => $lang['delete_group_moderator'], 'L_DELETE_MODERATOR_EXPLAIN' => $lang['delete_moderator_explain'], 'L_YES' => $lang['Yes'], 'U_SEARCH_USER' => mx_append_sid("../search.$phpEx?mode=searchuser"), 'S_GROUP_OPEN_TYPE' => GROUP_OPEN, 'S_GROUP_CLOSED_TYPE' => GROUP_CLOSED, 'S_GROUP_HIDDEN_TYPE' => GROUP_HIDDEN, 'S_GROUP_OPEN_CHECKED' => $group_open, 'S_GROUP_CLOSED_CHECKED' => $group_closed, 'S_GROUP_HIDDEN_CHECKED' => $group_hidden, 'S_GROUP_ACTION' => mx_append_sid("admin_groups.$phpEx"), 'S_HIDDEN_FIELDS' => $s_hidden_fields) ); $template->pparse('body'); } else if ( isset($HTTP_POST_VARS['group_update']) ) { // // Ok, they are submitting a group, let's save the data based on if it's new or editing // if ( isset($HTTP_POST_VARS['group_delete']) ) { // // Reset User Moderator Level // // Is Group moderating a forum ? $sql = "SELECT auth_mod FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $group_id; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select auth_access', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if (intval($row['auth_mod']) == 1) { // Yes, get the assigned users and update their Permission if they are no longer moderator of one of the forums $sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " WHERE group_id = " . $group_id; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select user_group', '', __LINE__, __FILE__, $sql); } $rows = $db->sql_fetchrowset($result); for ($i = 0; $i < count($rows); $i++) { $sql = "SELECT g.group_id FROM " . AUTH_ACCESS_TABLE . " a, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug WHERE (a.auth_mod = 1) AND (g.group_id = a.group_id) AND (a.group_id = ug.group_id) AND (g.group_id = ug.group_id) AND (ug.user_id = " . intval($rows[$i]['user_id']) . ") AND (ug.group_id <> " . $group_id . ")"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain moderator permissions', '', __LINE__, __FILE__, $sql); } if ($db->sql_numrows($result) == 0) { $sql = "UPDATE " . USERS_TABLE . " SET user_level = " . USER . " WHERE user_level = " . MOD . " AND user_id = " . intval($rows[$i]['user_id']); if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update moderator permissions', '', __LINE__, __FILE__, $sql); } } } } // // Delete Group // $sql = "DELETE FROM " . GROUPS_TABLE . " WHERE group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . USER_GROUP_TABLE . " WHERE group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update user_group', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update auth_access', '', __LINE__, __FILE__, $sql); } $message = $lang['Deleted_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else { $group_type = isset($HTTP_POST_VARS['group_type']) ? intval($HTTP_POST_VARS['group_type']) : GROUP_OPEN; $group_name = isset($HTTP_POST_VARS['group_name']) ? htmlspecialchars(trim($HTTP_POST_VARS['group_name'])) : ''; $group_description = isset($HTTP_POST_VARS['group_description']) ? trim($HTTP_POST_VARS['group_description']) : ''; $group_moderator = isset($HTTP_POST_VARS['username']) ? $HTTP_POST_VARS['username'] : ''; $delete_old_moderator = isset($HTTP_POST_VARS['delete_old_moderator']) ? true : false; if ( $group_name == '' ) { mx_message_die(GENERAL_MESSAGE, $lang['No_group_name']); } else if ( $group_moderator == '' ) { mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } $this_userdata = mx_get_userdata($group_moderator, true); $group_moderator = $this_userdata['user_id']; if ( !$group_moderator ) { mx_message_die(GENERAL_MESSAGE, $lang['No_group_moderator']); } if( $mode == "editgroup" ) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE . " AND group_id = $group_id"; break; case 'phpbb3': $sql = "SELECT * FROM " . GROUPS_TABLE . " WHERE group_name NOT IN ('BOTS', 'GUESTS') AND group_id = $group_id"; break; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Error getting group information', '', __LINE__, __FILE__, $sql); } if( !($group_info = $db->sql_fetchrow($result)) ) { mx_message_die(GENERAL_MESSAGE, $lang['Group_not_exist']); } if ( $group_info['group_moderator'] != $group_moderator ) { if ( $delete_old_moderator ) { $sql = "DELETE FROM " . USER_GROUP_TABLE . " WHERE user_id = " . $group_info['group_moderator'] . " AND group_id = " . $group_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); } } $sql = "SELECT user_id FROM " . USER_GROUP_TABLE . " WHERE user_id = $group_moderator AND group_id = $group_id"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Failed to obtain current group moderator info', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result)) ) { $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) VALUES (" . $group_id . ", " . $group_moderator . ", 0)"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group moderator', '', __LINE__, __FILE__, $sql); } } } $sql = "UPDATE " . GROUPS_TABLE . " SET group_type = $group_type, group_name = '" . str_replace("\'", "''", $group_name) . "', group_description = '" . str_replace("\'", "''", $group_description) . "', group_moderator = $group_moderator WHERE group_id = $group_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group', '', __LINE__, __FILE__, $sql); } $message = $lang['Updated_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; mx_message_die(GENERAL_MESSAGE, $message); } else if( $mode == 'newgroup' ) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_single_user) VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '0')"; break; case 'phpbb3': $sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator) VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator)"; break; } if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not insert new group', '', __LINE__, __FILE__, $sql); } $new_group_id = $db->sql_nextid(); $sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending) VALUES ($new_group_id, $group_moderator, 0)"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql); } $message = $lang['Added_new_group'] . '<br /><br />' . sprintf($lang['Click_return_groupsadmin'], '<a href="' . mx_append_sid("admin_groups.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>');; mx_message_die(GENERAL_MESSAGE, $message); } else { mx_message_die(GENERAL_MESSAGE, $lang['No_group_action']); } } } else { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE . " ORDER BY group_name ASC"; break; case 'phpbb3': $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " WHERE group_name NOT IN ('BOTS', 'GUESTS') ORDER BY group_name ASC"; break; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain group list', '', __LINE__, __FILE__, $sql); } $select_list = ''; if ( $row = $db->sql_fetchrow($result) ) { $select_list .= '<select name="' . POST_GROUPS_URL . '">'; do { $select_list .= '<option value="' . $row['group_id'] . '">' . $row['group_name'] . '</option>'; } while ( $row = $db->sql_fetchrow($result) ); $select_list .= '</select>'; } $template->set_filenames(array( 'body' => 'admin/group_select_body.tpl') ); $template->assign_vars(array( 'L_GROUP_TITLE' => $lang['Group_administration'], 'L_GROUP_EXPLAIN' => $lang['Group_admin_explain'], 'L_GROUP_SELECT' => $lang['Select_group'], 'L_LOOK_UP' => $lang['Look_up_group'], 'L_CP_UP' => $lang['Look_up_groupcp'], 'L_CREATE_NEW_GROUP' => $lang['New_group'], 'S_GROUP_ACTION' => mx_append_sid("admin_groups.$phpEx"), 'S_GROUPCP_ACTION' => mx_append_sid("admin_groupcp.$phpEx"), 'S_GROUP_SELECT' => $select_list) ); if ( $select_list != '' ) { $template->assign_block_vars('select_box', array()); } $template->pparse('body'); } include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- NEW FILE: admin_groupcp.php --- <?php /*************************************************************************** * admin_groupcp.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: admin_groupcp.php,v 1.1 2007/09/15 20:35:16 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. [...1308 lines suppressed...] 'S_USERGROUP_ACTION' => mx_append_sid("admin_groupcp.$phpEx"), 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'GROUP_LIST_SELECT' => $s_group_list, 'GROUP_PENDING_SELECT' => $s_pending_groups, 'GROUP_MEMBER_SELECT' => $s_member_groups) ); $template->pparse('user'); } else { mx_message_die(GENERAL_MESSAGE, $lang['No_groups_exist']); } } include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- NEW FILE: admin_users.php --- <?php /*************************************************************************** * admin_users.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: admin_users.php,v 1.1 2007/09/15 20:35:16 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ***************************************************************************/ define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); //$module['phpbb2admin']['Users'] = 'modules/mx_phpbb2admin/admin/' . $filename; return; } $mx_root_path = './../../../'; $module_root_path = "./../"; $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); include_once($mx_root_path . 'includes/shared/phpbb2/includes/bbcode.'.$phpEx); include_once($mx_root_path . 'includes/shared/phpbb2/includes/functions_post.'.$phpEx); include_once($mx_root_path . 'includes/shared/phpbb2/includes/functions_selects.'.$phpEx); include_once($mx_root_path . 'includes/shared/phpbb2/includes/functions_validate.'.$phpEx); $html_entities_match = array('#<#', '#>#'); $html_entities_replace = array('<', '>'); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } // // Set mode // if( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { $mode = ( isset( $HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; $mode = htmlspecialchars($mode); } else { $mode = ''; } $action = (isset($HTTP_POST_VARS['id'])) && !empty($HTTP_POST_VARS['id']) ? 'do_update' : 'do_add'; // // Begin program // if ( $mode == 'edit' || $mode == 'add' || $mode == 'save' && ( isset($HTTP_GET_VARS['username']) || isset($HTTP_POST_VARS['username']) ) ) { // // Ok, the profile has been modified and submitted, let's update // if ( ( $mode == 'save' && isset( $HTTP_POST_VARS['submit'] ) ) ) { $user_id = intval($HTTP_POST_VARS['id']); if ($mode == 'edit' && !($this_userdata = mx_get_userdata($user_id))) { mx_message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } if( $HTTP_POST_VARS['deleteuser'] && ( $userdata['user_id'] != $user_id ) ) { switch (PORTAL_BACKEND) { case 'internal': case 'phpbb2': $sql = "SELECT g.group_id FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND g.group_single_user = 1"; break; case 'phpbb3': $sql = "SELECT g.group_id FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g WHERE ug.user_id = $user_id AND g.group_id = ug.group_id AND g.group_name IN ('BOTS', 'GUESTS')"; break; } if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); if (PORTAL_BACKEND != 'internal') { $sql = "UPDATE " . POSTS_TABLE . " SET poster_id = " . DELETED . ", post_username = '" . str_replace("\\'", "''", addslashes($this_userdata['username'])) . "' WHERE poster_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql); } $sql = "UPDATE " . TOPICS_TABLE . " SET topic_poster = " . DELETED . " WHERE topic_poster = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql); } $sql = "UPDATE " . VOTE_USERS_TABLE . " SET vote_user_id = " . DELETED . " WHERE vote_user_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql); } } $sql = "SELECT group_id FROM " . GROUPS_TABLE . " WHERE group_moderator = $user_id"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql); } while ( $row_group = $db->sql_fetchrow($result) ) { $group_moderator[] = $row_group['group_id']; } if ( count($group_moderator) ) { $update_moderator_id = implode(', ', $group_moderator); $sql = "UPDATE " . GROUPS_TABLE . " SET group_moderator = " . $userdata['user_id'] . " WHERE group_moderator IN ($update_moderator_id)"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql); } } $sql = "DELETE FROM " . USERS_TABLE . " WHERE user_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . USER_GROUP_TABLE . " WHERE user_id = $user_id"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . GROUPS_TABLE . " WHERE group_id = " . $row['group_id']; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } if (PORTAL_BACKEND != 'internal') { $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . " WHERE group_id = " . $row['group_id']; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " WHERE user_id = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . BANLIST_TABLE . " WHERE ban_userid = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql); } } $sql = "DELETE FROM " . SESSIONS_TABLE . " WHERE session_user_id = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete sessions for this user', '', __LINE__, __FILE__, $sql); } $sql = "DELETE FROM " . SESSIONS_KEYS_TABLE . " WHERE user_id = $user_id"; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete auto-login keys for this user', '', __LINE__, __FILE__, $sql); } if (PORTAL_BACKEND != 'internal') { $sql = "SELECT privmsgs_id FROM " . PRIVMSGS_TABLE . " WHERE privmsgs_from_userid = $user_id OR privmsgs_to_userid = $user_id"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql); } // This little bit of code directly from the private messaging section. while ( $row_privmsgs = $db->sql_fetchrow($result) ) { $mark_list[] = $row_privmsgs['privmsgs_id']; } if ( count($mark_list) ) { $delete_sql_id = implode(', ', $mark_list); $delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . " WHERE privmsgs_text_id IN ($delete_sql_id)"; $delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . " WHERE privmsgs_id IN ($delete_sql_id)"; if ( !$db->sql_query($delete_sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql); } if ( !$db->sql_query($delete_text_sql) ) { mx_message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql); } } } $message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . mx_append_sid("admin_userlist.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } $username = ( !empty($HTTP_POST_VARS['username']) ) ? phpBB2::phpbb_clean_username($HTTP_POST_VARS['username']) : ''; $email = ( !empty($HTTP_POST_VARS['email']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['email'] ) )) : ''; $password = ( !empty($HTTP_POST_VARS['password']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password'] ) )) : ''; $password_confirm = ( !empty($HTTP_POST_VARS['password_confirm']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password_confirm'] ) )) : ''; $user_status = ( !empty($HTTP_POST_VARS['user_status']) ) ? intval( $HTTP_POST_VARS['user_status'] ) : 0; } if( isset( $HTTP_POST_VARS['submit'] ) ) { $error = FALSE; if (stripslashes($username) != $this_userdata['username']) { unset($rename_user); if ( stripslashes(strtolower($username)) != strtolower($this_userdata['username']) ) { $result = validate_username($username); if ( $result['error'] ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $result['error_msg']; } else if ( strtolower(str_replace("\\'", "''", $username)) == strtolower($userdata['username']) ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Username_taken']; } } if (!$error) { $username_sql = "username = '" . str_replace("\\'", "''", $username) . "', "; $username_sql_add = "'" . str_replace("\\'", "''", $username) . "'"; $rename_user = $username; // Used for renaming usergroup } } $passwd_sql = ''; if( !empty($password) && !empty($password_confirm) ) { // // Awww, the user wants to change their password, isn't that cute.. // if($password != $password_confirm) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } else { $password = md5($password); $passwd_sql = "user_password = '$password', "; $passwd_sql_add = "'$password'"; } } else if( $password && !$password_confirm ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } else if( !$password && $password_confirm ) { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } else if( $action == 'do_add' ) // New user must have password { $error = TRUE; $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Password_mismatch']; } // // Update entry in DB // if( !$error ) { $email_sql = "'" . str_replace("\'", "''", $email) . "'"; if ($action == 'do_add') { $sql = "SELECT MAX(user_id) AS total FROM " . USERS_TABLE; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); } if ( !($row = $db->sql_fetchrow($result)) ) { message_die(GENERAL_ERROR, 'Could not obtain next user_id information', '', __LINE__, __FILE__, $sql); } $user_id = $row['total'] + 1; $sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_password, user_email, user_active, user_regdate) VALUES ($user_id, $username_sql_add, $passwd_sql_add, $email_sql, $user_status, '".time()."')"; } else { $sql = "UPDATE " . USERS_TABLE . " SET " . $username_sql . $passwd_sql . "user_email = $email_sql, user_active = $user_status" . " WHERE user_id = $user_id"; } if( $result = $db->sql_query($sql) ) { if ($action == 'do_update') { if( isset($rename_user) ) { $sql = "UPDATE " . GROUPS_TABLE . " SET group_name = '".str_replace("\'", "''", $rename_user)."' WHERE group_name = '".str_replace("'", "''", $this_userdata['username'] )."'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Could not rename users group', '', __LINE__, __FILE__, $sql); } } // Delete user session, to prevent the user navigating the forum (if logged in) when disabled if (!$user_status) { $sql = "DELETE FROM " . SESSIONS_TABLE . " WHERE session_user_id = " . $user_id; if ( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, 'Error removing user session', '', __LINE__, __FILE__, $sql); } } // We remove all stored login keys since the password has been updated // and change the current one (if applicable) if ( !empty($passwd_sql) ) { $mx_user->session_reset_keys($user_id, $user_ip); } } $message .= $action == 'do_update'? $lang['Admin_user_updated'] : $lang['Admin_user_added']; } else { mx_message_die(GENERAL_ERROR, 'Admin_user_fail', '', __LINE__, __FILE__, $sql); } $message .= '<br /><br />' . sprintf($lang['Click_return_useradmin'], '<a href="' . mx_append_sid("admin_userlist.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . mx_append_sid("index.$phpEx?pane=right") . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $message); } else { $template->set_filenames(array( 'reg_header' => 'error_body.tpl') ); $template->assign_vars(array( 'ERROR_MESSAGE' => $error_msg) ); $template->assign_var_from_handle('ERROR_BOX', 'reg_header'); $username = htmlspecialchars(stripslashes($username)); $email = stripslashes($email); $password = ''; $password_confirm = ''; } } // // SHOW USER // else if( !isset( $HTTP_POST_VARS['submit'] ) && $mode != 'save' ) { if ($mode == 'edit') { if( isset( $HTTP_GET_VARS[POST_USERS_URL]) || isset( $HTTP_POST_VARS[POST_USERS_URL]) ) { $user_id = ( isset( $HTTP_POST_VARS[POST_USERS_URL]) ) ? intval( $HTTP_POST_VARS[POST_USERS_URL]) : intval( $HTTP_GET_VARS[POST_USERS_URL]); $this_userdata = mx_get_userdata($user_id); if( !$this_userdata ) { mx_message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } } else { //$this_userdata = mx_get_userdata($HTTP_POST_VARS['username'], true); $this_userdata = mx_get_userdata($HTTP_GET_VARS['username'], true); if( !$this_userdata ) { mx_message_die(GENERAL_MESSAGE, $lang['No_user_id_specified'] ); } } } else { $this_userdata['user_id'] = '' ; $this_userdata['username'] = 'Enter' ; $this_userdata['user_email'] = 'me@somewhere' ; $this_userdata['user_active'] = '1' ; } // // Now parse and display it as a template // $user_id = $this_userdata['user_id']; $username = $this_userdata['username']; $email = $this_userdata['user_email']; $password = ''; $password_confirm = ''; $user_status = $this_userdata['user_active']; } $s_hidden_fields = '<input type="hidden" name="mode" value="save" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" />'; $s_hidden_fields .= '<input type="hidden" name="id" value="' . $user_id . '" />'; $template->set_filenames(array( "body" => "admin/user_edit_body.tpl") ); $template->assign_vars(array( 'USERNAME' => $username, 'EMAIL' => $email, 'USER_ACTIVE_YES' => ($user_status) ? 'checked="checked"' : '', 'USER_ACTIVE_NO' => (!$user_status) ? 'checked="checked"' : '', 'L_USERNAME' => $lang['Username'], 'L_USER_TITLE' => $lang['User_admin'], 'L_USER_EXPLAIN' => $lang['User_admin_explain'], 'L_NEW_PASSWORD' => $lang['New_password'], 'L_PASSWORD_IF_CHANGED' => $lang['password_if_changed'], 'L_CONFIRM_PASSWORD' => $lang['Confirm_password'], 'L_PASSWORD_CONFIRM_IF_CHANGED' => $lang['password_confirm_if_changed'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_SPECIAL' => $lang['User_special'], 'L_SPECIAL_EXPLAIN' => $lang['User_special_explain'], 'L_USER_ACTIVE' => $lang['User_status'], 'L_EMAIL_ADDRESS' => $lang['Email_address'], 'L_DELETE_USER' => $lang['User_delete'], 'L_DELETE_USER_EXPLAIN' => $lang['User_delete_explain'], 'L_SELECT_RANK' => $lang['Rank_title'], 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'S_PROFILE_ACTION' => mx_append_sid("admin_users.$phpEx")) ); $template->pparse('body'); } else { // // Default user selection box // $template->set_filenames(array( 'body' => 'admin/user_select_body.tpl') ); $template->assign_vars(array( 'L_USER_TITLE' => $lang['User_admin'], 'L_USER_EXPLAIN' => $lang['User_admin_explain'], 'L_USER_SELECT' => $lang['Select_a_User'], 'L_LOOK_UP' => $lang['Look_up_user'], 'L_FIND_USERNAME' => $lang['Find_username'], 'U_SEARCH_USER' => mx_append_sid("./../search.$phpEx?mode=searchuser"), 'S_USER_ACTION' => mx_append_sid("admin_users.$phpEx"), 'S_USER_SELECT' => $select_list) ); $template->pparse('body'); } include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> |
|
From: Jon O. <jon...@us...> - 2007-09-15 20:32:27
|
Update of /cvsroot/mxbb/core/modules/mx_users/templates/_core/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24071 Added Files: admin_prune_user_posts.tpl group_edit_body.tpl group_select_body.tpl groupcp_info_body.tpl groupcp_pending_info.tpl groupcp_user_body.tpl prune_users.tpl prune_users_sql.tpl user_edit_body.tpl user_select_body.tpl userlist_body.tpl userlist_group.tpl Log Message: Added the users and group adminCP. --- NEW FILE: group_select_body.tpl --- <h1>{L_GROUP_TITLE}</h1> <p>{L_GROUP_EXPLAIN}</p> <table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thHead" align="center" colspan="2">{L_GROUP_SELECT}</th> </tr> <tr> <td class="row1" width="50%" align="center"> <form method="post" action="{S_GROUP_ACTION}"> <table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <!-- BEGIN select_box --> <tr> <td class="row1" align="center">{S_GROUP_SELECT} <input type="submit" name="edit" value="{L_LOOK_UP}" class="mainoption" /> </td> </tr> <!-- END select_box --> </table> </form> </td> <td class="row1" width="50%" align="center"> <form method="post" action="{S_GROUPCP_ACTION}"> <table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <!-- BEGIN select_box --> <tr> <td class="row1" align="center">{S_GROUP_SELECT} <input type="submit" name="edit" value="{L_CP_UP}" class="mainoption" /> </td> </tr> <!-- END select_box --> </table> </form> </td> </tr> <tr> <td class="row1" width="50%" align="center" colspan="2"> <form method="post" action="{S_GROUP_ACTION}"> <table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <td class="catBottom" align="center">{S_HIDDEN_FIELDS}<input type="submit" class="liteoption" name="new" value="{L_CREATE_NEW_GROUP}" /></td> </tr> </table> </form> </td> </tr> </table> --- NEW FILE: userlist_group.tpl --- <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0"> <tr> <th class="thHead" height="25" valign="middle"><span class="tableTitle">{MESSAGE_TITLE}</span></th> </tr> <tr> <td class="row1" align="center"><form action="{S_ACTION}" method="post"><span class="gen"><br />{MESSAGE_TEXT}<br /><br />{S_HIDDEN_FIELDS} <select name="{S_GROUP_VARIABLE}" class="post"> <option value="">{L_SELECT}</option> <!-- BEGIN grouprow --> <option value="{grouprow.GROUP_ID}">{grouprow.GROUP_NAME}</option> <!-- END grouprow --> </select> <input type="submit" name="confirm" value="{L_GO}" class="mainoption" /><input type="submit" name="cancel" value="{L_CANCEL}" class="liteoption" /></span></form></td> </tr> </table> <br clear="all" /> --- NEW FILE: user_edit_body.tpl --- <h1>{L_USER_TITLE}</h1> <p>{L_USER_EXPLAIN}</p> {ERROR_BOX} <form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post"><table width="98%" cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{L_REGISTRATION_INFO}</th> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td> </tr> <tr> <td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td> <td class="row2"> <input class="post" type="text" name="username" size="35" maxlength="40" value="{USERNAME}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td> <td class="row2"> <input class="post" type="text" name="email" size="35" maxlength="255" value="{EMAIL}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_NEW_PASSWORD}: *</span><br /> <span class="gensmall">{L_PASSWORD_IF_CHANGED}</span></td> <td class="row2"> <input class="post" type="password" name="password" size="35" maxlength="32" value="" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br /> <span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td> <td class="row2"> <input class="post" type="password" name="password_confirm" size="35" maxlength="32" value="" /> </td> </tr> <tr> <td class="catsides" colspan="2"> </td> </tr> <!-- <tr> <th class="thSides" colspan="2">{L_PROFILE_INFO}</th> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_PROFILE_INFO_NOTICE}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ICQ_NUMBER}</span></td> <td class="row2"> <input class="post" type="text" name="icq" size="10" maxlength="15" value="{ICQ}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_AIM}</span></td> <td class="row2"> <input class="post" type="text" name="aim" size="20" maxlength="255" value="{AIM}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_MESSENGER}</span></td> <td class="row2"> <input class="post" type="text" name="msn" size="20" maxlength="255" value="{MSN}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_YAHOO}</span></td> <td class="row2"> <input class="post" type="text" name="yim" size="20" maxlength="255" value="{YIM}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_WEBSITE}</span></td> <td class="row2"> <input class="post" type="text" name="website" size="35" maxlength="255" value="{WEBSITE}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_LOCATION}</span></td> <td class="row2"> <input class="post" type="text" name="location" size="35" maxlength="100" value="{LOCATION}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_OCCUPATION}</span></td> <td class="row2"> <input class="post" type="text" name="occupation" size="35" maxlength="100" value="{OCCUPATION}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_INTERESTS}</span></td> <td class="row2"> <input class="post" type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}" /> </td> </tr> <tr> <td class="row1"><span class="gen">{L_SIGNATURE}</span><br /> <span class="gensmall">{L_SIGNATURE_EXPLAIN}<br /> <br /> {HTML_STATUS}<br /> {BBCODE_STATUS}<br /> {SMILIES_STATUS}</span></td> <td class="row2"> <textarea class="post" name="signature" rows="6" cols="45">{SIGNATURE}</textarea> </td> </tr> <tr> <td class="catsides" colspan="2"><span class="cattitle"> </span></td> </tr> <tr> <th class="thSides" colspan="2">{L_PREFERENCES}</th> </tr> <tr> <td class="row1"><span class="gen">{L_PUBLIC_VIEW_EMAIL}</span></td> <td class="row2"> <input type="radio" name="viewemail" value="1" {VIEW_EMAIL_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="viewemail" value="0" {VIEW_EMAIL_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_HIDE_USER}</span></td> <td class="row2"> <input type="radio" name="hideonline" value="1" {HIDE_USER_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="hideonline" value="0" {HIDE_USER_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}</span></td> <td class="row2"> <input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}</span></td> <td class="row2"> <input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_POPUP_ON_PRIVMSG}</span></td> <td class="row2"> <input type="radio" name="popup_pm" value="1" {POPUP_PM_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="popup_pm" value="0" {POPUP_PM_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ALWAYS_ADD_SIGNATURE}</span></td> <td class="row2"> <input type="radio" name="attachsig" value="1" {ALWAYS_ADD_SIGNATURE_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="attachsig" value="0" {ALWAYS_ADD_SIGNATURE_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_BBCODE}</span></td> <td class="row2"> <input type="radio" name="allowbbcode" value="1" {ALWAYS_ALLOW_BBCODE_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="allowbbcode" value="0" {ALWAYS_ALLOW_BBCODE_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_HTML}</span></td> <td class="row2"> <input type="radio" name="allowhtml" value="1" {ALWAYS_ALLOW_HTML_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="allowhtml" value="0" {ALWAYS_ALLOW_HTML_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ALWAYS_ALLOW_SMILIES}</span></td> <td class="row2"> <input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_BOARD_LANGUAGE}</span></td> <td class="row2">{LANGUAGE_SELECT}</td> </tr> <tr> <td class="row1"><span class="gen">{L_BOARD_STYLE}</span></td> <td class="row2">{STYLE_SELECT}</td> </tr> <tr> <td class="row1"><span class="gen">{L_TIMEZONE}</span></td> <td class="row2">{TIMEZONE_SELECT}</td> </tr> <tr> <td class="row1"><span class="gen">{L_DATE_FORMAT}</span><br /> <span class="gensmall">{L_DATE_FORMAT_EXPLAIN}</span></td> <td class="row2"> <input class="post" type="text" name="dateformat" value="{DATE_FORMAT}" maxlength="16" /> </td> </tr> <tr> <td class="catSides" colspan="2"><span class="cattitle"> </span></td> </tr> <tr> <th class="thSides" colspan="2" height="12" valign="middle">{L_AVATAR_PANEL}</th> </tr> <tr align="center"> <td class="row1" colspan="2"> <table width="70%" cellspacing="2" cellpadding="0" border="0"> <tr> <td width="65%"><span class="gensmall">{L_AVATAR_EXPLAIN}</span></td> <td align="center"><span class="gensmall">{L_CURRENT_IMAGE}</span><br /> {AVATAR}<br /> <input type="checkbox" name="avatardel" /> <span class="gensmall">{L_DELETE_AVATAR}</span></td> </tr> </table> </td> </tr> <tr> <td class="catSides" colspan="2"> </td> </tr> --> <tr> <th class="thSides" colspan="2">{L_SPECIAL}</th> </tr> <tr> <td class="row1" colspan="2"><span class="gensmall">{L_SPECIAL_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_USER_ACTIVE}</span></td> <td class="row2"> <input type="radio" name="user_status" value="1" {USER_ACTIVE_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="user_status" value="0" {USER_ACTIVE_NO} /> <span class="gen">{L_NO}</span></td> </tr> <!-- <tr> <td class="row1"><span class="gen">{L_ALLOW_PM}</span></td> <td class="row2"> <input type="radio" name="user_allowpm" value="1" {ALLOW_PM_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="user_allowpm" value="0" {ALLOW_PM_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ALLOW_AVATAR}</span></td> <td class="row2"> <input type="radio" name="user_allowavatar" value="1" {ALLOW_AVATAR_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="user_allowavatar" value="0" {ALLOW_AVATAR_NO} /> <span class="gen">{L_NO}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_SELECT_RANK}</span></td> <td class="row2"><select name="user_rank">{RANK_SELECT_BOX}</select></td> </tr> --> <tr> <td class="row1"><span class="gen">{L_DELETE_USER}?</span></td> <td class="row2"> <input type="checkbox" name="deleteuser"> {L_DELETE_USER_EXPLAIN}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS} <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </td> </tr> </table></form> --- NEW FILE: groupcp_info_body.tpl --- <h1>{L_GROUP_TITLE}</h1> <p>{L_GROUP_EXPLAIN}</p> <form action="{S_GROUPCP_ACTION}" method="post"> <table class="forumline" width="100%" cellspacing="1" cellpadding="4" border="0"> <tr> <th class="thHead" colspan="7" height="25">{L_GROUP_INFORMATION}</th> </tr> <tr> <td class="row1" width="20%"><span class="gen">{L_GROUP_NAME}:</span></td> <td class="row2"><span class="gen"><b>{GROUP_NAME}</b></span></td> </tr> <tr> <td class="row1" width="20%"><span class="gen">{L_GROUP_DESC}:</span></td> <td class="row2"><span class="gen">{GROUP_DESC}</span></td> </tr> <tr> <td class="row1" width="20%"><span class="gen">{L_GROUP_MEMBERSHIP}:</span></td> <td class="row2"><span class="gen">{GROUP_DETAILS} <!-- BEGIN switch_subscribe_group_input --> <input class="mainoption" type="submit" name="joingroup" value="{L_JOIN_GROUP}" /> <!-- END switch_subscribe_group_input --> <!-- BEGIN switch_unsubscribe_group_input --> <input class="mainoption" type="submit" name="unsub" value="{L_UNSUBSCRIBE_GROUP}" /> <!-- END switch_unsubscribe_group_input --> </span></td> </tr> <!-- BEGIN switch_mod_option --> <tr> <td class="row1" width="20%"><span class="gen">{L_GROUP_TYPE}:</span></td> <td class="row2"><span class="gen"><input type="radio" name="group_type" value="{S_GROUP_OPEN_TYPE}" {S_GROUP_OPEN_CHECKED} /> {L_GROUP_OPEN} <input type="radio" name="group_type" value="{S_GROUP_CLOSED_TYPE}" {S_GROUP_CLOSED_CHECKED} /> {L_GROUP_CLOSED} <input type="radio" name="group_type" value="{S_GROUP_HIDDEN_TYPE}" {S_GROUP_HIDDEN_CHECKED} /> {L_GROUP_HIDDEN} <input class="mainoption" type="submit" name="groupstatus" value="{L_UPDATE}" /></span></td> </tr> <!-- END switch_mod_option --> </table> {S_HIDDEN_FIELDS} </form> <form action="{S_GROUPCP_ACTION}" method="post" name="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> <th class="thCornerL" height="25">{L_PM}</th> <th class="thTop">{L_USERNAME}</th> <th class="thTop">{L_POSTS}</th> <th class="thTop">{L_FROM}</th> <th class="thTop">{L_EMAIL}</th> <th class="thTop">{L_WEBSITE}</th> <th class="thCornerR">{L_SELECT}</th> </tr> <tr> <td class="catSides" colspan="8" height="28"><span class="cattitle">{L_GROUP_MODERATOR}</span></td> </tr> <tr> <td class="row1" align="center"> {MOD_PM_IMG} </td> <td class="row1" align="center"><span class="gen"><a href="{U_MOD_VIEWPROFILE}" class="gen">{MOD_USERNAME}</a></span></td> <td class="row1" align="center" valign="middle"><span class="gen">{MOD_POSTS}</span></td> <td class="row1" align="center" valign="middle"><span class="gen">{MOD_FROM}</span></td> <td class="row1" align="center" valign="middle"><span class="gen">{MOD_EMAIL_IMG}</span></td> <td class="row1" align="center">{MOD_WWW_IMG}</td> <td class="row1" align="center"> </td> </tr> <tr> <td class="catSides" colspan="8" height="28"><span class="cattitle">{L_GROUP_MEMBERS}</span></td> </tr> <!-- BEGIN member_row --> <tr> <td class="{member_row.ROW_CLASS}" align="center"> {member_row.PM_IMG} </td> <td class="{member_row.ROW_CLASS}" align="center"><span class="gen"><a href="{member_row.U_VIEWPROFILE}" class="gen">{member_row.USERNAME}</a></span></td> <td class="{member_row.ROW_CLASS}" align="center"><span class="gen">{member_row.POSTS}</span></td> <td class="{member_row.ROW_CLASS}" align="center"><span class="gen"> {member_row.FROM} </span></td> <td class="{member_row.ROW_CLASS}" align="center" valign="middle"><span class="gen">{member_row.EMAIL_IMG}</span></td> <td class="{member_row.ROW_CLASS}" align="center"> {member_row.WWW_IMG}</td> <td class="{member_row.ROW_CLASS}" align="center"> <!-- BEGIN switch_mod_option --> <input type="checkbox" name="members[]" value="{member_row.USER_ID}" /> <!-- END switch_mod_option --> </td> </tr> <!-- END member_row --> <!-- BEGIN switch_no_members --> <tr> <td class="row1" colspan="7" align="center"><span class="gen">{L_NO_MEMBERS}</span></td> </tr> <!-- END switch_no_members --> <!-- BEGIN switch_hidden_group --> <tr> <td class="row1" colspan="7" align="center"><span class="gen">{L_HIDDEN_MEMBERS}</span></td> </tr> <!-- END switch_hidden_group --> <!-- BEGIN switch_mod_option --> <tr> <td class="catBottom" colspan="8" align="right"> <span class="cattitle"><input type="submit" name="remove" value="{L_REMOVE_SELECTED}" class="mainoption" /></span> </td> </tr> <!-- END switch_mod_option --> </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> <tr> <td align="left" valign="top"> <!-- BEGIN switch_mod_option --> <span class="genmed"><input type="text" class="post" name="username" maxlength="50" size="20" /> <input type="submit" name="add" value="{L_ADD_MEMBER}" class="mainoption" /> <!--<input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" />--> </span><br /><br /> <!-- END switch_mod_option --> <span class="nav">{PAGE_NUMBER}</span></td> <td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span></td> </tr> </table> {PENDING_USER_BOX} {S_HIDDEN_FIELDS}</form> <table width="100%" cellspacing="2" border="0" align="center"> <tr> <td valign="top" align="right">{JUMPBOX}</td> </tr> </table> --- NEW FILE: prune_users_sql.tpl --- <h1>{L_PAGE_TITLE}</h1> <p>{L_PAGE_EXPLAIN}</p> <form id="prune_users" method="post" action="{S_FORM_ACTION}"><table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline" width="85%"> <tr> <th class="thTop" align="center" colspan="5">{L_BUILD_YOUR_QUERY}</td> </tr> <tr> <td class="row1" align="left">{L_USER_REGDATE}</td> <td class="row1" align="center"><input type="checkbox" name="registered_check" value="1" checked="checked" ></td> <td class="row2" align="center"><select name="user_registered_condition"><option value="AND" selected="selected">AND</option><option value="OR">OR</option></select></td> <td class="row2" align="left"> <select name="user_registered"> <option value="{SEVEN_DAYS}" selected="selected">{L_SEVEN_DAYS}</option> <option value="{TEN_DAYS}">{L_TEN_DAYS}</option> <option value="{TWO_WEEKS}">{L_TWO_WEEKS}</option> <option value="{ONE_MONTH}">{L_ONE_MONTH}</option> <option value="{TWO_MONTHS}">{L_TWO_MONTHS}</option> <option value="{THREE_MONTHS}">{L_THREE_MONTHS}</option> <option value="-1">{L_ALL_TIME}</option> </select> </td> <td class="row2" align="left" >{L_USER_REGDATE_EXPLAIN}</td> </tr> <tr> <td class="row1" align="left">{L_USER_LAST_VISIT}</td> <td class="row1" align="center"><input type="checkbox" name="login_check" value="1" checked="checked" ></td> <td class="row2" align="center"><select name="user_lastvisit_condition"><option value="AND" selected="selected">AND</option><option value="OR">OR</option></select></td> <td class="row2" align="left"> <select name="user_lastvisit"> <option value="0" selected="selected">{L_NEVER}</option> <option value="{SEVEN_DAYS}">{L_SEVEN_DAYS}</option> <option value="{TEN_DAYS}">{L_TEN_DAYS}</option> <option value="{TWO_WEEKS}">{L_TWO_WEEKS}</option> <option value="{ONE_MONTH}">{L_ONE_MONTH}</option> <option value="{TWO_MONTHS}">{L_TWO_MONTHS}</option> <option value="{THREE_MONTHS}">{L_THREE_MONTHS}</option> </select> </td> <td class="row2" align="left">{L_USER_LAST_VISIT_EXPLAIN}</td> </tr> <tr> <td class="row1" align="left">{L_USER_ACTIVE}</td> <td class="row1" align="center"><input type="checkbox" name="active_check" value="1" checked="checked" ></td> <td class="row2" align="center"><select name="user_active_condition"><option value="AND" selected="selected">AND</option><option value="OR">OR</option></select></td> <td class="row2" align="left"><input name="user_active" value="1" type="radio"> {L_YES} <input name="user_active" value="0" checked="checked" type="radio"> {L_NO}</td> <td class="row2" align="left">{L_USER_ACTIVE_EXPLAIN}</td> </tr> <tr> <td class="row1" align="left">{L_USER_POSTS}</td> <td class="row1" align="center"><input type="checkbox" name="posts_check" value="1" checked="checked" ></td> <td class="row2" align="center"><select name="user_posts_condition"><option value="AND" selected="selected">AND</option><option value="OR">OR</option></select></td> <td class="row2" align="left"> <select name="user_posts_sign"> <option value="=" selected="selected">=</option> <option value=">">></option> <option value="<"><</option> <option value=">=">>=</option> <option value="<="><=</option> </select> <input class="post" name="user_posts" size="3" maxlength="4" type="text" value="0" > </td> <td class="row2" align="left">{L_USER_POSTS_EXPLAIN}</td> </tr> <tr> <td class="catBottom" align="center" colspan="5"> <input type="submit" class="mainoption" name="fetch" value="{L_BUILD_QUERY}" /> </td> </tr> </table> </form> --- NEW FILE: userlist_body.tpl --- <script language="javascript" type="text/javascript"> <!-- function handleClick(id) { var obj = ""; // Check browser compatibility if(document.getElementById) obj = document.getElementById(id); else if(document.all) obj = document.all[id]; else if(document.layers) obj = document.layers[id]; else return 1; if (!obj) { return 1; } else if (obj.style) { obj.style.display = ( obj.style.display != "none" ) ? "none" : ""; } else { obj.visibility = "show"; } } //--> </script> <h1>{L_TITLE}</h1> <p>{L_DESCRIPTION}</p> <form action="{S_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" border="0"> <tr> <td align="left" nowrap="nowrap"><span class="gen"><b>[<a class="gen" href="{U_ADD_USER}" class="gen">{L_ADD_USER}</a>]</b></span></td> <td width="100%"> </td> <td align="right" nowrap="nowrap"><span class="gen">{L_SORT_BY}</td> <td nowrap="nowrap"><select name="sort" class="post"> <option {SORT_USER_ID} value="user_id">{L_USER_ID}</option> <option {SORT_ACTIVE} value="user_active">{L_ACTIVE}</option> <option {SORT_USERNAME} value="username">{L_USERNAME}</option> <option {SORT_JOINED} value="user_regdate">{L_JOINED}</option> <option {SORT_ACTIVTY} value="user_session_time">{L_ACTIVTY}</option> <option {SORT_USER_LEVEL} value="user_level">{L_USER_LEVEL}</option> <option {SORT_POSTS} value="user_posts">{L_POSTS}</option> <option {SORT_RANK} value="user_rank">{L_RANK}</option> <option {SORT_EMAIL} value="user_email">{L_EMAIL}</option> </select></td> <td nowrap="nowrap"><select name="order" class="post"> <option {ORDER_ASC} value="ASC">{L_ASCENDING}</option> <option {ORDER_DESC} value="DESC">{L_DESCENDING}</option> </select></td> <td nowrap="nowrap"><span class="gen">{L_SHOW}</span></td> <td nowrap="nowrap"><input type="text" size="5" value="{S_SHOW}" name="show"></td> <td nowrap="nowrap">{S_HIDDEN_FIELDS}<input type="submit" value="{S_SORT}" name="change_sort" class="liteoption"></td> </tr> </table> </form> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> <!-- BEGIN alphanumsearch --> <td align="left" width="{alphanumsearch.SEARCH_SIZE}"><span class="genmed"> <a href="{alphanumsearch.SEARCH_LINK}" class="genmed">{alphanumsearch.SEARCH_TERM}</a> </span></td> <!-- END alphanumsearch --> </tr> </table> <form action="{S_ACTION}" method="post"> <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline"> <tr> <th width="13%"> </th> <th width="22%">{L_USERNAME}</th> <th width="22%">{L_ACTIVE}</th> <th width="22%">{L_JOINED}</th> <th width="22%">{L_ACTIVTY}</th> </tr> <!-- BEGIN user_row --> <tr> <td class="{user_row.ROW_CLASS}" nowrap="nowrap"><input type="checkbox" name="{S_USER_VARIABLE}[]" value="{user_row.USER_ID}"> <a href="javascript:handleClick('user{user_row.USER_ID}');">{L_OPEN_CLOSE}</a></td> <td class="{user_row.ROW_CLASS}"><span class="gen" {user_row.STYLE_COLOR}><b><a href="{user_row.U_PROFILE}" class="gen" {user_row.STYLE_COLOR}>{user_row.USERNAME}</a></b></span></td> <td class="{user_row.ROW_CLASS}"><span class="gen">{user_row.ACTIVE}</span></td> <td class="{user_row.ROW_CLASS}"><span class="gen">{user_row.JOINED}</span></td> <td class="{user_row.ROW_CLASS}"><span class="gen">{user_row.LAST_ACTIVITY}</span></td> </tr> <tr id="user{user_row.USER_ID}" style="display: none"> <td class="{user_row.ROW_CLASS}" width="13%" align="center"><a href="mailto:{user_row.EMAIL}" class="gensmall">[{L_EMAIL}]</a><br /></td> <td class="{user_row.ROW_CLASS}" colspan="4" width="100%"> <table width="100%" cellpadding="3" cellspacing="1" border="0"> <tr> <!-- BEGIN noninternal --> <td class="{user_row.ROW_CLASS}" width="33%"><span class="gen"><b>{L_RANK}:</b> {user_row.RANK} {user_row.I_RANK}</td> <!-- END noninternal --> <td class="{user_row.ROW_CLASS}" width="34%"><span class="gen"><b>{L_GROUP}:</b> <!-- BEGIN group_row --> <a href="{user_row.group_row.U_GROUP}" class="gen">{user_row.group_row.GROUP_NAME}</a> ({user_row.group_row.GROUP_STATUS})<br /> <!-- END group_row --> <!-- BEGIN no_group_row --> {user_row.no_group_row.L_NONE}<br /> <!-- END no_group_row --> </span></td> <!-- BEGIN noninternal --> <td class="{user_row.ROW_CLASS}" width="33%"><span class="gen"><b>{L_POSTS}:</b> {user_row.POSTS} <a href="{user_row.U_SEARCH}" class="gen" target="_blank">{L_FIND_ALL_POSTS}</a></span></td> <!-- END noninternal --> </tr> <!-- BEGIN noninternal --> <tr> <td class="{user_row.ROW_CLASS}"><span class="gen"> <a href="{user_row.U_MANAGE}" class="gen">{L_MANAGE}</a><br /> <a href="{user_row.U_PERMISSIONS}" class="gen">{L_PERMISSIONS}</a><br /> <a href="{user_row.U_PM}" class="gen">{L_PM}</a> </span></td> <td class="{user_row.ROW_CLASS}">{user_row.I_AVATAR}</td> <td class="{user_row.ROW_CLASS}"><span class="gen"><b>{L_WEBSITE}:</b> <a href="{user_row.U_WEBSITE}" class="gen" target="_blank">{user_row.U_WEBSITE}</a></span></td> </tr> <!-- END noninternal --> </table> </td> </tr> <!-- END user_row --> <tr> <td class="catbottom" colspan="8"> <select name="mode" class="post"> <option value="">{L_SELECT}</option> <option value="delete">{L_DELETE}</option> <!-- BEGIN noninternal --> <option value="ban">{L_BAN}</option> <!-- END noninternal --> <option value="activate">{L_ACTIVATE_DEACTIVATE}</option> <option value="group">{L_ADD_GROUP}</option> </select> <input type="submit" name="go" value="{L_GO}" class="mainoption"> </td> </tr> </table> <table width="100%" cellpadding="3" cellspacing="1" border="0"> <tr> <td align="left" width="50%"><span class="gen">{PAGE_NUMBER}</span></td> <td align="right" width="50%"><span class="gen">{PAGINATION}</span></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: groupcp_pending_info.tpl --- <br clear="all" /> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <tr> <th class="thCornerL" height="25">{L_PM}</th> <th class="thTop">{L_USERNAME}</th> <th class="thTop">{L_POSTS}</th> <th class="thTop">{L_FROM}</th> <th class="thTop">{L_EMAIL}</th> <th class="thTop">{L_WEBSITE}</th> <th class="thCornerR">{L_SELECT}</th> </tr> <tr> <td class="catSides" colspan="8" height="28"><span class="cattitle">{L_PENDING_MEMBERS}</span></td> </tr> <!-- BEGIN pending_members_row --> <tr> <td class="{pending_members_row.ROW_CLASS}" align="center"> {pending_members_row.PM_IMG} </td> <td class="{pending_members_row.ROW_CLASS}" align="center"><span class="gen"><a href="{pending_members_row.U_VIEWPROFILE}" class="gen">{pending_members_row.USERNAME}</a></span></td> <td class="{pending_members_row.ROW_CLASS}" align="center"><span class="gen">{pending_members_row.POSTS}</span></td> <td class="{pending_members_row.ROW_CLASS}" align="center"><span class="gen">{pending_members_row.FROM}</span></td> <td class="{pending_members_row.ROW_CLASS}" align="center"><span class="gen">{pending_members_row.EMAIL_IMG}</span></td> <td class="{pending_members_row.ROW_CLASS}" align="center"><span class="gen">{pending_members_row.WWW_IMG}</span></td> <td class="{pending_members_row.ROW_CLASS}" align="center"><span class="gensmall"> <input type="checkbox" name="pending_members[]" value="{pending_members_row.USER_ID}" checked="checked" /></span></td> </tr> <!-- END pending_members_row --> <tr> <td class="cat" colspan="8" align="right"><span class="cattitle"> <input type="submit" name="approve" value="{L_APPROVE_SELECTED}" class="mainoption" /> <input type="submit" name="deny" value="{L_DENY_SELECTED}" class="liteoption" /> </span></td> </tr> </table> --- NEW FILE: prune_users.tpl --- <h1>{L_PAGE_TITLE}</h1> <p>{L_PAGE_EXPLAIN}</p> <script type="text/javascript"> function checkAll(theForm, cName, allNo_stat) { var n=theForm.elements.length; for (var i=0;i<n;i++){ if (theForm.elements[i].className.indexOf(cName) !=-1){ if (allNo_stat.checked) { theForm.elements[i].checked = true; } else { theForm.elements[i].checked = false; } } } } function confirmSubmit() { var prune=confirm("{L_CONFIRM_MESSAGE}"); if (prune) return true ; else return false ; } </script> <form id="prune_users" method="post" action="{S_FORM_ACTION}"><table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline" width="80%"> <tr> <th class="thCornerL">{L_USERNAME}</th> <!-- BEGIN user_lastvisit --><th class="thTop">{L_USER_LAST_VISIT}</th><!-- END user_lastvisit --> <!-- BEGIN user_regdate --><th class="thTop">{L_USER_REGDATE}</th><!-- END user_regdate --> <!-- BEGIN user_active --><th class="thTop">{L_USER_ACTIVE}</th><!-- END user_active --> <!-- BEGIN user_posts --><th class="thTop">{L_USER_POSTS}</th><!-- END user_posts --> <th class="thTop">{L_NOTIFY_USER}</th> <th class="thCornerR">{L_SELECTED}</th> </tr> <!-- BEGIN inactive_users --> <tr> <td class="{inactive_users.ROW_CLASS}" align="center"><a href="{inactive_users.U_USER_PROFILE}">{inactive_users.USERNAME}</a></td> <!-- BEGIN user_lastvisit --><td class="{inactive_users.ROW_CLASS}" align="center">{inactive_users.USER_LAST_VISIT}</td><!-- END user_lastvisit --> <!-- BEGIN user_regdate --><td class="{inactive_users.ROW_CLASS}" align="center">{inactive_users.USER_REGDATE}</td> <!-- END user_regdate --> <!-- BEGIN user_active --><td class="{inactive_users.ROW_CLASS}" align="center">{inactive_users.USER_ACTIVE}</td><!-- END user_active --> <!-- BEGIN user_posts --><td class="{inactive_users.ROW_CLASS}" align="center">{inactive_users.USER_POSTS}</td><!-- END user_posts --> <td class="{inactive_users.ROW_CLASS}" align="center"><a href="{inactive_users.U_NOTIFY_USER}">{L_EMAIL}</a></td> <td class="{inactive_users.ROW_CLASS}" align="center"><input type="checkbox" name="inactive_users[]" value="{inactive_users.USER_ID}" class="user_selected" checked="checked"></td> </tr> <!-- END inactive_users --> <!-- BEGIN no_inactive_users --> <tr> <td class="row1" align="center" colspan="{NUMBER_OF_COLUMNS}">{L_NONE}</td> </tr> <!-- END no_inactive_users --> <tr> <td class="catBottom" align="right" colspan="{NUMBER_OF_COLUMNS}">{L_SELECT_ALL_NONE} <input type="checkbox" onclick="checkAll(document.getElementById('prune_users'), 'user_selected',this);" checked="checked"/></td> </tr> </table> <br><div align="center"><input type="submit" class="mainoption" name="submit" value="{L_SUBMIT}" onClick="return confirmSubmit()" /> </div><br> </form> --- NEW FILE: user_select_body.tpl --- <h1>{L_USER_TITLE}</h1> <p>{L_USER_EXPLAIN}</p> <form method="post" name="post" action="{S_USER_ACTION}"><table cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thHead" align="center">{L_USER_SELECT}</th> </tr> <tr> <td class="row1" align="center"><input type="text" class="post" name="username" maxlength="50" size="20" /> <input type="hidden" name="mode" value="edit" />{S_HIDDEN_FIELDS}<input type="submit" name="submituser" value="{L_LOOK_UP}" class="mainoption" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td> </tr> </table></form> --- NEW FILE: admin_prune_user_posts.tpl --- <script language="Javascript" type="text/javascript"> // Did I mention I hated javascript? // Modified from privmsgs mark all/unmark all function select_switch(status) { var re; // regex to match only the forums checkboxes re = /^prune_forumid_[0-9]+$/; for (i = 0; i < document.post.length; i++) { if( re.test(document.post.elements[i].name) == true ) { document.post.elements[i].checked = status; } } } </script> <h1>{L_PRUNE_USER_POSTS}</h1> <p>{L_PRUNE_EXPLAIN}</p> <form method="post" name="post" action="{S_PRUNE_ACTION}"> <table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline"> <tr> <th class="thHead" colspan="2" height="25" valign="middle">{L_PRUNE_FORUMS}</th> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_PRUNE_FORUMS_EXPLAIN}</span></td> </tr> <!-- BEGIN catrow --> <tr> <td class="row2" colspan="2"><span class="gen"><strong>Category: {catrow.CATEGORY_NAME}</span></td> </tr> <!-- BEGIN forumrow --> <tr> <td class="row{catrow.forumrow.ROW_CLASS}" width="100%"><span class="gen">{catrow.forumrow.FORUM_NAME}</span></td> <td class="row{catrow.forumrow.ROW_CLASS}"><input type="checkbox" name="prune_forumid_{catrow.forumrow.FORUM_ID}" value="true" /></td> </tr> <!-- END forumrow --> <!-- END catrow --> <tr> <td class="row3" colspan="2" align="right"><strong><span class="gensmall"><a href="javascript:select_switch(true);" class="gensmall">{L_MARK_ALL}</a> :: <a href="javascript:select_switch(false);" class="gensmall">{L_UNMARK_ALL}</a></span></strong></td> </tr> <tr> <td class="catSides" colspan="2" height="28"> </td> </tr> <tr> <th class="thHead" colspan="2" height="25" valign="middle">{L_PRUNE_USERS}</th> </tr> <tr> <td class="row1"><span class="gen">{L_USERNAME}: <input type="text" class="post" name="username" maxlength="50" size="20" /> <input type="submit" name="usersubmit" value="{L_FIND_A_USERNAME}" class="liteoption" onClick="window.open('{S_SEARCH_ACTION}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></span></td> <td class="row1"><input type="radio" name="prune_type" value="user" checked="checked" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_USERNAME_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ALL_USERS}</span></td> <td class="row1"><input type="radio" name="prune_type" value="all_users" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_ALL_USERS_EXPLAIN}</span></td> </tr> <!-- BEGIN switch_banned_users --> <tr> <td class="row1"><span class="gen">{L_BANNED_USERS}</span></td> <td class="row1"><input type="radio" name="prune_type" value="banned_users" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_BANNED_USERS_EXPLAIN}</span></td> </tr> <!-- END switch_banned_users --> <!-- BEGIN switch_groups --> <tr> <td class="row1"><span class="gen">{L_GROUP}: {GROUP_LIST}</span></td> <td class="row1"><input type="radio" name="prune_type" value="group" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_GROUP_EXPLAIN}</span></td> </tr> <!-- END switch_groups --> <tr> <td class="row1"><span class="gen">{L_IP_ADDRESS}: <input type="text" class="post" name="prune_ip" maxlength="50" size="20" /></span></td> <td class="row1"><input type="radio" name="prune_type" value="ip" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_IP_EXPLAIN}</span></td> </tr> <!-- BEGIN switch_banned_ips --> <tr> <td class="row1"><span class="gen">{L_BANNED_IPS}</span></td> <td class="row1"><input type="radio" name="prune_type" value="banned_ips" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_BANNED_IPS_EXPLAIN}</span></td> </tr> <!-- END switch_banned_ips --> <tr> <td class="row1"><span class="gen">{L_GUESTS}</span></td> <td class="row1"><input type="radio" name="prune_type" value="guest_users" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_GUESTS_EXPLAIN}</span></td> </tr> <tr> <td class="catSides" colspan="2" height="28"> </td> </tr> <tr> <th class="thHead" colspan="2" height="25" valign="middle">{L_DATE_CRITERIA}</th> </tr> <tr> <td class="row1"><span class="gen"><select name="prune_time_order"><option value="before" selected="selected">{L_BEFORE}</option><option value="after">{L_AFTER}</option></select> {L_THE_LAST} <input type="text" class="post" name="prune_time_value" maxlength="50" size="5" /> <select name="prune_time_type"><option value="seconds" selected="selected">{L_SECONDS}</option><option value="minutes">{L_MINUTES}</option><option value="hours">{L_HOURS}</option><option value="days">{L_DAYS}</option></select></span></td> <td class="row1"><input type="radio" name="prune_date_type" value="time" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_BY_TIME_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen"><select name="prune_dateby_type"><option value="before" selected="selected">{L_BEFORE}</option><option value="on" selected="selected">{L_ON}</option><option value="after">{L_AFTER}</option></select> {L_DATE}: <input type="text" class="post" name="prune_dateby_value" maxlength="50" size="15" /> {L_DDMMYYYY}</span></td> <td class="row1"><input type="radio" name="prune_date_type" value="by_date" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_DATE_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_FROM} <input type="text" class="post" name="prune_daterange_start" maxlength="50" size="15" /> {L_TO} <input type="text" class="post" name="prune_daterange_stop" maxlength="50" size="15" /> {L_DDMMYYYY}</span></td> <td class="row1"><input type="radio" name="prune_date_type" value="range" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_RANGE_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ALL_POSTS}</span></td> <td class="row1"><input type="radio" name="prune_date_type" value="all" checked="checked" /></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_ALL_POSTS_EXPLAIN}</span></td> </tr> <tr> <td class="catSides" colspan="2" height="28"> </td> </tr> <tr> <th class="thHead" colspan="2" height="25" valign="middle">{L_PRUNING_OPTIONS}</th> </tr> <tr> <td class="row1"><span class="gen">{L_REMOVE_TOPICS}</span> <select name="prune_topic_started"><option value="true" selected="selected">{L_YES}</option><option value="false">{L_NO}</option></td><td class="row1"></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_REMOVE_TOPICS_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_EXEMPT_STICKIES}</span> <select name="prune_stickies"><option value="true">{L_YES}</option><option value="false" selected="selected">{L_NO}</option></td><td class="row1"></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_EXEMPT_STICKIES_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_EXEMPT_ANNOUNCEMENTS}</span> <select name="prune_announcements"><option value="true">{L_YES}</option><option value="false" selected="selected">{L_NO}</option></td><td class="row1"></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_EXEMPT_ANNOUNCEMENTS_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_EXEMPT_OPEN}</span> <select name="prune_open"><option value="true">{L_YES}</option><option value="false" selected="selected">{L_NO}</option></td><td class="row1"></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_EXEMPT_OPEN_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_EXEMPT_POLLS}</span> <select name="prune_polls"><option value="true">{L_YES}</option><option value="false" selected="selected">{L_NO}</option></td><td class="row1"></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_EXEMPT_POLLS_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_ADJUST_COUNTS}</span> <select name="prune_update_post_counts"><option value="true" selected="selected">{L_YES}</option><option value="false">{L_NO}</option></td><td class="row1"></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_ADJUST_COUNTS_EXPLAIN}</span></td> </tr> <tr> <td class="row1"><span class="gen">{L_UPDATE_SEARCH}</span> <select name="prune_update_search"><option value="true" selected="selected">{L_YES}</option><option value="false">{L_NO}</option></td><td class="row1"></td> </tr> <tr> <td class="row2" colspan="2"><span class="gensmall">{L_UPDATE_SEARCH_EXPLAIN}</span></td> </tr> <tr> <td class="catBottom" colspan="2" align="center" height="28"><input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" name="reset" class="liteoption" /></td> </tr> </table> </form> --- NEW FILE: group_edit_body.tpl --- <h1>{L_GROUP_TITLE}</h1> <form action="{S_GROUP_ACTION}" method="post" name="post"><table border="0" cellpadding="3" cellspacing="1" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_GROUP_EDIT_DELETE}</th> </tr> <tr> <td class="row1" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td> </tr> <tr> <td class="row1" width="38%"><span class="gen">{L_GROUP_NAME}:</span></td> <td class="row2" width="62%"> <input class="post" type="text" name="group_name" size="35" maxlength="40" value="{GROUP_NAME}" /> </td> </tr> <tr> <td class="row1" width="38%"><span class="gen">{L_GROUP_DESCRIPTION}:</span></td> <td class="row2" width="62%"> <textarea class="post" name="group_description" rows="5" cols="51">{GROUP_DESCRIPTION}</textarea> </td> </tr> <tr> <td class="row1" width="38%"><span class="gen">{L_GROUP_MODERATOR}:</span></td> <td class="row2" width="62%"><input class="post" type="text" class="post" name="username" maxlength="50" size="20" value="{GROUP_MODERATOR}" /> <input type="submit" name="usersubmit" value="{L_FIND_USERNAME}" class="liteoption" onClick="window.open('{U_SEARCH_USER}', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" /></td> </tr> <tr> <td class="row1" width="38%"><span class="gen">{L_GROUP_STATUS}:</span></td> <td class="row2" width="62%"> <input type="radio" name="group_type" value="{S_GROUP_OPEN_TYPE}" {S_GROUP_OPEN_CHECKED} /> {L_GROUP_OPEN} <input type="radio" name="group_type" value="{S_GROUP_CLOSED_TYPE}" {S_GROUP_CLOSED_CHECKED} /> {L_GROUP_CLOSED} <input type="radio" name="group_type" value="{S_GROUP_HIDDEN_TYPE}" {S_GROUP_HIDDEN_CHECKED} /> {L_GROUP_HIDDEN}</td> </tr> <!-- BEGIN group_edit --> <tr> <td class="row1" width="38%"><span class="gen">{L_DELETE_MODERATOR}</span> <br /> <span class="gensmall">{L_DELETE_MODERATOR_EXPLAIN}</span></td> <td class="row2" width="62%"> <input type="checkbox" name="delete_old_moderator" value="1"> {L_YES}</td> </tr> <tr> <td class="row1" width="38%"><span class="gen">{L_GROUP_DELETE}:</span></td> <td class="row2" width="62%"> <input type="checkbox" name="group_delete" value="1"> {L_GROUP_DELETE_CHECK}</td> </tr> <!-- END group_edit --> <tr> <td class="catBottom" colspan="2" align="center"><span class="cattitle"> <input type="submit" name="group_update" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" name="reset" class="liteoption" /> </span></td> </tr> </table>{S_HIDDEN_FIELDS}</form> --- NEW FILE: groupcp_user_body.tpl --- <h1>{L_GROUP_TITLE}</h1> <p>{L_GROUP_EXPLAIN}</p> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline"> <!-- BEGIN switch_groups_joined --> <tr> <th colspan="2" align="center" class="thHead" height="25">{L_GROUP_MEMBERSHIP_DETAILS}</th> </tr> <!-- BEGIN switch_groups_member --> <tr> <td class="row1"><span class="gen">{L_YOU_BELONG_GROUPS}</span></td> <td class="row2" align="right"> <table width="90%" cellspacing="0" cellpadding="0" border="0"> <tr><form method="get" action="{S_USERGROUP_ACTION}"> <td width="40%"><span class="gensmall">{GROUP_MEMBER_SELECT}</span></td> <td align="center" width="30%"> <input type="submit" value="{L_VIEW_INFORMATION}" class="liteoption" />{S_HIDDEN_FIELDS} </td> </form></tr> </table> </td> </tr> <!-- END switch_groups_member --> <!-- BEGIN switch_groups_pending --> <tr> <td class="row1"><span class="gen">{L_PENDING_GROUPS}</span></td> <td class="row2" align="right"> <table width="90%" cellspacing="0" cellpadding="0" border="0"> <tr><form method="get" action="{S_USERGROUP_ACTION}"> <td width="40%"><span class="gensmall">{GROUP_PENDING_SELECT}</span></td> <td align="center" width="30%"> <input type="submit" value="{L_VIEW_INFORMATION}" class="liteoption" />{S_HIDDEN_FIELDS} </td> </form></tr> </table> </td> </tr> <!-- END switch_groups_pending --> <!-- END switch_groups_joined --> <!-- BEGIN switch_groups_remaining --> <tr> <th colspan="2" align="center" class="thHead" height="25">{L_JOIN_A_GROUP}</th> </tr> <tr> <td class="row1"><span class="gen">{L_SELECT_A_GROUP}</span></td> <td class="row2" align="right"> <table width="90%" cellspacing="0" cellpadding="0" border="0"> <tr><form method="get" action="{S_USERGROUP_ACTION}"> <td width="40%"><span class="gensmall">{GROUP_LIST_SELECT}</span></td> <td align="center" width="30%"> <input type="submit" value="{L_VIEW_INFORMATION}" class="liteoption" />{S_HIDDEN_FIELDS} </td> </form></tr> </table> </td> </tr> <!-- END switch_groups_remaining --> </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> <tr> <td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table> <br clear="all" /> <table width="100%" cellspacing="2" border="0" align="center"> <tr> <td valign="top" align="right">{JUMPBOX}</td> </tr> </table> |
|
From: Jon O. <jon...@us...> - 2007-09-15 20:32:10
|
Update of /cvsroot/mxbb/core/modules/mx_users/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24008 Added Files: index.htm lang_admin.php Log Message: Added the users and group adminCP. --- NEW FILE: lang_admin.php --- <?php /** * * @package mxBB Portal Module - mx_users * @version $Id: lang_admin.php,v 1.1 2007/09/15 20:32:07 jonohlsson Exp $ * @copyright (c) 2002-2006 [Adam Alkins (http://www.rasadam.com), Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mxbb.net * */ // // adminCP index // $lang['phpbb2admin'] = 'Users and Groups'; $lang['1_phpbb2admin_Userlist'] = 'Users'; $lang['2_phpbb2admin_Groups'] = 'Groups'; $lang['3_Prune_Inactive_Users'] = 'Prune Users'; $lang['4_Prune_user_posts'] = 'Prune Posts'; // // User Management // $lang['User_admin'] = 'User Administration'; $lang['User_admin_explain'] = 'Here you can change your users\' information and certain options. To modify the users\' permissions, please use the user and group permissions system.'; $lang['Look_up_user'] = 'Look up user'; $lang['Admin_user_fail'] = 'Couldn\'t update the user\'s profile.'; $lang['Admin_user_updated'] = 'The user\'s profile was successfully updated.'; $lang['Admin_user_added'] = 'The user has been added.'; $lang['Click_return_useradmin'] = 'Click %sHere%s to return to User Administration'; $lang['User_delete'] = 'Delete this user'; $lang['User_delete_explain'] = 'Click here to delete this user; this cannot be undone.'; $lang['User_deleted'] = 'User was successfully deleted.'; $lang['User_status'] = 'User is active'; $lang['User_allowpm'] = 'Can send Private Messages'; $lang['User_allowavatar'] = 'Can display avatar'; $lang['Admin_avatar_explain'] = 'Here you can see and delete the user\'s current avatar.'; $lang['User_special'] = 'Special admin-only fields'; $lang['User_special_explain'] = 'These fields are not able to be modified by the users. Here you can set their status and other options that are not given to users.'; // // Group Management // $lang['Group_administration'] = 'Group Administration'; $lang['Group_admin_explain'] = 'From this panel you can administer all your usergroups. You can delete, create and edit existing groups. You may choose moderators, toggle open/closed group status and set the group name and description'; $lang['Error_updating_groups'] = 'There was an error while updating the groups'; $lang['Updated_group'] = 'The group was successfully updated'; $lang['Added_new_group'] = 'The new group was successfully created'; $lang['Deleted_group'] = 'The group was successfully deleted'; $lang['New_group'] = 'Create new group'; $lang['Edit_group'] = 'Edit group'; $lang['group_name'] = 'Group name'; $lang['group_description'] = 'Group description'; $lang['group_moderator'] = 'Group moderator'; $lang['group_status'] = 'Group status'; $lang['group_open'] = 'Open group'; $lang['group_closed'] = 'Closed group'; $lang['group_hidden'] = 'Hidden group'; $lang['group_delete'] = 'Delete group'; $lang['group_delete_check'] = 'Delete this group'; $lang['submit_group_changes'] = 'Submit Changes'; $lang['reset_group_changes'] = 'Reset Changes'; $lang['No_group_name'] = 'You must specify a name for this group'; $lang['No_group_moderator'] = 'You must specify a moderator for this group'; $lang['No_group_mode'] = 'You must specify a mode for this group, open or closed'; $lang['No_group_action'] = 'No action was specified'; $lang['delete_group_moderator'] = 'Delete the old group moderator?'; $lang['delete_moderator_explain'] = 'If you\'re changing the group moderator, check this box to remove the old moderator from the group. Otherwise, do not check it, and the user will become a regular member of the group.'; $lang['Click_return_groupsadmin'] = 'Click %sHere%s to return to Group Administration.'; $lang['Select_group'] = 'Select a group'; $lang['Look_up_group'] = 'Manage group'; $lang['Look_up_groupcp'] = 'Group members'; // // Admin Userlist // $lang['Userlist'] = 'User list'; $lang['Userlist_description'] = 'View a complete list of your users and perform various actions on them'; $lang['Add_group'] = 'Add to a Group'; $lang['Add_group_explain'] = 'Select which group to add the selected users to'; $lang['Open_close'] = 'Open/Close'; $lang['Active'] = 'Active'; $lang['Group'] = 'Group(s)'; $lang['Rank'] = 'Rank'; $lang['Last_activity'] = 'Last Activity'; $lang['Never'] = 'Never'; $lang['User_manage'] = 'Manage'; $lang['Find_all_posts'] = 'Find All Posts'; $lang['Select_one'] = 'Select One'; $lang['Ban'] = 'Ban'; $lang['Activate_deactivate'] = 'Activate/De-activate'; $lang['User_id'] = 'User id'; $lang['User_level'] = 'User Level'; $lang['Ascending'] = 'Ascending'; $lang['Descending'] = 'Descending'; $lang['Show'] = 'Show'; $lang['All'] = 'All'; $lang['Member'] = 'Member'; $lang['Pending'] = 'Pending'; $lang['Confirm_user_ban'] = 'Are you sure you want to ban the selected user(s)?'; $lang['Confirm_user_deleted'] = 'Are you sure you want to detele the selected user(s)?'; $lang['User_status_updated'] = 'User(s) status updated successfully!'; $lang['User_banned_successfully'] = 'User(s) banned successfully!'; $lang['User_deleted_successfully'] = 'User(s) deleted successfully!'; $lang['User_add_group_successfully'] = 'User(s) added to group successfully!'; $lang['Click_return_userlist'] = 'Click %shere%s to return to the User List'; // // Pruning // $lang['Prune_user_posts'] = 'Prune User Posts'; $lang['Prune_explain'] = 'Welcome to the prune user posts Admin module addon for phpBB. This script allows you to prune posts based on a wide range of criteria.'; $lang['Forums_to_prune'] = 'Forums to Prune'; $lang['Forums_to_prune_explain'] = 'Check the box to prune posts in that forum. You can check multiple forums. (Note for large forums: You should only do a couple of forums at a time if you\'re pruning many posts)'; $lang['Users_to_prune'] = 'Users to Prune'; $lang['Username_explain'] = 'Prune posts made by this specific user'; $lang['All_users_explain'] = 'Prune posts by all users'; $lang['Banned_users'] = 'Banned users'; $lang['Banned_users_explain'] = 'Prune posts made by all users that have been banned (as per the banlist)'; $lang['Group'] = 'Group'; $lang['Group_explain'] = 'Prune posts made by users in this specific group'; $lang['IP_explain'] = 'Prune posts made by a specific ip address (xxx.xxx.xxx.xxx), wildcard (xxx.xxx.xxx.*) or range (xxx.xxx.xxx.xxx-yyy.yyy.yyy.yyy). Note: the last quad .255 is considered the range of all the IPs in that quad. If you enter 10.0.0.255, it is just like entering 10.0.0.* (No IP is assigned .255 for that matter, it is reserved). Where you may encounter this is in ranges, 10.0.0.5-10.0.0.255 is the same as "10.0.0.*" . You should really enter 10.0.0.5-10.0.0.254 .'; $lang['Banned_IPs'] = 'Banned IP Addresses'; $lang['Banned_IPs_explain'] = 'Prune posts made by all IPs in the banned list.'; $lang['Guest_posters'] = 'Guest Posters'; $lang['Guest_posters_explain'] = 'Prune posts made by guest posters only (Users not logged in).'; $lang['Date_criteria'] = 'Date Criteria'; $lang['Before'] = 'Before'; $lang['On'] = 'On'; $lang['After'] = 'After'; $lang['the_last'] = 'the last'; $lang['Seconds'] = 'Seconds'; $lang['Minutes'] = 'Minutes'; $lang['By_time_explain'] = 'Prune posts based on the above time. Please note only whole numbers are accepted, there is no reason to use decimals. (If you need .5 days, input 12 and select hours).'; $lang['ddmmyyyy'] = '(dd/mm/yyyy)'; $lang['Date_explain'] = 'Prune posts on above date criteria. Note dates are limited to roughly 1970 - 2038 (4 Bit unix timestamp limit)'; $lang['to'] = 'to'; $lang['Range_explain'] = 'Prune posts between both dates. Dates are subject to above limits.'; $lang['All_posts_explain'] = 'Prune all posts regardless of time.'; $lang['Pruning_options'] = 'Pruning Options'; $lang['Prune_remove_topics'] = 'Remove Topics by User(s)?'; $lang['Prune_remove_topics_explain'] = 'If the user(s) you selected started the topic and others have replied to the topic, would you like the entire topic removed?'; $lang['Exempt_stickies'] = 'Exempt Stickies?'; $lang['Exempt_stickies_explain'] = 'Do not prune posts in stickied topics.'; $lang['Exempt_announcements'] = 'Exempt Announcements?'; $lang['Exempt_announcements_explain'] = 'Do not prune posts in Announcements.'; $lang['Exempt_open'] = 'Exempt Open Topics?'; $lang['Exempt_open_explain'] = 'Do not prune posts in topics that are still open. (e.g. Select this as yes to prune locked topics only)'; $lang['Exempt_polls'] = 'Exempt Polls?'; $lang['Exempt_polls_explain'] = 'Do not prune posts in topics with Polls.'; $lang['Adjust_post_counts'] = 'Adjust Post Counts?'; $lang['Adjust_post_counts_explain'] = 'Update user\'s post counts to reflect posts that were deleted.'; $lang['Update_search'] = 'Update Search Tables?'; $lang['Update_search_explain'] = 'Whether posts should be removed from the search tables. If you select No, you will need to manually rebuild the search tables. You should only select No if you have a very large board on a very slow server pruning many posts.'; $lang['Prune_invalid_mode'] = 'Unable to Prune - Invalid mode'; $lang['Prune_invalid_IP'] = 'Invalid IP Address entered'; $lang['Prune_invalid_date'] = 'Invalid date entered.'; $lang['Prune_invalid_range'] = 'Invalid IP Range entered'; $lang['No_banned_IPs'] = 'There are no banned IP Addresses'; $lang['No_forums_selected'] = 'Unable to start pruning - No forums were selected'; $lang['Prune_no_posts'] = 'Unable to start pruning - No posts were found to prune'; $lang['Prune_finished'] = 'Pruning successfully completed.<br /><br />Return to the <a href="%s">Prune User Posts</a> page.<br /><br />Return to the <a href="%s">Admin Index</a>.'; // // Prune Inactive Users by kkroo < pri...@ho... > (Omar Ramadan) http://phpbb-login.sourceforge.net // $lang['Click_return_userprune'] = 'Click %sHere%s to return to Prune Inactive Users'; $lang['Prune_users_page_title'] = 'Prune Inactive Users'; $lang['Prune_users_page_explain'] = 'This is a list of users fetched by the query you created. Select the users that you want to prune below and hit submit. If you would would like to notify the user that his account is inactive, click email on the user\'s row.'; $lang['Prune_users_Confirm_message'] = 'Are you sure you want to delete these users?'; $lang['Prune_users_Confirm_last_visit'] = 'Last Visit'; $lang['Prune_users_Confirm_select_all_none'] = 'Select All/None'; $lang['Prune_users_selected'] = 'Selected'; $lang['Never'] = 'Never'; $lang['All_Time'] = 'All Time'; $lang['Seven_days'] = 'Seven days ago'; $lang['Ten_days'] = 'Ten days ago'; $lang['Two_weeks'] = 'Two weeks ago'; $lang['One_month'] = 'One month ago'; $lang['Two_months'] = 'Two months ago'; $lang['Three_months'] = 'Three months ago'; $lang['Notify_user'] = 'Notify'; $lang['user_regdate'] = 'Registered'; $lang['user_active'] = 'Activated'; $lang['user_posts'] = 'Posts'; $lang['Prune_users_sql_explain'] = 'Build your search criteria using the form below.'; $lang['Build_Query'] = 'Build Query'; $lang['Build_Your_Query'] = 'Build your query'; $lang['last_visit_explain'] = 'Scan for users that have not logged in since the selected number of days ago. Use "Never" to find users that have never logged in.'; $lang['user_regdate_explain'] = 'Set a limit for the user registration dates. For example, if you use the "Active" check below, you might want to give users a few days to click their activation email first. The default limit is 7 days, meaning that users are given a 7 day window to complete thier registration before they are removed.'; $lang['user_active_explain'] = 'Use this option to mark users that have not activated their accounts, or that have become inactive for some other reason.'; $lang['user_posts_explain'] = 'Set a criteria for marking users based on post count. The most common setting is for "zero post" users.'; $lang['Your_account_is_inactive'] = 'Your account is inactive.'; ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |