You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2005-04-12 19:52:20
|
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17148/modules/mx_smartor Modified Files: album_lists.php Log Message: lang renaming... Index: album_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_lists.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** album_lists.php 9 Jan 2005 21:52:00 -0000 1.8 --- album_lists.php 12 Apr 2005 19:51:47 -0000 1.9 *************** *** 1,641 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- [...1255 lines suppressed...] ! 'L_VIEW' => $lang['View'], ! 'L_POSTER' => $lang['Poster'], ! 'L_POSTED' => $lang['Pic_Posted'], ! 'L_PUBLIC_CATS' => $lang['Public_Categories'] ) ! ); ! ! // Generate the page ! ! $template->pparse( 'body' ); ! ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! // +--------------------------------------------------------+ ! // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | ! // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003 | ! // +--------------------------------------------------------+ ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:52:19
|
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17148/modules/mx_smartor/includes Modified Files: album_personal_cat_admin.php Log Message: lang renaming... Index: album_personal_cat_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_personal_cat_admin.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** album_personal_cat_admin.php 9 Jan 2005 21:52:02 -0000 1.1 --- album_personal_cat_admin.php 12 Apr 2005 19:51:48 -0000 1.2 *************** *** 1,725 **** ! <?php ! ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : [...1423 lines suppressed...] ! { ! message_die( GENERAL_ERROR, 'Could not update this Category content', '', __LINE__, __FILE__, $sql ); ! } ! // This category is now emptied, we can remove it! ! $sql = "DELETE FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_id = '$source_cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, 'Could not delete this Category', '', __LINE__, __FILE__, $sql ); ! } ! // Re-order the rest of categories ! album_reorder_cat( $album_user_id ); ! // Return a message... ! showResultMessage( $lang['Category_deleted'] ); ! } ! } ! } ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:52:19
|
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17148/modules/mx_smartor/album_mod Modified Files: album_common.php Log Message: lang renaming... Index: album_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_common.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** album_common.php 5 Feb 2005 00:42:40 -0000 1.8 --- album_common.php 12 Apr 2005 19:51:47 -0000 1.9 *************** *** 1,174 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Saturday, February 01, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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. ! */ ! ! /** ! * MODIFICATIONS: ! * -added a query to get SP config info ! * -added a include to SP functions ! */ ! ! if ( !defined( 'IN_PORTAL' ) ) ! { ! die( 'Hacking attempt' ); ! } ! ! if ( !isset( $album_root_path ) || empty( $album_root_path ) ) ! { ! $album_root_path = $module_root_path . 'album_mod/'; ! } ! ! include_once( $album_root_path . 'album_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main_album.' . $phpEx ); ! include( $module_root_path . 'language/lang_english/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ); ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/upload_pic.gif" ) ) ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/$link_language/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/$link_language/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/$link_language/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/$link_language/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/$link_language/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/$link_language/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! else ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/lang_english/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/lang_english/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/lang_english/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/lang_english/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/lang_english/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/lang_english/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! ! // Get Album Config ! ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_config_name = $row['config_name']; ! $album_config_value = $row['config_value']; ! $album_config[$album_config_name] = $album_config_value; ! } ! // --- Album Category Hirarchy : begin ! // --- version : 1.2.0 ! if ( $album_config['album_debug_mode'] == 1 ) ! { ! $GLOBALS['album_debug_enabled'] = true; ! } ! else ! { ! $GLOBALS['album_debug_enabled'] = false; ! } ! // --- Album Category Hirarchy : end ! // for compatibility with mx and SP... ! // $album_config['rate'] = '1'; ! // $album_config['comment'] = '1'; ! // $album_config['fullpic_popup'] = '0'; ! // get SP config info ! $sql = "SELECT * ! FROM " . ALBUM_SP_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query SP config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_sp_config_name = $row['config_name']; ! $album_sp_config_value = $row['config_value']; ! ! $album_sp_config[$album_sp_config_name] = $album_sp_config_value; ! } ! // end get SP config info ! include_once( $album_root_path . 'album_functions.' . $phpEx ); ! include_once( $album_root_path . 'clown_album_functions.' . $phpEx ); ! include_once( $album_root_path . 'album_hierarchy_functions.' . $phpEx ); ! ! // Set ALBUM Version ! ! $template->assign_vars( array( 'ALBUM_VERSION' => '2' . $album_config['album_version'], ! 'ALBUM_VERSION_INFO' => 'This script (Smartor Album v. 2.0.0 :: mxBB Portal Module 2004, with Volodymyr (CLowN) Skoryks SP1 addon, IdleVoid\'s Album Category Hierarchy mod) is modified by <a href="http://www.mx-system.com">mxBB Team</a> ', ! 'PAFILEDB_SEARCH_ACTION' => append_sid( album_append_uid( this_smartor_mxurl() ) ), ! 'PAFILEDB_SEARCH_HIDDEN' => '<input type="hidden" name="smartor_mode" value="album_search"><input type="hidden" name="page" value="' . $page_id . '">', ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'L_TITLE' => $title, ! 'U_ALBUM' => append_sid( album_append_uid( this_smartor_mxurl() ) ) ! ) ! ); ! ?> \ No newline at end of file --- 1,174 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Saturday, February 01, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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. ! */ ! ! /** ! * MODIFICATIONS: ! * -added a query to get SP config info ! * -added a include to SP functions ! */ ! ! if ( !defined( 'IN_PORTAL' ) ) ! { ! die( 'Hacking attempt' ); ! } ! ! if ( !isset( $album_root_path ) || empty( $album_root_path ) ) ! { ! $album_root_path = $module_root_path . 'album_mod/'; ! } ! ! include_once( $album_root_path . 'album_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/lang_english/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/upload_pic.gif" ) ) ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/$link_language/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/$link_language/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/$link_language/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/$link_language/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/$link_language/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/$link_language/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! else ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/lang_english/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/lang_english/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/lang_english/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/lang_english/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/lang_english/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/lang_english/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! ! // Get Album Config ! ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_config_name = $row['config_name']; ! $album_config_value = $row['config_value']; ! $album_config[$album_config_name] = $album_config_value; ! } ! // --- Album Category Hirarchy : begin ! // --- version : 1.2.0 ! if ( $album_config['album_debug_mode'] == 1 ) ! { ! $GLOBALS['album_debug_enabled'] = true; ! } ! else ! { ! $GLOBALS['album_debug_enabled'] = false; ! } ! // --- Album Category Hirarchy : end ! // for compatibility with mx and SP... ! // $album_config['rate'] = '1'; ! // $album_config['comment'] = '1'; ! // $album_config['fullpic_popup'] = '0'; ! // get SP config info ! $sql = "SELECT * ! FROM " . ALBUM_SP_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query SP config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_sp_config_name = $row['config_name']; ! $album_sp_config_value = $row['config_value']; ! ! $album_sp_config[$album_sp_config_name] = $album_sp_config_value; ! } ! // end get SP config info ! include_once( $album_root_path . 'album_functions.' . $phpEx ); ! include_once( $album_root_path . 'clown_album_functions.' . $phpEx ); ! include_once( $album_root_path . 'album_hierarchy_functions.' . $phpEx ); ! ! // Set ALBUM Version ! ! $template->assign_vars( array( 'ALBUM_VERSION' => '2' . $album_config['album_version'], ! 'ALBUM_VERSION_INFO' => 'This script (Smartor Album v. 2.0.0 :: mxBB Portal Module 2004, with Volodymyr (CLowN) Skoryks SP1 addon, IdleVoid\'s Album Category Hierarchy mod) is modified by <a href="http://www.mx-system.com">mxBB Team</a> ', ! 'PAFILEDB_SEARCH_ACTION' => append_sid( album_append_uid( this_smartor_mxurl() ) ), ! 'PAFILEDB_SEARCH_HIDDEN' => '<input type="hidden" name="smartor_mode" value="album_search"><input type="hidden" name="page" value="' . $page_id . '">', ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'L_TITLE' => $title, ! 'U_ALBUM' => append_sid( album_append_uid( this_smartor_mxurl() ) ) ! ) ! ); ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:52:16
|
Update of /cvsroot/mxbb/mx_smartor/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17148/modules/mx_smartor/language/lang_english Added Files: lang_admin.php lang_main.php Removed Files: lang_admin_album.php lang_main_album.php Log Message: lang renaming... --- lang_main_album.php DELETED --- --- lang_admin_album.php DELETED --- --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_main.php [English] * ------------------- * begin : Sunday, February 02, 2003 * copyright : (C) 2003 Smartor * email : sma...@ho... * * $Id: lang_main.php,v 1.1 2005/04/12 19:51:48 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. * ***************************************************************************/ // // Album Index // $lang['Photo_Album'] = 'Photo Album'; $lang['Pics'] = 'Pics'; $lang['Last_Pic'] = 'Last Pic'; $lang['Public_Categories'] = 'Public Categories'; $lang['No_Pics'] = 'No Pics'; $lang['Users_Personal_Galleries'] = 'Users Personal Galleries'; $lang['Your_Personal_Gallery'] = 'Your Personal Gallery'; $lang['Recent_Public_Pics'] = 'Recent Public Pics'; $lang['Toprated_Public_Pics'] = 'Highest Rated Pictures'; $lang['Random_Public_Pics'] = 'Random Pictures'; $lang['Most_Public_Pics'] = 'Most Viewed Pictures'; $lang['View'] = 'View'; // // Category View // $lang['Category_not_exist'] = 'This category does not exist'; $lang['Upload_Pic'] = 'Upload Pic'; $lang['Pic_Title'] = 'Pic Title'; $lang['Album_upload_can'] = 'You <b>can</b> upload new pics in this category'; $lang['Album_upload_cannot'] = 'You <b>cannot</b> upload new pics in this category'; $lang['Album_rate_can'] = 'You <b>can</b> rate pics in this category'; $lang['Album_rate_cannot'] = 'You <b>cannot</b> rate pics in this category'; $lang['Album_comment_can'] = 'You <b>can</b> post comments to pics in this category'; $lang['Album_comment_cannot'] = 'You <b>cannot</b> post comments to pics in this category'; $lang['Album_edit_can'] = 'You <b>can</b> edit your pics and comments in this category'; $lang['Album_edit_cannot'] = 'You <b>cannot</b> edit your pics and comments in this category'; $lang['Album_delete_can'] = 'You <b>can</b> delete your pics and comments in this category'; $lang['Album_delete_cannot'] = 'You <b>cannot</b> delete your pics and comments in this category'; $lang['Album_moderate_can'] = 'You <b>can</b> %smoderate%s this category'; $lang['Edit_pic'] = 'Edit'; $lang['Delete_pic'] = 'Delete'; $lang['Rating'] = 'Rating'; $lang['Comments'] = 'Comments'; $lang['New_Comment'] = 'New Comment'; $lang['Not_rated'] = '<i>not rated</i>'; $lang['Select_initial'] = 'Select:'; // // Upload // $lang['Pic_Desc'] = 'Pic Description'; $lang['Plain_text_only'] = 'Plain text only'; $lang['Max_length'] = 'Max length (bytes)'; $lang['Upload_pic_from_machine'] = 'Upload a pic from your machine'; $lang['Upload_to_Category'] = 'Upload to Category'; $lang['Upload_thumbnail_from_machine'] = 'Upload its thumbnail from your machine (must be the same type with your pic)'; $lang['Upload_thumbnail'] = 'Upload a thumbnail image'; $lang['Upload_thumbnail_explain'] = 'It must be of the same file type as your picture'; $lang['Thumbnail_size'] = 'Thumbnail size (pixel)'; $lang['Filetype_and_thumbtype_do_not_match'] = 'Your pic and your thumbnail must be the same type'; $lang['Upload_no_title'] = 'You must enter a title for your pic'; $lang['Upload_no_file'] = 'You must enter your path and your filename'; $lang['Desc_too_long'] = 'Your description is too long'; $lang['Max_file_size'] = 'Maximum file size (bytes)'; $lang['Max_width'] = 'Maximum image width (pixel)'; $lang['Max_height'] = 'Maximum image height (pixel)'; $lang['JPG_allowed'] = 'Allowed to upload JPG files'; $lang['PNG_allowed'] = 'Allowed to upload PNG files'; $lang['GIF_allowed'] = 'Allowed to upload GIF files'; $lang['Album_reached_quota'] = 'This category has reached the quota of pics. Now you cannot upload any more. Please contact the administrators for more information'; $lang['User_reached_pics_quota'] = 'You have reached your quota of pics. Now you cannot upload any more. Please contact the administrators for more information'; $lang['Bad_upload_file_size'] = 'Your uploaded file is too large or corrupted'; $lang['Not_allowed_file_type'] = 'Your file type is not allowed'; $lang['Upload_image_size_too_big'] = 'Your image dimension size is too large'; $lang['Upload_thumbnail_size_too_big'] = 'Your thumbnail dimension size is too large'; $lang['Missed_pic_title'] = 'You must enter your pic title'; $lang['Album_upload_successful'] = 'Your pic has been uploaded successfully'; $lang['Album_upload_need_approval'] = 'Your pic has been uploaded successfully.<br /><br />But the feature Pic Approval has been enabled so your pic must be approved by a administrator or a moderator before posting'; $lang['Click_return_category'] = 'Click %shere%s to return to the category'; $lang['Click_return_album_index'] = 'Click %shere%s to return to the Album Index'; // View Pic $lang['Pic_not_exist'] = 'This pic does not exist'; // Edit Pic $lang['Edit_Pic_Info'] = 'Edit Pic Information'; $lang['Pics_updated_successfully'] = 'Your pic information has been updated successfully'; // Delete Pic $lang['Album_delete_confirm'] = 'Are you sure to delete these pic(s)?'; $lang['Pics_deleted_successfully'] = 'These pic(s) have been deleted successfully'; // // ModCP // $lang['Approval'] = 'Approval'; $lang['Approve'] = 'Approve'; $lang['Unapprove'] = 'Unapprove'; $lang['Status'] = 'Status'; $lang['Locked'] = 'Locked'; $lang['Not_approved'] = 'Not approved'; $lang['Approved'] = 'Approved'; $lang['Move_to_Category'] = 'Move to Category'; $lang['Pics_moved_successfully'] = 'Your pic(s) have been moved successfully'; $lang['Pics_locked_successfully'] = 'Your pic(s) have been locked successfully'; $lang['Pics_unlocked_successfully'] = 'Your pic(s) have been unlocked successfully'; $lang['Pics_approved_successfully'] = 'Your pic(s) have been approved successfully'; $lang['Pics_unapproved_successfully'] = 'Your pic(s) have been unapproved successfully'; // // Rate // $lang['Current_Rating'] = 'Current Rating'; $lang['Please_Rate_It'] = 'Please Rate It'; $lang['Already_rated'] = 'You have already rated this pic'; $lang['Album_rate_successfully'] = 'Your pic has been rated successfully'; // // Comment // $lang['Comment_no_text'] = 'Please enter your comment'; $lang['Comment_too_long'] = 'Your comment is too long'; $lang['Comment_delete_confirm'] = 'Are you sure to delete this comment?'; $lang['Pic_Locked'] = 'Sorry, this pic was locked. So you cannot post comment for this pic anymore'; // // Personal Gallery // $lang['Personal_Gallery_Explain'] = 'You can view the personal galleries of other members by clicking on the link in their profiles'; $lang['Personal_gallery_not_created'] = 'The personal gallery of %s is empty or has not been created'; $lang['Not_allowed_to_create_personal_gallery'] = 'Sorry, the administrators of this board donot allowed you to create your personal gallery'; $lang['Click_return_personal_gallery'] = 'Click %shere%s to return to the personal gallery'; // added $lang['Album'] = 'Photo Album'; $lang['Personal_Gallery_Of_User'] = 'Personal Gallery of %s'; $lang['Post_your_comment'] = 'Post your comment'; $lang['Not_Authorised'] = 'You are not authorized for this page, or you are not logged in as required.'; $lang['Pic_Posted'] = 'Upload Date'; // Toplists $lang['display_most_posts'] = "Most visited/view/dl<br />"; $lang['display_random_posts'] = "Random<br />"; $lang['display_top_ranked'] = "Toprated<br />"; $lang['display_latest_posts'] = "Latest<br />"; $lang['num_of_cols'] = "Number of cols<br />"; $lang['num_of_rows'] = "Number of rows<br />"; $lang['target_block'] = "Associated (target) Smartor Block"; ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * lang_admin.php [English] * ------------------- * begin : Sunday, February 02, 2003 * copyright : (C) 2003 Smartor * email : sma...@ho... * * $Id: lang_admin.php,v 1.1 2005/04/12 19:51:48 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. * ***************************************************************************/ // // Configuration // $lang['Album_config'] = 'Album Configuration'; $lang['Album_config_explain'] = 'You can change the general settings of your Photo Album here'; $lang['Album_config_updated'] = 'Album Configuration has been updated successfully'; $lang['Click_return_album_config'] = 'Click %sHere%s to return to the Album Configuration'; $lang['Max_pics'] = 'Maximum pics for each Category (-1 = unlimited)'; $lang['User_pics_limit'] = 'Pics limit per category for each user (-1 = unlimited)'; $lang['Moderator_pics_limit'] = 'Pics limit per category for each moderator (-1 = unlimited)'; $lang['Pics_Approval'] = 'Pics Approval'; $lang['Rows_per_page'] = 'Number of rows on thumbnail page'; $lang['Cols_per_page'] = 'Number of columns on thumbnail page'; $lang['Thumbnail_quality'] = 'Thumbnail quality (1-100)'; $lang['Thumbnail_cache'] = 'Thumbnail cache'; $lang['Manual_thumbnail'] = 'Manual thumbnail'; $lang['GD_version'] = 'Optimize for the version of GD'; $lang['Pic_Desc_Max_Length'] = 'Pic Description/Comment Max Length (bytes)'; $lang['Hotlink_prevent'] = 'Hotlink Prevention'; $lang['Hotlink_allowed'] = 'Allowed domains for hotlink (separated by a comma)'; $lang['Personal_gallery'] = 'Allowed to create personal gallery for users'; $lang['Personal_gallery_limit'] = 'Pics limit for each personal gallery (-1 = unlimited)'; $lang['Personal_gallery_view'] = 'Who can view personal galleries by default'; $lang['Rate_system'] = 'Enable rate system'; $lang['Rate_Scale'] =' Rating Scale'; $lang['Comment_system'] = 'Enable comment system'; $lang['Thumbnail_Settings'] = 'Thumbnail Settings'; $lang['Extra_Settings'] = 'Extra Settings'; $lang['Default_Sort_Method'] = 'Default Sort Method'; $lang['Default_Sort_Order'] = 'Default Sort Order'; $lang['Fullpic_Popup'] = 'View full pic as a popup'; // Personal Gallery Page $lang['Personal_Galleries'] = 'Personal Galleries'; $lang['Album_personal_gallery_title'] = 'Personal Gallery'; $lang['Album_personal_gallery_explain'] = 'On this page, you can choose which usergroups have right to create and view personal galleries. These settings only affect when you set "PRIVATE" for "Allowed to create personal gallery for users" or "Who can view personal galleries" in Album Configuration screen'; $lang['Album_personal_successfully'] = 'The setting has been updated successfully'; $lang['Click_return_album_personal'] = 'Click %sHere%s to return to the Personal Gallery Settings'; // // Categories // $lang['Album_Categories_Title'] = 'Album Categories Control'; $lang['Album_Categories_Explain'] = 'On this screen you can manage your categories: create, alter, delete, sort, etc.'; $lang['Category_Permissions'] = 'Category Permissions'; $lang['Category_Title'] = 'Category Title'; $lang['Category_Desc'] = 'Category Description'; $lang['View_level'] = 'View Level'; $lang['Upload_level'] = 'Upload Level'; $lang['Rate_level'] = 'Rate Level'; $lang['Comment_level'] = 'Comment Level'; $lang['Edit_level'] = ' Edit Level'; $lang['Delete_level'] = 'Delete Level'; $lang['New_category_created'] = 'New category has been created successfully'; $lang['Click_return_album_category'] = 'Click %sHere%s to return to the Album Categories Manager'; $lang['Category_updated'] = 'This category has been updated successfully'; $lang['Delete_Category'] = 'Delete Category'; $lang['Delete_Category_Explain'] = 'The form below will allow you to delete a category and decide where you want to put pics it contained'; $lang['Delete_all_pics'] = 'Delete all pics'; $lang['Category_deleted'] = 'This category has been deleted successfully'; $lang['Category_changed_order'] = 'This category has been changed order successfully'; // // Permissions // $lang['Album_Auth_Title'] = 'Album Permissions'; $lang['Album_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for each album category or just has the private access'; $lang['Select_a_Category'] = 'Select a Category'; $lang['Look_up_Category'] = 'Look up Category'; $lang['Album_Auth_successfully'] = 'Auth has been updated successfully'; $lang['Click_return_album_auth'] = 'Click %sHere%s to return to the Album Permissions'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Rate'; $lang['Comment'] = 'Comment'; // // Clear Cache // $lang['Clear_Cache'] = 'Clear Cache'; $lang['Album_clear_cache_confirm'] = 'If you use the Thumbnail Cache feature you must clear your thumbnail cache after changing your thumbnail settings in Album Configuration to make them re-generated.<br /><br /> Do you want to clear them now?'; $lang['Thumbnail_cache_cleared_successfully'] = '<br />Your thumbnail cache has been cleared successfully<br /> '; // // Clown config // $lang['Clown_album_config'] = 'ADV SP Configuration'; $lang['Clown_album_config_explain'] = 'Here you can configure some options for the Album Service Pack'; $lang['Clown_general_config'] = 'General Config'; $lang['Clown_watermark_config'] = 'WaterMark Config'; $lang['Clown_hot_or_not_config'] = 'Hot or Not Config'; $lang['Clown_rate_type'] = 'Select how do you want picture rating to be displayed'; $lang['Clown_rate_type0'] = 'Images only'; $lang['Clown_rate_type1'] = 'Numbers only'; $lang['Clown_rate_type2'] = 'Numbers and Images'; $lang['Clown_display_latest'] = 'Display latest submited pictures block'; $lang['Clown_display_toprated'] = 'Display highest rated pictures block'; $lang['Clown_display_random'] = 'Display random pictures block'; $lang['Clown_pic_row'] = 'Number of rows on thumbnail blocks'; $lang['Clown_pic_col'] = 'Number of columns on thumbnail blocks'; $lang['Clown_mid_thumbs'] = 'Use mid-thumbnail'; $lang['Clown_mid_thumbs_cache'] = 'Enable catching of mid-thumbnail'; $lang['Clown_mid_thumbs_heigth'] = 'Height of mid-thumbnail (pixel)'; $lang['Clown_mid_thumbs_width'] = 'Width of mid-thumbnail (pixel)'; $lang['Clown_watermark'] = 'Use watermark'; $lang['Clown_watermark_users'] = 'Show watermark for all users, if \'No\' only display to unregistered users'; $lang['Clown_watermark_placement'] = 'Display watermark at position on the picture'; $lang['Clown_hot_or_not'] = 'Unlimited rating on Hot or Not page'; $lang['Clown_hot_or_not_table'] = 'Store Hot or Not rating in a separate table'; $lang['Clown_hot_or_not_where'] = 'Display watermark at position on the picture (leave blank to use pictures from all the categories, if more then one category, separate by commas)'; $lang['Clown_can_rate'] = 'Can unregistered users rate'; $lang['Clown_jaime_lettering'] = 'Show alphabetic navigation index within a category (Jaime Lettering)'; ?> |
Update of /cvsroot/mxbb/mx_smartor/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17148/modules/mx_smartor/admin Modified Files: admin_album_auth.php admin_album_cat.php admin_album_clearcache.php admin_album_clown_SP.php admin_album_config.php admin_album_personal.php Log Message: lang renaming... Index: admin_album_personal.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_personal.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_album_personal.php 9 Jan 2005 21:52:00 -0000 1.3 --- admin_album_personal.php 12 Apr 2005 19:51:47 -0000 1.4 *************** *** 1,205 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Personal_Galleries'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $template->set_filenames( array( 'body' => 'admin/album_personal_body.tpl' ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get group list", "", __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get the current album settings for non created personal galleries ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE . " ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get Album info", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $private_groups = explode( ',', $row['config_value'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // Since all personal galleries have the same private/moderator settings we fetch the first ! // personal gallery and not all. ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_parent = 0 and cat_user_id != 0 ! LIMIT 1"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! // --- Album Category Hierarchy : end ! for( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // --- removed ! // $template->assign_block_vars('grouprow', array( ! // --- added ! $template->assign_block_vars( 'creation_grouprow', array( ! // --- Album Category Hierarchy : end ! 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! 'PRIVATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $private_groups ) ) ? 'checked="checked"' : '' ! ) // end array ! ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! // --- Album Category Hierarchy : end ! } ! ! $template->assign_vars( array( 'L_ALBUM_PERSONAL_TITLE' => $lang['Album_personal_gallery_title'], ! 'L_ALBUM_PERSONAL_EXPLAIN' => $lang['Album_personal_gallery_explain'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Personal_Auth_Explain'], ! // --- Album Category Hierarchy : end ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! 'L_GROUP_CONTROL' => $lang['Auth_Control_Group'], ! 'L_GROUPS' => $lang['Usergroups'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! // --- Album Category Hierarchy : end ! 'L_PRIVATE_ACCESS' => $lang['Private_access'], ! 'S_ALBUM_ACTION' => append_sid( 'admin_album_personal.' . $phpEx ) ! ) ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! // Now we update the datatabase ! $private_groups = @implode( ',', $HTTP_POST_VARS['private'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! // --- Album Category Hierarchy : end ! // album config for non created personal galleries ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " ! SET config_value = '$private_groups' ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_user_id != 0"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update personal gallery group information table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : end ! // okay, return a message... ! $message = $lang['Album_personal_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_personal'], '<a href="' . append_sid( "admin_album_personal.$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 ); ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file --- 1,205 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Personal_Galleries'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $template->set_filenames( array( 'body' => 'admin/album_personal_body.tpl' ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get group list", "", __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get the current album settings for non created personal galleries ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE . " ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, "Couldn't get Album info", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $private_groups = explode( ',', $row['config_value'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // Since all personal galleries have the same private/moderator settings we fetch the first ! // personal gallery and not all. ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_parent = 0 and cat_user_id != 0 ! LIMIT 1"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! // --- Album Category Hierarchy : end ! for( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! // --- removed ! // $template->assign_block_vars('grouprow', array( ! // --- added ! $template->assign_block_vars( 'creation_grouprow', array( ! // --- Album Category Hierarchy : end ! 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! 'PRIVATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $private_groups ) ) ? 'checked="checked"' : '' ! ) // end array ! ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! // --- Album Category Hierarchy : end ! } ! ! $template->assign_vars( array( 'L_ALBUM_PERSONAL_TITLE' => $lang['Album_personal_gallery_title'], ! 'L_ALBUM_PERSONAL_EXPLAIN' => $lang['Album_personal_gallery_explain'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Personal_Auth_Explain'], ! // --- Album Category Hierarchy : end ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! 'L_GROUP_CONTROL' => $lang['Auth_Control_Group'], ! 'L_GROUPS' => $lang['Usergroups'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! // --- Album Category Hierarchy : end ! 'L_PRIVATE_ACCESS' => $lang['Private_access'], ! 'S_ALBUM_ACTION' => append_sid( 'admin_album_personal.' . $phpEx ) ! ) ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! // Now we update the datatabase ! $private_groups = @implode( ',', $HTTP_POST_VARS['private'] ); ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! // --- Album Category Hierarchy : end ! // album config for non created personal galleries ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " ! SET config_value = '$private_groups' ! WHERE config_name = 'personal_gallery_private'"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0beta6 ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_user_id != 0"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update personal gallery group information table', '', __LINE__, __FILE__, $sql ); ! } ! // --- Album Category Hierarchy : end ! // okay, return a message... ! $message = $lang['Album_personal_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_personal'], '<a href="' . append_sid( "admin_album_personal.$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 ); ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file Index: admin_album_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_auth.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_album_auth.php 9 Jan 2005 21:52:00 -0000 1.3 --- admin_album_auth.php 12 Apr 2005 19:51:46 -0000 1.4 *************** *** 1,206 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Tuesday, February 04, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Permissions'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); ! ! $album_user_id = ALBUM_PUBLIC_GALLERY; ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! /* // Build the category selector ! $sql = "SELECT cat_id, cat_title, cat_order ! FROM ". ALBUM_CAT_TABLE ." ! ORDER BY cat_order ASC"; ! if( !$result = $db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not get Category list', '', __LINE__, __FILE__, $sql); ! } ! ! while( $row = $db->sql_fetchrow($result) ) ! { ! $catrows[] = $row; ! } ! ! for ($i = 0; $i < count($catrows); $i++) ! { ! $template->assign_block_vars('catrow', array( ! 'CAT_ID' => $catrows[$i]['cat_id'], ! 'CAT_TITLE' => $catrows[$i]['cat_title']) ! ); ! } ! */ ! album_read_tree(); ! $s_album_cat_list = album_get_tree_option( ALBUM_ROOT_CATEGORY, ALBUM_AUTH_VIEW, ALBUM_SELECTBOX_INCLUDE_ALL | ALBUM_SELECTBOX_INCLUDE_ROOT ); ! // --- Album Category Hierarchy : end ! $template->set_filenames( array( 'body' => 'admin/album_cat_select_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SELECT_CAT' => $lang['Select_a_Category'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx" ), ! 'L_LOOK_UP_CAT' => $lang['Look_up_Category'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0 ! 'CAT_SELECT_TITLE' => $s_album_cat_list ) ! // --- Album Category Hierarchy : end ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! if ( !isset( $HTTP_GET_VARS['cat_id'] ) ) ! { ! $cat_id = intval( $HTTP_POST_VARS['cat_id'] ); ! ! $template->set_filenames( array( 'body' => 'admin/album_auth_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! ! 'L_GROUPS' => $lang['Usergroups'], ! ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx?cat_id=$cat_id" ), ! ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get group list', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get info of this cat ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! ! for ( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! } ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! $cat_id = intval( $HTTP_GET_VARS['cat_id'] ); ! ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // okay, return a message... ! $message = $lang['Album_Auth_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_auth'], '<a href="' . append_sid( "admin_album_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 ); ! } ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file --- 1,206 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Tuesday, February 04, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Permissions'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! ! $album_user_id = ALBUM_PUBLIC_GALLERY; ! ! if ( !isset( $HTTP_POST_VARS['submit'] ) ) ! { ! /* // Build the category selector ! $sql = "SELECT cat_id, cat_title, cat_order ! FROM ". ALBUM_CAT_TABLE ." ! ORDER BY cat_order ASC"; ! if( !$result = $db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, 'Could not get Category list', '', __LINE__, __FILE__, $sql); ! } ! ! while( $row = $db->sql_fetchrow($result) ) ! { ! $catrows[] = $row; ! } ! ! for ($i = 0; $i < count($catrows); $i++) ! { ! $template->assign_block_vars('catrow', array( ! 'CAT_ID' => $catrows[$i]['cat_id'], ! 'CAT_TITLE' => $catrows[$i]['cat_title']) ! ); ! } ! */ ! album_read_tree(); ! $s_album_cat_list = album_get_tree_option( ALBUM_ROOT_CATEGORY, ALBUM_AUTH_VIEW, ALBUM_SELECTBOX_INCLUDE_ALL | ALBUM_SELECTBOX_INCLUDE_ROOT ); ! // --- Album Category Hierarchy : end ! $template->set_filenames( array( 'body' => 'admin/album_cat_select_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SELECT_CAT' => $lang['Select_a_Category'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx" ), ! 'L_LOOK_UP_CAT' => $lang['Look_up_Category'], ! // --- Album Category Hierarchy : begin ! // --- version : 1.1.0 ! 'CAT_SELECT_TITLE' => $s_album_cat_list ) ! // --- Album Category Hierarchy : end ! ); ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! if ( !isset( $HTTP_GET_VARS['cat_id'] ) ) ! { ! $cat_id = intval( $HTTP_POST_VARS['cat_id'] ); ! ! $template->set_filenames( array( 'body' => 'admin/album_auth_body.tpl' ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_AUTH_TITLE' => $lang['Album_Auth_Title'], ! 'L_ALBUM_AUTH_EXPLAIN' => $lang['Album_Auth_Explain'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'], ! ! 'L_GROUPS' => $lang['Usergroups'], ! ! 'L_VIEW' => $lang['View'], ! 'L_UPLOAD' => $lang['Upload'], ! 'L_RATE' => $lang['Rate'], ! 'L_COMMENT' => $lang['Comment'], ! 'L_EDIT' => $lang['Edit'], ! 'L_DELETE' => $lang['Delete'], ! ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! 'S_ALBUM_ACTION' => append_sid( "admin_album_auth.$phpEx?cat_id=$cat_id" ), ! ) ! ); ! // Get the list of phpBB usergroups ! $sql = "SELECT group_id, group_name ! FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> " . true . " ! ORDER BY group_name ASC"; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get group list', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $groupdata[] = $row; ! } ! // Get info of this cat ! $sql = "SELECT cat_id, cat_title, cat_view_groups, cat_upload_groups, cat_rate_groups, cat_comment_groups, cat_edit_groups, cat_delete_groups, cat_moderator_groups ! FROM " . ALBUM_CAT_TABLE . " ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not get Category information', '', __LINE__, __FILE__, $sql ); ! } ! ! $thiscat = $db->sql_fetchrow( $result ); ! ! $view_groups = @explode( ',', $thiscat['cat_view_groups'] ); ! $upload_groups = @explode( ',', $thiscat['cat_upload_groups'] ); ! $rate_groups = @explode( ',', $thiscat['cat_rate_groups'] ); ! $comment_groups = @explode( ',', $thiscat['cat_comment_groups'] ); ! $edit_groups = @explode( ',', $thiscat['cat_edit_groups'] ); ! $delete_groups = @explode( ',', $thiscat['cat_delete_groups'] ); ! ! $moderator_groups = @explode( ',', $thiscat['cat_moderator_groups'] ); ! ! for ( $i = 0; $i < count( $groupdata ); $i++ ) ! { ! $template->assign_block_vars( 'grouprow', array( 'GROUP_ID' => $groupdata[$i]['group_id'], ! 'GROUP_NAME' => $groupdata[$i]['group_name'], ! ! 'VIEW_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $view_groups ) ) ? 'checked="checked"' : '', ! ! 'UPLOAD_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $upload_groups ) ) ? 'checked="checked"' : '', ! ! 'RATE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $rate_groups ) ) ? 'checked="checked"' : '', ! ! 'COMMENT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $comment_groups ) ) ? 'checked="checked"' : '', ! ! 'EDIT_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $edit_groups ) ) ? 'checked="checked"' : '', ! ! 'DELETE_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $delete_groups ) ) ? 'checked="checked"' : '', ! ! 'MODERATOR_CHECKED' => ( in_array( $groupdata[$i]['group_id'], $moderator_groups ) ) ? 'checked="checked"' : '' ) ! ); ! } ! ! $template->pparse( 'body' ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! } ! else ! { ! $cat_id = intval( $HTTP_GET_VARS['cat_id'] ); ! ! $view_groups = @implode( ',', $HTTP_POST_VARS['view'] ); ! $upload_groups = @implode( ',', $HTTP_POST_VARS['upload'] ); ! $rate_groups = @implode( ',', $HTTP_POST_VARS['rate'] ); ! $comment_groups = @implode( ',', $HTTP_POST_VARS['comment'] ); ! $edit_groups = @implode( ',', $HTTP_POST_VARS['edit'] ); ! $delete_groups = @implode( ',', $HTTP_POST_VARS['delete'] ); ! ! $moderator_groups = @implode( ',', $HTTP_POST_VARS['moderator'] ); ! ! $sql = "UPDATE " . ALBUM_CAT_TABLE . " ! SET cat_view_groups = '$view_groups', cat_upload_groups = '$upload_groups', cat_rate_groups = '$rate_groups', cat_comment_groups = '$comment_groups', cat_edit_groups = '$edit_groups', cat_delete_groups = '$delete_groups', cat_moderator_groups = '$moderator_groups' ! WHERE cat_id = '$cat_id'"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, 'Could not update Album config table', '', __LINE__, __FILE__, $sql ); ! } ! // okay, return a message... ! $message = $lang['Album_Auth_successfully'] . '<br /><br />' . sprintf( $lang['Click_return_album_auth'], '<a href="' . append_sid( "admin_album_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 ); ! } ! } ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file Index: admin_album_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_config.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_album_config.php 9 Jan 2005 21:52:00 -0000 1.3 --- admin_album_config.php 12 Apr 2005 19:51:47 -0000 1.4 *************** *** 1,315 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Configuration std'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); ! ! // Pull all config data ! ! $sql = "SELECT * FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $default_config[$config_name] = isset( $HTTP_POST_VARS['submit'] ) ? str_replace( "'", "\'", $config_value ) : $config_value; ! ! $new[$config_name] = ( isset( $HTTP_POST_VARS[$config_name] ) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Failed to update Album configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Album_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_album_config'], "<a href=\"" . append_sid( "admin_album_config.$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 ); ! } ! } ! ! $template->set_filenames( array( "body" => "admin/album_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_CONFIG' => $lang['Album_config'], ! 'L_ALBUM_CONFIG_EXPLAIN' => $lang['Album_config_explain'], ! 'S_ALBUM_CONFIG_ACTION' => append_sid( 'admin_album_config.' . $phpEx ), ! ! 'MAX_PICS' => $new['max_pics'], ! 'MAX_FILE_SIZE' => $new['max_file_size'], ! 'MAX_WIDTH' => $new['max_width'], ! 'MAX_HEIGHT' => $new['max_height'], ! 'ROWS_PER_PAGE' => $new['rows_per_page'], ! 'COLS_PER_PAGE' => $new['cols_per_page'], ! 'THUMBNAIL_QUALITY' => $new['thumbnail_quality'], ! 'THUMBNAIL_SIZE' => $new['thumbnail_size'], ! 'PERSONAL_GALLERY_LIMIT' => $new['personal_gallery_limit'], ! ! 'USER_PICS_LIMIT' => $new['user_pics_limit'], ! 'MOD_PICS_LIMIT' => $new['mod_pics_limit'], ! ! 'THUMBNAIL_CACHE_ENABLED' => ( $new['thumbnail_cache'] == 1 ) ? 'checked="checked"' : '', ! 'THUMBNAIL_CACHE_DISABLED' => ( $new['thumbnail_cache'] == 0 ) ? 'checked="checked"' : '', ! // --- Album Category Hierarchy : begin ! // --- version : <= 1.1.0 ! 'INDEX_SHOW_SUBCATS_ENABLED' => ( $new['show_index_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_SUBCATS_DISABLED' => ( $new['show_index_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_ENABLED' => ( $new['show_index_thumb'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_DISABLED' => ( $new['show_index_thumb'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_ENABLED' => ( $new['show_index_total_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_DISABLED' => ( $new['show_index_total_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_ENABLED' => ( $new['show_index_total_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_DISABLED' => ( $new['show_index_total_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_ENABLED' => ( $new['show_index_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_DISABLED' => ( $new['show_index_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_ENABLED' => ( $new['show_index_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_DISABLED' => ( $new['show_index_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_ENABLED' => ( $new['show_index_last_comment'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_DISABLED' => ( $new['show_index_last_comment'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_ENABLED' => ( $new['show_index_last_pic'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_DISABLED' => ( $new['show_index_last_pic'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_ENABLED' => ( $new['line_break_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_DISABLED' => ( $new['line_break_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_ENABLED' => ( $new['show_personal_gallery_link'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_DISABLED' => ( $new['show_personal_gallery_link'] == 0 ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ID' => ( $new['album_category_sorting'] == 'cat_id' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_NAME' => ( $new['album_category_sorting'] == 'cat_title' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_ORDER' => ( $new['album_category_sorting'] == 'cat_order' ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ASC' => ( $new['album_category_sorting_direction'] == 'ASC' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_DESC' => ( $new['album_category_sorting_direction'] == 'DESC' ) ? 'checked="checked"' : '', ! ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['personal_show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['personal_show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_ENABLED' => ( $new['personal_allow_gallery_mod'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_DISABLED' => ( $new['personal_allow_gallery_mod'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_ENABLED' => ( $new['personal_allow_sub_categories'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_DISABLED' => ( $new['personal_allow_sub_categories'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUB_GALLERY_LIMIT' => $new['personal_sub_category_limit'], ! 'PERSONAL_SHOW_SUBCATS_ENABLED' => ( $new['personal_show_subcats_in_index'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_SUBCATS_DISABLED' => ( $new['personal_show_subcats_in_index'] == 0 ) ? 'checked="checked"' : '', ! // --- version : 1.2.0 ! 'ALBUM_DEBUG_MODE_ENABLED' => ( $new['album_debug_mode'] == 1 ) ? 'checked="checked"' : '', ! 'ALBUM_DEBUG_MODE_DISABLED' => ( $new['album_debug_mode'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_ALL_PICS_ENABLED' => ( $new['show_all_in_personal_gallery'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_ALL_PICS_DISABLED' => ( $new['show_all_in_personal_gallery'] == 0 ) ? 'checked="checked"' : '', ! 'NEW_PIC_CHECK_INTERVAL' => $new['new_pic_check_interval'], ! // --- version : 1.3.0 ! 'INDEX_SUPERCELLS_ENABLED' => ( $new['index_enable_supercells'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SUPERCELLS_DISABLED' => ( $new['index_enable_supercells'] == 0 ) ? 'checked="checked"' : '', ! // --- Album Category Hierarchy : end ! 'JPG_ENABLED' => ( $new['jpg_allowed'] == 1 ) ? 'checked="checked"' : '', ! 'JPG_DISABLED' => ( $new['jpg_allowed'] == 0 ) ? 'checked="checked"' : '', ! ! 'PNG_ENABLED' => ( $new['png_allowed'] == 1 ) ? 'checked="checked"' : '', ! 'PNG_DISABLED' => ( $new['png_allowed'] == 0 ) ? 'checked="checked"' : '', ! ! 'GIF_ENABLED' => ( $new['gif_allowed'] == 1 ) ? 'checked="checked"' : '', ! 'GIF_DISABLED' => ( $new['gif_allowed'] == 0 ) ? 'checked="checked"' : '', ! ! 'PIC_DESC_MAX_LENGTH' => $new['desc_length'], ! ! 'HOTLINK_PREVENT_ENABLED' => ( $new['hotlink_prevent'] == 1 ) ? 'checked="checked"' : '', ! 'HOTLINK_PREVENT_DISABLED' => ( $new['hotlink_prevent'] == 0 ) ? 'checked="checked"' : '', ! ! 'HOTLINK_ALLOWED' => $new['hotlink_allowed'], ! ! 'PERSONAL_GALLERY_USER' => ( $new['personal_gallery'] == ALBUM_USER ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_PRIVATE' => ( $new['personal_gallery'] == ALBUM_PRIVATE ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_ADMIN' => ( $new['personal_gallery'] == ALBUM_ADMIN ) ? 'checked="checked"' : '', ! ! 'PERSONAL_GALLERY_VIEW_ALL' => ( $new['personal_gallery_view'] == ALBUM_GUEST ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_VIEW_REG' => ( $new['personal_gallery_view'] == ALBUM_USER ) ? 'checked="checked"' : '', ! 'PERSONAL_GALLERY_VIEW_PRIVATE' => ( $new['personal_gallery_view'] == ALBUM_PRIVATE ) ? 'checked="checked"' : '', ! ! 'RATE_ENABLED' => ( $new['rate'] == 1 ) ? 'checked="checked"' : '', ! 'RATE_DISABLED' => ( $new['rate'] == 0 ) ? 'checked="checked"' : '', ! ! 'RATE_SCALE' => $new['rate_scale'], ! ! 'COMMENT_ENABLED' => ( $new['comment'] == 1 ) ? 'checked="checked"' : '', ! 'COMMENT_DISABLED' => ( $new['comment'] == 0 ) ? 'checked="checked"' : '', ! ! 'NO_GD' => ( $new['gd_version'] == 0 ) ? 'checked="checked"' : '', ! 'GD_V1' => ( $new['gd_version'] == 1 ) ? 'checked="checked"' : '', ! 'GD_V2' => ( $new['gd_version'] == 2 ) ? 'checked="checked"' : '', ! ! 'SORT_TIME' => ( $new['sort_method'] == 'pic_time' ) ? 'selected="selected"' : '', ! 'SORT_PIC_TITLE' => ( $new['sort_method'] == 'pic_title' ) ? 'selected="selected"' : '', ! 'SORT_USERNAME' => ( $new['sort_method'] == 'pic_user_id' ) ? 'selected="selected"' : '', ! 'SORT_VIEW' => ( $new['sort_method'] == 'pic_view_count' ) ? 'selected="selected"' : '', ! 'SORT_RATING' => ( $new['sort_method'] == 'rating' ) ? 'selected="selected"' : '', ! 'SORT_COMMENTS' => ( $new['sort_method'] == 'comments' ) ? 'selected="selected"' : '', ! 'SORT_NEW_COMMENT' => ( $new['sort_method'] == 'new_comment' ) ? 'selected="selected"' : '', ! ! 'SORT_ASC' => ( $new['sort_order'] == 'ASC' ) ? 'selected="selected"' : '', ! 'SORT_DESC' => ( $new['sort_order'] == 'DESC' ) ? 'selected="selected"' : '', ! ! 'FULLPIC_POPUP_ENABLED' => ( $new['fullpic_popup'] == 1 ) ? 'checked="checked"' : '', ! 'FULLPIC_POPUP_DISABLED' => ( $new['fullpic_popup'] == 0 ) ? 'checked="checked"' : '', ! ! 'S_GUEST' => ALBUM_GUEST, ! 'S_USER' => ALBUM_USER, ! 'S_PRIVATE' => ALBUM_PRIVATE, ! 'S_MOD' => ALBUM_MOD, ! 'S_ADMIN' => ALBUM_ADMIN, ! ! 'L_MAX_PICS' => $lang['Max_pics'], ! 'L_MAX_FILE_SIZE' => $lang['Max_file_size'], ! 'L_MAX_WIDTH' => $lang['Max_width'], ! 'L_MAX_HEIGHT' => $lang['Max_height'], ! 'L_USER_PICS_LIMIT' => $lang['User_pics_limit'], ! 'L_MOD_PICS_LIMIT' => $lang['Moderator_pics_limit'], ! 'L_ROWS_PER_PAGE' => $lang['Rows_per_page'], ! 'L_COLS_PER_PAGE' => $lang['Cols_per_page'], ! 'L_MANUAL_THUMBNAIL' => $lang['Manual_thumbnail'], ! 'L_THUMBNAIL_QUALITY' => $lang['Thumbnail_quality'], ! 'L_THUMBNAIL_SIZE' => $lang['Thumbnail_size'], ! 'L_THUMBNAIL_CACHE' => $lang['Thumbnail_cache'], ! 'L_JPG_ALLOWED' => $lang['JPG_allowed'], ! 'L_PNG_ALLOWED' => $lang['PNG_allowed'], ! 'L_GIF_ALLOWED' => $lang['GIF_allowed'], ! 'L_PIC_DESC_MAX_LENGTH' => $lang['Pic_Desc_Max_Length'], ! 'L_HOTLINK_PREVENT' => $lang['Hotlink_prevent'], ! 'L_HOTLINK_ALLOWED' => $lang['Hotlink_allowed'], ! 'L_PERSONAL_GALLERY' => $lang['Personal_gallery'], ! 'L_PERSONAL_GALLERY_LIMIT' => $lang['Personal_gallery_limit'], ! 'L_PERSONAL_GALLERY_VIEW' => $lang['Personal_gallery_view'], ! 'L_RATE_SYSTEM' => $lang['Rate_system'], ! 'L_RATE_SCALE' => $lang['Rate_Scale'], ! 'L_COMMENT_SYSTEM' => $lang['Comment_system'], ! 'L_GD_VERSION' => $lang['GD_version'], ! 'L_THUMBNAIL_SETTINGS' => $lang['Thumbnail_Settings'], ! 'L_EXTRA_SETTINGS' => $lang['Extra_Settings'], ! 'L_DEFAULT_SORT_METHOD' => $lang['Default_Sort_Method'], ! 'L_TIME' => $lang['Time'], ! 'L_PIC_TITLE' => $lang['Pic_Title'], ! 'L_USERNAME' => $lang['Sort_Username'], ! 'L_VIEW' => $lang['View'], ! 'L_RATING' => $lang['Rating'], ! 'L_COMMENTS' => $lang['Comments'], ! 'L_NEW_COMMENT' => $lang['New_Comment'], ! 'L_DEFAULT_SORT_ORDER' => $lang['Default_Sort_Order'], ! 'L_ASC' => $lang['Sort_Ascending'], ! 'L_DESC' => $lang['Sort_Descending'], ! 'L_FULLPIC_POPUP' => $lang['Fullpic_Popup'], ! 'L_GUEST' => $lang['Forum_ALL'], ! 'L_REG' => $lang['Forum_REG'], ! 'L_PRIVATE' => $lang['Forum_PRIVATE'], ! 'L_MOD' => $lang['Forum_MOD'], ! 'L_ADMIN' => $lang['Forum_ADMIN'], ! // --- Album Category Hierarchy : begin ! // --- version : <= 1.1.0 ! 'L_ALBUM_INDEX_SETTINGS' => $lang['Album_Index_Settings'], ! 'L_INDEX_SHOW_SUBCATS' => $lang['Show_Index_Subcats'], ! 'L_INDEX_THUMB' => $lang['Show_Index_Thumb'], ! 'L_INDEX_TOTAL_PICS' => $lang['Show_Index_Total_Pics'], ! 'L_INDEX_TOTAL_COMMENTS' => $lang['Show_Index_Total_Comments'], ! 'L_INDEX_PICS' => $lang['Show_Index_Pics'], ! 'L_INDEX_COMMENTS' => $lang['Show_Index_Comments'], ! 'L_INDEX_LAST_COMMENT' => $lang['Show_Index_Last_Comment'], ! 'L_INDEX_LAST_PIC' => $lang['Show_Index_Last_Pic'], ! 'L_INDEX_LINEBREAK_SUBCATS' => $lang['Line_Break_Subcats'], ! 'L_SHOW_RECENT_IN_SUBCATS' => $lang['Show_Recent_In_Subcats'], ! 'L_SHOW_RECENT_INSTEAD_OF_NOPICS' => $lang['Show_Recent_Instead_of_NoPics'], ! ! 'L_SHOW_PERSONAL_GALLERY_LINK' => $lang['Show_Personal_Gallery_Link'], ! ! 'L_ALBUM_CATEGORY_SORTING' => $lang['Album_Category_Sorting'], ! 'L_ALBUM_CATEGORY_SORTING_ID' => $lang['Album_Category_Sorting_Id'], ! 'L_ALBUM_CATEGORY_SORTING_NAME' => $lang['Album_Category_Sorting_Name'], ! 'L_ALBUM_CATEGORY_SORTING_ORDER' => $lang['Album_Category_Sorting_Order'], ! ! 'L_ALBUM_CATEGORY_DIRECTION' => $lang['Album_Category_Sorting_Direction'], ! 'L_ALBUM_CATEGORY_SORTING_ASC' => $lang['Album_Category_Sorting_Asc'], ! 'L_ALBUM_CATEGORY_SORTING_DESC' => $lang['Album_Category_Sorting_Desc'], ! ! 'L_ALBUM_PERSONAL_GALLERY_SETTINGS' => $lang['Album_Personal_Settings'], ! 'L_ALBUM_PERSONAL_MODERATOR' => $lang['Personal_Gallery_MOD'], ! 'L_PERSONAL_SUB_GALLERY_LIMIT' => $lang['Personal_Sub_Cat_Limit'], ! 'L_PERSONAL_ALLOW_SUB_GATTEGORY' => $lang['User_Can_Create_Personal_SubCats'], ! 'L_PERSONAL_SHOW_SUBCATS' => $lang['Show_Personal_Sub_Cats'], ! 'L_PERSONAL_SHOW_RECENT_IN_SUBCATS' => $lang['Show_Recent_In_Personal_Subcats'], ! 'L_PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS' => $lang['Show_Recent_Instead_of_Personal_NoPics'], ! // --- version : 1.2.0 ! 'L_ALBUM_DEBUG_MODE' => $lang['Album_debug_mode'], ! 'L_PERSONAL_SHOW_ALL_PICS' => $lang['Enable_Show_All_Pics'], ! ! 'L_NEW_PIC_CHECK_INTERVAL' => $lang['New_Pic_Check_Interval'], ! 'L_NEW_PIC_CHECK_INTERVAL_DESC' => $lang['New_Pic_Check_Interval_Desc'], ! // --- version : 1.3.0 ! 'L_ENABLE_SUPERCELLS' => $lang['Enable_Index_Supercells'], ! // --- Album Category Hierarchy : end ! 'L_DISABLED' => $lang['Disabled'], ! 'L_ENABLED' => $lang['Enabled'], ! 'L_YES' => $lang['Yes'], ! 'L_NO' => $lang['No'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_RESET' => $lang['Reset'] ) ! ); ! ! $template->pparse( "body" ); ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ?> \ No newline at end of file --- 1,315 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Sunday, February 02, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * 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', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Configuration std'] = "modules/mx_smartor/admin/" . $filename; ! return; ! } ! ! // Let's set the root dir for phpBB ! ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_constants.' . $phpEx ); ! require( $module_root_path . 'album_mod/album_common.' . $phpEx ); ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! ! // Pull all config data ! ! $sql = "SELECT * FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $default_config[$config_name] = isset( $HTTP_POST_VARS['submit'] ) ? str_replace( "'", "\'", $config_value ) : $config_value; ! ! $new[$config_name] = ( isset( $HTTP_POST_VARS[$config_name] ) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $sql = "UPDATE " . ALBUM_CONFIG_TABLE . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Failed to update Album configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Album_config_updated'] . "<br /><br />" . sprintf( $lang['Click_return_album_config'], "<a href=\"" . append_sid( "admin_album_config.$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 ); ! } ! } ! ! $template->set_filenames( array( "body" => "admin/album_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( 'L_ALBUM_CONFIG' => $lang['Album_config'], ! 'L_ALBUM_CONFIG_EXPLAIN' => $lang['Album_config_explain'], ! 'S_ALBUM_CONFIG_ACTION' => append_sid( 'admin_album_config.' . $phpEx ), ! ! 'MAX_PICS' => $new['max_pics'], ! 'MAX_FILE_SIZE' => $new['max_file_size'], ! 'MAX_WIDTH' => $new['max_width'], ! 'MAX_HEIGHT' => $new['max_height'], ! 'ROWS_PER_PAGE' => $new['rows_per_page'], ! 'COLS_PER_PAGE' => $new['cols_per_page'], ! 'THUMBNAIL_QUALITY' => $new['thumbnail_quality'], ! 'THUMBNAIL_SIZE' => $new['thumbnail_size'], ! 'PERSONAL_GALLERY_LIMIT' => $new['personal_gallery_limit'], ! ! 'USER_PICS_LIMIT' => $new['user_pics_limit'], ! 'MOD_PICS_LIMIT' => $new['mod_pics_limit'], ! ! 'THUMBNAIL_CACHE_ENABLED' => ( $new['thumbnail_cache'] == 1 ) ? 'checked="checked"' : '', ! 'THUMBNAIL_CACHE_DISABLED' => ( $new['thumbnail_cache'] == 0 ) ? 'checked="checked"' : '', ! // --- Album Category Hierarchy : begin ! // --- version : <= 1.1.0 ! 'INDEX_SHOW_SUBCATS_ENABLED' => ( $new['show_index_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_SUBCATS_DISABLED' => ( $new['show_index_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_ENABLED' => ( $new['show_index_thumb'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_THUMB_DISABLED' => ( $new['show_index_thumb'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_ENABLED' => ( $new['show_index_total_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_PICS_DISABLED' => ( $new['show_index_total_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_ENABLED' => ( $new['show_index_total_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_TOTAL_COMMENTS_DISABLED' => ( $new['show_index_total_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_ENABLED' => ( $new['show_index_pics'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_PICS_DISABLED' => ( $new['show_index_pics'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_ENABLED' => ( $new['show_index_comments'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_COMMENTS_DISABLED' => ( $new['show_index_comments'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_ENABLED' => ( $new['show_index_last_comment'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_COMMENT_DISABLED' => ( $new['show_index_last_comment'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_ENABLED' => ( $new['show_index_last_pic'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LAST_PIC_DISABLED' => ( $new['show_index_last_pic'] == 0 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_ENABLED' => ( $new['line_break_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_LINEBREAK_DISABLED' => ( $new['line_break_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_ENABLED' => ( $new['show_personal_gallery_link'] == 1 ) ? 'checked="checked"' : '', ! 'INDEX_SHOW_PERSONAL_GALLERY_LINK_DISABLED' => ( $new['show_personal_gallery_link'] == 0 ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ID' => ( $new['album_category_sorting'] == 'cat_id' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_NAME' => ( $new['album_category_sorting'] == 'cat_title' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_ORDER' => ( $new['album_category_sorting'] == 'cat_order' ) ? 'checked="checked"' : '', ! ! 'ALBUM_CATEGORY_SORTING_ASC' => ( $new['album_category_sorting_direction'] == 'ASC' ) ? 'checked="checked"' : '', ! 'ALBUM_CATEGORY_SORTING_DESC' => ( $new['album_category_sorting_direction'] == 'DESC' ) ? 'checked="checked"' : '', ! ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_ENABLED' => ( $new['personal_show_recent_in_subcats'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_IN_SUBCATS_DISABLED' => ( $new['personal_show_recent_in_subcats'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_ENABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SHOW_RECENT_INSTEAD_OF_NOPICS_DISABLED' => ( $new['personal_show_recent_instead_of_nopics'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_ENABLED' => ( $new['personal_allow_gallery_mod'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_MOD_DISABLED' => ( $new['personal_allow_gallery_mod'] == 0 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_ENABLED' => ( $new['personal_allow_sub_categories'] == 1 ) ? 'checked="checked"' : '', ! 'PERSONAL_SUBCAT_DI... [truncated message content] |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:50:22
|
Update of /cvsroot/mxbb/mx_newssuite/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15947/modules/mx_newssuite/includes Modified Files: newssuite_constants.php Log Message: lang renaming... Index: newssuite_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_newssuite/includes/newssuite_constants.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** newssuite_constants.php 6 Mar 2005 01:12:55 -0000 1.14 --- newssuite_constants.php 12 Apr 2005 19:50:12 -0000 1.15 *************** *** 1,734 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- [...1441 lines suppressed...] ! ! if ( !( $opt &2 ) ) ! { ! // Not translating double quotes ! // Remove double quote from translation table ! unset( $trans_tbl["""] ); ! } ! ! return strtr ( $string, $trans_tbl ); ! } ! } ! // Just to be safe ;o) ! if ( !defined( "ENT_COMPAT" ) ) define( "ENT_COMPAT", 2 ); ! if ( !defined( "ENT_NOQUOTES" ) ) define( "ENT_NOQUOTES", 0 ); ! if ( !defined( "ENT_QUOTES" ) ) define( "ENT_QUOTES", 3 ); ! ! $mxbb_footer_addup[] = 'mxBB Newssuite Module'; ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:50:21
|
Update of /cvsroot/mxbb/mx_newssuite/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15947/modules/mx_newssuite/language/lang_english Added Files: lang_main.php Removed Files: lang_newssuite.php Log Message: lang renaming... --- lang_newssuite.php DELETED --- --- NEW FILE: lang_main.php --- <?php // News Mod $lang['News'] = "News"; $lang['Author'] = "Author"; $lang['Read_more'] = "Read more"; $lang['Comment'] = "Comment"; $lang['Comments'] = "Comments"; $lang['News_Archive'] = "News Archive"; // %s replaced with number of views $lang['Reads'] = "%s views"; // %s replaced with username and date in that order $lang['Posted_by_on'] = "Posted by %s on %s"; // // General strings from the news admin panel // $lang['News_settings_title'] = "General Settings"; $lang['News_operate_title'] = "Interactivity Mode"; $lang['News_mode_title'] = "Main Mode Settings"; $lang['News_settings'] = "News Settings"; $lang['News_settings_short_explain'] = "Configure some options for the front-page news."; $lang['News_settings_explain'] = "Here you can edit the configuration for the news module. The news module displays only a few of the most recent posts in a particular forum on the front page allowing you to inform users of important information."; // General $lang['News_forums'] = "News Source"; $lang['Display_news'] = "Display news"; $lang['Display_polls'] = "Display polls (not used in 'Category Nav Mode')"; $lang['Display_polls_explain'] = "If this is set to yes then polls will appear above the content of the news article. If set to no, the poll will not appear."; $lang['News_items'] = "News items"; $lang['News_items_explain'] = "How many topics from the forum do you want displayed (per category when categorized)?"; $lang['News_forum'] = "News forum"; $lang['News_forum_explain'] = "Which forum has the news in it?"; $lang['Time_format'] = "Time format (not used in 'Category Nav Mode')"; $lang['Time_format_explain'] = "This is the time format used to tell the user the date the news was posted (in php's %sdate%s function time format)"; // %s's for URI params - DO NOT REMOVE $lang['Trim_character'] = "Trim character (not used in 'Category Nav Mode')"; $lang['Trim_character_explain'] = "This is a character that the news post will stop at if found. Commonly '<code><i></i></code>'"; $lang['Truncate_num'] = "Truncate message after num of chars (not used in 'Category Nav Mode')"; $lang['Truncate_num_explain'] = "This is the number of characters that the news post will display"; $lang['Truncate_num_subject'] = "Truncate subject (title) after num of chars"; $lang['Truncate_num_subject_explain'] = "This is the number of characters that the news post will display"; $lang['Fix_up_msg'] = "Fix up message (and subject) for better layout control"; $lang['Fix_up_msg_explain'] = "- Rewriting common BBCODES in a more slick/compact way<br />- Truncating and validating URLs<br />- Resizing images if wider than colwidth<br />- Hyphen words, to avoid long words expanding col"; $lang['Enable_html_msg'] = "Enable html in message, or remove the tags (but not contents)"; $lang['Enable_html_msg_explain'] = "Typically you'll disable html since the news should be formatted very slick ;)"; $lang['Enable_bbcode_msg'] = "Enable bbcode in message, or remove the tags (but not contents)"; $lang['Enable_bbcode_msg_explain'] = "By default enabled, but beware of what bbcodes you're using..."; $lang['Display_signatures'] = "Display signatures (not used in 'Category Nav Mode')"; $lang['Display_signatures_explain'] = "If yes displays the signatures of the posters if found"; $lang['Display_edit_information'] = "Display edit information (not used in 'Category Nav Mode')"; $lang['Display_edit_information_explain'] = "If yes displays the 'Last edited by' at the end of the post"; $lang['News_tagging'] = "Filter tagged posts"; $lang['News_tagging_explain'] = "If enabled, only posts tagged with userdefined 'post types' will be shown. For example, if you have the post type 'bug' and 'solved bug', you may create a news block only showing bug posts..."; $lang['News_pinning'] = "Order by post type"; $lang['News_pinning_explain'] = "Pin phpbb announcements and stickies (sort DESC by kb types) at top of list."; $lang['News_filter_time'] = "Filter by time"; $lang['News_filter_time_explain'] = "Show posts from last week, month, year..."; // // Update result messages // $lang['News_updated_return_settings'] = "News configuration updated successfully.<br /><br />Click %shere%s to return to News Settings."; // %s's for URI params - DO NOT REMOVE $lang['News_update_error'] = "Couldn't update news configuration.<br /><br />This mod is designed for MySQL so please contact the author if you have troubles. If you can offer a translation of the SQL into other database formats, please send them to:<br />"; // Added by Haplo $lang['news_style_parameters'] = "Style Parameters "; $lang['news_display_block_title'] = "Display news titles: (not used in 'Category Nav Mode')<br /> - display titles for every news"; $lang['news_block_border'] = "Block border: <br /> - display block borders"; $lang['news_block_header'] = "Emphasize news titles: (only used in 'Standard Block Mode')<br /> - use standard title class"; $lang['news_block_footer'] = "Block footer: <br /> - add block footers (edited by, date, comments etc)"; $lang['Read more'] = "Read more"; $lang['news_show_title'] = "Show block title and description:"; $lang['news_sort_method'] = "Sort option:"; $lang['news_sort_par'] = "Ascending or Descending:"; $lang['news_sort_style'] = "Sort mode:"; $lang['news_sort_style_explain'] = "Sort by categories or mix all news (posts/articles):"; $lang['News_mode'] = "Main Mode Switch: <br /> Display news in separate blocks or composed/categorized newspaper style."; $lang['Change_source'] = "Select news source:"; $lang['News_mode_operate'] = "Interact with 'source' or standalone mode 'none'"; $lang['News_mode_operate_explain'] = "The main phpbb/kb block contents may be synced with the newssuite block, i.e. 'source' mode. The newssuite block may also be used by itself, 'none' mode (default mode). "; $lang['News_main_mode'] = "Main Mode:"; $lang['News_main_mode_explain'] = "The Newssuite operate modes are:<br /> - Standard Block Mode: News (posts/articles) are displayed as individual blocks<br /> - Newspaper mode: News (posts/articles) are composed into ONE block<br /> - Category Nav mode: only news (post/articles) TITLES are displayed for easy navigation"; // Types // phpbb $lang['Cat_all'] = "All"; $lang['Cat_normal'] = "Normal post"; $lang['Cat_sticky'] = "Sticky"; $lang['Cat_announce'] = "Announce"; // kb $lang['Cat_pin'] = "Pinned article"; $lang['Read_home'] = "Start"; $lang['Read_next'] = "More"; $lang['Read_previous'] = "Previous"; $lang['No_news'] = "No more news available..."; ?> |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:48:47
|
Update of /cvsroot/mxbb/mx_act In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14412/modules/mx_act Modified Files: activity.php game.php newscore.php Log Message: Index: newscore.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/newscore.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** newscore.php 9 Jan 2005 21:30:34 -0000 1.4 --- newscore.php 12 Apr 2005 19:48:18 -0000 1.5 *************** *** 1,769 **** ! <?php ! /** ! * newscore.php ! * ------------------ ! * begin : Thursday, August 1, 2002 ! * copyright : (c)2002 iNetAngel ! * email : su...@in... ! * ! * $Id$ ! * [...1511 lines suppressed...] ! // put it back the way it was. ! if ( $userdata['user_session_page'] == PAGE_PLAYING_GAMES ) ! { ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_session_page = '" . PAGE_ACTIVITY . "' ! WHERE user_id = " . $userdata['user_id']; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql ); ! } ! } ! } ! } ! // Generate page ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! $template->pparse( 'body' ); ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! ?> \ No newline at end of file Index: game.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/game.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** game.php 9 Jan 2005 21:30:34 -0000 1.2 --- game.php 12 Apr 2005 19:48:18 -0000 1.3 *************** *** 1,213 **** ! <?php ! /** ! * game.php ! * ------------------ ! * begin : Thursday, August 1, 2002 ! * copyright : (c) 2002 iNetAngel ! * email : su...@iN... ! * ! * $Id$ ! * ! * ! * ! * 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. ! * ! * ! * ! * This is a MOD for phpbb v2+. The phpbb group has all rights to the ! * phpbb source. They can be contacted at : ! * ! * I-Net : www.phpbb.com ! * E-Mail: su...@ph... ! * ! * If you have made any changes then please notify me so they can be added ! * if they are improvments. You of course will get the credit for helping ! * out. If you would like to see other MODs that I have made then check ! * out my forum at : www.iNetAngel.com and click on the community button. ! */ ! ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! $module_root_path = './'; ! ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! /* ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_PLAYING_GAMES); ! init_userprefs($userdata); ! // End session management ! ! */ ! // For some reason user_session_page is not always updated with session_pagestart. ! // So we check for it and if not set, we have game.php set it. This is needed to ! // keep others from cheating. ! // define('INA_BAN', $table_prefix .'ina_ban'); ! // define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! if ( $userdata['user_session_page'] != PAGE_PLAYING_GAMES ) ! { ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_session_page = '" . PAGE_PLAYING_GAMES . "' ! WHERE user_id = " . $userdata['user_id']; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql ); ! } ! } ! ! /* Do a quick ban check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* Finished with ban check */ ! ! $game_id = ( isset( $HTTP_GET_VARS['id'] ) ) ? intval( $HTTP_GET_VARS['id'] ) : 0; ! // Grab Game info from game_id ! $sql = "SELECT * FROM " . iNA_GAMES . " ! WHERE game_id = " . $game_id; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql ); ! } ! $game_info = $db->sql_fetchrow( $result ); ! // Extra Vars ! $game_name = $game_info['game_name']; ! $game_width = $game_info['win_width']; ! $game_height = $game_info['win_height']; ! $game_path = $game_info['game_path']; ! $game_flash = $game_info['game_flash']; ! $game_title = $board_config['sitename'] . $lang['game_dash'] . $lang['game_dash'] . $game_name; ! ! if ( ( $game_flash ) && ( !$_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body.tpl' ) ); ! // Generate page ! $template->assign_vars( array( 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! $template->pparse( 'body' ); ! }elseif ( ( $game_flash ) && ( $_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body2.tpl' ) ); ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game_name'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $t_holder_id = $row['player']; ! $t_holder_sc = $row['score']; ! $t_holder_da = $row['date']; ! $trophy_score = number_format( $t_holder_sc ); ! $trophy_date = strftime( "%b. %d, %Y @ %H:%M:%S", $t_holder_da ); ! ! $q1 = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '$t_holder_id'"; ! $r1 = $db->sql_query( $q1 ); ! $row = $db->sql_fetchrow( $r1 ); ! $t_holder_name = $row['username']; ! ! $t_link = $t_holder_name . "'s <a href='" . $phpbb_root_path . "profile.php?mode=viewprofile&u=$t_holder_id&sid=" . $userdata['session_id'] . "'>" . $lang['main_profile'] . "</a>", ! $t_link1 = $t_holder_name . "'s <a href='" . this_act_mxurl( "mode=act_trophy&user=$t_holder_name&sid=" . $userdata['session_id'] ) . "'>" . $lang['game_profile'] . "</a>", ! ! $template->assign_vars( array( 'T_HOLDER' => $lang['trophy_holder'], ! 'T_HOLDER_1' => $t_holder_name, ! 'T_DATE' => $trophy_date, ! 'T_DATE_1' => $lang['trophy_held_since'], ! 'T_SCORE' => $trophy_score, ! 'T_SCORE_1' => $lang['score_to_beat'], ! 'T_LINK' => $t_link, ! 'T_LINK_1' => $t_link1, ! 'T_IMAGE' => "images/trophy.gif", ! 'R_TITLE' => $lang['top_ten'], ! 'NAME' => $game_name, ! 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! ! $q2 = "SELECT *, MAX(score) AS hscore ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game_name' ! GROUP BY player ! ORDER BY score DESC ! LIMIT 0,10"; ! $r2 = $db->sql_query( $q2 ); ! if ( $row = $db->sql_fetchrow( $r2 ) ) ! { ! $p = 1; ! do ! { ! $runner_up_name = $row['player']; ! $runner_up_score1 = $row['hscore']; ! $runner_up_score = number_format( $runner_up_score1 ); ! ! $template->assign_block_vars( "runner", array( 'R_U_NAME' => $runner_up_name, ! 'R_U_SCORE' => $runner_up_score ) ! ); ! ! $p++; ! } ! while ( $row = $db->sql_fetchrow( $r2 ) ); ! } ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! $template->pparse( 'body' ); ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! else ! { ! $template->set_filenames( array( 'body' => $game_name . '_body.tpl' ) ); ! ! $template->assign_vars( array( 'USERNAME' => $userdata['username'], ! 'PATH' => $module_root_path . $game_path, ! 'GAMELIB' => "./" . $act_config['games_path'] . "/" . $act_config['gamelib_path'] . "/", ! 'S_GAME_ACTION' => append_sid( $module_root_path . 'newscore.' . $phpEx . '?mode=check_score&game_name=' . $game_name ) ) ! ); ! $template->pparse( 'body' ); ! } ! ?> \ No newline at end of file --- 1,213 ---- ! <?php ! /** ! * game.php ! * ------------------ ! * begin : Thursday, August 1, 2002 ! * copyright : (c) 2002 iNetAngel ! * email : su...@iN... ! * ! * $Id$ ! * ! * ! * ! * 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. ! * ! * ! * ! * This is a MOD for phpbb v2+. The phpbb group has all rights to the ! * phpbb source. They can be contacted at : ! * ! * I-Net : www.phpbb.com ! * E-Mail: su...@ph... ! * ! * If you have made any changes then please notify me so they can be added ! * if they are improvments. You of course will get the credit for helping ! * out. If you would like to see other MODs that I have made then check ! * out my forum at : www.iNetAngel.com and click on the community button. ! */ ! ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! $module_root_path = './'; ! ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! /* ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_PLAYING_GAMES); ! init_userprefs($userdata); ! // End session management ! ! */ ! // For some reason user_session_page is not always updated with session_pagestart. ! // So we check for it and if not set, we have game.php set it. This is needed to ! // keep others from cheating. ! // define('INA_BAN', $table_prefix .'ina_ban'); ! // define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! if ( $userdata['user_session_page'] != PAGE_PLAYING_GAMES ) ! { ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_session_page = '" . PAGE_PLAYING_GAMES . "' ! WHERE user_id = " . $userdata['user_id']; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql ); ! } ! } ! ! /* Do a quick ban check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* Finished with ban check */ ! ! $game_id = ( isset( $HTTP_GET_VARS['id'] ) ) ? intval( $HTTP_GET_VARS['id'] ) : 0; ! // Grab Game info from game_id ! $sql = "SELECT * FROM " . iNA_GAMES . " ! WHERE game_id = " . $game_id; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql ); ! } ! $game_info = $db->sql_fetchrow( $result ); ! // Extra Vars ! $game_name = $game_info['game_name']; ! $game_width = $game_info['win_width']; ! $game_height = $game_info['win_height']; ! $game_path = $game_info['game_path']; ! $game_flash = $game_info['game_flash']; ! $game_title = $board_config['sitename'] . $lang['game_dash'] . $lang['game_dash'] . $game_name; ! ! if ( ( $game_flash ) && ( !$_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body.tpl' ) ); ! // Generate page ! $template->assign_vars( array( 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! $template->pparse( 'body' ); ! }elseif ( ( $game_flash ) && ( $_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body2.tpl' ) ); ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game_name'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $t_holder_id = $row['player']; ! $t_holder_sc = $row['score']; ! $t_holder_da = $row['date']; ! $trophy_score = number_format( $t_holder_sc ); ! $trophy_date = strftime( "%b. %d, %Y @ %H:%M:%S", $t_holder_da ); ! ! $q1 = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '$t_holder_id'"; ! $r1 = $db->sql_query( $q1 ); ! $row = $db->sql_fetchrow( $r1 ); ! $t_holder_name = $row['username']; ! ! $t_link = $t_holder_name . "'s <a href='" . $phpbb_root_path . "profile.php?mode=viewprofile&u=$t_holder_id&sid=" . $userdata['session_id'] . "'>" . $lang['main_profile'] . "</a>", ! $t_link1 = $t_holder_name . "'s <a href='" . this_act_mxurl( "mode=act_trophy&user=$t_holder_name&sid=" . $userdata['session_id'] ) . "'>" . $lang['game_profile'] . "</a>", ! ! $template->assign_vars( array( 'T_HOLDER' => $lang['trophy_holder'], ! 'T_HOLDER_1' => $t_holder_name, ! 'T_DATE' => $trophy_date, ! 'T_DATE_1' => $lang['trophy_held_since'], ! 'T_SCORE' => $trophy_score, ! 'T_SCORE_1' => $lang['score_to_beat'], ! 'T_LINK' => $t_link, ! 'T_LINK_1' => $t_link1, ! 'T_IMAGE' => "images/trophy.gif", ! 'R_TITLE' => $lang['top_ten'], ! 'NAME' => $game_name, ! 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! ! $q2 = "SELECT *, MAX(score) AS hscore ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game_name' ! GROUP BY player ! ORDER BY score DESC ! LIMIT 0,10"; ! $r2 = $db->sql_query( $q2 ); ! if ( $row = $db->sql_fetchrow( $r2 ) ) ! { ! $p = 1; ! do ! { ! $runner_up_name = $row['player']; ! $runner_up_score1 = $row['hscore']; ! $runner_up_score = number_format( $runner_up_score1 ); ! ! $template->assign_block_vars( "runner", array( 'R_U_NAME' => $runner_up_name, ! 'R_U_SCORE' => $runner_up_score ) ! ); ! ! $p++; ! } ! while ( $row = $db->sql_fetchrow( $r2 ) ); ! } ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! $template->pparse( 'body' ); ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! else ! { ! $template->set_filenames( array( 'body' => $game_name . '_body.tpl' ) ); ! ! $template->assign_vars( array( 'USERNAME' => $userdata['username'], ! 'PATH' => $module_root_path . $game_path, ! 'GAMELIB' => "./" . $act_config['games_path'] . "/" . $act_config['gamelib_path'] . "/", ! 'S_GAME_ACTION' => append_sid( $module_root_path . 'newscore.' . $phpEx . '?mode=check_score&game_name=' . $game_name ) ) ! ); ! $template->pparse( 'body' ); ! } ! ?> \ No newline at end of file Index: activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/activity.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** activity.php 18 Feb 2005 10:05:36 -0000 1.4 --- activity.php 12 Apr 2005 19:48:18 -0000 1.5 *************** *** 1,438 **** ! <?php ! /** ! * activity.php ! * ------------------- ! * begin : Thursday, August 1, 2002 ! * copyright : (c) 2002 iNetAngel ! * email : su...@in... ! * ! * $Id$ ! * ! * ! * ! * 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. ! * ! * ! * ! * This is a MOD for phpbb v2.0.+ The phpbb group has all rights to the ! * phpbb source. They can be contacted at : ! * ! * I-Net : www.phpbb.com ! * E-Mail: su...@ph... ! * ! * If you have made any changes then please notify me so they can be added ! * if they are improvments. You of course will get the credit for helping ! * out. If you would like to see other MODs that I have made then check ! * out my forum at : www.iNetAngel.com and click on the community button. ! */ ! // MX ! if ( !function_exists( 'read_block_config' ) ) ! { ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if ( empty( $block_id ) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'ActivityGames' LIMIT 1"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Activity Mod module information", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $block_id = $row['block_id']; ! } ! $is_block = false; ! } ! else ! { ! ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! ! $is_block = true; ! global $images; ! } ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* Original code ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx); ! define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $table_prefix .'ina_ban'); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_ACTIVITY); ! init_userprefs($userdata); ! // End session management ! */ ! // Make sure the player is registered ! $user_id = $userdata['user_id']; ! if ( $act_config['ina_guest_play'] == "2" ) ! { ! if ( !$userdata['session_logged_in'] && $user_id == ANONYMOUS ) ! { ! mx_message_die( GENERAL_ERROR, $lang['not_logged_in'], $lang['info'] ); ! // $header_location = ( @preg _match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: "; ! // header($header_location . append_sid("login.$phpEx?redirect=activity.$phpEx", true)); ! // exit; ! } ! } ! ! $q = "UPDATE " . SESSIONS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE session_user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . USERS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! /* Start Restriction Checks */ ! /* Start Ban Check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* End Ban Check */ ! /* Start Post Count Check */ ! if ( $act_config['ina_post_block'] == "1" ) ! { ! if ( $userdata['user_posts'] < $act_config['ina_post_block_count'] ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires " . $act_config['ina_post_block_count'] . " Posts Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Post Count Check */ ! /* Start Registration Date Check */ ! if ( $act_config['ina_join_block'] == "1" ) ! { ! $days_block = $act_config['ina_join_block_count']; ! $length_check = time() - $userdata['user_regdate']; ! $length_block = $length_check / 86400; ! $rounded = round( $length_block ); ! if ( $rounded < $days_block ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires Being A Member For " . $act_config['ina_join_block_count'] . " Day(s) Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Registration Date Check */ ! /* End Restriction Checks */ ! ! if ( $act_config['use_rewards_mod'] ) ! { ! if ( $act_config['use_point_system'] ) ! { ! include( $phpbb_root_path . 'includes/functions_points.' . $phpEx ); ! } ! if ( $act_config['use_cash_system'] || $act_config['use_allowance_system'] ) ! { ! include( $module_root_path . 'includes/rewards_api.' . $phpEx ); ! } ! if ( ( $act_config['use_point_system'] ) && ( file_exists( $phpbb_root_path . 'includes/functions_points.' . $phpEx ) == 0 ) ) ! { ! function get_user_points( $user_id ) ! { ! global $db; ! ! $sql = "SELECT user_points ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_points from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $points = $db->sql_fetchrow( $result ); ! ! return $points['user_points']; ! } ! ! function get_username_from_id( $user_id ) ! { ! global $db; ! ! $sql = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id ! AND user_id != " . ANONYMOUS; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get username from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $username = $db->sql_fetchrow( $result ); ! ! return $username['username']; ! } ! ! function get_userid_from_name( $username ) ! { ! global $db; ! ! $username = str_replace( "\'", "''", trim( $username ) ); ! ! $sql = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '$username' ! AND user_id != " . ANONYMOUS; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_id from $username.", '', __LINE__, __FILE__, $sql ); ! } ! $user_id = $db->sql_fetchrow( $result ); ! ! return $user_id['user_id']; ! } ! ! function add_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points + $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! ! function subtract_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points - $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! } ! } ! ! if ( isset( $HTTP_GET_VARS['mode'] ) || isset( $HTTP_POST_VARS['mode'] ) ) ! { ! $mode = ( isset( $HTTP_GET_VARS['mode'] ) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; ! } ! else ! { ! if ( isset( $HTTP_POST_VARS['game'] ) ) ! { ! $mode = "game"; ! } ! else if ( isset( $HTTP_POST_VARS['stats'] ) ) ! { ! $mode = "stats"; ! } ! else ! { ! $mode = ""; ! } ! } ! ! $q = "SELECT game_id ! FROM " . iNA_GAMES . " ! ORDER BY RAND() ! LIMIT 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $random_game = append_sid( this_act_mxurl( "mode=game&id=" . $row['game_id'] . "&parent=true" ) ); ! $random_image = $phpbb_root_path . "templates/subSilver/images/icon_mini_faq.gif"; ! // Challenge -------------------------------- ! if ( $mode == "challenge" ) ! { ! include( $module_root_path . 'includes/act_challenges_main.' . $phpEx ); ! } ! ! $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; ! $finish = $act_config['games_per_page']; ! ! if ( isset( $HTTP_POST_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_POST_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! }elseif ( isset( $HTTP_GET_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_GET_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! } ! else ! { ! $sort_order = 'DESC'; ! } ! ! if ( $act_config['use_point_system'] ) ! { ! $game_cost = $act_config['points_name']; ! } ! else ! { ! $game_cost = $lang['game_cost']; ! } ! ! $mode_types_text = array( $lang['game_instructions'], $game_cost, $lang['game_bonuses'], $lang['game_played'] ); ! $mode_types = array( 'game_instructions', 'game_charge', 'game_bonus', 'game_played' ); ! ! $select_sort_mode = '<select name="mode">'; ! ! for( $i = 0; $i < count( $mode_types_text ); $i++ ) ! { ! $selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : ''; ! $select_sort_mode .= '<option value="' . $mode_types[$i] . '"' . $selected . '>' . $mode_types_text[$i] . '</option>'; ! } ! $select_sort_mode .= '</select>'; ! ! $select_sort_order = '<select name="order">'; ! if ( $sort_order == 'DESC' ) ! { ! $select_sort_order .= '<option value="DESC" selected="selected">' . $lang['Sort_Descending'] . '</option><option value="ASC">' . $lang['Sort_Ascending'] . '</option>'; ! } ! else ! { ! $select_sort_order .= '<option value="DESC">' . $lang['Sort_Descending'] . '</option><option value="ASC" selected="selected">' . $lang['Sort_Ascending'] . '</option>'; ! } ! $select_sort_order .= '</select>'; ! ! switch ( $mode ) ! { ! case 'game_instructions': ! $order_by = "instructions $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_charge': ! $order_by = "game_charge $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_bonus': ! $order_by = "game_bonus $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_played': ! $order_by = "played $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! default: ! $order_by = "game_id $sort_order LIMIT $start, " . $act_config['games_per_page']; ! break; ! } ! ! if ( $mode != "" ) ! { ! if ( $mode == "game" ) ! { ! include( $module_root_path . 'includes/act_games.' . $phpEx ); ! } ! else if ( $mode == "stats" ) ! { ! include( $module_root_path . 'includes/act_stats.' . $phpEx ); ! } ! else if ( $mode == "act_scores" ) ! { ! include( $module_root_path . 'includes/act_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores" ) ! { ! include( $module_root_path . 'includes/act_top_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores_search" ) ! { ! include( $module_root_path . 'includes/act_top_scores_search.' . $phpEx ); ! } ! else if ( $mode == "act_trophy" ) ! { ! include( $module_root_path . 'includes/act_trophy.' . $phpEx ); ! } ! else if ( $mode == "act_trophy_comments" ) ! { ! include( $module_root_path . 'includes/act_trophy_comments.' . $phpEx ); ! } ! else if ( $mode == "act_challenges" ) ! { ! include( $module_root_path . 'includes/act_challenges.' . $phpEx ); ! } ! else if ( $mode == "category_play" ) ! { ! include( $module_root_path . 'includes/act_cat_play.' . $phpEx ); ! } ! } ! else ! { ! include( $module_root_path . 'includes/act_main.' . $phpEx ); ! } ! ! $template->assign_vars( array( "U_INDEX" => append_sid( $mx_root_path ), ! "L_INDEX" => '<< ' . $lang['site_home'], ! "U_TROPHY" => append_sid( this_act_mxurl( "mode=act_trophy" ) ), ! "L_TROPHY" => $lang['trophy_count_link'], ! "U_TOP_SCORES" => append_sid( this_act_mxurl( "mode=act_top_scores" ) ), ! "L_TOP_SCORES" => $lang['game_highscores'], ! "U_ACTIVITY" => append_sid( this_act_mxurl() ), ! "L_ACTIVITY" => $lang['act_home'], ! "U_STATS" => append_sid( this_act_mxurl( "mode=stats" ) ), ! "L_STATS" => $lang['game_stats'], ! "U_GAMES" => append_sid( this_act_mxurl( "mode=games" ) ), ! "L_GAMES" => $lang['game'], ! "L_COMMENTS_TITLE" => $lang['comments_title'], ! "L_HIGHSCORES_TITLE" => $lang['game_highscores'], ! ) ); ! // Generate page ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! } ! include ( $module_root_path . "includes/act_header." . $phpEx ); ! ! $template->pparse( 'body' ); ! ! include ( $module_root_path . "includes/act_footer." . $phpEx ); ! ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! ?> \ No newline at end of file --- 1,438 ---- ! <?php ! /** ! * activity.php ! * ------------------- ! * begin : Thursday, August 1, 2002 ! * copyright : (c) 2002 iNetAngel ! * email : su...@in... ! * ! * $Id$ ! * ! * ! * ! * 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. ! * ! * ! * ! * This is a MOD for phpbb v2.0.+ The phpbb group has all rights to the ! * phpbb source. They can be contacted at : ! * ! * I-Net : www.phpbb.com ! * E-Mail: su...@ph... ! * ! * If you have made any changes then please notify me so they can be added ! * if they are improvments. You of course will get the credit for helping ! * out. If you would like to see other MODs that I have made then check ! * out my forum at : www.iNetAngel.com and click on the community button. ! */ ! // MX ! if ( !function_exists( 'read_block_config' ) ) ! { ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if ( empty( $block_id ) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'ActivityGames' LIMIT 1"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Activity Mod module information", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $block_id = $row['block_id']; ! } ! $is_block = false; ! } ! else ! { ! ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! ! $is_block = true; ! global $images; ! } ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* Original code ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $table_prefix .'ina_ban'); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_ACTIVITY); ! init_userprefs($userdata); ! // End session management ! */ ! // Make sure the player is registered ! $user_id = $userdata['user_id']; ! if ( $act_config['ina_guest_play'] == "2" ) ! { ! if ( !$userdata['session_logged_in'] && $user_id == ANONYMOUS ) ! { ! mx_message_die( GENERAL_ERROR, $lang['not_logged_in'], $lang['info'] ); ! // $header_location = ( @preg _match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: "; ! // header($header_location . append_sid("login.$phpEx?redirect=activity.$phpEx", true)); ! // exit; ! } ! } ! ! $q = "UPDATE " . SESSIONS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE session_user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . USERS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! /* Start Restriction Checks */ ! /* Start Ban Check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* End Ban Check */ ! /* Start Post Count Check */ ! if ( $act_config['ina_post_block'] == "1" ) ! { ! if ( $userdata['user_posts'] < $act_config['ina_post_block_count'] ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires " . $act_config['ina_post_block_count'] . " Posts Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Post Count Check */ ! /* Start Registration Date Check */ ! if ( $act_config['ina_join_block'] == "1" ) ! { ! $days_block = $act_config['ina_join_block_count']; ! $length_check = time() - $userdata['user_regdate']; ! $length_block = $length_check / 86400; ! $rounded = round( $length_block ); ! if ( $rounded < $days_block ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires Being A Member For " . $act_config['ina_join_block_count'] . " Day(s) Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Registration Date Check */ ! /* End Restriction Checks */ ! ! if ( $act_config['use_rewards_mod'] ) ! { ! if ( $act_config['use_point_system'] ) ! { ! include( $phpbb_root_path . 'includes/functions_points.' . $phpEx ); ! } ! if ( $act_config['use_cash_system'] || $act_config['use_allowance_system'] ) ! { ! include( $module_root_path . 'includes/rewards_api.' . $phpEx ); ! } ! if ( ( $act_config['use_point_system'] ) && ( file_exists( $phpbb_root_path . 'includes/functions_points.' . $phpEx ) == 0 ) ) ! { ! function get_user_points( $user_id ) ! { ! global $db; ! ! $sql = "SELECT user_points ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_points from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $points = $db->sql_fetchrow( $result ); ! ! return $points['user_points']; ! } ! ! function get_username_from_id( $user_id ) ! { ! global $db; ! ! $sql = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id ! AND user_id != " . ANONYMOUS; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get username from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $username = $db->sql_fetchrow( $result ); ! ! return $username['username']; ! } ! ! function get_userid_from_name( $username ) ! { ! global $db; ! ! $username = str_replace( "\'", "''", trim( $username ) ); ! ! $sql = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '$username' ! AND user_id != " . ANONYMOUS; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_id from $username.", '', __LINE__, __FILE__, $sql ); ! } ! $user_id = $db->sql_fetchrow( $result ); ! ! return $user_id['user_id']; ! } ! ! function add_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points + $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! ! function subtract_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points - $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! } ! } ! ! if ( isset( $HTTP_GET_VARS['mode'] ) || isset( $HTTP_POST_VARS['mode'] ) ) ! { ! $mode = ( isset( $HTTP_GET_VARS['mode'] ) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; ! } ! else ! { ! if ( isset( $HTTP_POST_VARS['game'] ) ) ! { ! $mode = "game"; ! } ! else if ( isset( $HTTP_POST_VARS['stats'] ) ) ! { ! $mode = "stats"; ! } ! else ! { ! $mode = ""; ! } ! } ! ! $q = "SELECT game_id ! FROM " . iNA_GAMES . " ! ORDER BY RAND() ! LIMIT 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $random_game = append_sid( this_act_mxurl( "mode=game&id=" . $row['game_id'] . "&parent=true" ) ); ! $random_image = $phpbb_root_path . "templates/subSilver/images/icon_mini_faq.gif"; ! // Challenge -------------------------------- ! if ( $mode == "challenge" ) ! { ! include( $module_root_path . 'includes/act_challenges_main.' . $phpEx ); ! } ! ! $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; ! $finish = $act_config['games_per_page']; ! ! if ( isset( $HTTP_POST_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_POST_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! }elseif ( isset( $HTTP_GET_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_GET_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! } ! else ! { ! $sort_order = 'DESC'; ! } ! ! if ( $act_config['use_point_system'] ) ! { ! $game_cost = $act_config['points_name']; ! } ! else ! { ! $game_cost = $lang['game_cost']; ! } ! ! $mode_types_text = array( $lang['game_instructions'], $game_cost, $lang['game_bonuses'], $lang['game_played'] ); ! $mode_types = array( 'game_instructions', 'game_charge', 'game_bonus', 'game_played' ); ! ! $select_sort_mode = '<select name="mode">'; ! ! for( $i = 0; $i < count( $mode_types_text ); $i++ ) ! { ! $selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : ''; ! $select_sort_mode .= '<option value="' . $mode_types[$i] . '"' . $selected . '>' . $mode_types_text[$i] . '</option>'; ! } ! $select_sort_mode .= '</select>'; ! ! $select_sort_order = '<select name="order">'; ! if ( $sort_order == 'DESC' ) ! { ! $select_sort_order .= '<option value="DESC" selected="selected">' . $lang['Sort_Descending'] . '</option><option value="ASC">' . $lang['Sort_Ascending'] . '</option>'; ! } ! else ! { ! $select_sort_order .= '<option value="DESC">' . $lang['Sort_Descending'] . '</option><option value="ASC" selected="selected">' . $lang['Sort_Ascending'] . '</option>'; ! } ! $select_sort_order .= '</select>'; ! ! switch ( $mode ) ! { ! case 'game_instructions': ! $order_by = "instructions $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_charge': ! $order_by = "game_charge $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_bonus': ! $order_by = "game_bonus $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_played': ! $order_by = "played $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! default: ! $order_by = "game_id $sort_order LIMIT $start, " . $act_config['games_per_page']; ! break; ! } ! ! if ( $mode != "" ) ! { ! if ( $mode == "game" ) ! { ! include( $module_root_path . 'includes/act_games.' . $phpEx ); ! } ! else if ( $mode == "stats" ) ! { ! include( $module_root_path . 'includes/act_stats.' . $phpEx ); ! } ! else if ( $mode == "act_scores" ) ! { ! include( $module_root_path . 'includes/act_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores" ) ! { ! include( $module_root_path . 'includes/act_top_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores_search" ) ! { ! include( $module_root_path . 'includes/act_top_scores_search.' . $phpEx ); ! } ! else if ( $mode == "act_trophy" ) ! { ! include( $module_root_path . 'includes/act_trophy.' . $phpEx ); ! } ! else if ( $mode == "act_trophy_comments" ) ! { ! include( $module_root_path . 'includes/act_trophy_comments.' . $phpEx ); ! } ! else if ( $mode == "act_challenges" ) ! { ! include( $module_root_path . 'includes/act_challenges.' . $phpEx ); ! } ! else if ( $mode == "category_play" ) ! { ! include( $module_root_path . 'includes/act_cat_play.' . $phpEx ); ! } ! } ! else ! { ! include( $module_root_path . 'includes/act_main.' . $phpEx ); ! } ! ! $template->assign_vars( array( "U_INDEX" => append_sid( $mx_root_path ), ! "L_INDEX" => '<< ' . $lang['site_home'], ! "U_TROPHY" => append_sid( this_act_mxurl( "mode=act_trophy" ) ), ! "L_TROPHY" => $lang['trophy_count_link'], ! "U_TOP_SCORES" => append_sid( this_act_mxurl( "mode=act_top_scores" ) ), ! "L_TOP_SCORES" => $lang['game_highscores'], ! "U_ACTIVITY" => append_sid( this_act_mxurl() ), ! "L_ACTIVITY" => $lang['act_home'], ! "U_STATS" => append_sid( this_act_mxurl( "mode=stats" ) ), ! "L_STATS" => $lang['game_stats'], ! "U_GAMES" => append_sid( this_act_mxurl( "mode=games" ) ), ! "L_GAMES" => $lang['game'], ! "L_COMMENTS_TITLE" => $lang['comments_title'], ! "L_HIGHSCORES_TITLE" => $lang['game_highscores'], ! ) ); ! // Generate page ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! } ! include ( $module_root_path . "includes/act_header." . $phpEx ); ! ! $template->pparse( 'body' ); ! ! include ( $module_root_path . "includes/act_footer." . $phpEx ); ! ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:48:32
|
Update of /cvsroot/mxbb/mx_act/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14412/modules/mx_act/language/lang_english Added Files: lang_main.php Removed Files: lang_activity.php Log Message: --- lang_activity.php DELETED --- --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_main.php [english] * ------------------- * begin : Saturday December 20, 2003 * copyright : (c) 2003 iNetAngel * email : su...@iN... * * $Id: lang_main.php,v 1.1 2005/04/12 19:48:20 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. * ***************************************************************************/ // Admin $lang['admin_main_header'] = "-:- This is an interface between iNetAngel MODs and other MODs. It will help site admins from having conflicts with other MODs that may have been installed or are no longer supported but well liked. This control panel will help you maintain and control the online activities that have been created by <a href=\"http://www.iNetAngel.com/\" target=\"newindow\" class=\"copyright\">iNetAngel</a>. Future iNetAngel MODs will use this menu for any new expansions that are user specific. If you are currently having a problem with an iNetAngel MOD and another MOD, then please contact us at <a href=\"mailto:su...@iN...\" class=\"copyright\">su...@iN...</a> so we may help fix the problem."; $lang['admin_config_menu'] = "iNetAngel Online Activity Configuration Menu"; $lang['admin_game_menu'] = "iNetAngel Online Activity Game Menu"; $lang['admin_game_editor'] = "iNetAngel Online Activity Game Editor Menu"; $lang['admin_editor_info'] = "-:- This control panel allows you to edit Game data. Any game that has been released by <a href=\"http://www.iNetAngel.com\" target=\"new_window\">iNetAngel</a> can easily be plugged into your forums using this control panel. If you would like to convert a game to use this control panel, then ask for help at our <a href=\"http://www.iNetAngel.com/community/index.php\" target=\"new_window\">forums</a>. If you are having trouble with this menu or the Activity MOD then please contact us at <a href=\"mailto:su...@iN...\">Su...@iN...</a>."; $lang['admin_game_deleted'] = "Game Deleted<br /><br />"; $lang['admin_game_not_deleted'] = "Game NOT Deleted<br /><br />"; $lang['admin_game_repaired'] = "Games Repaired<br /><br />"; $lang['admin_game_saved'] = "Game Saved Successfully<br /><br />"; $lang['admin_score_reset'] = "All scores have been reset<br /><br />"; $lang['admin_return_activity'] = "Click %sHere%s to return to the Activity Menu"; $lang['admin_config_updated'] = "Online Activities Configuration Updated<br /><br />"; $lang['admin_toggles'] = "Support Toggles"; $lang['admin_rewards'] = "Reward system Toggles"; $lang['admin_activity_config'] = "Activity Configuration"; $lang['admin_use_adar_shop'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Adar Item Shop</a></b><br />"; $lang['admin_use_adar_info'] = "-:- If you want to reward Items for Highscore bonuses and you have the<br /> Adar ItemShop, then toggle this to <b>Yes</b>.<br /><br />-:- <b>NOTE : </b>This will not work with other shops!"; $lang['admin_use_gamelib'] = "<b>Use the <a href=\"http://www.javascript-games.org/gamelib/\" target=\"newindow\">Gamelib Javascript Library</a></b><br />"; $lang['admin_use_gl_info'] = "-:- If you are using a game/application that uses Scott Porter's gamelib,<br /> then toggle this on."; $lang['admin_use_points'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Points System</a></b><br />"; $lang['admin_use_pts_info'] = "-:- If you are using the Points System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; $lang['admin_use_cash'] = "<b>Use the <a href=\"http://www.phpbb.com/community/\" target=\"newindow\">Cash System</a></b><br />"; $lang['admin_use_cash_info'] = "-:- If you are using the Cash System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; $lang['admin_use_allowance'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Allowance System</a></b><br />"; $lang['admin_use_allowance_info'] = "-:- If you are using the Allowance System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; $lang['admin_gl_game_path'] = "<b>Gamelib Games Path</b><br />"; $lang['admin_gl_path_info'] = "-:- This is the directory located in your forums root directory where you wish<br /> to hold all of your games that use the gamelib."; $lang['admin_gl_lib_path'] = "<b>Gamelib Javascript Library Path</b><br />"; $lang['admin_gl_lib_info'] = "-:- This Directory is located in your \"<b>Gamelib Games Path</b>\" and holds all<br /> of the gamelib*.js files.<br /><br />-:- <b>NOTE</b> : If your games are locking up or you don't hear any<br /> sound then check this directory to make sure there are gamelib files<br /> in here."; $lang['admin_games_per_page'] = "<b>Games Per Page</b><br />"; $lang['admin_games_per_info'] = "-:- This is how many games you want listed before a new page is needed.<br /><br />-:- <b>NOTE</b> : Leaving this blank or <b>0</b> will return errors."; $lang['admin_page'] = "Pages"; $lang['admin_path'] = "Path"; $lang['admin_adar_config'] = "Adarian Shop Options"; $lang['admin_adar_shop'] = "<b>Adar Shop</b><br />"; $lang['admin_no_adar_info'] = "-:- The Adarian Shop options are not installed. Please install Adar before<br /> setting these options."; $lang['admin_games'] = "Games"; $lang['admin_charge'] = "Charge"; $lang['admin_button'] = "Button"; $lang['admin_description'] = "Description"; $lang['admin_genre'] = "Genre"; $lang['admin_reward'] = "Reward"; $lang['admin_bonus'] = "Bonus"; $lang['admin_flash'] = "Flash"; $lang['admin_score'] = "Score"; $lang['admin_gamelib'] = "Gamelib"; $lang['admin_action'] = "Action"; $lang['admin_move'] = "Move"; $lang['admin_repair'] = "Repair Game Index"; $lang['admin_reset'] = "Reset all Scores"; $lang['admin_up'] = "Up"; $lang['admin_down'] = "Dn"; $lang['admin_delete'] = "X"; $lang['admin_limit'] = "Limit"; $lang['admin_width'] = "Width"; $lang['admin_height'] = "Height"; $lang['admin_cash'] = "Cash"; $lang['admin_name'] = "<b>Name</b><br />"; $lang['admin_name_info'] = "-:- This is the name of the game you are installing. <br /><br />-:- <b>NOTE</b> : Keep the name of this game limited to one word with no<br /> spaces or unusual characters. Anything else will cause errors."; $lang['admin_game_path'] = "<b>Game Path</b><br />"; $lang['admin_game_path_info'] = "-:- This is the path location of your game located within your forum root directory."; $lang['admin_game_desc'] = "<b>Description</b><br />"; $lang['admin_game_desc_info'] = "-:- This is the description of this game that is displayed on the activity menu."; $lang['admin_game_genre'] = "<b>Genre</b><br />"; $lang['admin_game_genre_info'] = "-:- This is the genre of this game that is displayed on the activity menu."; $lang['admin_game_charge'] = "<b>Game Charges</b><br />"; $lang['admin_game_charge_info'] = "-:- This is how much to charge users to play this game."; $lang['admin_game_per'] = "<b>Score per point reward</b><br />"; $lang['admin_game_per_info'] = "-:- This is the score value the user has to get to receive 1 Reward <br /><br />-:- <b>Example</b> : A player gets 100 score points. If you put 100 as the value<br /> for this option, then the player will get 1 Reward Point."; $lang['admin_game_bonus'] = "<b>Highscore Bonus</b><br />"; $lang['admin_game_bonus_info'] = "-:- This is the amount of reward points to give a user if they obtain the highscore."; $lang['admin_game_gamelib'] = "<b>Use the Gamelib</b><br />"; $lang['admin_game_gamelib_info'] = "-:- Set this to yes if this game uses the <b>GameLib</b>."; $lang['admin_game_flash'] = "<b>Uses Macromedia Flash</b><br />"; $lang['admin_game_flash_info'] = "-:- Set this to yes if this is a Macromedia Flash game or has a .SWF extension."; $lang['admin_game_show_score'] = "<b>Show the scores</b><br />"; $lang['admin_game_show_info'] = "-:- Set this to yes if you wish to use scores for this activity."; $lang['admin_game_reverse'] = "<b>Reverse Highscore Listing</b><br />"; $lang['admin_game_reverse_info'] = "-:- Set this to yes if you wish to list the lowest scores first."; $lang['admin_game_highscore'] = "<b>Highscore Limit</b><br />"; $lang['admin_game_highscore_info'] = "-:- This is how many scores you want listed for this game. Leave blank for all."; $lang['admin_game_size'] = "<b>Window Size</b><br />"; $lang['admin_game_size_info'] = "-:- This is how big in pixels, the window will be when a game is started."; $lang['instructions_info'] = "Enter this games \"How to play\" instructions below. HTML Tags will also work in here.<br />"; $lang['admin_game_reset_hs'] = "<b>Reset Highscores</b><br />"; $lang['admin_game_reset_hs_info'] = "-:- By setting this to <b>\"Yes\"</b> the Highscores will reset."; $lang['admin_use_rewards'] = "<b>Use Rewards MOD</b><br />"; $lang['admin_use_rewards_info'] = "-:- If you have a rewards MOD installed [Points/Cash/Allowance]<br /> then turn this on to configure your rewards MOD."; $lang['admin_warn_cheater'] = "<b>Display warning to possible cheater</b><br />"; $lang['admin_warn_cheater_info'] = "-:- If turned on, then this will display a message to anyone who might get caught cheating."; $lang['admin_cheater_warning'] = "You have been reported to the site Admin as a possible cheater. If you feel that you have not cheated in an online game, then please contact the site Admin."; $lang['admin_warn_admin'] = "<b>Report cheaters</b><br />"; $lang['admin_warn_admin_info'] = "-:- If turned on the site Admin will get an E-mail notification if someone is caught cheating."; $lang['admin_cash_default_info'] = "-:- The Activity MOD uses only 1 reward field. Please enter in a default user<br /> reward field for your users. [<b>Cash MOD Only</b>]"; // Activity $lang['not_enough_points'] = "You do NOT have enough " . $board_config['points_name'] . " to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>"; $lang['not_enough_reward'] = "You do NOT have enough to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>"; $lang['game_instructions'] = "Instructions"; $lang['game_no_instructions'] = "No Instructions."; $lang['game_free'] = "Free"; $lang['game_cost'] = "Cost"; $lang['game_dash'] = ":"; $lang['game_number'] = "#"; $lang['game_list'] = "Games"; $lang['game_score'] = "Score"; $lang['game_info'] = "Info"; $lang['game_bonuses'] = "Bonuses"; $lang['game_best_player'] = "Best Player"; $lang['game_score_saved'] = "Score Saved"; $lang['game_no_score_saved'] = "You don't have a score so your score was not saved"; $lang['game_score_close'] = "Close"; $lang['game_cheater'] = "Busted!"; $lang['game_played'] = "Played"; // If anything is changed below this line, then don't be surprised if you don't get very // good support from the MOD Author. The next few lines deal with error handling & GPL // licenses. By changing them you could break the law as well as cause errors. //======================================================================================== // DO NOT TAKE THIS LINK OUT! Scott Porters Gamelib requires that this link is included // by anyone using his library. If you don't have any games using gamelib, then turn it // off and this link will not get displayed! $lang['game_lib_link'] = "<br />Some of the games here have been created with © <A HREF=\"http://www.javascript-games.org/gamelib/\" TARGET=\"New_Window\">GameLib</A> v2.08<br />Check out <A HREF=\"http://www.javascript-games.org\" TARGET=\"New_Window\">JavaScript Games</A> for more info."; // Errors $lang['no_main_data'] = "Couldn't obtain main data"; $lang['no_game_data'] = "Couldn't obtain game data"; $lang['no_game_update'] = "Could't update game data"; $lang['no_game_total'] = "Error getting total games"; $lang['no_game_user'] = "Error obtaining user game data"; $lang['no_game_delete'] = "Couldn't delete game"; $lang['no_game_repair'] = "Couldn't repair game tables"; $lang['no_game_save'] = "Couldn't save game data"; $lang['no_user_update'] = "Couldn't update user data"; $lang['no_score_data'] = "Couldn't obtain scores data"; $lang['no_score_reset'] = "Couldn't reset scores data"; $lang['no_score_insert'] = "Couldn't insert score"; $lang['no_score_reset'] = "Couldn't reset scores"; $lang['no_config_data'] = "Could not access Online Activities configuration"; $lang['no_config_update'] = "Failed to update Online Activities configuration for "; // // Score - Upade - Mod // by ChriChra $lang['no_score_update'] = "Couldn't update score"; $lang['game_score_updated'] = "Score updated"; $lang['game_score_not_updated'] = "Your score wasn't updated because your score wasn't better than your best personel score"; /*************************************************************************** * lang_main.php * ------------------- * Version : 1.0.3 * Email : aus...@ho... * Site : austin-inc.com/Blend/ * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) * ***************************************************************************/ /* Added By aUsTiN For Activity Mod Plus */ /* Main Activity Strings */ $lang['ban'] = "You Have Been Banned From Playing Games By The Administrator."; $lang['ban_error'] = "Error"; $lang['score'] = "Score: "; $lang['seperator'] = "-> "; $lang['info'] = "Info"; $lang['same_window'] = "Same Window"; $lang['new_window'] = "New Window"; $lang['quick_select'] = "Quick Select"; $lang['choose_game'] = "Choose A Game"; $lang['cost'] = "Cost"; $lang['score_2'] = "Score"; $lang['runner_up'] = "Runner Up"; $lang['score_of'] = " With A Score Of "; $lang['been_deleted_n_replaced'] = " Has Been Deleted & Replaced With The Runner Up, "; $lang['please_click'] = ".<br> Please Click <b><a href='"; $lang['here_to_return'] = "'>Here</a></b> To Return To The Top Scores Page."; $lang['success'] = "Successfull"; $lang['scores_reset'] = "All Highscores Have Been Reset, The Current Trophy Holder Of All The Games Is Now "; $lang['zero_score'] = " With A Score Of 0 (Zero)"; $lang['delete_specific'] = "Delete A Specific Highscore?"; $lang['delete_all'] = "Delete All Highscores?"; $lang['delete_this_button'] = " Delete This Top Score "; $lang['delete_all_button'] = " Delete All Top Scores "; $lang['score_owned_on'] = "Score<br>Date Owned"; $lang['contacts'] = "Contacts"; $lang['game_profile'] = ' Game Profile'; $lang['join_date'] = "Join Date"; $lang['posts'] = "Posts"; $lang['last_visit'] = "Last Visited"; $lang['gender'] = "Gender"; $lang['permissions'] = "Permissions"; $lang['game'] = "Game"; $lang['date_took'] = "Date Took"; $lang['trophy_held_since'] = "Trophy Held Since"; $lang['score_to_beat'] = "Score To Beat"; $lang['main_profile'] = "Main Profile"; $lang['game_profile'] = "Game Profile"; $lang['top_ten'] = "Top 10"; $lang['not_nice_to_cheat'] = "Its Not Nice To Try & Cheat The System "; $lang['period'] = "."; $lang['cheat_warning'] = "Cheat Warning"; $lang['no_score_saved'] = "You Didn't Beat Your Current Highscore For This Game, No Score Was Saved."; $lang['go_back_to_games'] = "Go Back To Playing Games"; $lang['you_won_trophy'] = "You Won The Trophy!"; $lang['challenge_self_error'] = 'You Can Not Challenge Yourself. Please Click <i><b>Back</b></i> And Try Again.'; $lang['challenge_information'] = 'Information'; $lang['pm_msg_top'] = 'The Following Message Has Been Sent To The Trophy Holder.<br>'; $lang['pm_msg_bottom'] = '<br>Good Luck Winning The Trophy.'; $lang['category_desc'] = 'Play By Category'; $lang['category_default'] = 'Categories'; $lang['category_default_2'] = 'All Games'; $lang['highscore_games'] = 'Games'; $lang['admin_delete_default'] = 'Choose A Game'; $lang['t_holder_link_name'] = 'Trophy Holders'; $lang['gender_none'] = 'None Selected.'; $lang['gender_male'] = 'Male'; $lang['gender_female'] = 'Female'; $lang['gender_not_installed'] = 'Not Installed.'; $lang['level_member'] = 'Member'; $lang['level_mod'] = 'Moderator'; $lang['level_admin'] = 'Admin'; $lang['level_less_admin'] = 'Jr. Admin'; $lang['challenge_header_1'] = 'This Boards Users Have Issued '; $lang['challenge_header_2'] = ' Challenges. They Are Listed Below.'; $lang['challenge_username'] = 'Username'; $lang['challenge_position'] = 'Position'; $lang['challenge_challenges'] = 'Total Challenges'; $lang['online_no_guests'] = 'There Are No Guests Currently Playing Here'; $lang['online_g_one_1'] = 'There Is Currently '; $lang['online_g_one_2'] = ' Guest Playing.'; $lang['online_g_1'] = 'There Are Currently '; $lang['online_g_2'] = ' Guests Playing.'; $lang['online_no_members'] = 'There Are No Registered Users Currently Playing Here.'; $lang['online_m_one_1'] = 'There Is Currently '; $lang['online_m_one_2'] = ' Registered User Playing.'; $lang['online_m_1'] = 'There Are Currently '; $lang['online_m_2'] = ' Registered Users Playing.'; $lang['online_title_bar'] = 'Users Currently Playing Games'; $lang['online_viewing_games'] = 'Viewing Games'; $lang['online_playing_games'] = 'Playing A Game'; $lang['game_link_play'] = 'Play '; $lang['challenge_link_key'] = 'Challenge'; $lang['comments_link_key'] = ' Comments'; $lang['newest_title_1'] = 'Newest '; $lang['newest_title_2'] = ' Games Added'; $lang['best_player_default'] = 'No One Yet.'; $lang['challenge_page_1'] = 'User Receiving The Challenge'; $lang['challenge_page_2'] = 'Total Challenges Sent To User'; $lang['challenge_page_3'] = ' Challenge History'; $lang['challenge_page_4'] = '#'; $lang['trophy_comment_notice'] = 'Since You Won The Trophy, You May Leave A Comment!'; $lang['trophy_won_notice'] = 'You Won The Trophy!'; $lang['trophy_comment_1'] = 'Sorry, You\'re Not The Current Trophy Holder, Please Win The Trophy Before Trying To Leave A Comment.'; $lang['trophy_comment_2'] = 'Max Comment Length Is 200 Characters, Yours Is '; $lang['trophy_comment_3'] = ' Characters.'; $lang['trophy_comment_4'] = 'Minimum Comment Length Is 2 Characters.'; $lang['trophy_comment_5'] = 'New Trophy Comment Added!'; $lang['trophy_comment_6'] = 'Information'; $lang['trophy_comment_7'] = 'Please Add Your Comment'; $lang['trophy_comment_8'] = '<i>Max Comment Length: 200 Characters</i>'; $lang['trophy_comment_9'] = 'Add This'; $lang['trophy_comment_10'] = 'Sorry, There Are No Comments For This Game Yet.'; $lang['trophy_comment_11'] = 'Username'; $lang['trophy_comment_12'] = 'Their Comment'; $lang['trophy_comment_13'] = 'Their Score'; $lang['trophy_comment_14'] = 'Date & Time Of Comment'; $lang['trophy_count_1'] = 'Position'; $lang['trophy_count_2'] = 'Total Trophies'; $lang['trophy_count_3'] = 'Username'; $lang['trophy_count_4'] = 'Contacts'; /* Admin Panel Strings */ $lang['admin_default_no_games'] = 'No New Games.'; $lang['admin_default_1_game'] = '1 New Game To Add.'; $lang['admin_default_multi_games'] = 'New Games To Add.'; $lang['a_default_category'] = 'Select A Category'; $lang['a_category'] = 'Category'; $lang['a_category_explain'] = 'Add This Game To One Of Your Boards Categories'; $lang['a_default_charge'] = 'Select A Charge'; $lang['a_default_bonus'] = 'Select A Bonus'; $lang['a_default_hide'] = 'Hide This Game'; $lang['a_default_hide_explain'] = 'Will Allow You To Test It Before Users Play.'; $lang['a_add_game_error'] = 'You Must Specify A Game To Add It.'; $lang['a_ban_1'] = 'Activiy Ban: Ban List'; $lang['a_ban_2'] = 'Remove A Banned Member'; $lang['a_ban_3'] = 'Un-Ban A User Id:'; $lang['a_ban_4'] = 'Choose An Id'; $lang['a_ban_5'] = 'Un-Ban A Username:'; $lang['a_ban_6'] = 'Choose A Name'; $lang['a_ban_7'] = ' Apply Changes '; $lang['a_ban_8'] = 'Ban A Member'; $lang['a_ban_9'] = 'Ban A User Id:'; $lang['a_ban_10'] = 'Ban A Username:'; $lang['a_ban_11'] = ' Apply Ban '; $lang['a_ban_12'] = 'User Ids Are Typically Numbers Only.<br><br>Click '; $lang['a_ban_13'] = 'Here</a> To Try Again.'; $lang['a_ban_14'] = 'Nothing Specified To Ban.<br><br>Click '; $lang['a_ban_15'] = 'The User Id: '; $lang['a_ban_16'] = ' Does Not Exist.<br><br>Click '; $lang['a_ban_17'] = '<i>Here</i></a> To Try Again.'; $lang['a_ban_18'] = ' Is Already Banned.<br><br>Click '; $lang['a_ban_19'] = 'You Have Successfully Banned The User Id: '; $lang['a_ban_20'] = '<br><br>Click '; $lang['a_ban_21'] = '<i>Here</i></a> To Return To The Ban Page.'; $lang['a_ban_22'] = 'Success'; $lang['a_ban_23'] = 'The User: '; $lang['a_ban_24'] = 'You Have Successfully Banned The User: '; $lang['a_ban_25'] = 'You Have Successfully Unbanned The User Id: '; $lang['a_ban_26'] = 'You Have Successfully Unbanned The User: '; $lang['a_ban_27'] = 'Nothing Specified To Unban.<br><br>Click '; $lang['a_ban_28'] = 'Here</a> To Try Again.'; $lang['a_disable_1'] = 'Activity Hide/Show Admin'; $lang['a_disable_2'] = 'Games To Hide/Show'; $lang['a_disable_3'] = 'Game Choices<br> * Means Its Already Hidden, Submit It Again To Show It.<br><br>(game_id) game_name*'; $lang['a_disable_4'] = 'Choose A Game'; $lang['a_disable_5'] = ' Submit '; $lang['a_disable_6'] = 'A Game Is A Required Field, When Trying To Change It.<br>Click '; $lang['a_disable_7'] = 'Here</a> To Try Again.'; $lang['a_disable_8'] = 'The Game Is Now Viewable To Users.<br>Click '; $lang['a_disable_9'] = 'Here</a> To Return To The Hide/Show Page.'; $lang['a_disable_10'] = 'The Game Is Now Hidden From Users.<br>Click '; $lang['a_disable_11'] = 'Here</a> To Return To The Hide/Show Page.'; $lang['a_disable_12'] = 'Here</a> To Try Again.'; $lang['a_disable_13'] = 'An Error Has Occured.<br>Click '; $lang['the_trophy_holder'] = "The Trophy Holder, "; $lang['trophy_page'] = "Trophies Page"; $lang['stats'] = "Stats"; //MX Addon $lang['site_home'] = "Site"; $lang['choose_game'] = "Choose A Game"; $lang['not_logged_in'] = "You must be registered to use this activity..."; $lang['Play_again'] = "[Play game]"; $lang['Return_act'] = "[Return]"; $lang['act_home'] = "Activity Home"; $lang['comments_title'] = "Trophy comments"; $lang['trophy_holder'] = "Trophy Holder"; $lang['game_highscores'] = "Highscores"; $lang['trophy_holders'] = "Trophy Holders"; $lang['trophy_count_link'] = "Top Trophy Holders"; $lang['game_stats'] = "Game Stats"; $lang['random_game'] = "Random game"; // Stats $lang['Game_statistics'] = "Game statistics"; $lang['Games_played'] = "Games played"; $lang['Game_cost'] = "Game cost"; $lang['Game_bonus'] = "Game bonus"; $lang['Best_player'] = "Best player"; $lang['Best_score'] = "Best score"; $lang['Instructions'] = "Instructions"; ?> |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:48:32
|
Update of /cvsroot/mxbb/mx_act/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14412/modules/mx_act/admin Modified Files: admin_activity.php admin_ina_category.php admin_ina_disable.php admin_ina_scores_edit.php Log Message: Index: admin_ina_disable.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_disable.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin_ina_disable.php 9 Jan 2005 21:30:34 -0000 1.2 --- admin_ina_disable.php 12 Apr 2005 19:48:19 -0000 1.3 *************** *** 1,168 **** ! <?php ! ! /** ! * admin_ina_disable.php ! * ---------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Hide/Show Games'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) ! { ! $file = basename(__FILE__); ! $module['Activities']['Hide/Show Games'] = "$file"; ! return; ! } ! ! $phpbb_root_path = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx); ! ! */ ! ! 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']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_disable." . $phpEx ); ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " " . $lang['a_disable_1']; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_2']; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<form name='do_it' action='$link' method='post'>"; ! echo "<table border='0' align='center' valign='middle' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='left' valign='middle' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_3']; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='middle' width='50%' class='row2'>"; ! echo " <select name='game_choice'>"; ! echo " <option selected value=''>" . $lang['a_disable_4'] . "</option>"; ! ! $q = "SELECT * ! FROM " . iNA_GAMES . " ! ORDER BY game_id ASC"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $g_name = $row['game_name']; ! $g_id = $row['game_id']; ! $g_dis = $row['disabled']; ! ! if ( $g_dis == "2" ) ! { ! $new_name = "($g_id) $g_name*"; ! } ! else ! { ! $new_name = "($g_id) $g_name"; ! } ! ! echo " <option value='$g_id'>$new_name</option>"; ! } ! ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='hide_show'>"; ! echo " <input type='submit' class='mainoption' value='" . $lang['a_disable_5'] . "' onchange='document.do_it.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "hide_show" ) ! { ! $id = $_POST['game_choice']; ! ! if ( !$id ) ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_6'] . "<a href='" . $link . "'>" . $lang['a_disable_7'], $lang['ban_error'] ); ! } ! ! $q = "SELECT disabled ! FROM " . iNA_GAMES . " ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $disabled = $row['disabled']; ! ! if ( $disabled == "2" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '1' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_8'] . "<a href='" . $link . "'>" . $lang['a_disable_9'] , $lang['a_ban_22'] ); ! }elseif ( $disabled == "1" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '2' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_10'] . "<a href='" . $link . "'>" . $lang['a_disable_11'], $lang['a_ban_22'] ); ! } ! else ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_13'] . "<a href='" . $link . "'>" . $lang['a_disable_12'], $lang['ban_error'] ); ! } ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file --- 1,168 ---- ! <?php ! ! /** ! * admin_ina_disable.php ! * ---------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Hide/Show Games'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) ! { ! $file = basename(__FILE__); ! $module['Activities']['Hide/Show Games'] = "$file"; ! return; ! } ! ! $phpbb_root_path = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! ! */ ! ! 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']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_disable." . $phpEx ); ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " " . $lang['a_disable_1']; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_2']; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<form name='do_it' action='$link' method='post'>"; ! echo "<table border='0' align='center' valign='middle' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='left' valign='middle' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_3']; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='middle' width='50%' class='row2'>"; ! echo " <select name='game_choice'>"; ! echo " <option selected value=''>" . $lang['a_disable_4'] . "</option>"; ! ! $q = "SELECT * ! FROM " . iNA_GAMES . " ! ORDER BY game_id ASC"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $g_name = $row['game_name']; ! $g_id = $row['game_id']; ! $g_dis = $row['disabled']; ! ! if ( $g_dis == "2" ) ! { ! $new_name = "($g_id) $g_name*"; ! } ! else ! { ! $new_name = "($g_id) $g_name"; ! } ! ! echo " <option value='$g_id'>$new_name</option>"; ! } ! ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='hide_show'>"; ! echo " <input type='submit' class='mainoption' value='" . $lang['a_disable_5'] . "' onchange='document.do_it.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "hide_show" ) ! { ! $id = $_POST['game_choice']; ! ! if ( !$id ) ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_6'] . "<a href='" . $link . "'>" . $lang['a_disable_7'], $lang['ban_error'] ); ! } ! ! $q = "SELECT disabled ! FROM " . iNA_GAMES . " ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $disabled = $row['disabled']; ! ! if ( $disabled == "2" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '1' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_8'] . "<a href='" . $link . "'>" . $lang['a_disable_9'] , $lang['a_ban_22'] ); ! }elseif ( $disabled == "1" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '2' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_10'] . "<a href='" . $link . "'>" . $lang['a_disable_11'], $lang['a_ban_22'] ); ! } ! else ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_13'] . "<a href='" . $link . "'>" . $lang['a_disable_12'], $lang['ban_error'] ); ! } ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file Index: admin_ina_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_category.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin_ina_category.php 9 Jan 2005 21:30:34 -0000 1.2 --- admin_ina_category.php 12 Apr 2005 19:48:19 -0000 1.3 *************** *** 1,666 **** ! <?php ! ! /** ! * admin_ina_category.php ! * ------------------------ ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ [...1305 lines suppressed...] ! WHERE cat_id = '$cat'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $check = $row['cat_name']; ! ! $q = "DELETE FROM " . INA_CATEGORY . " ! WHERE cat_id = '$cat'"; ! $r = $db->sql_query( $q ); ! ! $q = "DELETE FROM " . INA_CATEGORY_DATA . " ! WHERE cat_id = '$cat'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, "All Data For The Category [<b> " . $check . " </b>] Has Been Deleted.<br>Click <a href='" . $link . "'>Here</a> To Return To The Categories Page.", "Success" ); ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file Index: admin_activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_activity.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_activity.php 9 Jan 2005 21:30:34 -0000 1.3 --- admin_activity.php 12 Apr 2005 19:48:19 -0000 1.4 *************** *** 1,814 **** ! <?php ! /** ! * admin_activity.php ! * -------------------- ! * begin : Tuesday, October 15, 2002 ! * copyright : (c)2002 www.iNetAngel.com ! * email : su...@iN... ! * ! * $Id : admin_activity.php, v2.0.0 2003/12/18 59:59:59 Napoleon Exp $ ! * [...1599 lines suppressed...] ! "S_USE_PSM_YES" => $use_point_system_yes, ! "S_USE_PSM_NO" => $use_point_system_no, ! "S_USE_CASH_YES" => $use_cash_system_yes, ! "S_USE_CASH_NO" => $use_cash_system_no, ! "S_USE_ASM_YES" => $use_allowance_system_yes, ! "S_USE_ASM_NO" => $use_allowance_system_no, ! "S_USE_REWARDS_YES" => $use_rewards_yes, ! "S_USE_REWARDS_NO" => $use_rewards_no, ! ! "S_GAMES_PATH" => $games_path, ! "S_GAMELIB_PATH" => $gamelib_path, ! "S_GAMES_PER_PAGE" => $games_per_page, ! "S_HIDDEN_FIELDS" => '' ) ! ); ! } ! // Generate the page ! $template->pparse( 'body' ); ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ! ?> Index: admin_ina_scores_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_scores_edit.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** admin_ina_scores_edit.php 9 Jan 2005 21:30:34 -0000 1.2 --- admin_ina_scores_edit.php 12 Apr 2005 19:48:19 -0000 1.3 *************** *** 1,428 **** ! <?php ! ! /** ! * admin_ina_scores_edit.php ! * --------------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Scores Editor'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) ! { ! $file = basename(__FILE__); ! $module['Activities']['Scores Editor'] = "$file"; ! return; ! } ! ! $phpbb_root_path = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx); ! ! */ ! 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']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_scores_edit." . $phpEx ); ! ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " Activity Scores Edit Admin"; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='100%' class='row2'>"; ! echo " <span class='gensmall'>"; ! echo " This feature is provided for changing players scores a little up or down etc. This ! feature <b>is NOT</b> for moving trophy holders around, that will cause issues ! among the tables. If you want to move trophy holders around, please do that via ! the top of your activity_top_scores.php page & not here."; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Normal Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Find Scores ' onchange='document.edit_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Trophy Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='trophy_game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_trophy_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Trophy Score ' onchange='document.edit_trophy.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "edit_game_score" ) ! { ! $game = $_POST['game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy_player' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select A Player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='player_selected'>"; ! echo " <option selected value=''>Choose A Player</option>"; ! ! $q = "SELECT player ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! GROUP BY player"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $player_name = $row['player']; ! echo " <option value='" . $player_name . "'>" . $player_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_player'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Player ' onchange='document.edit_trophy_player.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "edit_player" ) ! { ! $player = $_POST['player_selected']; ! $game = $_POST['game_selected']; ! ! $q = "SELECT * ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! AND player = '$player' ! GROUP BY player ! ORDER BY score ASC ! LIMIT 0, 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_name = $row['player']; ! $player_score = $row['score']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player_name On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player_name"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player_name'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! $q = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '" . $player . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_id = $row['user_id']; ! ! if ( $trophy_id == $player_id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $player_id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! if ( $mode == "edit_trophy_game_score" ) ! { ! $game = $_POST['trophy_game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_score = $row['score']; ! $player_id = $row['player']; ! ! $q = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '" . $player_id . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player = $row['username']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_t_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player'>"; ! echo " <input type='hidden' name='player_id_selected' value='$player_id'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_t_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! $id = $_POST['player_id_selected']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! if ( $trophy_id == $id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file --- 1,428 ---- ! <?php ! ! /** ! * admin_ina_scores_edit.php ! * --------------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Scores Editor'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) ! { ! $file = basename(__FILE__); ! $module['Activities']['Scores Editor'] = "$file"; ! return; ! } ! ! $phpbb_root_path = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! ! */ ! 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']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_scores_edit." . $phpEx ); ! ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " Activity Scores Edit Admin"; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='100%' class='row2'>"; ! echo " <span class='gensmall'>"; ! echo " This feature is provided for changing players scores a little up or down etc. This ! feature <b>is NOT</b> for moving trophy holders around, that will cause issues ! among the tables. If you want to move trophy holders around, please do that via ! the top of your activity_top_scores.php page & not here."; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Normal Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Find Scores ' onchange='document.edit_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Trophy Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='trophy_game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_trophy_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Trophy Score ' onchange='document.edit_trophy.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "edit_game_score" ) ! { ! $game = $_POST['game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy_player' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select A Player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='player_selected'>"; ! echo " <option selected value=''>Choose A Player</option>"; ! ! $q = "SELECT player ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! GROUP BY player"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $player_name = $row['player']; ! echo " <option value='" . $player_name . "'>" . $player_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_player'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Player ' onchange='document.edit_trophy_player.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "edit_player" ) ! { ! $player = $_POST['player_selected']; ! $game = $_POST['game_selected']; ! ! $q = "SELECT * ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! AND player = '$player' ! GROUP BY player ! ORDER BY score ASC ! LIMIT 0, 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_name = $row['player']; ! $player_score = $row['score']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player_name On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player_name"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player_name'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! $q = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '" . $player . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_id = $row['user_id']; ! ! if ( $trophy_id == $player_id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $player_id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! if ( $mode == "edit_trophy_game_score" ) ! { ! $game = $_POST['trophy_game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_score = $row['score']; ! $player_id = $row['player']; ! ! $q = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '" . $player_id . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player = $row['username']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_t_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player'>"; ! echo " <input type='hidden' name='player_id_selected' value='$player_id'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_t_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! $id = $_POST['player_id_selected']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! if ( $trophy_id == $id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:48:29
|
Update of /cvsroot/mxbb/mx_act/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14412/modules/mx_act/includes Modified Files: act_constants.php Log Message: Index: act_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/includes/act_constants.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** act_constants.php 6 Mar 2005 01:11:40 -0000 1.8 --- act_constants.php 12 Apr 2005 19:48:19 -0000 1.9 *************** *** 1,125 **** ! <?php ! /** ! * kb_constants.php ! * ------------------- ! * begin : April, 2003 ! * copyright : (C) 2002 MX-System ! * email : su...@mx... ! * description : define constants ! * Author : Haplo (jon...@ho...) ! * credit : Roman Malarev (romutis), MarcMoris ! * ! * $Id$ ! */ ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_ACTIVITY', -12 ); ! define( 'PAGE_PLAYING_GAMES', -13 ); ! ! /* ! // iNetAngel Activity Data ! define('iNA', $mx_table_prefix.'ina_data'); ! ! // iNetAngel Games Data ! define('iNA_GAMES', $mx_table_prefix.'ina_games'); ! define('iNA_SCORES', $mx_table_prefix.'ina_scores'); ! ! // Addon ! define('INA_TROPHY', $mx_table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $mx_table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $mx_table_prefix .'ina_ban'); ! ! // MX ! define("iNA_CONFIG", $mx_table_prefix .'ina_config'); ! */ ! ! define( 'iNA', $mx_table_prefix . 'ina_data' ); ! ! define( 'iNA_GAMES', $mx_table_prefix . 'ina_games' ); ! define( 'iNA_SCORES', $mx_table_prefix . 'ina_scores' ); ! ! define( 'INA_TROPHY', $mx_table_prefix . 'ina_top_scores' ); ! define( 'INA_CHEAT', $mx_table_prefix . 'ina_cheat_fix' ); ! define( 'INA_BAN', $mx_table_prefix . 'ina_ban' ); ! ! define( 'INA_CATEGORY', $mx_table_prefix . 'ina_categories' ); ! define( 'INA_CATEGORY_MAIN', $mx_table_prefix . 'ina_main_categories' ); ! define( 'INA_CATEGORY_DATA', $mx_table_prefix . 'ina_categories_data' ); ! define( 'INA_DISABLE', $mx_table_prefix . 'ina_hidden' ); ! define( 'INA_CHALLENGE', $mx_table_prefix . 'ina_challenge_tracker' ); ! define( 'INA_CHALLENGE_USERS', $mx_table_prefix . 'ina_challenge_users' ); ! ! define( "iNA_TROPHY_COMMENTS", $mx_table_prefix . 'ina_trophy_comments' ); ! define( "iNA_CONFIG", $mx_table_prefix . 'ina_config' ); ! define( "iNA_SCORE_FIX", $mx_table_prefix . 'scores_fixer' ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx ) ) ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_english/lang_activity.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! // Pull all config data ! ! $sql = "SELECT * ! FROM " . iNA_CONFIG; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query config information in act_config", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $act_config[$config_name] = $config_value; ! } ! } ! ! $mxbb_footer_addup[] = 'mxBB Activity Games Module'; ! ! ?> \ No newline at end of file --- 1,125 ---- ! <?php ! /** ! * kb_constants.php ! * ------------------- ! * begin : April, 2003 ! * copyright : (C) 2002 MX-System ! * email : su...@mx... ! * description : define constants ! * Author : Haplo (jon...@ho...) ! * credit : Roman Malarev (romutis), MarcMoris ! * ! * $Id$ ! */ ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_ACTIVITY', -12 ); ! define( 'PAGE_PLAYING_GAMES', -13 ); ! ! /* ! // iNetAngel Activity Data ! define('iNA', $mx_table_prefix.'ina_data'); ! ! // iNetAngel Games Data ! define('iNA_GAMES', $mx_table_prefix.'ina_games'); ! define('iNA_SCORES', $mx_table_prefix.'ina_scores'); ! ! // Addon ! define('INA_TROPHY', $mx_table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $mx_table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $mx_table_prefix .'ina_ban'); ! ! // MX ! define("iNA_CONFIG", $mx_table_prefix .'ina_config'); ! */ ! ! define( 'iNA', $mx_table_prefix . 'ina_data' ); ! ! define( 'iNA_GAMES', $mx_table_prefix . 'ina_games' ); ! define( 'iNA_SCORES', $mx_table_prefix . 'ina_scores' ); ! ! define( 'INA_TROPHY', $mx_table_prefix . 'ina_top_scores' ); ! define( 'INA_CHEAT', $mx_table_prefix . 'ina_cheat_fix' ); ! define( 'INA_BAN', $mx_table_prefix . 'ina_ban' ); ! ! define( 'INA_CATEGORY', $mx_table_prefix . 'ina_categories' ); ! define( 'INA_CATEGORY_MAIN', $mx_table_prefix . 'ina_main_categories' ); ! define( 'INA_CATEGORY_DATA', $mx_table_prefix . 'ina_categories_data' ); ! define( 'INA_DISABLE', $mx_table_prefix . 'ina_hidden' ); ! define( 'INA_CHALLENGE', $mx_table_prefix . 'ina_challenge_tracker' ); ! define( 'INA_CHALLENGE_USERS', $mx_table_prefix . 'ina_challenge_users' ); ! ! define( "iNA_TROPHY_COMMENTS", $mx_table_prefix . 'ina_trophy_comments' ); ! define( "iNA_CONFIG", $mx_table_prefix . 'ina_config' ); ! define( "iNA_SCORE_FIX", $mx_table_prefix . 'scores_fixer' ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_english/lang_main.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! // Pull all config data ! ! $sql = "SELECT * ! FROM " . iNA_CONFIG; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query config information in act_config", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $act_config[$config_name] = $config_value; ! } ! } ! ! $mxbb_footer_addup[] = 'mxBB Activity Games Module'; ! ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:37:25
|
Update of /cvsroot/mxbb/mx_calsnails/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8269/modules/mx_calsnails/includes Modified Files: cal_settings.php mx_common.php Log Message: renamed lang_calendar to lang_main and associated updates Index: cal_settings.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/includes/cal_settings.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** cal_settings.php 6 Mar 2005 01:11:51 -0000 1.8 --- cal_settings.php 12 Apr 2005 19:37:11 -0000 1.9 *************** *** 1,39 **** ! <?php ! /** ! * MX-System changes to original source: ! * ! * MX001: See mx_calsnails/includes/mx_common.php for details. ! */ ! ! /** ! * Calendar Lite ! * note: following info added by CVS ! * original author: WebSnail < Martin Smallridge > ! * ! * $Author$ ! * $Date$ ! * $Revision$ ! */ ! ! /*############################################################### ! ## Mod Title: phpBB2 Calendar ! ## Mod Version: 1.4.1b ! ## Author: WebSnail < Martin Smallridge > ! ## SUPPORT: http://www.snailsource.com/forum/ ! ## Description: Variable settings for Calendar.php ! ## ! ## ! ## NOTE: Please read readme.txt ! ###############################################################*/ ! ! /*########################################## ! ## STOP # ! ## DO NOT MODIFY ANYTHING IN THIS FILE # ! ##########################################*/ ! ! $cal_version = "1.4.1c"; ! // MX001: $cal_lang_file = "lang_calendar.php"; ! // MX001: $tablename = 'calendar'; ! $mxbb_footer_addup[] = 'mxBB Calsnails Module'; ! ?> \ No newline at end of file --- 1,39 ---- ! <?php ! /** ! * MX-System changes to original source: ! * ! * MX001: See mx_calsnails/includes/mx_common.php for details. ! */ ! ! /** ! * Calendar Lite ! * note: following info added by CVS ! * original author: WebSnail < Martin Smallridge > ! * ! * $Author$ ! * $Date$ ! * $Revision$ ! */ ! ! /*############################################################### ! ## Mod Title: phpBB2 Calendar ! ## Mod Version: 1.4.1b ! ## Author: WebSnail < Martin Smallridge > ! ## SUPPORT: http://www.snailsource.com/forum/ ! ## Description: Variable settings for Calendar.php ! ## ! ## ! ## NOTE: Please read readme.txt ! ###############################################################*/ ! ! /*########################################## ! ## STOP # ! ## DO NOT MODIFY ANYTHING IN THIS FILE # ! ##########################################*/ ! ! $cal_version = "1.4.1c"; ! // MX001: $cal_lang_file = "lang_main.php"; ! // MX001: $tablename = 'calendar'; ! $mxbb_footer_addup[] = 'mxBB Calsnails Module'; ! ?> \ No newline at end of file Index: mx_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/includes/mx_common.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_common.php 9 Jan 2005 21:31:28 -0000 1.5 --- mx_common.php 12 Apr 2005 19:37:11 -0000 1.6 *************** *** 1,185 **** ! <?php ! /** ! * mx_common.php ! * ------------- ! * begin : May, 2003 ! * copyright : (C) 2002-2003 MX-System ! * email : su...@mx... ! * ! * module version : v 1.05 2003/07/05 by markus_petrux ! * ! * $Id$ ! */ ! ! /** ! * 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. ! */ ! ! // Include common scripts. ! ! include_once( $module_root_path . 'includes/cal_settings.' . $phpEx ); ! ! // Load language files. ! ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_calendar.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_calendar.' . $phpEx ); ! } ! else ! { ! include( $module_root_path . 'language/lang_english/lang_calendar.' . $phpEx ); ! } ! ! // Define table names. ! ! define( 'CALLITE_CONFIG_TABLE', $mx_table_prefix . 'callite_config' ); ! define( 'CALLITE_EVENTS_TABLE', $mx_table_prefix . 'callite_events' ); ! ! if ( !defined( 'DB_INSTALL' ) ) ! { ! ! // Get Calendar Settings from Cal_config table ! ! $cal_config = array(); ! ! $sql = "SELECT * FROM " . CALLITE_CONFIG_TABLE; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, "Couldn't query calendar config table", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $cal_config[$row['config_name']] = $row['config_value']; ! } ! } ! $cal_dateformat = !empty( $cal_config['cal_dateformat'] ) ? $cal_config['cal_dateformat'] : $board_config['default_dateformat']; ! // Timezone off 1 day fix ! // $cal_timezone = $board_config['board_timezone']; ! $userdata['calsnails_timezone'] = 0; ! } ! ! // Prepare some other common variables ! ! define( 'SECONDS_PER_DAY', 86400 ); // 24h * 60m * 60s ! ! // -------------------------------------------------------------------------------- ! // [ FUNCTIONS ] ! // -------------------------------------------------------------------------------- ! ! // my_dateformat comes from calendar.php, so it can be reused. ! // Also, we try to solve 2 bugs in one step: ! // a) Martin's mydateformat() does not translate weekdays. ! // b) Solve the phpBB collision with $lang['datetime']['May']. ! ! function my_dateformat( $thisdate, $dateformat = 'd M Y G:i', $span = 0 ) ! { ! global $cal_dateformat, $cal_timezone, $userdata; ! // date comes in as the following: ! $myr = substr( $thisdate, 0, 4 ); ! $mym = substr( $thisdate, 5, 2 ); ! $myd = substr( $thisdate, 8, 2 ); ! $myh = substr( $thisdate, 11, 2 ); ! $myn = substr( $thisdate, 14, 2 ); ! $mys = substr( $thisdate, 17, 2 ); ! ! if ( $span || ( $myh == '00' && $myn == '00' && $mys == '00' ) ) ! { ! // Need to strip out any TIME references so... ! $timerefs = array ( 'a', 'A', 'B', 'g', 'G', 'h', 'H', 'i', 'I', 's' ); ! while ( list( , $val ) = each ( $timerefs ) ) ! { ! $dateformat = ereg_replace( $val, "", $dateformat ); ! } ! // strip out any characters used for time ! $dateformat = ereg_replace( '[:\.]', " ", $dateformat ); ! } ! ! // Ok, this is problem (a). No translation occurs :( ! ! // $returndate = gmdate($dateformat, gmmktime ($myh,$myn,$mys,$mym,$myd,$myr)); ! // Fix for time off 1 day ! // $returndate = my_create_date($dateformat, gmmktime ($myh,$myn,$mys,$mym,$myd,$myr), $cal_timezone); ! $returndate = my_create_date( $dateformat, gmmktime( $myh, $myn, $mys, $mym, $myd, $myr ), $userdata['calsnails_timezone'] ); ! return $returndate; ! } ! ! // This is about problem (b). Using our own version of phpbb.functions_php.create_date() ! // we can use our own copy of $lang['datetime']['May'] (see lang_calendar.php files). ! ! function my_create_date( $format, $gmepoch, $tz ) ! { ! global $board_config, $lang; ! static $translate; ! ! if ( empty( $translate ) && $board_config['default_lang'] != 'english' ) ! { ! @reset( $lang['datetime'] ); ! while ( list( $match, $replace ) = @each( $lang['datetime'] ) ) ! { ! $translate[$match] = $replace; ! } ! } ! ! return ( !empty( $translate ) ) ? strtr( @gmdate( $format, $gmepoch + ( 3600 * $tz ) ), $translate ) : @gmdate( $format, $gmepoch + ( 3600 * $tz ) ); ! } ! ! // The easiest way I found to decode BBText. ! ! function my_decode_bbtext( $bbtext, $bbcode_uid ) ! { ! global $board_config; ! ! $mytext = stripslashes( $bbtext ); ! if ( $board_config['allow_bbcode'] ) ! { ! $mytext = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass( $mytext, $bbcode_uid ) : preg_replace( "/\:[0-9a-z\:]+\]/si", "]", $mytext ); ! } ! if ( $board_config['allow_smilies'] ) ! { ! $smilies_path = $board_config['smilies_path']; ! $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; ! $mytext = smilies_pass( $mytext ); ! $board_config['smilies_path'] = $smilies_path; ! } ! return $mytext; ! } ! ! // Truncate words on a string to specified length and append '...' if necesary. ! ! function my_truncate_words( $text, $length ) ! { ! $mytext = stripslashes( $text ); ! if ( strlen( $mytext ) > $length ) ! { ! $mytext = substr( $mytext, 0, $length ); ! $mytext = substr( $mytext, 0, strrpos( $mytext, ' ' ) ); ! $mytext .= '...'; ! } ! return $mytext; ! } ! // Get week number of year ! function week_of_year( $day, $month, $year ) ! { ! global $cal_config; ! ! $timestamp = gmmktime( 0, 0, 0, $month, $day, $year ); ! $date = getdate( $timestamp ); ! $woy = gmdate( 'W', $timestamp ); ! ! if ( $cal_config['week_start'] != 1 ) ! { ! if ( $date['wday'] == 0 ) ! { ! $woy++; ! } ! } ! ! return $woy; ! } ! ?> \ No newline at end of file --- 1,185 ---- ! <?php ! /** ! * mx_common.php ! * ------------- ! * begin : May, 2003 ! * copyright : (C) 2002-2003 MX-System ! * email : su...@mx... ! * ! * module version : v 1.05 2003/07/05 by markus_petrux ! * ! * $Id$ ! */ ! ! /** ! * 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. ! */ ! ! // Include common scripts. ! ! include_once( $module_root_path . 'includes/cal_settings.' . $phpEx ); ! ! // Load language files. ! ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); ! } ! ! // Define table names. ! ! define( 'CALLITE_CONFIG_TABLE', $mx_table_prefix . 'callite_config' ); ! define( 'CALLITE_EVENTS_TABLE', $mx_table_prefix . 'callite_events' ); ! ! if ( !defined( 'DB_INSTALL' ) ) ! { ! ! // Get Calendar Settings from Cal_config table ! ! $cal_config = array(); ! ! $sql = "SELECT * FROM " . CALLITE_CONFIG_TABLE; ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, "Couldn't query calendar config table", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $cal_config[$row['config_name']] = $row['config_value']; ! } ! } ! $cal_dateformat = !empty( $cal_config['cal_dateformat'] ) ? $cal_config['cal_dateformat'] : $board_config['default_dateformat']; ! // Timezone off 1 day fix ! // $cal_timezone = $board_config['board_timezone']; ! $userdata['calsnails_timezone'] = 0; ! } ! ! // Prepare some other common variables ! ! define( 'SECONDS_PER_DAY', 86400 ); // 24h * 60m * 60s ! ! // -------------------------------------------------------------------------------- ! // [ FUNCTIONS ] ! // -------------------------------------------------------------------------------- ! ! // my_dateformat comes from calendar.php, so it can be reused. ! // Also, we try to solve 2 bugs in one step: ! // a) Martin's mydateformat() does not translate weekdays. ! // b) Solve the phpBB collision with $lang['datetime']['May']. ! ! function my_dateformat( $thisdate, $dateformat = 'd M Y G:i', $span = 0 ) ! { ! global $cal_dateformat, $cal_timezone, $userdata; ! // date comes in as the following: ! $myr = substr( $thisdate, 0, 4 ); ! $mym = substr( $thisdate, 5, 2 ); ! $myd = substr( $thisdate, 8, 2 ); ! $myh = substr( $thisdate, 11, 2 ); ! $myn = substr( $thisdate, 14, 2 ); ! $mys = substr( $thisdate, 17, 2 ); ! ! if ( $span || ( $myh == '00' && $myn == '00' && $mys == '00' ) ) ! { ! // Need to strip out any TIME references so... ! $timerefs = array ( 'a', 'A', 'B', 'g', 'G', 'h', 'H', 'i', 'I', 's' ); ! while ( list( , $val ) = each ( $timerefs ) ) ! { ! $dateformat = ereg_replace( $val, "", $dateformat ); ! } ! // strip out any characters used for time ! $dateformat = ereg_replace( '[:\.]', " ", $dateformat ); ! } ! ! // Ok, this is problem (a). No translation occurs :( ! ! // $returndate = gmdate($dateformat, gmmktime ($myh,$myn,$mys,$mym,$myd,$myr)); ! // Fix for time off 1 day ! // $returndate = my_create_date($dateformat, gmmktime ($myh,$myn,$mys,$mym,$myd,$myr), $cal_timezone); ! $returndate = my_create_date( $dateformat, gmmktime( $myh, $myn, $mys, $mym, $myd, $myr ), $userdata['calsnails_timezone'] ); ! return $returndate; ! } ! ! // This is about problem (b). Using our own version of phpbb.functions_php.create_date() ! // we can use our own copy of $lang['datetime']['May'] (see lang_main.php files). ! ! function my_create_date( $format, $gmepoch, $tz ) ! { ! global $board_config, $lang; ! static $translate; ! ! if ( empty( $translate ) && $board_config['default_lang'] != 'english' ) ! { ! @reset( $lang['datetime'] ); ! while ( list( $match, $replace ) = @each( $lang['datetime'] ) ) ! { ! $translate[$match] = $replace; ! } ! } ! ! return ( !empty( $translate ) ) ? strtr( @gmdate( $format, $gmepoch + ( 3600 * $tz ) ), $translate ) : @gmdate( $format, $gmepoch + ( 3600 * $tz ) ); ! } ! ! // The easiest way I found to decode BBText. ! ! function my_decode_bbtext( $bbtext, $bbcode_uid ) ! { ! global $board_config; ! ! $mytext = stripslashes( $bbtext ); ! if ( $board_config['allow_bbcode'] ) ! { ! $mytext = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass( $mytext, $bbcode_uid ) : preg_replace( "/\:[0-9a-z\:]+\]/si", "]", $mytext ); ! } ! if ( $board_config['allow_smilies'] ) ! { ! $smilies_path = $board_config['smilies_path']; ! $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; ! $mytext = smilies_pass( $mytext ); ! $board_config['smilies_path'] = $smilies_path; ! } ! return $mytext; ! } ! ! // Truncate words on a string to specified length and append '...' if necesary. ! ! function my_truncate_words( $text, $length ) ! { ! $mytext = stripslashes( $text ); ! if ( strlen( $mytext ) > $length ) ! { ! $mytext = substr( $mytext, 0, $length ); ! $mytext = substr( $mytext, 0, strrpos( $mytext, ' ' ) ); ! $mytext .= '...'; ! } ! return $mytext; ! } ! // Get week number of year ! function week_of_year( $day, $month, $year ) ! { ! global $cal_config; ! ! $timestamp = gmmktime( 0, 0, 0, $month, $day, $year ); ! $date = getdate( $timestamp ); ! $woy = gmdate( 'W', $timestamp ); ! ! if ( $cal_config['week_start'] != 1 ) ! { ! if ( $date['wday'] == 0 ) ! { ! $woy++; ! } ! } ! ! return $woy; ! } ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:37:22
|
Update of /cvsroot/mxbb/mx_calsnails/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8269/modules/mx_calsnails/language/lang_english Added Files: lang_main.php Removed Files: lang_calendar.php Log Message: renamed lang_calendar to lang_main and associated updates --- NEW FILE: lang_main.php --- <?php /********************************************* * Calendar Language Pack * * Language: English * Last Updated: $Date: 2005/04/12 19:37:12 $ * Revision No.: $Revision: 1.1 $ * *********************************************/ // Version 2.0.1 (needs translating for other language versions!) // Calendar Addon MOD Language fields $lang['Calendar'] = "Calendar"; $lang['Cal_description'] = "Description"; $lang['Cal_day'] = "Start Date"; $lang['Cal_hour'] = "Time"; $lang['End_day'] = "End Date"; $lang['End_time'] = "End Time"; $lang['Cal_subject'] = "Subject"; $lang['Cal_add_event'] = "Add event"; $lang['Cal_submit_event'] = "Submit event"; $lang['Cal_event_not_add'] = "Event not added..."; $lang['Cal_event_delete'] = "Event Deleted"; $lang['Cal_Del_mod'] = "Delete / Modify"; $lang['Cal_mod_only'] = "Modify"; $lang['Cal_back2cal'] = "Calendar Home"; $lang['Cal_mod_marked'] = "Modify event"; $lang['Cal_del_marked'] = "Delete event"; $lang['Cal_must_sel_event'] = "You must select an event."; $lang['Cal_edit_own_event'] = "Sorry, you can only modify your own events."; $lang['Cal_delete_event'] = "Sorry, you don't have permission to delete this event."; $lang['Cal_not_enough_access'] = "Sorry, Access Denied"; $lang['Cal_must_member'] = "You must be authorised to connect and use this service"; $lang['Cal_alt_event'] = "Current :"; $lang['Validate'] = "Validate Events"; $lang['Cal_event_validated'] = "Event(s) have been Validated/Deleted as specified"; $lang['No events'] = "Currently there are no events for this date"; $lang['No records'] = "No events require validation"; $lang['No records modify'] = "No events available to modify"; $lang['No information'] = "Insufficient information. Please fill out all the relevant info"; $lang['Date before today'] = "Sorry, you cannot submit events for dates that have already passed"; $lang['Date before start'] = "Sorry, you cannot submit events that finish before they start"; $lang['No date'] = "You must select a start and end date"; $lang['No time'] = "You must select a start and end time"; // New Version 2.0.0 Additions. $lang['Config_Calendar'] = "Calendar Configuration"; $lang['Config_Calendar_explain'] = "Set all the necessary variables for your calendar below"; $lang['Cal_event_add'] = "Event Added/Modified..."; $lang['Cal_add4valid'] = "Event submitted for validation by an Administrator"; $lang['week_start'] = "Week start"; $lang['subject_length'] = "Subject length"; $lang['subject_length_explain'] = "Set the length of characters in an event subject(title) for the main month view<br><i>NB: For double-byte languages always select an even number of characters</i>"; $lang['cal_script_path_explain'] = "NOT CURRENTLY IN USE"; $lang['allow_anon'] = "Allow anonymous viewing"; $lang['allow_old'] = "Allow old events"; $lang['allow_old_explain'] = "Allow events to be posted for dates in the past"; $lang['show_headers'] = "Show the phpBB2 header info"; $lang['cal_date_explain'] = "Only use if you wish to use a different format from the forum date format <a href='http://www.php.net/date' target='_other'>gmdate()</a>"; $lang['category'] = "Category"; $lang['Cal_config_updated'] = "Calendar Configuration Updated Sucessfully"; $lang['Cal_return_config'] = 'Click %sHere%s to return to Calendar Configuration'; $lang['allow_categories'] = "Use categories with events"; $lang['require_categories'] = "Require a category with events:"; $lang['No_cat_selected'] = "No category selected"; $lang['Edit_cat'] = "Edit Category"; $lang['Cats_explain'] = "Use this section to add, edit or delete the categories you use on your database. <br><br><b>NB:</b> Please note that if you delete a category that has been selected for an event it will not delete those records but it will stop users from being able to filter and view a deleted category."; $lang['Cats_title'] = "Category Admin"; $lang['Must_enter_cat'] = "You must enter a category"; $lang['Cat_updated'] = "Category Updated"; $lang['Cat_added'] = "Category Added"; $lang['cat_removed'] = "Category Removed"; $lang['Add_new_cat'] = "Add new category"; $lang['Click_return_catadmin'] = 'Click %sHere%s to return to Category Administration'; $lang['Must_enter_valid_cat'] = "You must use valid alpha/numeric characters"; $lang['Filter_cats_alt'] = "Show selected category only"; $lang['Filter_cats'] = "View only..."; $lang['Month_jump'] = "Jump to..."; $lang['Recur_apply_to'] = "Changes apply to:"; $lang['Recur_future'] = "Future events"; $lang['Recur_solo'] = "This event only"; $lang['Recur_all'] = "All recurrences"; $lang['Cal_repeats'] = "Repeats every:"; $lang['until'] = "until"; $lang['Earliest recur before today'] = "Sorry, the earliest date in this set cannot be moved before today.\n<BR> Problem event on: "; $lang['day'] = "day(s)"; $lang['month'] = "month(s)"; $lang['year'] = "year(s)"; $lang['Event_length'] = "Each event lasts:"; $lang['Recur_title'] = "Optional Recurring Info."; $lang['Event_title'] = "Event Info."; $lang['Event overlap'] = "Recurring events cannot repeat before the initial event has ended"; $lang['R_period too small'] = "The period available for recurring events is insufficient for any repeats"; $lang['Add notes'] = "Add additional notes to this entry"; $lang['Add noted title'] = "Add Notes"; $lang['Split solo'] = "Split into 'stand-alone' entry <i>(will no longer update with related events)</i>"; $lang['Split solo title'] = "Split to seperate event"; $lang['Split future'] = "Change all event entries from this point forward"; $lang['Split future title'] = "Change all future events"; $lang['Edit all'] = "Change all related event entries"; $land['Edit all title'] = "Change all related events"; $lang['early_iteration'] = "(Earliest repetition after todays date)"; $lang['global subject'] = "Global subject"; $lang['global desc'] = "Global event info"; $lang['Del future'] = "Delete all events from this point forward"; $lang['Del all'] = "Delete all related event entries <i>(not including split entries)</i>"; $lang['Del this'] = "Delete this single event"; $lang['Event_num'] = "Event number:"; $lang['of'] = "<i>of</i>"; $lang['Additional info'] = "Additional information:"; $lang['Event specific'] = "(specific to 'this' event):"; $lang['allow_user_post_default'] = "Default access level for ALL registered users"; $lang['no_public'] = 'No public access'; $lang['view_only'] = 'View only'; $lang['view_suggest'] = 'View,Suggest Events'; $lang['view_add'] = 'View,Add Events'; $lang['view_edit_own'] = 'View,Add (Edit/Delete own)'; $lang['cal_admin'] = 'Calendar Admin'; $lang['Invalid date'] = "One or both of the dates you have submitted is invalid"; $lang['Empty subject'] = "You must enter a subject for your event"; $lang['Empty description'] = "You must enter a description for your event"; $lang['max'] = "Maximum:"; $lang['Return'] = "Go back to: "; $lang['View All'] = "View All"; $lang['Calendar_Level'] = "Calendar Level"; $lang['Calendar_Categories'] = "Calendar Categories"; $lang['Calendar Config'] = "Calendar Config"; $lang['days'] = "day(s)"; $lang['weeks'] = "week(s)"; $lang['months'] = "month(s)"; $lang['years'] = "year(s)"; $lang['view_year'] = "Year View"; $lang['view_month'] = "Month View"; $lang['view_week'] = "Week View"; $lang['view_day'] = "Day/Event View"; $lang['view_list'] = "List View"; $lang['view'] = "View"; $lang['Submitted_by'] = 'Submitted by'; $lang['No_modify_old'] = "Sorry, you can't edit an old event"; $lang['Cat_in_use'] = "This category is linked to existing events and cannot be deleted"; // DEV lang 2.0.25 $lang['require_time'] = "Require start/end times to be entered with new events"; $lang['allow_private_event'] = "Allow registered users to add private events"; $lang['allow_group_event'] = "Allow registered users to limit events to their own groups"; $lang['event_access'] = "Event Access:"; $lang['private_event'] = "Private/Personal"; $lang['public_event'] = "Public"; $lang['ug_event'] = "Restricted to Usergroup(s)"; $lang['group_select'] = "Allowed Usergroups: <br /><i>(if applicable)</i>"; $lang['group_event_explain'] = "<span class='genmed'><i>(Hold CTRL key and select groups with mouse to select more than one group)</i></span>"; $lang['No_private_events'] = "You are not permitted to add private events"; $lang['time_format'] = "Time Format"; // DEV lang 2.0.31 $lang['c_first'] = '1st'; $lang['c_second'] = '2nd'; $lang['c_third'] = '3rd'; $lang['c_fourth'] = '4th'; $lang['OR_every'] = 'OR every:'; // // Added for MX-System module mx_calsnails (basically because 'May' in phpBB is rewritten by 3 letter month) // //$lang['datetime']['May'] = 'May'; // // Added for MX-System module mx_calsnails // $lang['Events'] = 'Events'; $lang['allow_anon_post_default'] = "Default access level for ALL anonymous users"; $lang['Calendar_Events'] = "Calendar of Events"; $lang['More_Info'] = 'More Information ...'; $lang['To_End_Date'] = 'To:'; // For Cal Events top label $lang['Ev_this_day'] = 'Today'; $lang['Ev_this_week'] = 'This Week, '; $lang['Ev_next_week'] = 'Next week, '; $lang['Ev_this_month'] = 'This month '; $lang['Ev_next_month'] = 'Next month '; // Calsnails adminCP $lang['auth_all'] = "Default access level for ALL anonymous users"; $lang['auth_reg'] = "Default access level for ALL registered users<br /><br />NOTE: Block EDIT permissions also affect the CalSnails Block. EDIT users become CalSnails moderators..."; $lang['cal_filter'] = "Event Filter: Show events added for this Block only<br />NOTE: FALSE, means show ALL calendar events..."; $lang['target_block'] = "Associated (target) CalSnails Block"; $lang['cal_mod_group'] = "CalSnails Moderator Group"; ?> --- lang_calendar.php DELETED --- |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:37:21
|
Update of /cvsroot/mxbb/mx_calsnails/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8269/modules/mx_calsnails/admin Modified Files: admin_calendar.php Log Message: renamed lang_calendar to lang_main and associated updates Index: admin_calendar.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/admin/admin_calendar.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** admin_calendar.php 9 Jan 2005 21:31:28 -0000 1.7 --- admin_calendar.php 12 Apr 2005 19:37:10 -0000 1.8 *************** *** 1,208 **** ! <?php ! /** ! * MX-System changes to original source: ! * ! * MX001: Replace IN_PHPBB by IN_PORTAL. ! * MX002: Change Module name and add path in admin $module array. ! * MX003: Change the way it sets/loads default header, tablename usage, etc. ! * MX004: Change the way is included page_footer_admin.php ! * MX005: Make $config['allow_anon'] like $config['allow_user_default']. ! */ ! ! /** ! * Calendar Lite ! * note: following info added by CVS ! * original author: WebSnail < Martin Smallridge > ! * ! * $Author$ ! * $Date$ ! * $Revision$ ! */ ! ! /** ! * admin_calendar.php ! * ------------------- ! * Copyright: (C) 2003 SnailSource.com ! * Mod Title: phpBB2 Calendar Lite ! * Mod Version: 1.4.0 ! * Author: WebSnail < http://www.snailsource.com > ! */ ! ! /** ! * 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. ! */ ! // MX001: define('IN_PHPBB', 1); ! define( 'IN_PORTAL', true ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! // MX002 ! $module['Portal CalSnails Lite']['Settings'] = 'modules/mx_calsnails/admin/' . $filename; ! return; ! } ! // -------------------------------------------------- ! // MX003: Begin ! ! /* ========== * ========== * ========== * ! global $db; ! // ! // Load default header ! // ! $phpbb_root_path = "../"; ! require($phpbb_root_path . 'extension.inc'); ! require('pagestart.' . $phpEx); ! ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_calendar.' . $phpEx); ! $page_title = $lang['Config_Cal']; ! $caltable = $table_prefix . "cal_config"; ! * ========== * ========== * ========== */ ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/mx_common.' . $phpEx ); ! ! $caltable = CALLITE_CONFIG_TABLE; ! ! include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); ! ! // MX003: End ! // -------------------------------------------------- ! $sql = "SELECT * FROM " . $caltable; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Couldn't query calendar config table", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $default_config[$config_name] = $config_value; ! ! $new[$config_name] = ( isset( $HTTP_POST_VARS[$config_name] ) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $sql = "UPDATE " . $caltable . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Failed to update calendar configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Cal_config_updated'] . "<br /><br />" . sprintf( $lang['Cal_return_config'], "<a href=\"" . append_sid( "admin_calendar.$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 ); ! } ! } ! // Build Week Start select box ! $week_start_select = "<select name='week_start'>"; ! $week_start_select .= "<option value='0' "; ! $week_start_select .= ( $new['week_start'] == '0' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Sunday'] . "</option>"; ! $week_start_select .= "<option value='1' "; ! $week_start_select .= ( $new['week_start'] == '1' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Monday'] . "</option>"; ! $week_start_select .= "</select>"; ! ! $allow_anon_yes = ( $new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! $allow_anon_no = ( !$new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! ! $allow_old_yes = ( $new['allow_old'] ) ? "checked=\"checked\"" : ""; ! $allow_old_no = ( !$new['allow_old'] ) ? "checked=\"checked\"" : ""; ! ! $show_headers_yes = ( $new['show_headers'] ) ? "checked=\"checked\"" : ""; ! $show_headers_no = ( !$new['show_headers'] ) ? "checked=\"checked\"" : ""; ! // ---------- ! // +MX005 ! ! function get_cal_levels( $field ) ! { ! global $lang, $new; ! ! $cal_levels[0] = $lang['no_public']; ! $cal_levels[1] = $lang['view_only']; ! $cal_levels[2] = $lang['view_suggest']; ! $cal_levels[3] = $lang['view_add']; ! $cal_levels[4] = $lang['view_edit_own']; ! $select = "<select name='" . $field . "'>"; ! for ( $i = 0; $i <= 4; $i++ ) ! { ! $select .= "<option value='" . $i; ! if ( $i == $new[$field] ) ! { ! $select .= "' selected='selected'>\n"; ! } ! else ! { ! $select .= "'>\n"; ! } ! $select .= $cal_levels[$i] . "</option>"; ! } ! return $select .= "</select>"; ! } ! ! $s_cal_anon = get_cal_levels( 'allow_anon' ); ! $s_cal_type = get_cal_levels( 'allow_user_default' ); ! ! // -MX005 ! // ---------- ! $template->set_filenames( array( "body" => "admin/calendar_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( "S_CONFIG_ACTION" => append_sid( "admin_calendar.$phpEx" ), ! ! "L_YES" => $lang['Yes'], ! "L_NO" => $lang['No'], ! "L_CONFIGURATION_TITLE" => $lang['Config_Calendar'], ! "L_GENERAL_SETTINGS" => $lang['Config_Calendar'], ! "L_CONFIGURATION_EXPLAIN" => $lang['Config_Calendar_explain'], ! "L_WEEK_START" => $lang['week_start'], ! "L_SUBJECT_LENGTH" => $lang['subject_length'], ! "L_SUBJECT_LENGTH_EXPLAIN" => $lang['subject_length_explain'], ! "L_ALLOW_ANON" => $lang['allow_anon'], ! "L_ALLOW_USER_POST" => $lang['allow_user_post'], ! "L_ALLOW_ANON_DEFAULT" => $lang['allow_anon_post_default'], // MX005: added ! "L_ALLOW_USER_DEFAULT" => $lang['allow_user_post_default'], ! "L_ALLOW_OLD" => $lang['allow_old'], ! "L_ALLOW_OLD_EXPLAIN" => $lang['allow_old_explain'], ! "L_SHOW_HEADERS" => $lang['show_headers'], ! "L_DATE_FORMAT" => $lang['Date_format'], ! "L_DATE_FORMAT_EXPLAIN" => $lang['cal_date_explain'], ! ! "L_SUBMIT" => $lang['Submit'], ! "L_RESET" => $lang['Reset'], ! ! "WEEK_START_SELECT" => $week_start_select, ! "SUBJECT_LENGTH" => $new['subject_length'], ! "SCIPT_PATH" => $new['cal_script_path'], ! ! "S_ALLOW_ANON_YES" => $allow_anon_yes, ! "S_ALLOW_ANON_NO" => $allow_anon_no, ! "S_ALLOW_USER_POST_YES" => $allow_user_post_yes, ! "S_ALLOW_USER_POST_NO" => $allow_user_post_no, ! "S_ALLOW_ANON_DEFAULT" => $s_cal_anon, // MX005: added ! "S_ALLOW_USER_DEFAULT" => $s_cal_type, ! "S_ALLOW_OLD_YES" => $allow_old_yes, ! "S_ALLOW_OLD_NO" => $allow_old_no, ! "S_SHOW_HEADERS_YES" => $show_headers_yes, ! "S_SHOW_HEADERS_NO" => $show_headers_no, ! ! "CAL_DATEFORMAT" => $new['cal_dateformat'] ) ! ); ! ! $template->pparse( "body" ); ! // MX004: include('./page_footer_admin.'.$phpEx); ! include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file --- 1,208 ---- ! <?php ! /** ! * MX-System changes to original source: ! * ! * MX001: Replace IN_PHPBB by IN_PORTAL. ! * MX002: Change Module name and add path in admin $module array. ! * MX003: Change the way it sets/loads default header, tablename usage, etc. ! * MX004: Change the way is included page_footer_admin.php ! * MX005: Make $config['allow_anon'] like $config['allow_user_default']. ! */ ! ! /** ! * Calendar Lite ! * note: following info added by CVS ! * original author: WebSnail < Martin Smallridge > ! * ! * $Author$ ! * $Date$ ! * $Revision$ ! */ ! ! /** ! * admin_calendar.php ! * ------------------- ! * Copyright: (C) 2003 SnailSource.com ! * Mod Title: phpBB2 Calendar Lite ! * Mod Version: 1.4.0 ! * Author: WebSnail < http://www.snailsource.com > ! */ ! ! /** ! * 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. ! */ ! // MX001: define('IN_PHPBB', 1); ! define( 'IN_PORTAL', true ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! // MX002 ! $module['Portal CalSnails Lite']['Settings'] = 'modules/mx_calsnails/admin/' . $filename; ! return; ! } ! // -------------------------------------------------- ! // MX003: Begin ! ! /* ========== * ========== * ========== * ! global $db; ! // ! // Load default header ! // ! $phpbb_root_path = "../"; ! require($phpbb_root_path . 'extension.inc'); ! require('pagestart.' . $phpEx); ! ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! $page_title = $lang['Config_Cal']; ! $caltable = $table_prefix . "cal_config"; ! * ========== * ========== * ========== */ ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/mx_common.' . $phpEx ); ! ! $caltable = CALLITE_CONFIG_TABLE; ! ! include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); ! ! // MX003: End ! // -------------------------------------------------- ! $sql = "SELECT * FROM " . $caltable; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Couldn't query calendar config table", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $default_config[$config_name] = $config_value; ! ! $new[$config_name] = ( isset( $HTTP_POST_VARS[$config_name] ) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $sql = "UPDATE " . $caltable . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Failed to update calendar configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Cal_config_updated'] . "<br /><br />" . sprintf( $lang['Cal_return_config'], "<a href=\"" . append_sid( "admin_calendar.$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 ); ! } ! } ! // Build Week Start select box ! $week_start_select = "<select name='week_start'>"; ! $week_start_select .= "<option value='0' "; ! $week_start_select .= ( $new['week_start'] == '0' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Sunday'] . "</option>"; ! $week_start_select .= "<option value='1' "; ! $week_start_select .= ( $new['week_start'] == '1' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Monday'] . "</option>"; ! $week_start_select .= "</select>"; ! ! $allow_anon_yes = ( $new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! $allow_anon_no = ( !$new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! ! $allow_old_yes = ( $new['allow_old'] ) ? "checked=\"checked\"" : ""; ! $allow_old_no = ( !$new['allow_old'] ) ? "checked=\"checked\"" : ""; ! ! $show_headers_yes = ( $new['show_headers'] ) ? "checked=\"checked\"" : ""; ! $show_headers_no = ( !$new['show_headers'] ) ? "checked=\"checked\"" : ""; ! // ---------- ! // +MX005 ! ! function get_cal_levels( $field ) ! { ! global $lang, $new; ! ! $cal_levels[0] = $lang['no_public']; ! $cal_levels[1] = $lang['view_only']; ! $cal_levels[2] = $lang['view_suggest']; ! $cal_levels[3] = $lang['view_add']; ! $cal_levels[4] = $lang['view_edit_own']; ! $select = "<select name='" . $field . "'>"; ! for ( $i = 0; $i <= 4; $i++ ) ! { ! $select .= "<option value='" . $i; ! if ( $i == $new[$field] ) ! { ! $select .= "' selected='selected'>\n"; ! } ! else ! { ! $select .= "'>\n"; ! } ! $select .= $cal_levels[$i] . "</option>"; ! } ! return $select .= "</select>"; ! } ! ! $s_cal_anon = get_cal_levels( 'allow_anon' ); ! $s_cal_type = get_cal_levels( 'allow_user_default' ); ! ! // -MX005 ! // ---------- ! $template->set_filenames( array( "body" => "admin/calendar_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( "S_CONFIG_ACTION" => append_sid( "admin_calendar.$phpEx" ), ! ! "L_YES" => $lang['Yes'], ! "L_NO" => $lang['No'], ! "L_CONFIGURATION_TITLE" => $lang['Config_Calendar'], ! "L_GENERAL_SETTINGS" => $lang['Config_Calendar'], ! "L_CONFIGURATION_EXPLAIN" => $lang['Config_Calendar_explain'], ! "L_WEEK_START" => $lang['week_start'], ! "L_SUBJECT_LENGTH" => $lang['subject_length'], ! "L_SUBJECT_LENGTH_EXPLAIN" => $lang['subject_length_explain'], ! "L_ALLOW_ANON" => $lang['allow_anon'], ! "L_ALLOW_USER_POST" => $lang['allow_user_post'], ! "L_ALLOW_ANON_DEFAULT" => $lang['allow_anon_post_default'], // MX005: added ! "L_ALLOW_USER_DEFAULT" => $lang['allow_user_post_default'], ! "L_ALLOW_OLD" => $lang['allow_old'], ! "L_ALLOW_OLD_EXPLAIN" => $lang['allow_old_explain'], ! "L_SHOW_HEADERS" => $lang['show_headers'], ! "L_DATE_FORMAT" => $lang['Date_format'], ! "L_DATE_FORMAT_EXPLAIN" => $lang['cal_date_explain'], ! ! "L_SUBMIT" => $lang['Submit'], ! "L_RESET" => $lang['Reset'], ! ! "WEEK_START_SELECT" => $week_start_select, ! "SUBJECT_LENGTH" => $new['subject_length'], ! "SCIPT_PATH" => $new['cal_script_path'], ! ! "S_ALLOW_ANON_YES" => $allow_anon_yes, ! "S_ALLOW_ANON_NO" => $allow_anon_no, ! "S_ALLOW_USER_POST_YES" => $allow_user_post_yes, ! "S_ALLOW_USER_POST_NO" => $allow_user_post_no, ! "S_ALLOW_ANON_DEFAULT" => $s_cal_anon, // MX005: added ! "S_ALLOW_USER_DEFAULT" => $s_cal_type, ! "S_ALLOW_OLD_YES" => $allow_old_yes, ! "S_ALLOW_OLD_NO" => $allow_old_no, ! "S_SHOW_HEADERS_YES" => $show_headers_yes, ! "S_SHOW_HEADERS_NO" => $show_headers_no, ! ! "CAL_DATEFORMAT" => $new['cal_dateformat'] ) ! ); ! ! $template->pparse( "body" ); ! // MX004: include('./page_footer_admin.'.$phpEx); ! include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:33:59
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5538/modules/mx_pafiledb/pafiledb/docs Modified Files: install.txt Log Message: renamed lang files (lang_main and lang_admin) updated install/upgrade files for 2.0.1 Index: install.txt =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/docs/install.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install.txt 11 Apr 2005 17:55:44 -0000 1.3 --- install.txt 12 Apr 2005 19:32:56 -0000 1.4 *************** *** 1,5 **** ############################################################## ## MOD Title: Download Manager (mxBB pafiledb) integration ! ## MOD Version: 0.0.9d + mxBB 2.01 ## MOD Original Author: squall < moh...@ya... > (Mohammed Al-Basri) www.mohd.tk ## MJ < mj...@ph... > www.phpbbfm.com --- 1,5 ---- ############################################################## ## MOD Title: Download Manager (mxBB pafiledb) integration ! ## MOD Version: 0.0.9d + mxBB 2.0.1 ## MOD Original Author: squall < moh...@ya... > (Mohammed Al-Basri) www.mohd.tk ## MJ < mj...@ph... > www.phpbbfm.com *************** *** 8,12 **** ## pafiledb use header, footer, session, template, and database system ## of phpbb. ! ## Only for phpBB 2.0.x+! ## ## Installation Level: (easy) --- 8,12 ---- ## pafiledb use header, footer, session, template, and database system ## of phpbb. ! ## Only for phpBB 2.0.+! ## ## Installation Level: (easy) |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:33:39
|
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5538/modules/mx_pafiledb Modified Files: dload_lists.php mx_install_readme.htm pafiledb.pak Log Message: renamed lang files (lang_main and lang_admin) updated install/upgrade files for 2.0.1 Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/mx_install_readme.htm,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mx_install_readme.htm 15 Jan 2005 23:52:00 -0000 1.6 --- mx_install_readme.htm 12 Apr 2005 19:32:56 -0000 1.7 *************** *** 1,296 **** ! <html> ! <head> ! <title>Mx Portal installation - readme</title> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ! <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> ! <style type="text/css"> ! <!-- ! /* ! The original subSilver Theme for phpBB version 2+ ! Created by subBlue design ! http://www.subBlue.com ! ! NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 ! theme administration centre. When you have finalised your style you could cut the final CSS code ! and place it in an external file, deleting this section to save bandwidth. ! */ ! ! /* General page style. The scroll bar colours only visible in IE5.5+ */ ! body { ! background-color: #E5E5E5; ! scrollbar-face-color: #DEE3E7; ! scrollbar-highlight-color: #FFFFFF; ! scrollbar-shadow-color: #DEE3E7; ! scrollbar-3dlight-color: #D1D7DC; ! scrollbar-arrow-color: #006699; ! scrollbar-track-color: #EFEFEF; ! scrollbar-darkshadow-color: #98AAB1; ! } ! ! /* General font families for common tags */ ! font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } ! a:link,a:active,a:visited { color : #006699; } ! a:hover { text-decoration: underline; color : #DD6900; } ! hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} ! ! /* This is the border line & background colour round the entire page */ ! .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } ! ! /* This is the outline round the main forum tables */ ! .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } ! ! /* Main table cell colours and backgrounds */ ! td.row1 { background-color: #EFEFEF; } ! td.row2 { background-color: #DEE3E7; } ! td.row3 { background-color: #D1D7DC; } ! ! /* ! This is for the table cell above the Topics, Post & Last posts on the index.php page ! By default this is the fading out gradiated silver background. ! However, you could replace this with a bitmap specific for each forum ! */ ! td.rowpic { ! background-color: #FFFFFF; ! background-image: url(../../install/templates/subSilver/images/cellpic2.jpg); ! background-repeat: repeat-y; ! } ! ! /* Header cells - the blue and silver gradient backgrounds */ ! th { ! color: #FFA34F; font-size: 11px; font-weight : bold; ! background-color: #006699; height: 25px; ! background-image: url(../../install/templates/subSilver/images/cellpic3.gif); ! } ! ! td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { ! background-image: url(../../install/templates/subSilver/images/cellpic1.gif); ! background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; ! } ! ! /* ! Setting additional nice inner borders for the main table cells. ! The names indicate which sides the border will be on. ! Don't worry if you don't understand this, just ignore it :-) ! */ ! td.cat,td.catHead,td.catBottom { ! height: 29px; ! border-width: 0px 0px 0px 0px; ! } ! th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { ! font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; ! } ! td.row3Right,td.spaceRow { ! background-color: #D1D7DC; border: #FFFFFF; border-style: solid; ! } ! ! th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } ! th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } ! th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } ! th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } ! th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } ! th.thTop { border-width: 1px 0px 0px 0px; } ! th.thCornerL { border-width: 1px 0px 0px 1px; } ! th.thCornerR { border-width: 1px 1px 0px 0px; } ! ! /* The largest text used in the index page title and toptic title etc. */ ! .maintitle { ! font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; ! text-decoration: none; line-height : 120%; color : #000000; ! } ! ! /* General text */ ! .gen { font-size : 12px; } ! .genmed { font-size : 11px; } ! .gensmall { font-size : 10px; } ! .gen,.genmed,.gensmall { color : #000000; } ! a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } ! a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } ! ! /* The register, login, search etc links at the top of the page */ ! .mainmenu { font-size : 11px; color : #000000 } ! a.mainmenu { text-decoration: none; color : #006699; } ! a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } ! ! /* Forum category titles */ ! .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} ! a.cattitle { text-decoration: none; color : #006699; } ! a.cattitle:hover{ text-decoration: underline; } ! ! /* Forum title: Text and link to the forums used in: index.php */ ! .forumlink { font-weight: bold; font-size: 12px; color : #006699; } ! a.forumlink { text-decoration: none; color : #006699; } ! a.forumlink:hover{ text-decoration: underline; color : #DD6900; } ! ! /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ ! .nav { font-weight: bold; font-size: 11px; color : #000000;} ! a.nav { text-decoration: none; color : #006699; } ! a.nav:hover { text-decoration: underline; } ! ! /* titles for the topics: could specify viewed link colour too */ ! .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } ! a.topictitle:link { text-decoration: none; color : #006699; } ! a.topictitle:visited { text-decoration: none; color : #5493B4; } ! a.topictitle:hover { text-decoration: underline; color : #DD6900; } ! ! /* Name of poster in viewmsg.php and viewtopic.php and other places */ ! .name { font-size : 11px; color : #000000;} ! ! /* Location, number of posts, post date etc */ ! .postdetails { font-size : 10px; color : #000000; } ! ! /* The content of the posts (body of text) */ ! .postbody { font-size : 12px; line-height: 18px} ! a.postlink:link { text-decoration: none; color : #006699 } ! a.postlink:visited { text-decoration: none; color : #5493B4; } ! a.postlink:hover { text-decoration: underline; color : #DD6900} ! ! /* Quote & Code blocks */ ! .code { ! font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px ! } ! ! .quote { ! font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px ! } ! ! /* Copyright and bottom info */ ! .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} ! a.copyright { color: #444444; text-decoration: none;} ! a.copyright:hover { color: #000000; text-decoration: underline;} ! ! /* Form elements */ ! input,textarea, select { ! color : #000000; ! font: normal 11px Verdana, Arial, Helvetica, sans-serif; ! border-color : #000000; ! } ! ! /* The text input fields background colour */ ! input.post, textarea.post, select { ! background-color : #FFFFFF; ! } ! ! input { text-indent : 2px; } ! ! /* The buttons used for bbCode styling in message post */ ! input.button { ! background-color : #EFEFEF; ! color : #000000; ! font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; ! } ! ! /* The main submit button option */ ! input.mainoption { ! background-color : #FAFAFA; ! font-weight : bold; ! } ! ! /* None-bold submit button */ ! input.liteoption { ! background-color : #FAFAFA; ! font-weight : normal; ! } ! ! /* This is the line in the posting page which shows the rollover ! help line. This is actually a text box, but if set to be the same ! colour as the background no one will know ;) ! */ ! .helpline { background-color: #DEE3E7; border-style: none; } ! ! /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ ! @import url("templates/subSilver/formIE.css"); ! --> ! </style> ! <script language="Javascript" type="text/javascript"> ! <!-- ! if ( 0 ) ! { ! window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; ! } ! //--> ! </script> ! </head> ! ! <body bgcolor="#FFFFFF" text="#000000"> ! <table> ! <tr> ! <td colspan="2"><p><b><font size="5">MX Module - pafileDB<br> ! <font size="2">v. 1.04</font></font></b></p> ! <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> ! <br /> ! - for Mx Portal v. 2.7.5+</p> ! <p><strong>Author</strong><br /> ! Haplo<br /> ! <br /> ! <span style="font-weight: bold">Note: This module cannot be upgraded from ! old mx download module!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...mx pafiledb ! module is too modified:(</span></p> ! <p><span style="font-weight: bold">Description</span> <br /> ! The MX Module is an addon product for the MX-portal.</p> ! <p><strong>Features</strong> <br /> ! Easy to use and install/uninstall module.</p> ! <p> <br /> ! I. <a href="#install">Installation instructions</a> <br /> ! <br /> ! II. <a href="#themes">Additional styles</a> <br /> ! <br /> ! III. <a href="#languages">Additional languages</a><br /> ! <br /> ! <a href="http://www.mx-system.com" target="_blank" class="postlink">DEMO ! </a> <br /> ! <br /> ! <a href="http://www.mx-system.com/index.php?page=4" target="_blank" class="postlink"> ! DOWNLOAD </a> <br /> ! <br /><a name="install"> ! <br /> ! <span style="font-weight: bold">I. Installation Instructions</span> <br /> ! To install this module, follow these instructions. If you encounter any ! problems during install, visit the <a href="http://www.mx-system.com/forum/viewforum.php?f=20" target="_blank" class="postlink"> ! module support forum</a>. </p> ! <p>All install notes are maintained at www.mx-system.com, <a href="http://www.mx-system.com/forum/viewforum.php?f=11">here</a>.<br> ! <br> ! To summarize:<br> ! If installing from scratch, use import module in the AdminCP.<br> ! If upgrading, use the upgrade option in the AdminCP<br> ! If uninstalling, use the delete feature in the AdminCP</p> ! <p>Note: If upgrading, do NOT delete module prior to upgrading, or else ! you'll lose all module data!</p> ! <p>Special note for pafileDB:<br> ! ## Create and CHMOD (0777) THE FOLLOWING DIRECTORIES: <br> ! ## - pafiledb/uploads/ <br> ! ## - pafiledb/cache/ <br> ! ## - pafiledb/cache/templates/subSilver/ <br> ! ## - pafiledb/cache/templates/subSilver/admin <br> ! ## - pafiledb/images/screenshots/<br /> ! <br /> ! <a href="#top"> Back to Top</a> <br /> ! <br /><a name="themes"> ! <br /> ! <span style="font-weight: bold">II. Additional Styles</span> <br /> ! This module is compatible with any theme/style. <br /> ! <br /> ! <a href="#top"> Back to Top</a> <br /> ! <br /><a name="languages"> ! <br /> ! <span style="font-weight: bold">III. Additional Languages</span> <br /> ! First check to see if your language is already translated. <br /> ! <br /> ! Translated languages are downloaded <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> ! here</a>. <br /> ! <br /> ! If exists, download and install in the modules/mx_modulename/language ! folder. If not, duplicate (copy and paste) any included language file, ! rename to match your language, translate using any texteditor, save and ! upload. <br /> ! <br /> ! <a href="#top"> Back to Top</a> </p> ! <p> /Mx Team</p> ! </td> ! </tr> ! </table> ! </body> ! </html> --- 1,329 ---- ! <html> ! <head> ! <title>Mx Portal installation - readme</title> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ! <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> ! <style type="text/css"> ! <!-- ! /* ! The original subSilver Theme for phpBB version 2+ ! Created by subBlue design ! http://www.subBlue.com ! ! NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 ! theme administration centre. When you have finalised your style you could cut the final CSS code ! and place it in an external file, deleting this section to save bandwidth. ! */ ! ! /* General page style. The scroll bar colours only visible in IE5.5+ */ ! body { ! background-color: #E5E5E5; ! scrollbar-face-color: #DEE3E7; ! scrollbar-highlight-color: #FFFFFF; ! scrollbar-shadow-color: #DEE3E7; ! scrollbar-3dlight-color: #D1D7DC; ! scrollbar-arrow-color: #006699; ! scrollbar-track-color: #EFEFEF; ! scrollbar-darkshadow-color: #98AAB1; ! } ! ! /* General font families for common tags */ ! font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } ! a:link,a:active,a:visited { color : #006699; } ! a:hover { text-decoration: underline; color : #DD6900; } ! hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} ! ! /* This is the border line & background colour round the entire page */ ! .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } ! ! /* This is the outline round the main forum tables */ ! .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } ! ! /* Main table cell colours and backgrounds */ ! td.row1 { background-color: #EFEFEF; } ! td.row2 { background-color: #DEE3E7; } ! td.row3 { background-color: #D1D7DC; } ! ! /* ! This is for the table cell above the Topics, Post & Last posts on the index.php page ! By default this is the fading out gradiated silver background. ! However, you could replace this with a bitmap specific for each forum ! */ ! td.rowpic { ! background-color: #FFFFFF; ! background-image: url(../../install/templates/subSilver/images/cellpic2.jpg); ! background-repeat: repeat-y; ! } ! ! /* Header cells - the blue and silver gradient backgrounds */ ! th { ! color: #FFA34F; font-size: 11px; font-weight : bold; ! background-color: #006699; height: 25px; ! background-image: url(../../install/templates/subSilver/images/cellpic3.gif); ! } ! ! td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { ! background-image: url(../../install/templates/subSilver/images/cellpic1.gif); ! background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; ! } ! ! /* ! Setting additional nice inner borders for the main table cells. ! The names indicate which sides the border will be on. ! Don't worry if you don't understand this, just ignore it :-) ! */ ! td.cat,td.catHead,td.catBottom { ! height: 29px; ! border-width: 0px 0px 0px 0px; ! } ! th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { ! font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; ! } ! td.row3Right,td.spaceRow { ! background-color: #D1D7DC; border: #FFFFFF; border-style: solid; ! } ! ! th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } ! th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } ! th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } ! th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } ! th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } ! th.thTop { border-width: 1px 0px 0px 0px; } ! th.thCornerL { border-width: 1px 0px 0px 1px; } ! th.thCornerR { border-width: 1px 1px 0px 0px; } ! ! /* The largest text used in the index page title and toptic title etc. */ ! .maintitle { ! font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; ! text-decoration: none; line-height : 120%; color : #000000; ! } ! ! /* General text */ ! .gen { font-size : 12px; } ! .genmed { font-size : 11px; } ! .gensmall { font-size : 10px; } ! .gen,.genmed,.gensmall { color : #000000; } ! a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } ! a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } ! ! /* The register, login, search etc links at the top of the page */ ! .mainmenu { font-size : 11px; color : #000000 } ! a.mainmenu { text-decoration: none; color : #006699; } ! a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } ! ! /* Forum category titles */ ! .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} ! a.cattitle { text-decoration: none; color : #006699; } ! a.cattitle:hover{ text-decoration: underline; } ! ! /* Forum title: Text and link to the forums used in: index.php */ ! .forumlink { font-weight: bold; font-size: 12px; color : #006699; } ! a.forumlink { text-decoration: none; color : #006699; } ! a.forumlink:hover{ text-decoration: underline; color : #DD6900; } ! ! /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ ! .nav { font-weight: bold; font-size: 11px; color : #000000;} ! a.nav { text-decoration: none; color : #006699; } ! a.nav:hover { text-decoration: underline; } ! ! /* titles for the topics: could specify viewed link colour too */ ! .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } ! a.topictitle:link { text-decoration: none; color : #006699; } ! a.topictitle:visited { text-decoration: none; color : #5493B4; } ! a.topictitle:hover { text-decoration: underline; color : #DD6900; } ! ! /* Name of poster in viewmsg.php and viewtopic.php and other places */ ! .name { font-size : 11px; color : #000000;} ! ! /* Location, number of posts, post date etc */ ! .postdetails { font-size : 10px; color : #000000; } ! ! /* The content of the posts (body of text) */ ! .postbody { font-size : 12px; line-height: 18px} ! a.postlink:link { text-decoration: none; color : #006699 } ! a.postlink:visited { text-decoration: none; color : #5493B4; } ! a.postlink:hover { text-decoration: underline; color : #DD6900} ! ! /* Quote & Code blocks */ ! .code { ! font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px ! } ! ! .quote { ! font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px ! } ! ! /* Copyright and bottom info */ ! .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} ! a.copyright { color: #444444; text-decoration: none;} ! a.copyright:hover { color: #000000; text-decoration: underline;} ! ! /* Form elements */ ! input,textarea, select { ! color : #000000; ! font: normal 11px Verdana, Arial, Helvetica, sans-serif; ! border-color : #000000; ! } ! ! /* The text input fields background colour */ ! input.post, textarea.post, select { ! background-color : #FFFFFF; ! } ! ! input { text-indent : 2px; } ! ! /* The buttons used for bbCode styling in message post */ ! input.button { ! background-color : #EFEFEF; ! color : #000000; ! font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; ! } ! ! /* The main submit button option */ ! input.mainoption { ! background-color : #FAFAFA; ! font-weight : bold; ! } ! ! /* None-bold submit button */ ! input.liteoption { ! background-color : #FAFAFA; ! font-weight : normal; ! } ! ! /* This is the line in the posting page which shows the rollover ! help line. This is actually a text box, but if set to be the same ! colour as the background no one will know ;) ! */ ! .helpline { background-color: #DEE3E7; border-style: none; } ! ! /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ ! @import url("templates/subSilver/formIE.css"); ! --> ! </style> ! <script language="Javascript" type="text/javascript"> ! <!-- ! if ( 0 ) ! { ! window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; ! } ! //--> ! </script> ! </head> ! ! <body bgcolor="#FFFFFF" text="#000000"> ! <table> ! <tr> ! <td colspan="2"><p><b><font size="5">MX Module - pafileDB<br> ! <font size="2">v. 2.0.1</font></font></b></p> ! <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> ! <br /> ! - for Mx Portal v. 2.7.5+ (with some notes, see below)</p> ! <p><strong>Author</strong><br /> ! Haplo</p> ! <p><span style="font-weight: bold">Description</span> <br /> ! The mxBB Module is an addon product for the mxBB Portal.</p> ! <p><strong>Features</strong> <br /> ! Easy to use and install/uninstall module.</p> ! <p> <br /> ! I. <a href="#install">Installation instructions</a> <br /> ! <br /> ! II. <a href="#themes">Additional styles</a> <br /> ! <br /> ! III. <a href="#languages">Additional languages</a><br /> ! <br /> ! <a href="http://www.mx-system.com" target="_blank" class="postlink">DEMO ! </a> <br /> ! <br /> ! <a href="http://www.mx-system.com/index.php?page=4" target="_blank" class="postlink"> ! DOWNLOAD </a> <br /> ! <br /><a name="install"> ! <br /> ! <span style="font-weight: bold">I. Installation Instructions</span> <br /> ! To install this module, follow these instructions. If you encounter any ! problems during install, visit the <a href="http://www.mx-system.com/forum/viewforum.php?f=20" target="_blank" class="postlink"> ! module support forum</a>. </p> ! <p>All install notes are maintained at www.mx-system.com, <a href="http://www.mx-system.com/forum/viewforum.php?f=11">here</a>. </p> ! <p>Special note for pafileDB:<br> ! ## Create and CHMOD (0777) THE FOLLOWING DIRECTORIES: <br> ! ## - pafiledb/uploads/ <br> ! ## - pafiledb/cache/ <br> ! ## - pafiledb/cache/templates/subSilver/ <br> ! ## - pafiledb/cache/templates/subSilver/admin <br> ! ## - pafiledb/images/screenshots/</p> ! <p><i>To summarize:</i></p> ! <ul> ! <li> If installing from scratch, use the "install module" option ! in the AdminCP - Modules</li> ! <li> If upgrading, use the "upgrade module" option in the AdminCP ! - Modules</li> ! <li> If uninstalling, use the "delete module" feature in the ! AdminCP - Modules</li> ! </ul> ! <p><i>Note:</i> If upgrading, do NOT delete module prior to upgrading, ! or else you'll lose all module data!</p> ! <p><i>Note also:</i> Since this module is developed for next generation ! mxBB core, you have to patch your core 2.7.5 portal if downloaded prior ! to this module release. If using latest core this patch is already included.</p> ! <p>OPEN admin/admin_mx_module.php</p> ! <p>FIND</p> ! <table width="100%" border="1" cellpadding="2"> ! <tr> ! <td><font size="1">// <br> ! // Generate safe object identifiers for the target DB<br> ! // where this module pack is going to be imported...<br> ! // </font></td> ! </tr> ! </table> ! <p>BEFORE ADD</p> ! <table width="100%" border="1" cellpadding="2"> ! <tr> ! <td><font size="1">// Start - For compatibility with mxBB modules 2.x<br> ! $fcontents_temp = array();<br> ! for($i = 0; $i < count($fcontents); $i++) {<br> ! $module_data = explode($delimeter, trim($fcontents[$i]));<br> ! <br> ! if ( $module_data[0] != 'New_function' && $module_data[4] != 'endoflist' ! )<br> ! {<br> ! $fcontents_temp[] = implode($delimeter, $module_data);<br> ! }<br> ! }<br> ! $fcontents = $fcontents_temp;<br> ! // End - mxBB modules 2.x code patch</font></td> ! </tr> ! </table> ! <p> <br /> ! <a href="#top"> Back to Top</a> <br /> ! <br /> ! <a name="themes"> ! <br /> ! <span style="font-weight: bold">II. Additional Styles</span> <br /> ! This module is compatible with any theme/style. <br /> ! <br /> ! <a href="#top"> Back to Top</a> <br /> ! <br /> ! <a name="languages"> ! <br /> ! <span style="font-weight: bold">III. Additional Languages</span> <br /> ! First check to see if your language is already translated. <br /> ! <br /> ! Translated languages are downloaded <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> ! here</a>. <br /> ! <br /> ! If exists, download and install in the modules/mx_modulename/language ! folder. If not, duplicate (copy and paste) any included language file, ! rename to match your language, translate using any texteditor, save and ! upload. <br /> ! <br /> ! <a href="#top"> Back to Top</a> </p> ! <p> /mxBB Team</p> ! </td> ! </tr> ! </table> ! </body> ! </html> Index: pafiledb.pak =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb.pak,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pafiledb.pak 6 Mar 2005 14:32:55 -0000 1.7 --- pafiledb.pak 12 Apr 2005 19:32:56 -0000 1.8 *************** *** 18,22 **** parameter=+:57=+:156=+:num_of_rows=+:Number=+:3=+: option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:57=+:157=+:target_block=+:Function=+:0=+:get_list_formatted("pafiledb","{parameter_value}","{parameter_id}[]") option=+:0=+:0=+:0=+:endoflist=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- 18,22 ---- parameter=+:57=+:156=+:num_of_rows=+:Number=+:3=+: option=+:0=+:0=+:0=+:endoflist=+: ! parameter=+:57=+:157=+:target_block=+:Function=+:0=+:get_list_formatted("block_list","{parameter_value}","{parameter_id}[]", "dload_lists.php") option=+:0=+:0=+:0=+:endoflist=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 Index: dload_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_lists.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** dload_lists.php 6 Mar 2005 01:13:11 -0000 1.7 --- dload_lists.php 12 Apr 2005 19:32:56 -0000 1.8 *************** *** 51,54 **** --- 51,55 ---- return ( round( $rating, 2 ) ); } + // MX if ( !function_exists( 'read_block_config' ) ) *************** *** 92,99 **** } include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions_pafiledb.' . $phpEx ); - // include_once($album_root_path . 'album_functions.' . $phpEx); - // include_once($album_root_path . 'clown_album_functions.' . $phpEx); // Set ALBUM Version --- 93,101 ---- } + define( 'MXBB_MODULE', true ); + define( 'MXBB_27x', file_exists( $mx_root_path . 'more_smilies.php' ) ); + include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions_pafiledb.' . $phpEx ); // Set ALBUM Version *************** *** 118,122 **** // Get pafiledb target block $pafiledb_block_id = $block_config[$block_id][target_block]['parameter_value']; ! $pafiledb_page_id = get_page_id( $pafiledb_block_id ); /* --- 120,124 ---- // Get pafiledb target block $pafiledb_block_id = $block_config[$block_id][target_block]['parameter_value']; ! $pafiledb_page_id = $pafiledb_block_id > 0 ? get_page_id( $pafiledb_block_id ) : get_page_id( 'dload.php', true ); /* |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:33:27
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5538/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_stats.php Log Message: renamed lang files (lang_main and lang_admin) updated install/upgrade files for 2.0.1 Index: pa_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_stats.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pa_stats.php 9 Jan 2005 21:44:14 -0000 1.9 --- pa_stats.php 12 Apr 2005 19:32:57 -0000 1.10 *************** *** 1,368 **** ! <?php ! /** ! * pafiledb mx module ! * ------------------- ! * copyright : (C) 2002 MX-System ! * begin : oct 23, 2003 ! * email : jon...@ho... ! * based on code by Mohd Basri, and pafilDB ! * ! * $Id$ ! */ ! /* ! paFileDB 3.0 ! ©2001/2002 PHP Arena ! Written by Todd ! to...@ph... ! http://www.phparena.net ! Keep all copyright links on the script visible ! Please read the license included with this script for more information. ! */ ! ! class pafiledb_stats extends pafiledb_public ! { ! function main( $action ) ! { ! global $pafiledb_template, $lang, $board_config, $phpEx, $pafiledb_config, $db, $db, $images; ! global $_REQUEST, $phpbb_root_path, $userdata; ! // MX ! global $mx_root_path, $module_root_path, $is_block, $phpEx; ! ! if ( !$this->auth_global['auth_stats'] ) ! { ! if ( !$userdata['session_logged_in'] ) ! { ! /* - orig ! redirect(append_sid("login.$phpEx?redirect=dload.$phpEx?action=stats", true)); ! */ ! // MX ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=stats"), true)); ! } ! ! $message = sprintf( $lang['Sorry_auth_stats'], $this->auth_global['auth_stats_type'] ); ! message_die( GENERAL_MESSAGE, $message ); ! } ! ! $num['cats'] = $this->total_cat; ! ! $sql = "SELECT file_id ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $num['files'] = $db->sql_numrows( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $newest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $oldest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! $popular = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $lpopular = $db->sql_fetchrow( $result ); ! $total_votes = $total_rating = 0; ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $total_rating += $row['rating']; ! $total_votes++; ! } ! $db->sql_freeresult( $result ); ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $mostdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $leastdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $totaldls += $row['file_dls']; ! } ! $db->sql_freeresult( $result ); ! ! $avg = @round( $total_rating / $total_votes ); ! ! $avgdls = @round( $totaldls / $num['files'] ); ! ! /* - orig ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_pafiledb.' . $phpEx); ! */ ! // MX ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_pafiledb.' . $phpEx ); ! ! /* - orig ! $lang['Stats_text'] = str_replace("{total_files}", $num['files'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_categories}", $num['cats'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_downloads}", $totaldls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_newest_file}", append_sid("dload.php?action=file&id=" . $newest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{newest_file}", $newest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_oldest_file}", append_sid("dload.php?action=file&id=" . $oldest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{oldest_file}", $oldest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{average}", $avg, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_popular}", append_sid("dload.php?action=file&id=" . $popular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{popular}", $popular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most}", round($popular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_lpopular}", append_sid("dload.php?action=file&id=" . $lpopular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{lpopular}", $lpopular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least}", round($lpopular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{avg_dls}", $avgdls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_most_dl}", append_sid("dload.php?action=file&id=" . $mostdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_dl}", $mostdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_no}", $mostdl['file_dls'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_least_dl}", append_sid("dload.php?action=file&id=" . $leastdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_dl}", $leastdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_no}", $leastdl['file_dls'], $lang['Stats_text']); ! */ ! // MX ! $lang['Stats_text'] = str_replace( "{total_files}", $num['files'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_categories}", $num['cats'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_downloads}", $totaldls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_newest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $newest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{newest_file}", $newest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_oldest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $oldest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{oldest_file}", $oldest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{average}", $avg, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_popular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $popular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{popular}", $popular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most}", round( $popular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_lpopular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $lpopular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{lpopular}", $lpopular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least}", round( $lpopular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{avg_dls}", $avgdls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_most_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $mostdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_dl}", $mostdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_no}", $mostdl['file_dls'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_least_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $leastdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_dl}", $leastdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_no}", $leastdl['file_dls'], $lang['Stats_text'] ); ! ! $agent_lang = array( 'OPERA' => 'Opera', 'IE' => 'Internet Explorer', 'MOZILLA' => 'Mozilla', 'NETSCAPE' => 'NetScape', 'OTHER' => 'Other' ); ! $agent_image = array( 'OPERA' => 'opera.gif', 'IE' => 'explorer.gif', 'MOZILLA' => 'mozilla.gif', 'NETSCAPE' => 'netscape.gif', 'OTHER' => 'irix.gif' ); ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! ! $os_lang = array( 'Win' => 'Windows', 'Mac' => 'Macintosh', 'Linux' => 'Linux', 'Unix' => 'Unix', 'Other' => 'Other' ); ! $os_image = array( 'Win' => 'windows.gif', 'Mac' => 'mac.gif', 'Linux' => 'linux.gif', 'Unix' => 'linux.gif', 'Other' => 'os2.gif' ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT downloader_os, downloader_browser ! FROM " . PA_DOWNLOAD_INFO_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_downloads = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_downloads ); $i++ ) ! { ! $os_point[$row_downloads[$i]['downloader_os']]++; ! $agent_point[$row_downloads[$i]['downloader_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT voter_os, voter_browser ! FROM " . PA_VOTES_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_ratings = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_ratings ); $i++ ) ! { ! $os_point[$row_ratings[$i]['voter_os']]++; ! $agent_point[$row_ratings[$i]['voter_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $pafiledb_template->assign_vars( array( ! /* - orig ! 'S_ACTION_CHART' => append_sid('dload.'.$phpEx.'?action=stats'), ! */ ! // MX ! 'S_ACTION_CHART' => append_sid( pa_this_mxurl( 'action=stats' ) ), ! ! 'L_STATISTICS' => $lang['Statistics'], ! /* - orig ! 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), ! */ ! // MX ! 'L_INDEX' => "<<", ! 'L_GENERAL_INFO' => $lang['General_Info'], ! 'L_DOWNLOADS_STATS' => $lang['Downloads_stats'], ! 'L_RATING_STATS' => $lang['Rating_stats'], ! 'L_OS' => $lang['Os'], ! 'L_BROWSERS' => $lang['Browsers'], ! ! /* - orig ! 'U_INDEX' => append_sid('index.'.$phpEx), ! 'U_DOWNLOAD' => append_sid('dload.'.$phpEx), ! */ ! // MX ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! ! 'U_VOTE_LCAP' => $phpbb_root_path . "templates/subSilver/images/vote_lcap.gif", ! 'U_VOTE_RCAP' => $phpbb_root_path . "templates/subSilver/images/vote_rcap.gif", ! ! 'DOWNLOAD' => $pafiledb_config['settings_dbname'], ! 'STATS_TEXT' => $lang['Stats_text'] ) ! ); ! $this->display( $lang['Download'], 'pa_stats_body.tpl' ); ! } ! } ! ?> \ No newline at end of file --- 1,368 ---- ! <?php ! /** ! * pafiledb mx module ! * ------------------- ! * copyright : (C) 2002 MX-System ! * begin : oct 23, 2003 ! * email : jon...@ho... ! * based on code by Mohd Basri, and pafilDB ! * ! * $Id$ ! */ ! /* ! paFileDB 3.0 ! ©2001/2002 PHP Arena ! Written by Todd ! to...@ph... ! http://www.phparena.net ! Keep all copyright links on the script visible ! Please read the license included with this script for more information. ! */ ! ! class pafiledb_stats extends pafiledb_public ! { ! function main( $action ) ! { ! global $pafiledb_template, $lang, $board_config, $phpEx, $pafiledb_config, $db, $db, $images; ! global $_REQUEST, $phpbb_root_path, $userdata; ! // MX ! global $mx_root_path, $module_root_path, $is_block, $phpEx; ! ! if ( !$this->auth_global['auth_stats'] ) ! { ! if ( !$userdata['session_logged_in'] ) ! { ! /* - orig ! redirect(append_sid("login.$phpEx?redirect=dload.$phpEx?action=stats", true)); ! */ ! // MX ! // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".pa_this_mxurl("action=stats"), true)); ! } ! ! $message = sprintf( $lang['Sorry_auth_stats'], $this->auth_global['auth_stats_type'] ); ! message_die( GENERAL_MESSAGE, $message ); ! } ! ! $num['cats'] = $this->total_cat; ! ! $sql = "SELECT file_id ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $num['files'] = $db->sql_numrows( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $newest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = 'SELECT file_id, file_name ! FROM ' . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_time ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $oldest = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! $popular = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT r.votes_file, AVG(r.rate_point) AS rating, f.file_id, f.file_name ! FROM " . PA_VOTES_TABLE . " AS r, " . PA_FILES_TABLE . " AS f ! WHERE r.votes_file = f.file_id ! AND f.file_approved = '1' ! GROUP BY f.file_id ! ORDER BY rating ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $lpopular = $db->sql_fetchrow( $result ); ! $total_votes = $total_rating = 0; ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $total_rating += $row['rating']; ! $total_votes++; ! } ! $db->sql_freeresult( $result ); ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls DESC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $mostdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_id, file_name, file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1' ! ORDER BY file_dls ASC"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! $leastdl = $db->sql_fetchrow( $result ); ! $db->sql_freeresult( $result ); ! ! $sql = "SELECT file_dls ! FROM " . PA_FILES_TABLE . " ! WHERE file_approved = '1'"; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Couldnt Query stat info', '', __LINE__, __FILE__, $sql ); ! } ! ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $totaldls += $row['file_dls']; ! } ! $db->sql_freeresult( $result ); ! ! $avg = @round( $total_rating / $total_votes ); ! ! $avgdls = @round( $totaldls / $num['files'] ); ! ! /* - orig ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! */ ! // MX ! require( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! ! /* - orig ! $lang['Stats_text'] = str_replace("{total_files}", $num['files'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_categories}", $num['cats'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{total_downloads}", $totaldls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_newest_file}", append_sid("dload.php?action=file&id=" . $newest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{newest_file}", $newest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_oldest_file}", append_sid("dload.php?action=file&id=" . $oldest['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{oldest_file}", $oldest['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{average}", $avg, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_popular}", append_sid("dload.php?action=file&id=" . $popular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{popular}", $popular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most}", round($popular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_lpopular}", append_sid("dload.php?action=file&id=" . $lpopular['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{lpopular}", $lpopular['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least}", round($lpopular['rating'], 2), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{avg_dls}", $avgdls, $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_most_dl}", append_sid("dload.php?action=file&id=" . $mostdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_dl}", $mostdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{most_no}", $mostdl['file_dls'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{u_least_dl}", append_sid("dload.php?action=file&id=" . $leastdl['file_id']), $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_dl}", $leastdl['file_name'], $lang['Stats_text']); ! $lang['Stats_text'] = str_replace("{least_no}", $leastdl['file_dls'], $lang['Stats_text']); ! */ ! // MX ! $lang['Stats_text'] = str_replace( "{total_files}", $num['files'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_categories}", $num['cats'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{total_downloads}", $totaldls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_newest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $newest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{newest_file}", $newest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_oldest_file}", append_sid( pa_this_mxurl( "action=file&file_id=" . $oldest['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{oldest_file}", $oldest['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{average}", $avg, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_popular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $popular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{popular}", $popular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most}", round( $popular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_lpopular}", append_sid( pa_this_mxurl( "action=file&file_id=" . $lpopular['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{lpopular}", $lpopular['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least}", round( $lpopular['rating'], 2 ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{avg_dls}", $avgdls, $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_most_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $mostdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_dl}", $mostdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{most_no}", $mostdl['file_dls'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{u_least_dl}", append_sid( pa_this_mxurl( "action=file&file_id=" . $leastdl['file_id'] ) ), $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_dl}", $leastdl['file_name'], $lang['Stats_text'] ); ! $lang['Stats_text'] = str_replace( "{least_no}", $leastdl['file_dls'], $lang['Stats_text'] ); ! ! $agent_lang = array( 'OPERA' => 'Opera', 'IE' => 'Internet Explorer', 'MOZILLA' => 'Mozilla', 'NETSCAPE' => 'NetScape', 'OTHER' => 'Other' ); ! $agent_image = array( 'OPERA' => 'opera.gif', 'IE' => 'explorer.gif', 'MOZILLA' => 'mozilla.gif', 'NETSCAPE' => 'netscape.gif', 'OTHER' => 'irix.gif' ); ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! ! $os_lang = array( 'Win' => 'Windows', 'Mac' => 'Macintosh', 'Linux' => 'Linux', 'Unix' => 'Unix', 'Other' => 'Other' ); ! $os_image = array( 'Win' => 'windows.gif', 'Mac' => 'mac.gif', 'Linux' => 'linux.gif', 'Unix' => 'linux.gif', 'Other' => 'os2.gif' ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT downloader_os, downloader_browser ! FROM " . PA_DOWNLOAD_INFO_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_downloads = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_downloads ); $i++ ) ! { ! $os_point[$row_downloads[$i]['downloader_os']]++; ! $agent_point[$row_downloads[$i]['downloader_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "downloads_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point * 2 ) ! ); ! } ! ! $agent_point = array( 'OPERA' => 0, 'IE' => 0, 'MOZILLA' => 0, 'NETSCAPE' => 0, 'OTHER' => 0 ); ! $os_point = array( 'Win' => 0, 'Mac' => 0, 'Linux' => 0, 'Unix' => 0, 'Other' => 0 ); ! ! $sql = "SELECT voter_os, voter_browser ! FROM " . PA_VOTES_TABLE; ! ! if ( !( $result = $db->sql_query( $sql ) ) ) ! { ! message_die( GENERAL_ERROR, 'Could not obtain downloads info', '', __LINE__, __FILE__, $sql ); ! } ! ! $row_ratings = $db->sql_fetchrowset( $result ); ! $db->sql_freeresult( $result ); ! ! for( $i = 0; $i < count( $row_ratings ); $i++ ) ! { ! $os_point[$row_ratings[$i]['voter_os']]++; ! $agent_point[$row_ratings[$i]['voter_browser']]++; ! } ! ! $os_graphic = 0; ! $os_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $os_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $os_graphic_img = $images['voting_graphic'][$os_graphic]; ! $os_graphic = ( $os_graphic < $os_graphic_max - 1 ) ? $os_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_os", array( 'OS_IMG' => $module_root_path . "pafiledb/images/stats/" . $os_image[$index], ! 'OS_NAME' => $os_lang[$index], ! 'OS_OPTION_RESULT' => $point, ! 'OS_OPTION_IMG' => $phpbb_root_path . $os_graphic_img, ! 'OS_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $b_graphic = 0; ! $b_graphic_max = count( $images['voting_graphic'] ); ! ! foreach( $agent_point as $index => $point ) ! { ! $temp_point = ( $point > 100 ) ? 100 : $point; ! $b_graphic_img = $images['voting_graphic'][$b_graphic]; ! $b_graphic = ( $b_graphic < $b_graphic_max - 1 ) ? $b_graphic + 1 : 0; ! // MX ! $pafiledb_template->assign_block_vars( "rating_b", array( 'B_IMG' => $module_root_path . "pafiledb/images/stats/" . $agent_image[$index], ! 'B_NAME' => $agent_lang[$index], ! 'B_OPTION_RESULT' => $point, ! 'B_OPTION_IMG' => $phpbb_root_path . $b_graphic_img, ! 'B_OPTION_IMG_WIDTH' => $temp_point ) ! ); ! } ! ! $pafiledb_template->assign_vars( array( ! /* - orig ! 'S_ACTION_CHART' => append_sid('dload.'.$phpEx.'?action=stats'), ! */ ! // MX ! 'S_ACTION_CHART' => append_sid( pa_this_mxurl( 'action=stats' ) ), ! ! 'L_STATISTICS' => $lang['Statistics'], ! /* - orig ! 'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']), ! */ ! // MX ! 'L_INDEX' => "<<", ! 'L_GENERAL_INFO' => $lang['General_Info'], ! 'L_DOWNLOADS_STATS' => $lang['Downloads_stats'], ! 'L_RATING_STATS' => $lang['Rating_stats'], ! 'L_OS' => $lang['Os'], ! 'L_BROWSERS' => $lang['Browsers'], ! ! /* - orig ! 'U_INDEX' => append_sid('index.'.$phpEx), ! 'U_DOWNLOAD' => append_sid('dload.'.$phpEx), ! */ ! // MX ! 'U_INDEX' => append_sid( $mx_root_path . 'index.' . $phpEx ), ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl() ), ! ! 'U_VOTE_LCAP' => $phpbb_root_path . "templates/subSilver/images/vote_lcap.gif", ! 'U_VOTE_RCAP' => $phpbb_root_path . "templates/subSilver/images/vote_rcap.gif", ! ! 'DOWNLOAD' => $pafiledb_config['settings_dbname'], ! 'STATS_TEXT' => $lang['Stats_text'] ) ! ); ! $this->display( $lang['Download'], 'pa_stats_body.tpl' ); ! } ! } ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:33:24
|
Update of /cvsroot/mxbb/mx_pafiledb/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5538/modules/mx_pafiledb/language/lang_english Added Files: lang_admin.php lang_main.php Removed Files: lang_admin_pafiledb.php lang_pafiledb.php Log Message: renamed lang files (lang_main and lang_admin) updated install/upgrade files for 2.0.1 --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * pafiledb mx module * ------------------- * copyright : (C) 2002 MX-System * begin : oct 23, 2003 * email : jon...@ho... * based on code by Mohd Basri, and pafilDB * * $Id: lang_main.php,v 1.1 2005/04/12 19:32:58 jonohlsson Exp $ * * ***************************************************************************/ // Toplist $lang['Toplist'] = 'Toplist'; $lang['Select_list'] = 'Select the type of list to show'; $lang['Latest_downloads'] = 'The Newest Files'; $lang['Most_downloads'] = 'Most Popular Files'; $lang['Rated_downloads'] = 'Top Rated Files'; $lang['Total_new_files'] = 'Total New Downloads'; $lang['Show'] = 'Show'; $lang['One_week'] = 'One Week'; $lang['Two_week'] = 'Two Week'; $lang['30_days'] = '30 Days'; $lang['New_Files'] = 'Total new files for last %d days'; $lang['Last_week'] ='Last Week'; $lang['Last_30_days'] = 'Last 30 Days'; $lang['Show_top'] = 'Show Top'; $lang['Or_top'] = 'or Top'; $lang['Popular_num'] = 'Top %d out of %d files in the database'; $lang['Popular_per'] = 'Top %d %% of all %d files in the database'; $lang['General_Info'] = 'General Information'; $lang['Downloads_stats'] = 'User\'s Downloads Stats'; $lang['Rating_stats'] = 'User\'s Rating Stats'; $lang['Os'] = 'Operating System'; $lang['Browsers'] = 'Browsers'; // Toplists mx blocks $lang['Recent_Public_Files'] = 'Latest dls'; $lang['Random_Public_Files'] = 'Random dls'; $lang['Toprated_Public_Files'] = 'Toprated dls'; $lang['Most_Public_Files'] = 'Most downloaded'; $lang['File_Title'] = 'Title'; $lang['File_Desc'] = 'Description'; $lang['Rating'] = 'Rating'; $lang['Dls'] = 'Downloaded'; // Main $lang['Files'] = 'Files'; $lang['Viewall'] = 'View All Files'; $lang['Vainfo'] = 'View all of the files in the database'; $lang['Jump'] = 'Select a category'; $lang['Sub_category'] = 'Sub Category'; $lang['Last_file'] = 'Last File'; // Sort $lang['Sort'] = 'Sort'; $lang['Name'] = 'Name'; $lang['Update_time'] = 'Last Updated'; // Category $lang['No_files'] = 'No files found'; $lang['No_files_cat'] = 'There are no files in this category.'; $lang['Cat_not_exist'] = 'The category you selected does not exist.'; $lang['File_not_exist'] = 'The file you selected does not exist.'; $lang['License_not_exist'] = 'The license you selected does not exist.'; // File $lang['File'] = 'File'; $lang['Desc'] = 'Description'; $lang['Creator'] = 'Creator'; $lang['Version'] = 'Version'; $lang['Scrsht'] = 'Screenshot'; $lang['Docs'] = 'Documentation/Manual'; $lang['Lastdl'] = 'Last Download'; $lang['Never'] = 'Never'; $lang['Votes'] = ' Votes'; $lang['Date'] = 'Date'; $lang['Update_time'] = 'Last Updated'; $lang['DlRating'] = 'Rating'; $lang['Dls'] = ' Downloads'; $lang['Downloadfile'] = 'Download File'; $lang['File_size'] = 'File Size'; $lang['Not_available'] = 'Not Available!'; $lang['Bytes'] = 'Bytes'; $lang['KB'] = 'Kilo Byte'; $lang['MB'] = 'Mega Byte'; $lang['Mirrors'] = 'Mirrors'; $lang['Mirrors_explain'] = 'Here you can add or edit mirrors for this file, make sure to verify all the information because the file will be submitted to the database'; $lang['Click_here_mirrors'] = 'Click Here to Add mirrors'; $lang['Mirror_location'] = 'Mirror Location'; $lang['Add_new_mirror'] = 'Add new mirror'; //User Upload $lang['User_upload'] = 'User Upload'; // License $lang['License'] = 'License Agreement'; $lang['Licensewarn'] = 'You must agree to this license agreement to download'; $lang['Iagree'] = 'I Agree'; $lang['Dontagree'] = 'I Dont Agree'; // Search $lang['Search'] = 'Search'; $lang['Search_for'] = 'Search for'; $lang['Results'] = 'Results for'; $lang['No_matches'] = 'Sorry, no matches were found for'; $lang['Matches'] = 'matches were found for'; $lang['All'] = 'All Categories'; $lang['Choose_cat'] = 'Choose Category:'; $lang['Include_comments'] = 'Include Comments'; $lang['Submiter'] = 'Submited by'; // Statistics $lang['Statistics'] = 'Statistics'; $lang['Stats_text'] = "There are {total_files} files in {total_categories} categories<br>"; $lang['Stats_text'] .= "There have been {total_downloads} total downloads<br><br>"; $lang['Stats_text'] .= "The newest file is <a href={u_newest_file}>{newest_file}</a><br>"; $lang['Stats_text'] .= "The oldest file is <a href={u_oldest_file}>{oldest_file}</a><br><br>"; $lang['Stats_text'] .= "The average file rating is {average}/10<br>"; $lang['Stats_text'] .= "The most popular file based on ratings is <a href={u_popular}>{popular}</a> with a rating of {most}/10<br>"; $lang['Stats_text'] .= "The least popular file based on ratings is <a href={u_lpopular}>{lpopular}</a> with a rating of {least}/10<br><br>"; $lang['Stats_text'] .= "The average amount of downloads each file has is {avg_dls}<br>"; $lang['Stats_text'] .= "The most popular file based on downloads is <a href={u_most_dl}>{most_dl}</a> with {most_no} downloads<br>"; $lang['Stats_text'] .= "The least popular file based on downloads is <a href={u_least_dl}>{least_dl}</a> with {least_no} downloads<br>"; $lang['Select_chart_type'] = 'Select Chart Type'; $lang['Bars'] = 'Bars'; $lang['Lines'] = 'Lines'; $lang['Area'] = 'Area'; $lang['Linepoints'] = 'Line Points'; $lang['Points'] = 'Points'; $lang['Chart_header'] = 'Files Stats - Files added to the database each month'; $lang['Chart_legend'] = 'Files'; $lang['X_label'] = 'Months'; $lang['Y_label'] = 'Number of Files'; // Rate $lang['Rate'] = 'Rate File'; $lang['Rerror'] = 'Sorry, you have already rated this file.'; $lang['Rateinfo'] = 'You are about to rate the file <i>{filename}</i>.<br>Please select a rating below. 1 is the worst, 10 is the best.'; $lang['Rconf'] = 'You have given <i>{filename}</i> a rating of {rate}.<br>This makes the files new rating {newrating}.'; $lang['R1'] = '1'; $lang['R2'] = '2'; $lang['R3'] = '3'; $lang['R4'] = '4'; $lang['R5'] = '5'; $lang['R6'] = '6'; $lang['R7'] = '7'; $lang['R8'] = '8'; $lang['R9'] = '9'; $lang['R10'] = '10'; $lang['Not_rated'] = 'Not Rated'; // Email $lang['Emailfile'] = 'E-mail File to a Friend'; $lang['Emailinfo'] = 'If you would like a friend to know about this file, you can fill out and submit this form and an e-mail containing the files information will be e-mailed to your friend!<br>Items marked with a * are required unless stated otherwise'; $lang['Yname'] = 'Your Name'; $lang['Yemail'] = 'Your E-mail Address'; $lang['Fname'] = 'Friends Name'; $lang['Femail'] = 'Friends E-mail Address'; $lang['Esub'] = 'E-mail Subject'; $lang['Etext'] = 'E-mail Text'; $lang['Defaultmail'] = 'I thought you might be interested in downloading the file located at'; $lang['Semail'] = 'Send E-mail'; $lang['Econf'] = 'Your e-mail has been sent successfully.'; // Comments $lang['Comments'] = 'Comments'; $lang['Comments_title'] = 'Comments Title'; $lang['Comment_subject'] = 'Comment subject'; $lang['Comment'] = 'Comment'; $lang['Comment_explain'] = 'Use the text box above to give your opinion on this file!'; $lang['Comment_add'] = 'Add Comment'; $lang['Comment_delete'] = 'Delete'; $lang['Comment_posted'] = 'Your comment has been entered successfully'; $lang['Comment_deleted'] = 'The comment you selected has been deleted successfully'; $lang['Comment_desc'] = 'Title'; $lang['No_comments'] = 'No Comments have been posted yet.'; $lang['Links_are_ON'] = 'Links is <u>ON</u>'; $lang['Links_are_OFF'] = 'Links is <u>OFF</u>'; $lang['Images_are_ON'] = 'Images is <u>ON</u>'; $lang['Images_are_OFF'] = 'Images is <u>OFF</u>'; $lang['Check_message_length'] = 'Check Message Length'; $lang['Msg_length_1'] = 'Your message is '; $lang['Msg_length_2'] = ' characters long.'; $lang['Msg_length_3'] = 'You have '; $lang['Msg_length_4'] = ' characters available.';; $lang['Msg_length_5'] = 'There are '; $lang['Msg_length_6'] = ' characters left to use.'; // Download $lang['Directly_linked'] = 'You can not download this file directly from another site!'; //Permission $lang['Sorry_auth_view'] = 'Sorry, but only %s can view files and sub category in this category.'; $lang['Sorry_auth_file_view'] = 'Sorry, but only %s can view this file in this category.'; $lang['Sorry_auth_upload'] = 'Sorry, but only %s can upload file in this category.'; $lang['Sorry_auth_download'] = 'Sorry, but only %s can download files in this category.'; $lang['Sorry_auth_rate'] = 'Sorry, but only %s can rate files in this category.'; $lang['Sorry_auth_view_comments'] = 'Sorry, but only %s can view comments in this category.'; $lang['Sorry_auth_post_comments'] = 'Sorry, but only %s can post comments in this category.'; $lang['Sorry_auth_edit_comments'] = 'Sorry, but only %s can edit comments in this category.'; $lang['Sorry_auth_delete_comments'] = 'Sorry, but only %s can delete comments in this category.'; $lang['Sorry_auth_edit'] = 'Sorry, but you cannot edit files in this category.'; $lang['Sorry_auth_delete'] = 'Sorry, but you cannot delete files in this category.'; $lang['Sorry_auth_mcp'] = 'Sorry, but you cannot moderate this category.'; $lang['Sorry_auth_approve'] = 'Sorry, but you cannot approve files in this category.'; // General $lang['Category'] = 'Category'; $lang['Error_no_download'] = 'The selected File does not exist anymore'; $lang['Options'] = 'Options'; $lang['Click_return'] = 'Click %sHere%s to return to the previous page'; $lang['Click_here'] = 'Click Here'; $lang['never'] = 'None'; $lang['pafiledb_disable'] = 'Download Database is disabled'; $lang['jump'] = 'Select a category'; $lang['viewall_disabled'] = 'This feature is disabled by the admin.'; $lang['New_file'] = 'New file'; $lang['No_new_file'] = 'No new file'; $lang['None'] = 'None'; $lang['No_file'] = 'No Files'; $lang['View_latest_file'] = 'View Latest File'; // New $lang['Deletefile'] = 'Delete file'; $lang['Editfile'] = 'Edit file'; $lang['pa_MCP'] = '[ModeratorCP]'; $lang['Click_return_not_validated'] = 'Click %sHere%s to return to the previous page'; $lang['Fileadded_not_validated'] = 'The new file has been successfully added, but a moderator (admin) need to validate the file before approval.'; $lang['Quickdl_back'] = '« Back'; $lang['Quickdl'] = 'Default Pa Cat'; $lang['Quickdl_explain'] = 'This is the default pafiledb category to display, if no mapping is activated'; $lang['Pa_updated_return_settings'] = "Pa quickdl configuration updated successfully.<br /><br />Click %shere%s to return to main page."; // %s's for URI params - DO NOT REMOVE $lang['Pa_update_error'] = "Couldn't update Pa quickdl configuration.<br /><br />This mod is designed for MySQL so please contact the author if you have troubles. If you can offer a translation of the SQL into other database formats, please send them to:<br />"; $lang['Pa_settings'] = "Pa mapping settings"; $lang['Pa_settings_short_explain'] = "Settings for mapping pa cats and dynamic blocks."; $lang['Pa_settings_explain'] = "Here you can edit the configuration for the pa module. This panel lets you associate pa cats and dynamic blocks for the quickdl block."; // PM Notification $lang['PA_title'] = 'Download database'; $lang['PA_goto_file'] = 'View file'; $lang['PA_notify_subject_new'] = 'New file uploaded!'; $lang['PA_notify_subject_edited'] = 'Edited File!'; $lang['PA_notify_subject_approved'] = 'Approved File!'; $lang['PA_notify_subject_unapproved'] = 'Unapproved File!'; $lang['PA_notify_body'] = 'A file has been uploaded or modified:'; $lang['kb_no_ratings'] = 'Disabled in this category'; // Toplists $lang['display_most_posts'] = "Most visited/view/dl<br />"; $lang['display_random_posts'] = "Random<br />"; $lang['display_top_ranked'] = "Toprated<br />"; $lang['display_latest_posts'] = "Latest<br />"; $lang['num_of_cols'] = "Number of cols<br />"; $lang['num_of_rows'] = "Number of rows<br />"; $lang['target_block'] = "Associated (target) pafileDB Block"; ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * pafiledb mx module * ------------------- * copyright : (C) 2002 MX-System * begin : oct 23, 2003 * email : jon...@ho... * based on code by Mohd Basri, and pafilDB * * $Id: lang_admin.php,v 1.1 2005/04/12 19:32:58 jonohlsson Exp $ * * ***************************************************************************/ // Categories $lang['Cat_manage_title'] = 'Category Management'; $lang['File_manage_title'] = 'File Management'; $lang['All_files'] = 'All Files'; $lang['Approved_files'] = 'Unapproved Files'; $lang['Broken_files'] = 'Broken Files'; $lang['File_cat'] = 'File in Category'; $lang['Maintenance'] = 'File Maintenance'; $lang['Approve'] = 'Approve'; $lang['Unapprove'] = 'Unapprove'; $lang['File_mode'] = 'View'; $lang['Approve_selected'] = 'Approve Selected'; $lang['Unapprove_selected'] = 'Unapprove Selected'; $lang['Delete_selected'] = 'Delete Selected'; $lang['No_file'] = 'There is no files'; $lang['Acat'] = 'Category: Add'; $lang['Ecat'] = 'Category: Edit'; $lang['Dcat'] = 'Category: Delete'; $lang['Rcat'] = 'Category: Reorder'; $lang['Cat_Permissions'] = 'Category Permissions'; $lang['User_Permissions'] = 'User Permissions'; $lang['Group_Permissions'] = 'Group Permissions'; $lang['User_Global_Permissions'] = 'User Global Permissions'; $lang['Group_Global_Permissions'] = 'Group Global Permissions'; $lang['Acattitle'] = 'Add Category'; $lang['Ecattitle'] = 'Edit Category'; $lang['Dcattitle'] = 'Delete Category'; $lang['Rcattitle'] = 'Reorder Categories'; $lang['Catexplain'] = 'You can use the Category Management section to add, edit, delete and reorder categories. In order to add files to your database, you must have at least one category created. You can select a link below to manage your categories.'; $lang['Rcatexplain'] = 'You can reorder categories to change the position they are displayed in on the main page. To reorder the categories, change the numbers to the order you want them shown in. 1 will be showed first, 2 will be shown second, etc. This does not affect sub-categories.'; $lang['Catadded'] = 'The new category has been successfully added'; $lang['Catname'] = 'Category Name'; $lang['Catnameinfo'] = 'This will become the name of the category.'; $lang['Catdesc'] = 'Category Description'; $lang['Catdescinfo'] = 'This is a description of the files in the category'; $lang['Catparent'] = 'Parent Category'; $lang['Catparentinfo'] = 'If you want this category to be a sub-category, select the category you want it to be a sub-category of.'; $lang['Allow_file'] = 'Allow Adding file'; $lang['Allow_file_info'] = 'If you not allow adding file to this category it will be higher level category and you can add category as a sub for this category, like in the forum.'; $lang['None'] = 'None'; $lang['Catedited'] = 'The category you selected has been successfully edited'; $lang['Delfiles'] = 'What do you want to do with the files in this category?'; $lang['Do_cat'] = 'What do you want to do with the sub category in this category?'; $lang['Move_to'] = 'Move to'; $lang['Catsdeleted'] = 'The categories you selected have been successfully deleted'; $lang['Cdelerror'] = 'You didn\'t select any categories to delete'; $lang['Rcatdone'] = 'The categories have been successfully re-ordered'; //Catgories Permission $lang['View'] = 'View'; $lang['Read'] = 'Read'; $lang['View_file'] = 'View File'; $lang['Delete_file'] = 'Delete File'; $lang['Edit_file'] = 'Edit File'; $lang['Upload'] = 'Upload File'; $lang['Approval'] = 'Approval Level'; $lang['Download_file'] = 'Download File'; $lang['Rate'] = 'Rate'; $lang['View_comment'] = 'View Comments'; $lang['Post_comment'] = 'Post Comments'; $lang['Edit_comment'] = 'Edit Comments (n/a)'; $lang['Delete_comment'] = 'Delete Comments'; $lang['Category_auth_updated'] = 'Category permissions updated'; $lang['Click_return_catauth'] = 'Click %sHere%s to return to Category Permissions'; $lang['Auth_Control_Category'] = 'Category Permissions Control'; $lang['Category_auth_explain'] = 'Here you can alter the authorisation levels of each category. Remember that changing the permission level of category will affect which users can carry out the various operations within them.'; $lang['Select_a_Category'] = 'Select a Category'; $lang['Look_up_Category'] = 'Look Up Category'; $lang['Category'] = 'Category'; $lang['Category_ALL'] = 'ALL'; $lang['Category_REG'] = 'REG'; $lang['Category_PRIVATE'] = 'PRIVATE'; $lang['Category_MOD'] = 'MOD'; $lang['Category_ADMIN'] = 'ADMIN'; // Configuration $lang['Settings'] = 'Configuration'; $lang['Settingstitle'] = 'Download Configuration'; $lang['Settingsexplain'] = 'The form below will allow you to customize all the general download options.'; $lang['Dbname'] = 'Database Name'; $lang['Dbnameinfo'] = 'This is the name of the database, such as \'Download Index\''; $lang['Sitename'] = 'Site Name'; $lang['Sitenameinfo'] = 'This is the name of your site for the navigation menu, such as \'Home\''; $lang['Dburl'] = 'Database URL'; $lang['Dburlinfo'] = 'This is the URL to the directory where this is installed'; $lang['Hpurl'] = 'Homepage URL'; $lang['Hpurlinfo'] = 'This is the URL to your portal or home page'; $lang['Topnum'] = 'Top Number'; $lang['Topnuminfo'] = 'This is how many files will be displayed on the Top X Downloaded files list'; $lang['Nfdays'] = 'New File Days'; $lang['Nfdaysinfo'] = 'How many days a new file is to be listed with a \'New File\' icon. If this is set to 5, then all files added within the past 5 days will have the \'New File\' icon'; $lang['Showva'] = 'Show \'View All Files\''; $lang['Showvainfo'] = 'Choose whether or not you wish to have the \'View All Files\' category displayed with the other categories on the main page'; $lang['Php_template'] = 'PHP in template'; $lang['Php_template_info'] = 'This will allow you to use php directly in the template files'; $lang['Dbdl'] = 'Disable Downloads'; $lang['Dbdlinfo'] = 'This will make the download section unavailable to users. This is a good option to use when making modifications to your database. Only Admins will be able to view the database'; $lang['Isdisabled'] = 'The download section is currently unavailable, please try again later.'; $lang['Com_allowh'] = 'Allow HTML'; $lang['Com_allowb'] = 'Allow BBCode'; $lang['Com_allows'] = 'Allow Smilies'; $lang['Com_allowl'] = 'Allow Links'; $lang['Com_messagel'] = 'Default \'No Links\' Message'; $lang['Com_messagel_info'] = 'If links are not allowed this text will be displayed instead'; $lang['Com_allowi'] = 'Allow Images'; $lang['Com_messagei'] = 'Default \'No Images\' Message'; $lang['Com_messagei_info'] = 'If images are not allowed this text will be displayed instead'; $lang['Max_char'] = 'Maximum Number of charcters'; $lang['Max_char_info'] = 'If some one posted a comment in which charcters is more that this it will give them an error message (Limit the comment).'; $lang['Settings_changed'] = 'Your settings have been successfully updated'; $lang['File_per_page'] = 'Number of file per Page'; $lang['File_per_page_info'] = 'Here you can set the number of file per page, if you leave it empty the number of per page will be 20.'; $lang['Hotlink_prevent'] = 'Hotlink Prevention'; $lang['Hotlinl_prevent_info'] = 'Set this to yes if you don\'t want to allow hotlinks to the files'; $lang['Hotlink_allowed'] = 'Allowed domains for hotlink'; $lang['Hotlink_allowed_info'] = 'Allowed domains for hotlink (separated by a comma), for example, www.phpbb.com, www.forumimages.com'; $lang['Default_sort_method'] = 'Default Sort Method'; $lang['Default_sort_order'] = 'Default Sort Order'; $lang['Max_filesize'] = 'Maximum Filesize'; $lang['Max_filesize_explain'] = 'Maximum filesize for Files. A value of 0 means \'unlimited\'. This Setting is restricted by your Server Configuration. For example, if your php Configuration only allows a maximum of 2 MB uploads, this cannot be overwritten by the Mod.'; $lang['Upload_directory'] = 'Upload Directory'; $lang['Upload_directory_explain'] = 'Enter the relative path from your root installation (where phpBB or mxBB is located) to the files upload directory. If you stick to the file structure provided in the shipped package, enter \'pafiledb/uploads/\'.'; $lang['Screenshots_directory'] = 'Screenshots Directory'; $lang['Screenshots_directory_explain'] = 'Enter the relative path from your root installation (where phpBB or mxBB is located) to the Screenshots upload directory. If you stick to the file structure provided in the shipped package, enter \'pafiledb/images/screenshots/\'.'; $lang['Forbidden_extensions'] = 'Forbidden Extensions'; $lang['Forbidden_extensions_explain'] = 'Here you can add or delete the forbidden extensions. Seprate each extenstion with comma.'; $lang['Permission_settings'] = 'Permission settings'; $lang['Auth_search'] = 'Search Permission'; $lang['Auth_search_explain'] = 'Allow search for specific type of users'; $lang['Auth_stats'] = 'Stats Permission'; $lang['Auth_stats_explain'] = 'Allow stats for specific type of users'; $lang['Auth_toplist'] = 'Toplist Permission'; $lang['Auth_toplist_explain'] = 'Allow toplist for specific type of users'; $lang['Auth_viewall'] = 'Viewall Permission'; $lang['Auth_viewall_explain'] = 'Allow viewall for specific type of users'; $lang['Bytes'] = 'Bytes'; $lang['KB'] = 'KB'; $lang['MB'] = 'MB'; // Custom Field $lang['Fieldselecttitle'] = 'Select what to do'; $lang['Afield'] = 'Custom Field: Add'; $lang['Efield'] = 'Custom Field: Edit'; $lang['Dfield'] = 'Custom Field: Delete'; $lang['Mfieldtitle'] = 'Custom Fields'; $lang['Afieldtitle'] = 'Add Field'; $lang['Efieldtitle'] = 'Edit Field'; $lang['Dfieldtitle'] = 'Delete Field'; $lang['Fieldexplain'] = 'You can use the custom fields management section to add, edit, and delete custom fields. You can use custom fields to add more information about a file. For example, if you want an information field to put the file\'s size in, you can create the custom field and then you can add the file size on the Add/Edit file page.'; $lang['Fieldname'] = 'Field Name'; $lang['Fieldnameinfo'] = 'This is the name of the field, for example \'File Size\''; $lang['Fielddesc'] = 'Field Description'; $lang['Fielddescinfo'] = 'This is a description of the field, for example \'File Size in Megabytes\''; $lang['Fieldadded'] = 'The custom field has been successfully added'; $lang['Fieldedited'] = 'The custom field you selected has been successfully edited'; $lang['Dfielderror'] = 'You didn\'t select any fields to delete'; $lang['Fieldsdel'] = 'The custom fields you selected have been successfully deleted'; $lang['Field_data'] = 'Options'; $lang['Field_data_info'] = 'Enter the options that the user can choose from. Separate each option with a new-line (carriage return).'; $lang['Field_regex'] = 'Regular Expression'; $lang['Field_regex_info'] = 'You may require the input field to match a regular expression %s(PCRE)%s.'; $lang['Field_order'] = 'Display Order'; // File $lang['Afile'] = 'File: Add'; $lang['Efile'] = 'File: Edit'; $lang['Dfile'] = 'File: Delete'; $lang['Afiletitle'] = 'Add File'; $lang['Efiletitle'] = 'Edit File'; $lang['Dfiletitle'] = 'Delete File'; $lang['Fileexplain'] = 'You can use the file management section to add, edit, and delete files.'; $lang['Upload'] = 'Upload File'; $lang['Uploadinfo'] = 'Upload this file'; $lang['Uploaderror'] = 'This file already exists. Please rename the file and try again.'; $lang['Uploaddone'] = 'This file has been successfully uploaded. The URL to the file is'; $lang['Uploaddone2'] = 'Click Here to place this URL in the Download URL field.'; $lang['Upload_do_done'] = 'Uploaded Sucessfully'; $lang['Upload_do_not'] = 'Not Uploaded'; $lang['Upload_do_exist'] = 'File Exist'; $lang['Filename'] = 'File Name'; $lang['Filenameinfo'] = 'This is the name of the file you are adding, such as \'My Picture.\''; $lang['Filesd'] = 'Short Description'; $lang['Filesdinfo'] = 'This is a short description of the file. This will go on the page that lists all the files in a category, so this description should be short'; $lang['Fileld'] = 'Long Description'; $lang['Fileldinfo'] = 'This is a longer description of the file. This will go on the file\'s information page so this description can be longer'; $lang['Filecreator'] = 'Creator/Author'; $lang['Filecreatorinfo'] = 'This is the name of whoever created the file.'; $lang['Fileversion'] = 'File Version'; $lang['Fileversioninfo'] = 'This is the version of the file, such as 3.0 or 1.3 Beta'; $lang['Filess'] = 'Screenshot URL'; $lang['Filessinfo'] = 'This is a URL to a screenshot of the file. For example, if you are adding a Winamp skin, this would be a URL to a screenshot of Winamp with this skin. You can manually enter a URL or you can leave it blank and upload a screen shot using browse above.'; $lang['Filess_upload'] = 'Upload Screenshot'; $lang['Filessinfo_upload'] = 'You can upload screenshot by clicking on browse'; $lang['Filess_link'] = 'Screen Shot as Link'; $lang['Filess_link_info'] = 'If you want to show screen shot as link make this as yes.'; $lang['Filedocs'] = 'Documentation/Manual URL'; $lang['Filedocsinfo'] = 'This is a URL to the documentation or a manual for the file'; $lang['Fileurl'] = 'File URL'; $lang['Fileurlinfo'] = 'This is a URL to the file that will be downloaded. You can type it in manually or you can click on browse above and upload a file.'; $lang['File_upload'] = 'File Upload'; $lang['Fileinfo_upload'] = 'You can upload a file by clicking on browse'; $lang['Uploaded_file'] = 'Uploaded file'; $lang['Filepi'] = 'Post Icon'; $lang['Filepiinfo'] = 'You can choose a post icon for the file. The post icon will be shown next to the file in the list of files.'; $lang['Filecat'] = 'Category'; $lang['Filecatinfo'] = 'This is the category the file belongs in.'; $lang['Filelicense'] = 'License'; $lang['Filelicenseinfo'] = 'This is the license agreement the user must agree to before downloading the file.'; $lang['Filepin'] = 'Pin File'; $lang['Filepininfo'] = 'Choose if you want the file pinned or not. Pinned files will always be shown at the top of the file list.'; $lang['Fileadded'] = 'The new file has been successfully added'; $lang['Filedeleted'] = 'The file has been successfully deleted'; $lang['Fileedited'] = 'The file you selected has been successfully edited'; $lang['Fderror'] = 'You didn\'t select any files to delete'; $lang['Filesdeleted'] = 'The files you selected have been successfully deleted'; $lang['Filetoobig'] = 'That file is too big!'; $lang['Approved'] = 'Approved'; $lang['Not_approved'] = '(Not Approved)'; $lang['Approved_info'] = 'Use this option to make the file available for users, and also to approve a file that has been uploaded by the users.'; $lang['Fchecker'] = 'File: Maintenance'; $lang['File_checker'] = 'File Maintenance'; $lang['File_checker_explain'] = 'Here you can perform a checking for all file in database and the file in the download directory.'; $lang['File_saftey'] = 'File maintenance will attempt to delete all files and screenshots that are currently not needed and will remove any file records where the file has been deleted and will clear all screenshots that are not found.<br /><br />If the files do not start with <FONT COLOR="#FF0000">{html_path}</FONT> then the files will be skipped for security reasons.<br /><br />Please make sure that <FONT COLOR="#FF0000">{html_path}</FONT> is the path that you use for your files.<br /><br />.'; // <a href="' . append_sid($phpbb_root_path . "admin/admin_db_utilities.php?perform=backup") . '" class="genmed">Backup your database</a> $lang['File_checker_perform'] = 'Perform Checking'; $lang['Checker_saved'] = 'Total Saved Space'; $lang['Checker_sp1'] = 'Checking for records with missing files...'; $lang['Checker_sp2'] = 'Checking for records with missing screenshots...'; $lang['Checker_sp3'] = 'Deleting unused Files...'; $lang['Filedls'] = 'Download Total'; $lang['Addtional_field'] = 'Additional Field'; $lang['File_not_found'] = 'The file you specified cannot be found'; $lang['SS_not_found'] = 'The screenshot you specified cannot be found'; // License $lang['Alicense'] = 'License: Add'; $lang['Elicense'] = 'License: Edit'; $lang['Dlicense'] = 'License: Delete'; $lang['Alicensetitle'] = 'Add License'; $lang['Elicensetitle'] = 'Edit License'; $lang['Dlicensetitle'] = 'Delete License'; $lang['Licenseexplain'] = 'You can use the license management section to add, edit, and delete license agreements. You can select a license for a file on the file add or edit page. If a file has a license agreement, a user will have to agree to it before downloading the file.'; $lang['Lname'] = 'License Name'; $lang['Ltext'] = 'License Text'; $lang['Licenseadded'] = 'The new license agreement has been successfully added'; $lang['Licenseedited'] = 'The license agreement you selected has been successfully edited'; $lang['Lderror'] = 'You did not select any licenses to delete'; $lang['Ldeleted'] = 'The license agreements you selected have been successfully deleted'; $lang['License_title'] = 'License'; $lang['Click_return'] = 'Click %sHere%s to return to the previous page'; $lang['Click_edit_permissions'] = 'Click %sHere%s to edit the permissions for this category'; //Java script messages and php errors $lang['Cat_name_missing'] = 'Please fill the category name field'; $lang['Cat_conflict'] = 'You can\'t have a category with no file in side a category that doesn\'t allow files'; $lang['Cat_id_missing'] = 'Please select a category'; $lang['Missing_field'] = 'Please complete all the required fields'; //Fields Types $lang['Field_Input'] = 'Single-Line Text Box'; $lang['Field_Textarea'] = 'Multiple-Line Text Box'; $lang['Field_Radio'] = 'Single-Selection Radio Buttons'; $lang['Field_Select'] = 'Single-Selection Menu'; $lang['Field_Select_multiple'] = 'Multiple-Selection Menu'; $lang['Field_Checkbox'] = 'Multiple-Selection Checkbox'; $lang['Com_settings'] = 'Comment Settings'; $lang['Validation_settings'] = 'Approval Settings'; $lang['Ratings_settings'] = 'Ratings Settings'; $lang['PM_notify'] = 'PM Notification (to admin)'; $lang['Use_comments'] = 'Enable comments'; $lang['Allow_comments'] = 'Enable comments'; $lang['Allow_comments_info'] = 'Enable/disable comments in this category.'; $lang['Use_ratings'] = 'Enable ratings'; $lang['Allow_ratings'] = 'Enable ratings'; $lang['Allow_ratings_info'] = 'Enable/disable ratings in this category.'; $lang['MCP_title'] = 'Moderator Control Panel'; $lang['MCP_title_explain'] = 'Here moderators can approve and manage files'; $lang['Fileadded_not_validated'] = 'The new file has been successfully added, but a moderator (admin) need to validate the file before approval.'; ?> --- lang_pafiledb.php DELETED --- --- lang_admin_pafiledb.php DELETED --- |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:33:23
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5538/modules/mx_pafiledb/pafiledb/includes Modified Files: pafiledb_constants.php Log Message: renamed lang files (lang_main and lang_admin) updated install/upgrade files for 2.0.1 Index: pafiledb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/pafiledb_constants.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** pafiledb_constants.php 11 Apr 2005 20:00:19 -0000 1.10 --- pafiledb_constants.php 12 Apr 2005 19:32:56 -0000 1.11 *************** *** 82,96 **** // Read language definition // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_pafiledb.' . $phpEx ) ) { $link_language = 'lang_english'; ! include( $module_root_path . 'language/' . $link_language . '/lang_pafiledb.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_admin_pafiledb.' . $phpEx ); } else { $link_language = 'lang_' . $board_config['default_lang']; ! include( $module_root_path . 'language/' . $link_language . '/lang_pafiledb.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_admin_pafiledb.' . $phpEx ); } --- 82,96 ---- // Read language definition // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { $link_language = 'lang_english'; ! include( $module_root_path . 'language/' . $link_language . '/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_admin.' . $phpEx ); } else { $link_language = 'lang_' . $board_config['default_lang']; ! include( $module_root_path . 'language/' . $link_language . '/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/' . $link_language . '/lang_admin.' . $phpEx ); } |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:33:06
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5538/modules/mx_pafiledb/pafiledb Modified Files: pafiledb_common.php Log Message: renamed lang files (lang_main and lang_admin) updated install/upgrade files for 2.0.1 Index: pafiledb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/pafiledb_common.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pafiledb_common.php 11 Apr 2005 17:55:42 -0000 1.9 --- pafiledb_common.php 12 Apr 2005 19:32:58 -0000 1.10 *************** *** 68,89 **** // =================================================== - // Get Language - // =================================================== - $language = $board_config['default_lang']; - - if ( !file_exists( $module_root_path . 'language/lang_' . $language . '/lang_pafiledb.' . $phpEx ) ) - { - $language = 'english'; - } - - if ( !file_exists( $module_root_path . 'language/lang_' . $language . '/lang_admin_pafiledb.' . $phpEx ) ) - { - $language = 'english'; - } - - include( $module_root_path . 'language/lang_' . $language . '/lang_pafiledb.' . $phpEx ); - include( $module_root_path . 'language/lang_' . $language . '/lang_admin_pafiledb.' . $phpEx ); - - // =================================================== // Include pafiledb data file // =================================================== --- 68,71 ---- |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:31:39
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4087/modules/mx_kb Modified Files: db_install.php db_upgrade.php install.txt install_kb_tables.php mx_install_readme.htm upgrade_kb_tables.php Log Message: renamed lang_kb to lang_main updated install/upgrade -> 2.0.2 Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_upgrade.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** db_upgrade.php 11 Apr 2005 20:07:56 -0000 1.21 --- db_upgrade.php 12 Apr 2005 19:30:42 -0000 1.22 *************** *** 24,28 **** $mx_root_path = './../'; ! $mx_module_version = 'mxBB Knowledge Base Module v. 2.0.1c'; $mx_module_copy = 'Based on phpBB mod by <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=89202" target="_phpbb" >wGEric/Jon</a>'; --- 24,28 ---- $mx_root_path = './../'; ! $mx_module_version = 'mxBB Knowledge Base Module v. 2.0.2'; $mx_module_copy = 'Based on phpBB mod by <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=89202" target="_phpbb" >wGEric/Jon</a>'; *************** *** 72,75 **** --- 72,76 ---- $upgrade_200 = 0; $upgrade_201 = 0; + $upgrade_202 = 1; $message = "<b>Upgrading!</b><br/><br/>"; *************** *** 261,269 **** $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('formatting_fixup', '0')"; $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_articles MODIFY article_author_id mediumint(8) NOT NULL "; ! // Upgrade the config table to avoid duplicate entries ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_config MODIFY config_name VARCHAR(255) NOT NULL default '' "; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_config MODIFY config_value VARCHAR(255) NOT NULL default '' "; ! //$sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_config DROP PRIMARY KEY, ADD PRIMARY KEY (config_name) "; } --- 262,273 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "kb_config VALUES ('formatting_fixup', '0')"; $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_articles MODIFY article_author_id mediumint(8) NOT NULL "; ! } ! ! if ( $upgrade_202 == 1 ) // Old fix for those upgraded from old old version ! { // Upgrade the config table to avoid duplicate entries ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_config MODIFY config_name VARCHAR(255) NOT NULL default '' "; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_config MODIFY config_value VARCHAR(255) NOT NULL default '' "; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "kb_config DROP PRIMARY KEY, ADD PRIMARY KEY (config_name) "; } Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_kb/mx_install_readme.htm,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mx_install_readme.htm 2 Apr 2005 22:03:20 -0000 1.10 --- mx_install_readme.htm 12 Apr 2005 19:30:42 -0000 1.11 *************** *** 221,225 **** <td colspan="2"><p><b><font size="5">mxBB</font><font size="5"> Module - Knowledge Base <br> ! <font size="2">v. 2.0.1</font></font></b></p> <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> <br /> --- 221,225 ---- <td colspan="2"><p><b><font size="5">mxBB</font><font size="5"> Module - Knowledge Base <br> ! <font size="2">v. 2.0.2</font></font></b></p> <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> <br /> Index: upgrade_kb_tables.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/upgrade_kb_tables.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** upgrade_kb_tables.php 9 Apr 2005 21:41:28 -0000 1.1 --- upgrade_kb_tables.php 12 Apr 2005 19:30:42 -0000 1.2 *************** *** 53,57 **** } ! define('KB_VERSION','KB MOD 2.0.1e'); ?> --- 53,57 ---- } ! define('KB_VERSION','KB MOD 2.0.2'); ?> *************** *** 131,134 **** --- 131,136 ---- $upgrade_200 = 0; $upgrade_201 = 0; + $upgrade_202 = 1; + // validate before 1.01 if( !$result = $db->sql_query("SELECT article_rating from ".KB_ARTICLES_TABLE)) *************** *** 201,209 **** $sql[] = 'ALTER TABLE ' . KB_ARTICLES_TABLE . ' ADD article_totalvotes int(255) NOT NULL default "0" ;'; - // Upgrade the config table to avoid duplicate entries - $sql[] = 'ALTER TABLE '. KB_CONFIG_TABLE.' MODIFY config_name VARCHAR(255) NOT NULL default "" ;'; - $sql[] = 'ALTER TABLE '. KB_CONFIG_TABLE.' MODIFY config_value VARCHAR(255) NOT NULL default "" ;'; - $sql[] = 'ALTER TABLE '. KB_CONFIG_TABLE.' DROP PRIMARY KEY, ADD PRIMARY KEY (config_name) ;'; - $sql[] = 'INSERT INTO '.KB_CONFIG_TABLE.' (config_name, config_value) VALUES ("allow_rating", "0") ;'; $sql[] = 'INSERT INTO '.KB_CONFIG_TABLE.' (config_name, config_value) VALUES ("allow_anonymos_rating", "0") ;'; --- 203,206 ---- *************** *** 299,302 **** --- 296,308 ---- $sql[] = 'ALTER TABLE ' . KB_ARTICLES_TABLE . ' MODIFY article_author_id mediumint(8) NOT NULL ;'; } + + if ( $upgrade_202 == 1 ) // Old fix for those upgraded from old old version + { + // Upgrade the config table to avoid duplicate entries + $sql[] = 'ALTER TABLE '. KB_CONFIG_TABLE.' MODIFY config_name VARCHAR(255) NOT NULL default "" ;'; + $sql[] = 'ALTER TABLE '. KB_CONFIG_TABLE.' MODIFY config_value VARCHAR(255) NOT NULL default "" ;'; + $sql[] = 'ALTER TABLE '. KB_CONFIG_TABLE.' DROP PRIMARY KEY, ADD PRIMARY KEY (config_name) ;'; + } + break; Index: install.txt =================================================================== RCS file: /cvsroot/mxbb/mx_kb/install.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install.txt 9 Apr 2005 21:46:20 -0000 1.2 --- install.txt 12 Apr 2005 19:30:42 -0000 1.3 *************** *** 38,41 **** --- 38,45 ---- ## + ## 2005/04/11 - Version KB MOD 2.0.2. + ## - All patches 2.0.1a-e summarized in new version 2.0.2 + ## - Minor fixes "forgotten" in version 2.0.1e + ## 2005/04/09 - Version KB MOD 2.0.1e. ## - Category jumpbox Index: install_kb_tables.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/install_kb_tables.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_kb_tables.php 11 Apr 2005 20:07:57 -0000 1.2 --- install_kb_tables.php 12 Apr 2005 19:30:42 -0000 1.3 *************** *** 53,57 **** } ! define('KB_VERSION','KB MOD 2.0.1e'); ?> --- 53,57 ---- } ! define('KB_VERSION','KB MOD 2.0.2'); ?> Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/db_install.php,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -d -r1.28 -r1.29 *** db_install.php 11 Apr 2005 20:07:56 -0000 1.28 --- db_install.php 12 Apr 2005 19:30:42 -0000 1.29 *************** *** 24,28 **** $mx_root_path = './../'; ! $mx_module_version = 'mxBB Knowledge Base Module v. 2.0.1c'; $mx_module_copy = 'Based on phpBB mod by <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=89202" target="_phpbb" >wGEric/Jon</a>'; --- 24,28 ---- $mx_root_path = './../'; ! $mx_module_version = 'mxBB Knowledge Base Module v. 2.0.2'; $mx_module_copy = 'Based on phpBB mod by <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=89202" target="_phpbb" >wGEric/Jon</a>'; |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:31:26
|
Update of /cvsroot/mxbb/mx_kb/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4087/modules/mx_kb/includes Modified Files: functions_kb.php kb_constants.php Log Message: renamed lang_kb to lang_main updated install/upgrade -> 2.0.2 Index: functions_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/functions_kb.php,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** functions_kb.php 9 Apr 2005 21:41:28 -0000 1.29 --- functions_kb.php 12 Apr 2005 19:30:42 -0000 1.30 *************** *** 853,858 **** $emailer->email_address($to_userdata['user_email'] ); ! $emailer->set_subject( $subject ); ! $emailer->msg = $message; $emailer->send(); --- 853,858 ---- $emailer->email_address($to_userdata['user_email'] ); ! $emailer->set_subject( $privmsg_subject ); ! $emailer->msg = $privmsg_message; $emailer->send(); Index: kb_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/includes/kb_constants.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** kb_constants.php 11 Apr 2005 20:07:57 -0000 1.26 --- kb_constants.php 12 Apr 2005 19:30:55 -0000 1.27 *************** *** 1,125 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * ! * $Id$ ! */ ! ! /** ! * 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. ! */ ! ! if ( !MXBB_MODULE ) ! { ! $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; ! $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); ! $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; ! $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); ! $script_name = ($script_name == '') ? $script_name : '/' . $script_name; ! ! define( 'PORTAL_URL', $server_protocol . $server_name . $server_port . $script_name . '/' ); ! define( 'PHPBB_URL', PORTAL_URL ); ! ! $reader_mode = false; ! $kb_config['news_operate_mode'] = false; ! $mx_table_prefix = $table_prefix; ! $is_block = false; ! } ! ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -500 ); ! define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); ! define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); ! define( 'KB_CONFIG_TABLE', $mx_table_prefix . 'kb_config' ); ! define( 'KB_TYPES_TABLE', $mx_table_prefix . 'kb_types' ); ! define( 'KB_WORD_TABLE', $mx_table_prefix . 'kb_wordlist' ); ! define( 'KB_SEARCH_TABLE', $mx_table_prefix . 'kb_results' ); ! define( 'KB_MATCH_TABLE', $mx_table_prefix . 'kb_wordmatch' ); ! define( 'KB_VOTES_TABLE', $mx_table_prefix . 'kb_votes' ); ! ! define( 'KB_CUSTOM_TABLE', $mx_table_prefix . 'kb_custom' ); ! define( 'KB_CUSTOM_DATA_TABLE', $mx_table_prefix . 'kb_customdata' ); ! ! // Field Types ! define( 'INPUT', 0 ); ! define( 'TEXTAREA', 1 ); ! define( 'RADIO', 2 ); ! define( 'SELECT', 3 ); ! define( 'SELECT_MULTIPLE', 4 ); ! define( 'CHECKBOX', 5 ); ! ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_kb.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_kb.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_kb.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! if ( !MXBB_MODULE || MXBB_27x ) ! { ! $kb_module_version = "Knowledge Base v. 2.0.x"; ! $kb_module_author = "Haplo"; ! $kb_module_orig_author = "wGEric"; ! } ! else ! { ! $mxbb_footer_addup[] = 'mxBB Knowledge Base Module'; ! } ! ! ! ! ?> \ No newline at end of file --- 1,125 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * ! * $Id$ ! */ ! ! /** ! * 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. ! */ ! ! if ( !MXBB_MODULE ) ! { ! $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; ! $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); ! $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; ! $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); ! $script_name = ($script_name == '') ? $script_name : '/' . $script_name; ! ! define( 'PORTAL_URL', $server_protocol . $server_name . $server_port . $script_name . '/' ); ! define( 'PHPBB_URL', PORTAL_URL ); ! ! $reader_mode = false; ! $kb_config['news_operate_mode'] = false; ! $mx_table_prefix = $table_prefix; ! $is_block = false; ! } ! ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_KB', -500 ); ! define( 'KB_ARTICLES_TABLE', $mx_table_prefix . 'kb_articles' ); ! define( 'KB_CATEGORIES_TABLE', $mx_table_prefix . 'kb_categories' ); ! define( 'KB_CONFIG_TABLE', $mx_table_prefix . 'kb_config' ); ! define( 'KB_TYPES_TABLE', $mx_table_prefix . 'kb_types' ); ! define( 'KB_WORD_TABLE', $mx_table_prefix . 'kb_wordlist' ); ! define( 'KB_SEARCH_TABLE', $mx_table_prefix . 'kb_results' ); ! define( 'KB_MATCH_TABLE', $mx_table_prefix . 'kb_wordmatch' ); ! define( 'KB_VOTES_TABLE', $mx_table_prefix . 'kb_votes' ); ! ! define( 'KB_CUSTOM_TABLE', $mx_table_prefix . 'kb_custom' ); ! define( 'KB_CUSTOM_DATA_TABLE', $mx_table_prefix . 'kb_customdata' ); ! ! // Field Types ! define( 'INPUT', 0 ); ! define( 'TEXTAREA', 1 ); ! define( 'RADIO', 2 ); ! define( 'SELECT', 3 ); ! define( 'SELECT_MULTIPLE', 4 ); ! define( 'CHECKBOX', 5 ); ! ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! if ( !MXBB_MODULE || MXBB_27x ) ! { ! $kb_module_version = "Knowledge Base v. 2.0.x"; ! $kb_module_author = "Haplo"; ! $kb_module_orig_author = "wGEric"; ! } ! else ! { ! $mxbb_footer_addup[] = 'mxBB Knowledge Base Module'; ! } ! ! ! ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:31:06
|
Update of /cvsroot/mxbb/mx_kb/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4087/modules/mx_kb/language/lang_english Added Files: lang_main.php Removed Files: lang_kb.php Log Message: renamed lang_kb to lang_main updated install/upgrade -> 2.0.2 --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_main.php * ------------------- * begin : Sunday, Mar 31, 2003 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: lang_main.php,v 1.1 2005/04/12 19:30:56 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. * ***************************************************************************/ $lang['KB_title'] = 'Knowledge Base'; $lang['Article'] = 'Article'; $lang['Category'] = 'Category'; $lang['Article_description'] = 'Description'; $lang['Article_type'] = 'Type'; $lang['Article_keywords'] = 'Keywords'; $lang['Articles'] = 'Articles'; $lang['Add_article'] = 'Add Article'; $lang['Click_cat_to_add'] = 'Click on Category to add Article'; $lang['KB_Home'] = 'KB Home'; $lang['No_articles'] = 'No Articles'; $lang['Article_title'] = 'Article Name'; $lang['Article_text'] = 'Article text'; $lang['Add_article'] = 'Submit Article'; $lang['Read_article'] = 'Reading Article'; $lang['Article_not_exsist'] = 'Article doesn\'t exsist'; $lang['Category_not_exsist'] = 'Category doesn\'t exsist'; $lang['Edit'] = 'Edit'; $lang['Article_submitted_Approve'] = 'Article Submitted Successfully.<br />An Administrator will review your article and decide whether to let user\'s view it or not.'; $lang['Article_submitted'] = 'Article Submitted Successfully.'; $lang['Click_return_kb'] = 'Click %sHere%s to return to the ' . $lang['KB_title']; $lang['Click_return_article'] = 'Click %sHere%s to return to the ' . $lang['Article']; $lang['Article_Edited_Approve'] = 'Article Edited Successfully.<br />It need to be approved again before user\'s can view it.'; $lang['Article_Edited'] = 'Article Edited Successfully.'; $lang['Edit_article'] = 'Edit Article'; $lang['KB_title'] = 'Knowledge Base'; $lang['KB_art_description'] = 'Here you can approve articles so users can view them or you can delete articles.'; $lang['Art_man'] = 'Article Manager'; $lang['Cat_man'] = 'Category Manager'; $lang['KB_cat_description'] = 'Here you can add, edit, or delete categories in the Knowledge Base'; $lang['Art_action'] = 'Action'; //approve $lang['Art_edit'] = 'Edited Articles'; $lang['Art_not_approved'] = 'Not Approved'; $lang['Art_approved'] = 'Approved'; $lang['Approve'] = 'Approve'; $lang['Un_approve'] = 'Un-Approve'; $lang['Article_approved'] = 'Article is now Approved.'; $lang['Article_unapproved'] = 'Article is now Not Approved.'; //delete $lang['Delete'] = 'Delete'; $lang['Confirm_art_delete'] = 'Are you sure you want to delete this article?'; $lang['Confirm_art_delete_yes'] = '%sYes, I want to delete this article%s'; $lang['Confirm_art_delete_no'] = '%sNo, I don\'t want to delete this article%s'; $lang['Article_deleted'] = 'Article Deleted Successfully.'; $lang['Click_return_article_manager'] = 'Click %sHere%s to return to the Article Manager'; //cat manager $lang['Create_cat'] = 'Create New Category:'; $lang['Create'] = 'Create'; $lang['Cat_settings'] = 'Category Settings'; $lang['Create_description'] = 'Here you can change the name of the category and add a description to the new category.'; $lang['Cat_created'] = 'Category Created Successfully.'; $lang['Click_return_cat_manager'] = 'Click %sHere%s to return to the ' . $lang['Cat_man']; $lang['Edit_description'] = 'Here you can edit the settings of your category'; $lang['Edit_cat'] = 'Edit Category'; $lang['Cat_edited'] = 'Category Edited Successfully.'; $lang['Parent'] = 'Parent'; $lang['Cat_delete_title'] = 'Delete Category'; $lang['Cat_delete_desc'] = 'Here you can delete a category and move all of the articles in it to a new category'; $lang['Cat_deleted'] = 'Category Deleted Successfully.'; $lang['Delete_all_articles'] = 'Delete Articles'; //configuration $lang['KB_config'] = 'KB Configuration'; $lang['Art_types'] = 'Article Types'; $lang['KB_config_title'] = 'Knowledge Base Configuration'; $lang['KB_config_explain'] = 'Change the configuration of your Knowledge Base'; $lang['New_title'] = 'Allow New Articles'; $lang['New_explain'] = 'Let users post new articles on in your Knowledge Base'; $lang['Edit_name'] = 'Allow Editing'; $lang['Edit_explain'] = 'Allow users to edit their articles after posting them'; $lang['Notify_name'] = 'Notify me by'; $lang['Notify_explain'] = 'Choose which way to receive notices that new articles have been posted'; $lang['PM'] = 'PM'; $lang['Click_return_kb_config'] = 'Click %sHere%s to return to Knowledge Base Configuration'; $lang['Admin_id_name'] = 'Admin ID'; $lang['Admin_id_explain'] = 'This is the user id number that PM notifications will be sent to.'; $lang['Approve_new_name'] = 'Approve new Articles'; $lang['Approve_new_explain'] = 'Change whether <b />new</b /> articles need to be approved or not'; $lang['Approve_edit_name'] = 'Approve Edited Articles'; $lang['Approve_edit_explain'] = 'Change whether <b />edited</b /> articles need to be approved or not'; $lang['Allow_anon_name'] = 'Allow anonymous posting of Articles'; $lang['Allow_anon_explain'] = 'Change whether <b />new</b /> articles can be submitted anonymously'; $lang['Del_topic'] = 'Delete Topic'; $lang['Del_topic_explain'] = 'When you delete an article, do you want its comments topic to be deleted also?'; $lang['Use_comments'] = 'Comments'; $lang['Use_comments_explain'] = 'Enable comments for articles, to be inserted in the phpbb forum'; $lang['Use_ratings'] = 'Ratings'; $lang['Use_ratings_explain'] = 'Enable ratings for articles'; $lang['Forum_id'] = 'Forum ID'; $lang['Forum_id_explain'] = 'This is the forum that the article\'s comments will be kept'; // // Permissions // $lang['KB_Auth_Title'] = 'KB Permissions'; $lang['KB_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for each kb category or just has the private access'; $lang['Select_a_Category'] = 'Select a Category'; $lang['Look_up_Category'] = 'Look up Category'; $lang['KB_Auth_successfully'] = 'Auth has been updated successfully'; $lang['Click_return_KB_auth'] = 'Click %sHere%s to return to the KB Permissions'; $lang['Upload'] = 'Upload'; $lang['Rate'] = 'Rate'; $lang['Comment'] = 'Comment'; $lang['Approval'] = 'Approval'; $lang['Approval_edit'] = 'Approval Edit'; $lang['Allow_rating'] = 'Allow ratings'; $lang['Allow_rating_explain'] = 'Users are allowed to rate articles.'; $lang['Allow_anonymos_rating'] = 'Allow anonymos ratings'; $lang['Allow_anonymos_rating_explain'] = 'If ratings is activated, allow anonymos users to add ratings to your articles'; $lang['KB_config_updated'] = 'Knowledge Base Configuration Updated Successfully.'; $lang['KB_notify_subject_new'] = 'New Article!'; $lang['KB_notify_subject_edited'] = 'Edited Article!'; $lang['KB_notify_subject_approved'] = 'Approved Article!'; $lang['KB_notify_subject_unapproved'] = 'Unapproved Article!'; $lang['KB_notify_body'] = 'An article has been submitted or modified:'; $lang['Category_Permissions'] = 'Category Permissions'; $lang['Category_Title'] = 'Category Title'; $lang['Category_Desc'] = 'Category Description'; $lang['View_level'] = 'View Level'; $lang['Upload_level'] = 'Upload Level'; $lang['Rate_level'] = 'Rate Level'; $lang['Comment_level'] = 'Comment Level'; $lang['Edit_level'] = ' Edit Level'; $lang['Delete_level'] = 'Delete Level'; $lang['Approval_level'] = 'Approval Level'; $lang['Approval_edit_level'] = 'Approval Edit Level'; $lang['KB_Rules_post_can'] = 'You <b>can</b> post new articles in this category'; $lang['KB_Rules_post_cannot'] = 'You <b>cannot</b> post new articles in this category'; $lang['KB_Rules_comment_can'] = 'You <b>can</b> comment articles in this category'; $lang['KB_Rules_comment_cannot'] = 'You <b>cannot</b> comment articles in this category'; $lang['KB_Rules_edit_can'] = 'You <b>can</b> edit your articles in this category'; $lang['KB_Rules_edit_cannot'] = 'You <b>cannot</b> edit your articles in this category'; $lang['KB_Rules_delete_can'] = 'You <b>can</b> delete your articles in this category'; $lang['KB_Rules_delete_cannot'] = 'You <b>cannot</b> delete your articles in this category'; $lang['KB_Rules_rate_can'] = 'You <b>can</b> rate articles in this category'; $lang['KB_Rules_rate_cannot'] = 'You <b>cannot</b> rate articles in this category'; $lang['KB_Rules_approval_can'] = 'Articles <b>need no</b> approval in this category'; $lang['KB_Rules_approval_cannot'] = 'Articles <b>need</b> approval in this category'; $lang['KB_Rules_approval_edit_can'] = 'Article edits <b>need no</b> approval in this category'; $lang['KB_Rules_approval_edit_cannot'] = 'Article edits <b>need</b> approval in this category'; $lang['KB_Rules_moderate'] = 'You <b>can</b> %smoderate this category%s'; // %s replaced by a href links, do not remove! $lang['KB_Rules_moderate_can'] = 'You <b>can</b> moderate this category'; // %s replaced by a href links, do not remove! $lang['Comments_show'] = 'Display article comments.'; $lang['Comments_show_explain'] = '- also displays comments in the article page'; $lang['Comments_show_title'] = 'User comments'; $lang['Mod_group'] = 'KB Moderator Group'; $lang['Mod_group_explain'] = '- with KB Admin permissions!'; $lang['Bump_post'] = 'Bumping article post'; $lang['Bump_post_explain'] = 'When editing an article, a reply is posted in the article topic notifying of the updated article.'; $lang['Stats_list'] = 'Show KB Stats'; $lang['Stats_list_explain'] = 'Show KB stats in the header.'; $lang['Header_banner'] = 'Show Top Logo'; $lang['Header_banner_explain'] = 'Show KB logo in the header.'; $lang['Comment_info'] = 'Comments settings'; $lang['Rating_info'] = 'Ratings settings'; //types $lang['Types_man'] = 'Types Manager'; $lang['KB_types_description'] = 'Here you can add delete and edit the different article types'; $lang['Create_type'] = 'Create new Article Type:'; $lang['Type_created'] = 'Article Type Created Successfully.'; $lang['Click_return_type_manager'] = 'Click %sHere%s to return to the Types Manager'; $lang['Edit_type'] = 'Edit Type'; $lang['Edit_type_description'] = 'Here you can edit the name of the type'; $lang['Type_edited'] = 'Article Type Edited Successfully.'; $lang['Type_delete_title'] = 'Delete Article Type'; $lang['Type_delete_desc'] = 'Here you can change what the article type is of the articles that have the type you are deleting.'; $lang['Change_type'] = 'Change article\'s type to'; $lang['Change_and_Delete'] = 'Change and Delete'; $lang['Type_deleted'] = 'Article Type Deleted Successfully.'; $lang['Pre_text_name'] = 'Article Submission Instructions'; $lang['Pre_text_header'] = 'Article Submission Instructions Header'; $lang['Pre_text_body'] = 'Article Submission Instructions Body'; $lang['Pre_text_explain'] = 'This is text instructions displayed to users at the top of the submission forum.'; $lang['Show'] = 'Show'; $lang['Hide'] = 'Hide'; $lang['Empty_fields'] ='Please fill out all parts of the form.'; $lang['Empty_fields_return'] ='Click %sHere%s to return to the form.'; $lang['Empty_category'] ='You must choose a category'; $lang['Empty_type']='You must choose a type'; $lang['Empty_article_name'] = 'You must fill out the article name'; $lang['Empty_article_desc'] = 'You must fill out the article description'; $lang['Read_full_article'] = '>>Read Full Article'; $lang['Comments'] = 'Comments'; $lang['No_add'] = 'You can\'t add a new article'; $lang['No_edit'] = 'You can\'t edit this article!'; $lang['Post_comments'] = 'Post your comments'; $lang['Category_sub'] = 'Sub-Categories'; $lang['Quick_stats'] = 'Quick Stats'; // added $lang['Edited_Article_info'] = 'Article updated by '; $lang['No_Articles'] = 'This category is empty!'; $lang['Not_authorized'] = 'Sorry, you are not authorized!'; $lang['TOC'] = 'Contents'; // Rate $lang['Votes_label'] = 'Rating '; $lang['Votes'] = 'vote(s)'; $lang['No_votes'] = 'No votes'; $lang['Rate'] = 'Rate Article'; $lang['ADD_RATING'] = '[Rate Article]'; $lang['Rerror'] = 'Sorry, you have already rated this article.'; $lang['Rateinfo'] = 'You are about to rate the article <i>{filename}</i>.<br />Please select a rating. 1 is the worst, 10 is the best.'; $lang['Rconf'] = 'You have given <i>{filename}</i> a rating of {rate}.<br />This makes the files new rating {newrating}/10.'; $lang['R1'] = '1'; $lang['R2'] = '2'; $lang['R3'] = '3'; $lang['R4'] = '4'; $lang['R5'] = '5'; $lang['R6'] = '6'; $lang['R7'] = '7'; $lang['R8'] = '8'; $lang['R9'] = '9'; $lang['R10'] = '10'; $lang['Click_return_rate'] = 'Click %sHere%s to return to article'; // Print version $lang['Print_version'] = '[Printable version]'; // Stats $lang['Top_toprated'] = 'Toprated Articles'; $lang['Top_most_popular'] = 'Most Popular'; $lang['Top_latest'] = 'Latest Articles'; // Votes check $lang['Votes_check_ip'] = 'Validate ratings - ip'; $lang['Votes_check_ip_explain'] = 'Only one vote per IP-adress is permitted.'; $lang['Votes_check_userid'] = 'Validate ratings - user'; $lang['Votes_check_userid_explain'] = 'Users may only vote once.'; $lang['Article_pag'] = 'Article pagination'; $lang['Article_pag_explain'] = 'The number of articles to show in a (stats) category before pagination.'; $lang['Comments_pag'] = 'Comments pagination'; $lang['Comments_pag_explain'] = 'The number of comments to show for the article before pagination.'; $lang['News_sort'] = 'Article sort method'; $lang['News_sort_explain'] = 'Define how articles are sorted within its category.'; $lang['News_sort_par'] = 'ASC or DESC sorting'; $lang['News_sort_par_explain'] = ''; // // General strings from the news admin panel // $lang['News_settings'] = "KB Block Settings"; $lang['News_settings_short_explain'] = "Configure some options for the front-page news."; $lang['News_settings_explain'] = "Here you can edit the configuration for the KB Block. This panel lets you extract what categories the block will display, thus you'll create subinstances of the module."; // // Update result messages // $lang['News_updated_return_settings'] = "KB block configuration updated successfully.<br /><br />Click %shere%s to return to main page."; // %s's for URI params - DO NOT REMOVE $lang['News_update_error'] = "Couldn't update KB block configuration.<br /><br />This mod is designed for MySQL so please contact the author if you have troubles. If you can offer a translation of the SQL into other database formats, please send them to:<br />"; // Custom Field $lang['Fieldselecttitle'] = 'Select what to do'; $lang['Afield'] = 'Custom Field: Add'; $lang['Efield'] = 'Custom Field: Edit'; $lang['Dfield'] = 'Custom Field: Delete'; $lang['Mfieldtitle'] = 'Custom Fields'; $lang['Afieldtitle'] = 'Add Field'; $lang['Efieldtitle'] = 'Edit Field'; $lang['Dfieldtitle'] = 'Delete Field'; $lang['Fieldexplain'] = 'You can use the custom fields management section to add, edit, and delete custom fields. You can use custom fields to add more information about an article.'; $lang['Fieldname'] = 'Field Name'; $lang['Fieldnameinfo'] = 'This is the name of the field, for example \'File Size\''; $lang['Fielddesc'] = 'Field Description'; $lang['Fielddescinfo'] = 'This is a description of the field, for example \'File Size in Megabytes\''; $lang['Fieldadded'] = 'The custom field has been successfully added'; $lang['Fieldedited'] = 'The custom field you selected has been successfully edited'; $lang['Dfielderror'] = 'You didn\'t select any fields to delete'; $lang['Fieldsdel'] = 'The custom fields you selected have been successfully deleted'; $lang['Field_data'] = 'Options'; $lang['Field_data_info'] = 'Enter the options that the user can choose from. Separate each option with a new-line (carriage return).'; $lang['Field_regex'] = 'Regular Expression'; $lang['Field_regex_info'] = 'You may require the input field to match a regular expression %s(PCRE)%s.'; $lang['Field_order'] = 'Display Order'; //Fields Types $lang['Field_Input'] = 'Single-Line Text Box'; $lang['Field_Textarea'] = 'Multiple-Line Text Box'; $lang['Field_Radio'] = 'Single-Selection Radio Buttons'; $lang['Field_Select'] = 'Single-Selection Menu'; $lang['Field_Select_multiple'] = 'Multiple-Selection Menu'; $lang['Field_Checkbox'] = 'Multiple-Selection Checkbox'; $lang['Click_return'] = 'Click %sHere%s to return to the previous page'; // added $lang['Cat_all'] = "All"; $lang['L_Pages'] = "Pages"; $lang['L_Pages_explain'] = "Use the '[pages]' command to split the article into pages"; $lang['L_Toc'] = "Table of contents (TOC)"; $lang['L_Toc_explain'] = "Use the '[toc]' command to add entry in the TOC"; $lang['L_Abstract'] = "Abstract"; $lang['L_Abstract_explain'] = "Use the '[abstract]...[/abstract]' environment to insert an abstract"; $lang['L_Title_Format'] = "Title"; $lang['L_Title_Format_explain'] = "Use the '[title]...[/title]' environment to insert a main title"; $lang['L_Subtitle_Format'] = "Subtitle"; $lang['L_Subtitle_Format_explain'] = "Use the '[subtitle]...[/subtitle]' environment to insert a subtitle"; $lang['L_Subsubtitle_Format'] = "Subsubtitle"; $lang['L_Subsubtitle_Format'] = "Use the '[subsubtitle]...[/subsubtitle]' environment to insert a small header"; $lang['L_Options'] = "Options:"; $lang['L_Formatting'] = "Formatting:"; $lang['Default_article_id'] = "Set default article, for the article viewer"; // Added for v. 2.0 $lang['KB_comment_prefix'] = '[ KB ] '; $lang['Wysiwyg'] = 'Use wysiwyg editor'; $lang['Wysiwyg_explain'] = 'If enabled, the standard bbcode/html/smilies input dialog is replaced by a wysiwyg editor.'; $lang['Wysiwyg_path'] = 'Path to wysiwyg software'; $lang['Wysiwyg_path_explain'] = 'This is the path (from mxBB/phpBB root) to the wysiwyg software folder, eg \'modules/\' if you have uploaded for example tinemce in modules/tinymce.'; $lang['Formatting_fixup'] = 'Fixup formatting'; $lang['Formatting_fixup_explain'] = 'I enabled, the article text is reformatted: wordwrapping, url truncates, img resizing, some bbcode reformatting etc'; $lang['Addtional_field'] = 'More information (optional)'; $lang['No_cat_comments_forum_id'] = 'Comments are enabled but you have not specified the target phpBB forum category in the KB adminCP - Cateogries'; // Quick Nav $lang['Quick_nav'] = 'Quick KB Navigation'; $lang['Quick_jump'] = 'Go'; ?> --- lang_kb.php DELETED --- |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:29:36
|
Update of /cvsroot/mxbb/core/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2932/language/lang_english Modified Files: lang_admin.php lang_main.php Log Message: some lang keys moved to its module lang instead Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/core/language/lang_english/lang_main.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** lang_main.php 3 Apr 2005 23:11:33 -0000 1.15 --- lang_main.php 12 Apr 2005 19:29:01 -0000 1.16 *************** *** 1,110 **** ! <?php ! /*************************************************************************** ! * lang_main.php [English] ! * ------------------- ! * copyright : (C) 2003 mxBB Portal ! * email : su...@mx... ! * ! * $Id$ ! * ! * Rev. hist : Created by MarcMoris (su...@mx...), ! reedited by Haplo (jon...@ho...) ! ****************************************************************************/ ! ! // ! // The format of this file is: ! // ! // ---> $lang["message"] = "text"; ! // ! // Specify your language character encoding... [optional] ! // ! // setlocale(LC_ALL, "en"); ! ! // Menu_nav.php ! $lang['Home Page'] = "Portal Home"; ! $lang['Announcements'] = "Announcements"; ! $lang['Forum'] = "Forum"; ! $lang['Main Menu'] = "Main Menu"; ! $lang['Module Statistics'] = "Statistics"; ! $lang['Send a Private message'] = "Send Private message"; ! $lang['Edit your Profile'] = "Edit Your Profile"; ! ! $lang['Portal_lang'] = "Language CP"; // Blocktitle ! $lang['SELECTGUILANG'] = "Select Language:"; ! ! $lang['Change'] = "Change now"; ! $lang['Change_default_style'] = "Set Board Default Style"; ! $lang['Change_user_style'] = "Set Your Style"; ! ! $lang['Change_default_lang'] = "Set Board Default Language"; ! $lang['Change_user_lang'] = "Set Your Language"; ! ! $lang['Block_Title'] = "Title"; ! $lang['Block_Info'] = "Information"; ! ! $lang['Theme'] = "Theme/Style CP"; // Blocktitle ! $lang['SelectTheme'] = "Select Theme/Style:"; ! ! $lang['Surveys/Polls'] = "Surveys/Polls"; ! $lang['Already_voted'] = "You have already voted"; ! $lang['Click_view_voted'] = "Click %sHere%s to view the results"; ! ! $lang['Annonce_sent'] = "The announcement has been sent"; ! $lang['Annonce_Deleted'] = "The announcement has been deleted"; ! ! $lang['Block_Config_updated'] = "Block Configuration updated successfully"; ! $lang['Block_Edit'] = "Edit Block Configuration"; ! ! // ! // New for v. 2.704 ! // ! ! $lang['Page_Not_Authorised'] = "Sorry, but you are not authorized to access this page."; ! ! // ! // New for v. 2.705 ! // ! ! $lang['Execution_Stats'] = "Page generated %s queries - Generation time: %s seconds"; ! ! // ! // New for v. 2.7.3 ! // ! ! $lang['Redirect_login'] = "Click %sHere%s to login."; ! ! // ! // New for v. 2.7.4 ! // ! $lang['Show_admin_options'] = "Show/Hide admin options: "; ! $lang['Hidden_block'] = "Hidden block..."; ! ! $lang['General_updated_return_settings'] = "Configuration updated successfully...<br /><br />Click %shere%s to continue."; // %s's for URI params - DO NOT REMOVE ! $lang['General_update_error'] = "Couldn't update configuration..."; ! ! $lang['Mx_Page'] = "Page"; ! $lang['Mx_Block'] = "Section"; ! ! $lang['Mx_search_site'] = "Site"; ! $lang['Mx_search_forum'] = "Forum"; ! $lang['Mx_search_kb'] = "KB articles"; ! $lang['Mx_search_google'] = "Google"; ! ! $lang['Block_updated_by'] = "Updated by "; ! $lang['No_items_found'] = "Nothing new to report... "; ! ! $lang['Powered_by'] = "Powered by "; ! $lang['Modules_copy'] = "and mxBB Modules "; ! ! $lang['mx_copy_text'] = '<b>mxBB - modular Portal & CMS for phpBB!</b> <br /><br/> mxBB is a fully modular portal and CMS for phpBB, featuring dynamic pages/blocks/themes by means of a powerful yet flexible Admin CP. While it uses integrated features, it works without touching phpBB. mxBB-Portal is the classical phpBB portal add-on, improved and enhanced for every phpBB version since 2001. <br /><br />Authors: Jon Ohlsson, Marc Morissette, Markus, Jaime, Luke Finnigan & Snake - the mxBB Development Team. <br />Please visit <a href="http://www.mx-system.com/">www.mx-system.com</a> for further information.'; ! $lang['mx_modules_text'] = '<b>mxBB Modules</b>'; ! ! $lang['Yes'] = 'Yes'; ! $lang['No'] = 'No'; ! ! $lang['mx_copy'] = 'mxBB Copyrights Info'; ! // ! // That's all Folks! ! // ------------------------------------------------- ! ?> \ No newline at end of file --- 1,109 ---- ! <?php ! /*************************************************************************** ! * lang_main.php [English] ! * ------------------- ! * copyright : (C) 2003 mxBB Portal ! * email : jon...@ho... ! * ! * $Id$ ! * ! ****************************************************************************/ ! ! // ! // The format of this file is: ! // ! // ---> $lang["message"] = "text"; ! // ! // Specify your language character encoding... [optional] ! // ! // setlocale(LC_ALL, "en"); ! ! // Menu_nav.php ! $lang['Home Page'] = "Portal Home"; ! $lang['Announcements'] = "Announcements"; ! $lang['Forum'] = "Forum"; ! $lang['Main Menu'] = "Main Menu"; ! $lang['Module Statistics'] = "Statistics"; ! $lang['Send a Private message'] = "Send Private message"; ! $lang['Edit your Profile'] = "Edit Your Profile"; ! ! $lang['Portal_lang'] = "Language CP"; // Blocktitle ! $lang['SELECTGUILANG'] = "Select Language:"; ! ! $lang['Change'] = "Change now"; ! $lang['Change_default_style'] = "Set Board Default Style"; ! $lang['Change_user_style'] = "Set Your Style"; ! ! $lang['Change_default_lang'] = "Set Board Default Language"; ! $lang['Change_user_lang'] = "Set Your Language"; ! ! $lang['Block_Title'] = "Title"; ! $lang['Block_Info'] = "Information"; ! ! $lang['Theme'] = "Theme/Style CP"; // Blocktitle ! $lang['SelectTheme'] = "Select Theme/Style:"; ! ! $lang['Surveys/Polls'] = "Surveys/Polls"; ! $lang['Already_voted'] = "You have already voted"; ! $lang['Click_view_voted'] = "Click %sHere%s to view the results"; ! ! $lang['Annonce_sent'] = "The announcement has been sent"; ! $lang['Annonce_Deleted'] = "The announcement has been deleted"; ! ! $lang['Block_Config_updated'] = "Block Configuration updated successfully"; ! $lang['Block_Edit'] = "Edit Block Configuration"; ! ! // ! // New for v. 2.704 ! // ! ! $lang['Page_Not_Authorised'] = "Sorry, but you are not authorized to access this page."; ! ! // ! // New for v. 2.705 ! // ! ! $lang['Execution_Stats'] = "Page generated %s queries - Generation time: %s seconds"; ! ! // ! // New for v. 2.7.3 ! // ! ! $lang['Redirect_login'] = "Click %sHere%s to login."; ! ! // ! // New for v. 2.7.4 - 2.8 ! // ! $lang['Show_admin_options'] = "Show/Hide admin options: "; ! $lang['Hidden_block'] = "Hidden block..."; ! ! $lang['General_updated_return_settings'] = "Configuration updated successfully...<br /><br />Click %shere%s to continue."; // %s's for URI params - DO NOT REMOVE ! $lang['General_update_error'] = "Couldn't update configuration..."; ! ! $lang['Mx_Page'] = "Page"; ! $lang['Mx_Block'] = "Section"; ! ! $lang['Mx_search_site'] = "Site"; ! $lang['Mx_search_forum'] = "Forum"; ! $lang['Mx_search_kb'] = "KB articles"; ! $lang['Mx_search_google'] = "Google"; ! ! $lang['Block_updated_by'] = "Updated by "; ! $lang['No_items_found'] = "Nothing new to report... "; ! ! $lang['Powered_by'] = "Powered by "; ! $lang['Modules_copy'] = "and mxBB Modules "; ! ! $lang['mx_copy_text'] = '<b>mxBB - modular Portal & CMS for phpBB!</b> <br /><br/> mxBB is a fully modular portal and CMS for phpBB, featuring dynamic pages/blocks/themes by means of a powerful yet flexible Admin CP. While it uses integrated features, it works without touching phpBB. mxBB-Portal is the classical phpBB portal add-on, improved and enhanced for every phpBB version since 2001. <br /><br />Authors: Jon Ohlsson, Marc Morissette, Markus, Jaime, Luke Finnigan & Snake - the mxBB Development Team. <br />Please visit <a href="http://www.mx-system.com/">www.mx-system.com</a> for further information.'; ! $lang['mx_modules_text'] = '<b>mxBB Modules</b>'; ! ! $lang['mx_copy'] = 'mxBB Copyrights Info'; ! ! $lang['Yes'] = 'Yes'; ! $lang['No'] = 'No'; ! ! // ! // That's all Folks! ! // ------------------------------------------------- ! ?> \ No newline at end of file Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/core/language/lang_english/lang_admin.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** lang_admin.php 6 Apr 2005 06:11:31 -0000 1.34 --- lang_admin.php 12 Apr 2005 19:28:51 -0000 1.35 *************** *** 297,302 **** // ! // New for v. 2.7.4 // $lang['Choose_page_template'] = "Choose Page Template"; $lang['Template_Config_updated'] = "Template Configuration Updated"; --- 297,304 ---- // ! // New for v. 2.7.4 - 2.8 // + + // Page templates $lang['Choose_page_template'] = "Choose Page Template"; $lang['Template_Config_updated'] = "Template Configuration Updated"; *************** *** 318,335 **** $lang['space_between'] = "Space between Blocks"; - // Toplists - $lang['display_most_posts'] = "Most visited/view/dl<br />"; - $lang['display_random_posts'] = "Random<br />"; - $lang['display_top_ranked'] = "Toprated<br />"; - $lang['display_latest_posts'] = "Latest<br />"; - $lang['num_of_cols'] = "Number of cols<br />"; - $lang['num_of_rows'] = "Number of rows<br />"; - - // Calsnails - $lang['auth_all'] = "Default access level for ALL anonymous users"; - $lang['auth_reg'] = "Default access level for ALL registered users<br /><br />NOTE: Block EDIT permissions also affect the CalSnails Block. EDIT users become CalSnails moderators..."; - $lang['cal_filter'] = "Event Filter: Show events added for this Block only<br />NOTE: FALSE, means show ALL calendar events..."; - $lang['target_block'] = "Associated (target) CalSnails Block"; - $lang['cal_mod_group'] = "CalSnails Moderator Group"; $lang['Page_desc'] = "Description"; --- 320,323 ---- *************** *** 344,359 **** $lang['Uninstall_module'] = "Uninstall"; $lang['Mx_Block_Auth_Title'] = "Private Block Permissions" ; $lang['Mx_Block_Auth_Explain'] = "Here you can configure Private Block Permissions"; - $lang['Mx_Page_Auth_Title'] = "Private Page Permissions" ; $lang['Mx_Page_Auth_Explain'] = "Here you configure Private Page Permissions"; - $lang['Block_Auth_successfully'] = "Block Permissions Updated Successfully"; $lang['Click_return_block_auth'] = "Click %sHere%s to return to Private Block Permissions"; - $lang['Page_Auth_successfully'] = "Page Permissions Updated Successfully"; $lang['Click_return_page_auth'] = "Click %sHere%s to return to Private Page Permissions"; $lang['log_filter_date'] = "Filter by time<br />Show logs from last week, month, year..."; $lang['msg_filter_date'] = "Filter by time<br />Show posts from last week, month, year..."; --- 332,346 ---- $lang['Uninstall_module'] = "Uninstall"; + // Portal permissons $lang['Mx_Block_Auth_Title'] = "Private Block Permissions" ; $lang['Mx_Block_Auth_Explain'] = "Here you can configure Private Block Permissions"; $lang['Mx_Page_Auth_Title'] = "Private Page Permissions" ; $lang['Mx_Page_Auth_Explain'] = "Here you configure Private Page Permissions"; $lang['Block_Auth_successfully'] = "Block Permissions Updated Successfully"; $lang['Click_return_block_auth'] = "Click %sHere%s to return to Private Block Permissions"; $lang['Page_Auth_successfully'] = "Page Permissions Updated Successfully"; $lang['Click_return_page_auth'] = "Click %sHere%s to return to Private Page Permissions"; + // Stats $lang['log_filter_date'] = "Filter by time<br />Show logs from last week, month, year..."; $lang['msg_filter_date'] = "Filter by time<br />Show posts from last week, month, year..."; |
|
From: Jon O. <jon...@us...> - 2005-04-12 19:06:20
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23451/admin Modified Files: admin_mx_module.php Log Message: fix to find core pak Index: admin_mx_module.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/admin_mx_module.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** admin_mx_module.php 6 Mar 2005 01:10:12 -0000 1.26 --- admin_mx_module.php 12 Apr 2005 19:05:49 -0000 1.27 *************** *** 1,1876 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : mars, 2003 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- [...3725 lines suppressed...] ! { ! $output_message .= '<br><b><font color=#0000ff>[db...error]</font></b> line: ' . __LINE__ . ' , ' . $sql . '<br />'; ! $pak_error = true; ! return $output_message; ! } ! else ! { ! $output_message .= '<font color=#00ff00>[db...ok]</font>'; ! } ! ! $output_message .= ' ' . $parameter_row[1] . '-' . $resultset_param[$p]['parameter_id'] . ','; ! } ! ! $output_message .= '<br> ... ok<br>' ; ! ! return $output_message; ! } ! ?> \ No newline at end of file |