You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:19
|
Update of /cvsroot/mxbb/mx_smartor/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/admin Modified Files: admin_album_auth.php admin_album_cat.php admin_album_clearcache.php admin_album_clown_SP.php admin_album_personal.php Added Files: admin_album_cfg.php admin_album_config_personal.php admin_album_ext.php admin_album_otf.php Log Message: --- NEW FILE: admin_album_config_personal.php --- <?php /** * * @package mxBB Portal Module - mx_smartor * @version $Id: admin_album_config_personal.php,v 1.1 2007/06/07 20:13:07 orynider Exp $ * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define('IN_PORTAL', 1); if( !empty($setmodules) ) { $filename = basename(__FILE__); $module['Smartor_Album']['Album_Personal_Settings'] = "modules/mx_smartor/admin/" .$filename; return; } // // Let's set the root dir for phpBB // $module_root_path = '../'; $mx_root_path = '../../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); define('ALBUM_MOD_PATH', 'album_mod/'); // Get general album information if (!isset($album_root_path) || empty($album_root_path)) { $album_root_path = $module_root_path . ALBUM_MOD_PATH . ''; } if (!isset($acp_prefix) || empty($acp_prefix)) { $acp_prefix = 'admin/'; } include_once($album_root_path . 'album_common.'.$phpEx); // require($module_root_path . 'album_mod/album_constants.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_admin_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin_album.' . $phpEx ); } if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_main_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main_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] = $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_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); } } $template->set_filenames(array( "body" => $acp_prefix . 'album_config_personal_body.tpl') ); $template->assign_vars(array( 'L_ALBUM_PERSONAL_CONFIG' => $lang['Album_Personal_Settings'], 'L_ALBUM_PERSONAL_CONFIG_EXPLAIN' => $lang['Album_Personal_Settings_Explain'], 'S_ALBUM_PERSONAL_CONFIG_ACTION' => append_sid('admin_album_config_personal.'.$phpEx), 'PERSONAL_GALLERY_LIMIT' => $new['personal_gallery_limit'], '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"' : '', 'PERSONAL_PICS_APPROVAL_DISABLED' => ($new['personal_pics_approval'] == ALBUM_USER) ? 'checked="checked"' : '', 'PERSONAL_PICS_APPROVAL_MOD' => ($new['personal_pics_approval'] == ALBUM_MOD) ? 'checked="checked"' : '', 'PERSONAL_PICS_APPROVAL_ADMIN' => ($new['personal_pics_approval'] == ALBUM_ADMIN) ? '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"' : '', '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"' : '', 'PERSONAL_ALLOW_AVATARS_ENABLED' => ($new['personal_allow_avatar_gallery'] == 1) ? 'checked="checked"' : '', 'PERSONAL_ALLOW_AVATARS_DISABLED' => ($new['personal_allow_avatar_gallery'] == 0) ? 'checked="checked"' : '', 'S_GUEST' => ALBUM_GUEST, 'S_USER' => ALBUM_USER, 'S_PRIVATE' => ALBUM_PRIVATE, 'S_MOD' => ALBUM_MOD, 'S_ADMIN' => ALBUM_ADMIN, //--- Language setup --- 'L_GUEST' => $lang['Forum_ALL'], 'L_REG' => $lang['Forum_REG'], 'L_PRIVATE' => $lang['Forum_PRIVATE'], 'L_MOD' => $lang['Forum_MOD'], 'L_ADMIN' => $lang['Forum_ADMIN'], 'L_PERSONAL_GALLERY' => $lang['Personal_gallery'], 'L_PERSONAL_GALLERY_LIMIT' => $lang['Personal_gallery_limit'], 'L_PERSONAL_GALLERY_VIEW' => $lang['Personal_gallery_view'], 'L_ALBUM_PERSONAL_PICS_APPROVAL' => $lang['Personal_Gallery_Approval'], 'L_ALBUM_PERSONAL_MODERATOR' => $lang['Personal_Gallery_MOD'], 'L_PERSONAL_SUB_GALLERY_LIMIT' => $lang['Personal_Sub_Cat_Limit'], 'L_PERSONAL_ALLOW_SUB_CATEGORY' => $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'], 'L_ALBUM_DEBUG_MODE' => $lang['Album_debug_mode'], 'L_PERSONAL_SHOW_ALL_PICS' => $lang['Enable_Show_All_Pics'], 'L_PERSONAL_ALLOW_AVATARS' => $lang['Allow_Album_Avatars'], 'L_DISABLED' => $lang['Disabled'], 'L_ENABLED' => $lang['Enabled'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_ALWAYS' => $lang['SP_Always'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset']) ); $template->pparse("body"); include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> --- NEW FILE: admin_album_cfg.php --- <?php /** * * @package mxBB Portal Module - mx_smartor * @version $Id: admin_album_cfg.php,v 1.1 2007/06/07 20:13:05 orynider Exp $ * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ 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 = '../../../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); require($mx_root_path . 'admin/pagestart.' . $phpEx); require($module_root_path . 'album_mod/album_constants.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_admin_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin_album.' . $phpEx ); } if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_main_album.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main_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] = $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_cfg.$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_cfg.'.$phpEx), // Index '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_LAST_PIC_LV_ENABLED' => ($new['show_index_last_pic_lv'] == 1) ? 'checked="checked"' : '', 'INDEX_LAST_PIC_LV_DISABLED' => ($new['show_index_last_pic_lv'] == 0) ? 'checked="checked"' : '', 'INDEX_LINEBREAK_ENABLED' => ($new['line_break_subcats'] == 1) ? 'checked="checked"' : '', 'INDEX_LINEBREAK_DISABLED' => ($new['line_break_subcats'] == 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"' : '', 'NEW_PIC_CHECK_INTERVAL' => $new['new_pic_check_interval'], 'INDEX_SUPERCELLS_ENABLED' => ($new['index_enable_supercells'] == 1) ? 'checked="checked"' : '', 'INDEX_SUPERCELLS_DISABLED' => ($new['index_enable_supercells'] == 0) ? 'checked="checked"' : '', '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_PERSONAL_GALLERY_LINK' => $lang['Show_Personal_Gallery_Link'], 'L_NEW_PIC_CHECK_INTERVAL' => $lang['New_Pic_Check_Interval'], 'L_NEW_PIC_CHECK_INTERVAL_DESC' => $lang['New_Pic_Check_Interval_Desc'], 'L_NEW_PIC_CHECK_INTERVAL_LV' => $lang['New_Pic_Check_Interval_LV'], 'L_ENABLE_SUPERCELLS' => $lang['Enable_Index_Supercells'], // Display OTF Link 'L_SHOW_OTF_LINK' => $lang['Show_OTF_Link'], 'SHOW_OTF_LINK_ENABLED' => ($new['show_otf_link'] == 1) ? 'checked="checked"' : '', 'SHOW_OTF_LINK_DISABLED' => ($new['show_otf_link'] == 0) ? 'checked="checked"' : '', // Display All Pics Link 'L_SHOW_ALL_PICS_LINK' => $lang['Show_AllPics_Link'], 'SHOW_ALL_PICS_LINK_ENABLED' => ($new['show_all_pics_link'] == 1) ? 'checked="checked"' : '', 'SHOW_ALL_PICS_LINK_DISABLED' => ($new['show_all_pics_link'] == 0) ? 'checked="checked"' : '', // Display PG Link 'L_SHOW_PERSONAL_GALLERIES_LINK' => $lang['Show_PG_Link'], 'SHOW_PERSONAL_GALLERIES_LINK_ENABLED' => ($new['show_personal_galleries_link'] == 1) ? 'checked="checked"' : '', 'SHOW_PERSONAL_GALLERIES_LINK_DISABLED' => ($new['show_personal_galleries_link'] == 0) ? 'checked="checked"' : '', // Display All Pics Link 'L_SHOW_LAST_COMMENTS' => $lang['Show_Last_Comments'], 'SHOW_LAST_COMMENTS_ENABLED' => ($new['show_last_comments'] == 1) ? 'checked="checked"' : '', 'SHOW_LAST_COMMENTS_DISABLED' => ($new['show_last_comments'] == 0) ? 'checked="checked"' : '', 'MAX_PICS' => $new['max_pics'], 'MAX_FILE_SIZE' => $new['max_file_size'], 'MAX_FILE_SIZE_RESAMPLING' => $new['max_file_size_resampling'], 'MAX_WIDTH' => $new['max_width'], 'MAX_HEIGHT' => $new['max_height'], 'MAX_FILES_TO_UPLOAD' => $new['max_files_to_upload'], 'MAX_PREGENERATED_FIELDS' => $new['max_pregenerated_fields'], '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'], 'SET_MEMORY' => $new['set_memory'], 'DYNAMIC_PIC_RESAMPLING_ENABLED' => ($new['dynamic_pic_resampling'] == 1) ? 'checked="checked"' : '', 'DYNAMIC_PIC_RESAMPLING_DISABLED' => ($new['dynamic_pic_resampling'] == 0) ? 'checked="checked"' : '', 'THUMBNAIL_CACHE_ENABLED' => ($new['thumbnail_cache'] == 1) ? 'checked="checked"' : '', 'THUMBNAIL_CACHE_DISABLED' => ($new['thumbnail_cache'] == 0) ? 'checked="checked"' : '', '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"' : '', 'PROPERCASE_TITLE_ENABLED' => ($new['propercase_pic_title'] == 1) ? 'checked="checked"' : '', 'PROPERCASE_TITLE_DISABLED' => ($new['propercase_pic_title'] == 0) ? 'checked="checked"' : '', 'SHOW_DOWNLOAD_ALWAYS' => ($new['show_download'] == 2) ? 'checked="checked"' : '', 'SHOW_DOWNLOAD_ENABLED' => ($new['show_download'] == 1) ? 'checked="checked"' : '', 'SHOW_DOWNLOAD_DISABLED' => ($new['show_download'] == 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"' : '', 'SHOW_SLIDESHOW_ENABLED' => ($new['show_slideshow'] == 1) ? 'checked="checked"' : '', 'SHOW_SLIDESHOW_DISABLED' => ($new['show_slideshow'] == 0) ? 'checked="checked"' : '', 'SLIDESHOW_SCRIPT_ENABLED' => ($new['slideshow_script'] == 1) ? 'checked="checked"' : '', 'SLIDESHOW_SCRIPT_DISABLED' => ($new['slideshow_script'] == 0) ? 'checked="checked"' : '', 'SHOW_PICS_NAV_ENABLED' => ($new['show_pics_nav'] == 1) ? 'checked="checked"' : '', 'SHOW_PICS_NAV_DISABLED' => ($new['show_pics_nav'] == 0) ? 'checked="checked"' : '', // Invert Nav Arrows 'INVERT_NAV_ARROWS_ENABLED' => ($new['invert_nav_arrows'] == 1) ? 'checked="checked"' : '', 'INVERT_NAV_ARROWS_DISABLED' => ($new['invert_nav_arrows'] == 0) ? 'checked="checked"' : '', 'SHOW_INLINE_COPYRIGHT_ENABLED' => ($new['show_inline_copyright'] == 1) ? 'checked="checked"' : '', 'SHOW_INLINE_COPYRIGHT_DISABLED' => ($new['show_inline_copyright'] == 0) ? 'checked="checked"' : '', 'NUFFIMAGE_ENABLED' => ($new['enable_nuffimage'] == 1) ? 'checked="checked"' : '', 'NUFFIMAGE_DISABLED' => ($new['enable_nuffimage'] == 0) ? 'checked="checked"' : '', 'SEPIABW_ENABLED' => ($new['enable_sepia_bw'] == 1) ? 'checked="checked"' : '', 'SEPIABW_DISABLED' => ($new['enable_sepia_bw'] == 0) ? 'checked="checked"' : '', 'SHOW_EXIF_ENABLED' => ($new['show_exif'] == 1) ? 'checked="checked"' : '', 'SHOW_EXIF_DISABLED' => ($new['show_exif'] == 0) ? 'checked="checked"' : '', 'S_GUEST' => ALBUM_GUEST, 'S_USER' => ALBUM_USER, 'S_PRIVATE' => ALBUM_PRIVATE, 'S_MOD' => ALBUM_MOD, 'S_ADMIN' => ALBUM_ADMIN, //--- Language Setup 'L_MAX_PICS' => $lang['Max_pics'], 'L_MAX_FILE_SIZE' => $lang['Max_file_size'], 'L_MAX_FILE_SIZE_RESAMPLING' => $lang['Max_file_size_resampling'], 'L_MAX_WIDTH' => $lang['Max_width'], 'L_MAX_HEIGHT' => $lang['Max_height'], 'L_MAX_FILES_TO_UPLOAD' => $lang['Max_Files_To_Upload'], 'L_DYNAMIC_PIC_RESAMPLING' => $lang['Pic_Resampling'], 'L_ALBUM_UPLOAD_SETTINGS' => $lang['Album_upload_settings'], 'L_MAX_PREGENERATED_FIELDS' => $lang['Max_pregenerated_fields'], 'L_PROPERCASE_TITLE' => $lang['Propercase_pic_title'], '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_SHOW_DOWNLOAD' => $lang['Show_Download'], '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'], 'L_SHOW_SLIDESHOW' => $lang['Show_Slideshow'], 'L_SHOW_SLIDESHOW_SCRIPT' => $lang['Show_Slideshow_Script'], 'L_SHOW_PICS_NAV' => $lang['Show_Pics_Nav'], 'L_INVERT_NAV_ARROWS' => $lang['Invert_Nav_Arrows'], 'L_SHOW_INLINE_COPYRIGHT' => $lang['Show_Inline_Copyright'], 'L_ENABLE_NUFFIMAGE' => $lang['Enable_Nuffimage'], 'L_ENABLE_SEPIA_BW' => $lang['Enable_Sepia_BW'], 'L_SHOW_EXIF' => $lang['Show_EXIF_Info'], 'L_ALBUM_DEBUG_MODE' => $lang['Album_debug_mode'], 'L_SET_MEMORY' => $lang['Set_Memory'], 'L_SET_MEMORY_EXPLAIN' => $lang['Set_Memory_Explain'], 'L_DISABLED' => $lang['Disabled'], 'L_ENABLED' => $lang['Enabled'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_ALWAYS' => $lang['SP_Always'], '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 */ ?> Index: admin_album_auth.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_auth.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin_album_auth.php 30 Jun 2006 21:10:54 -0000 1.9 --- admin_album_auth.php 7 Jun 2007 20:13:02 -0000 1.10 *************** *** 4,48 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ ! ! 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 = './../../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! include_once( $module_root_path . 'album_mod/album_common.' . $phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } ! else { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } ! $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 ." --- 4,63 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! 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 = '../../../'; + $phpEx = substr(strrchr(__FILE__, '.'), 1); + require($mx_root_path . 'admin/pagestart.' . $phpEx); ! define('ALBUM_MOD_PATH', 'album_mod/'); ! ! // Get general album information ! if (!isset($album_root_path) || empty($album_root_path)) ! { ! $album_root_path = $module_root_path . ALBUM_MOD_PATH . ''; ! } ! ! require($album_root_path . 'album_common.'.$phpEx); ! // require($module_root_path . 'album_mod/album_constants.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_admin_album.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_admin_album.' . $phpEx ); ! } ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main_album.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main_album.' . $phpEx ); } ! if( !isset($HTTP_POST_VARS['submit']) ) { ! // Build the category selector $sql = "SELECT cat_id, cat_title, cat_order FROM ". ALBUM_CAT_TABLE ." *************** *** 65,100 **** ); } - */ - 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'], --- 80,111 ---- ); } ! $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']) ! ); ! $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'], *************** *** 112,201 **** '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 ); } } ?> \ No newline at end of file --- 123,220 ---- '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_clearcache.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_clearcache.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin_album_clearcache.php 30 Jun 2006 21:10:55 -0000 1.9 --- admin_album_clearcache.php 7 Jun 2007 20:13:03 -0000 1.10 *************** *** 4,20 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ - /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ - define( 'IN_PORTAL', 1 ); ! if ( !empty( $setmodules ) ) { ! $filename = basename( __FILE__ ); ! $module['Smartor_Album']['Clear_Cache'] = "modules/mx_smartor/admin/" . $filename; return; } --- 4,18 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', 1 ); ! if( !empty($setmodules) ) { ! $filename = basename(__FILE__); ! $module['Smartor_Album']['Clear_Cache'] = "modules/mx_smartor/admin/" .$filename; return; } *************** *** 23,84 **** // Let's set the root dir for phpBB // ! $module_root_path = './../'; ! $mx_root_path = './../../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! require( $mx_root_path . 'admin/pagestart.' . $phpEx ); ! include_once( $module_root_path . 'album_mod/album_common.' . $phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } ! if ( !isset( $HTTP_POST_VARS['confirm'] ) ) { // // Start output of page // ! $template->set_filenames( array( 'body' => 'confirm_body.tpl' ) ); ! $template->assign_vars( array( 'MESSAGE_TITLE' => $lang['Confirm'], ! 'MESSAGE_TEXT' => $lang['Album_clear_cache_confirm'], 'L_NO' => $lang['No'], 'L_YES' => $lang['Yes'], ! 'S_CONFIRM_ACTION' => append_sid( "admin_album_clearcache.$phpEx" ), ! )); // // Generate the page // ! $template->pparse( 'body' ); ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); } else { ! $cache_dir = @opendir( '../' . ALBUM_CACHE_PATH ); ! while ( $cache_file = @readdir( $cache_dir ) ) { ! if ( preg_match( '/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $cache_file ) ) { ! @unlink( '../' . ALBUM_CACHE_PATH . $cache_file ); } } ! @closedir( $cache_dir ); ! mx_message_die( GENERAL_MESSAGE, $lang['Thumbnail_cache_cleared_successfully'] ); } ?> \ No newline at end of file --- 21,89 ---- // Let's set the root dir for phpBB // ! $module_root_path = '../'; ! $mx_root_path = '../../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! require($mx_root_path . 'admin/pagestart.' . $phpEx); ! require($module_root_path . 'album_mod/album_constants.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_admin_album.' . $phpEx ); } else { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin_album.' . $phpEx ); } ! ! if( !isset($HTTP_POST_VARS['confirm']) ) { // // Start output of page // ! $template->set_filenames(array( ! 'body' => 'admin/album_config_clearcache_body.tpl') ! ); ! $template->assign_vars(array( 'MESSAGE_TITLE' => $lang['Confirm'], ! 'CLEARCACHE_TEXT' => $lang['Album_clear_cache_confirm'], 'L_NO' => $lang['No'], 'L_YES' => $lang['Yes'], ! 'S_CONFIRM_ACTION' => append_sid("admin_album_clearcache.$phpEx"), ! ) ! ); // // Generate the page // ! $template->pparse('body'); ! include($mx_root_path . 'admin/page_footer_admin.'.$phpEx); } else { ! $cache_dir = @opendir('../' . ALBUM_CACHE_PATH); ! while( $cache_file = @readdir($cache_dir) ) { ! if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $cache_file) ) { ! @unlink('../' . ALBUM_CACHE_PATH . $cache_file); } } ! @closedir($cache_dir); ! mx_message_die(GENERAL_MESSAGE, $lang['Thumbnail_cache_cleared_successfully']); } + + /* Powered by Photo Album v2.x.x (c) 2002-2003 Smartor */ + ?> \ No newline at end of file --- NEW FILE: admin_album_ext.php --- <?php /** * * @package mxBB Portal Module - mx_smartor * @version $Id: admin_album_ext.php,v 1.1 2007/06/07 20:13:08 orynider Exp $ * @copyright (c) 2002-2006 [Markus, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', 1 ); if ( !empty( $setmodules ) ) { $file = basename( __FILE__ ); $module['Smartor_Album']['Configuration ext'] = 'modules/mx_smartor/admin/' . $file; return; } $mx_root_path = './../../../'; $module_root_path = "./../"; $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); define('ALBUM_MOD_PATH', 'album_mod/'); // Get general album information if (!isset($album_root_path) || empty($album_root_path)) { $album_root_path = $module_root_path . ALBUM_MOD_PATH . ''; } include_once($album_root_path . 'album_common.'.$phpEx); // include_once( $module_root_path . 'album_mod/album_constants.'.$phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } // // Mode setting // $mode = $mx_request_vars->request('mode', MX_TYPE_NO_TAGS, ''); // // Main db settings // Pull all config data // $sql = "SELECT * FROM " . ALBUM_CONFIG_TABLE; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( CRITICAL_ERROR, "Could not query phpbb plugin base configuration 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] = $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 general configuration for $config_name", "", __LINE__, __FILE__, $sql ); } } } $db->sql_freeresult($result); 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_ext.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); mx_message_die( GENERAL_MESSAGE, $message ); } } // // Populate parameter variables // $album_index = $new['index']; // $other = $new['other']; $override_default_pages = $new['override_default_pages']; $integration_enabled = $new['enable_integration']; // // Get page_list selects // $pagelist_index = get_list_formatted('page_list', $new['index'], 'index'); // $pagelist_other = get_list_formatted('page_list', $new['other'], 'other'); // // Start page proper // $template->set_filenames( array( "body" => "admin/album_admin_body_ext.tpl" )); $template->assign_vars( array( 'S_ALBUM_ACTION' => append_sid( "admin_album_ext.$phpEx" ), 'L_ALBUM_TITLE' => $lang['mx_album_admin'], 'L_ALBUM_EXPLAIN' => $lang['mx_album_admin_explain'], 'L_DEFAULT_PAGES_TITLE' => $lang['default_pages_title'], 'L_DEFAULT_PAGES_TITLE_EXPLAIN' => $lang['default_pages_title_explain'], 'L_DEFAULT_PAGES_MORE_TITLE' => $lang['default_pages_more_title'], 'L_DEFAULT_PAGES_MORE_TITLE_EXPLAIN' => $lang['default_pages_more_title_explain'], // // Enable/Disable phpBB integration // 'L_ALBUM_INTEGRATION_ENABLED' => $lang['integration_enabled'], 'L_ALBUM_INTEGRATION_ENABLED_EXPLAIN' => $lang['integration_enabled_explain'], 'L_ALBUM_INTEGRATION_ENABLED_YES' => $lang['integration_enabled_yes'], 'L_ALBUM_INTEGRATION_ENABLED_NO' => $lang['integration_enabled_no'], 'ALBUM_INTEGRATION_ENABLED_YES' => ( $integration_enabled == '1' ) ? ' checked="checked"' : '', 'ALBUM_INTEGRATION_ENABLED_NO' => ( $integration_enabled == '0' ) ? ' checked="checked"' : '', // // Default static settings or block settings // 'L_OVERRIDE_DEFAULT_PAGES' => $lang['override'], 'L_OVERRIDE_DEFAULT_PAGES_EXPLAIN' => $lang['override_explain'], 'L_OVERRIDE_DEFAULT_PAGES_YES' => $lang['override_yes'], 'L_OVERRIDE_DEFAULT_PAGES_NO' => $lang['override_no'], 'OVERRIDE_DEFAULT_PAGES_CHECKBOX_YES' => ( $override_default_pages == '1' ) ? ' checked="checked"' : '', 'OVERRIDE_DEFAULT_PAGES_CHECKBOX_NO' => ( $override_default_pages == '0' ) ? ' checked="checked"' : '', 'L_ALBUM_INDEX' => $lang['index'], 'ALBUM_INDEX' => $pagelist_index, // 'L_SUBMIT' => $lang['submit'], // 'L_RESET' => $lang['reset'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'] )); $template->pparse( "body" ); include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> Index: admin_album_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/admin/admin_album_cat.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin_album_cat.php 30 Jun 2006 21:10:55 -0000 1.9 --- admin_album_cat.php 7 Jun 2007 20:13:02 -0000 1.10 *************** *** 1,20 **** <?php ! /** ! * ! * @package mxBB Portal Module - mx_smartor ! * @version $Id$ ! * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * ! */ [...1124 lines suppressed...] + // This category is now emptied, we can remove it! ! $sql = "DELETE FROM ". ALBUM_CAT_TABLE ." WHERE cat_id = '$cat_id'"; ! if(!$result = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, 'Could not delete this Category', '', __LINE__, __FILE__, $sql); } + // Re-order the rest of categories ! album_reorder_cat(); ! // Return a message... ! showResultMessage($lang['Category_deleted']); } } } + ?> \ No newline at end of file --- NEW FILE: admin_album_otf.php --- <?php /*************************************************************************** * admin_album_otf.php * ------------------- * begin : 2006/03/02 * copyright : Mighty Gorgon * email : mig...@mi... * version : 1.0.0 * ***************************************************************************/ /*************************************************************************** * * 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 ) ) { $file = basename( __FILE__ ); $module['Smartor_Album']['Configuration otf'] = 'modules/mx_smartor/admin/' . $file; return; } $mx_root_path = './../../../'; $module_root_path = "./../"; $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); // Start session management $mx_user->init($user_ip, PAGE_INDEX); // End session management define('ALBUM_MOD_PATH', 'album_mod/'); // Get general album information if (!isset($album_root_path) || empty($album_root_path)) { $album_root_path = $module_root_path . ALBUM_MOD_PATH . ''; } include_once($album_root_path . 'album_common.'.$phpEx); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } /* global $album_config, $template, $lang, $images, $theme; global $mx_root_path, $phpEx; */ if( isset($_GET['pic_id']) ) { $pic_id = $_GET['pic_id']; } elseif( isset($_POST['pic_id']) ) { $pic_id = $_POST['pic_id']; } else { $pic_id = ''; } if( isset($_GET['pic_cat']) ) { $pic_cat = $_GET['pic_cat']; } elseif( isset($_POST['pic_cat']) ) { $pic_cat = $_POST['pic_cat']; } else { $pic_cat = ''; } /* if ( !empty($_POST['pic_cat']) ) { $pic_cat = htmlspecialchars($_POST['pic_cat']); } elseif ( !empty($_GET['pic_cat']) ) { $pic_cat = htmlspecialchars($_GET['pic_cat']); } */ $upload_pics = false; $cat_to_upload = false; if( isset($_POST['pic_upload']) ) { if ( ($_POST['pic_upload'] == true) && (isset($_POST['cat_id'])) ) { $cat_to_upload = $_POST['cat_id']; $upload_pics = true; } } if( isset($_GET['mode']) ) { $mode = $_GET['mode']; } elseif( isset($_POST['mode']) ) { $mode = $_POST['mode']; } else { $mode = ''; } if ( ($mode == 'delete') && ($pic_id != '') ) { $pic_id = basename($pic_id); if ( $pic_id != '' ) { if ( @file_exists(@phpbb_realpath('./' . ALBUM_OTF_PATH . '/' . $pic_id)) ) { @unlink('./' . ALBUM_OTF_PATH . '/' . $pic_id); } } } $pic_images = array(); $pic_cat_names = array(); $pic_file_names = array(); $pic_names = array(); $dir = @opendir(ALBUM_OTF_PATH); //while( $file = @readdir($dir) ) while(false !== ($file = readdir($dir))) { if( ($file != '.') && ($file != '..') && (!is_file(ALBUM_OTF_PATH . '/' . $file)) && (!is_link(ALBUM_OTF_PATH . '/' . $file)) ) { $sub_dir = @opendir(ALBUM_OTF_PATH . '/' . $file); $pic_row_count = 0; $pic_col_count = 0; while( $sub_file = @readdir($sub_dir) ) { if( preg_match('/(\.gif$|\.png$|\.jpg|\.jpeg)$/is', $sub_file) ) { $pic_images[$file][$pic_row_count][$pic_col_count] = $file . '/' . $sub_file; $pic_cat_names[$file][$pic_row_count][$pic_col_count] = $file; $pic_file_names[$file][$pic_row_count][$pic_col_count] = $sub_file; $pic_names[$file][$pic_row_count][$pic_col_count] = ucfirst(str_replace("_", " ", preg_replace('/^(.*)\..*$/', '\1', $sub_file))); $pic_col_count++; if( $pic_col_count == $album_config['cols_per_page'] ) { $pic_row_count++; $pic_col_count = 0; } } } } } @closedir($dir); @ksort($pic_images); @reset($pic_images); if( empty($pic_cat) ) { list($pic_cat) = each($pic_images); } @reset($pic_images); $s_categories = '<select name="pic_cat">'; while( list($key) = each($pic_images) ) { $selected = ( $key == $pic_cat ) ? ' selected="selected"' : ''; if( count($pic_images[$key]) ) { $s_categories .= '<option value="' . $key . '"' . $selected . '>' . ucfirst($key) . '</option>'; } } $s_categories .= '</select>'; $s_colspan = 0; $pic_cat_reg = ereg_replace("[^A-Za-z0-9]", "_", $pic_cat); $js_include = ''; $js_images_list = ''; if ($album_config['enable_mooshow'] == 1) { $template->assign_block_vars('mooshow', array()); $js_images_list = get_images_list(ALBUM_OTF_PATH . '/' . $pic_cat, $pic_cat_reg); $js_include .= '<script language="JavaScript" type="text/javascript" src="' . ALBUM_MOD_PATH . 'prototype.lite.js"></script>' . "\n"; $js_include .= '<script language="JavaScript" type="text/javascript" src="' . ALBUM_MOD_PATH . 'moo.fx.js"></script>' . "\n"; $js_include .= '<script language="JavaScript" type="text/javascript" src="' . ALBUM_MOD_PATH . 'moo.fx.pack.js"></script>' . "\n"; $js_include .= '<script language="JavaScript" type="text/javascript" src="' . ALBUM_MOD_PATH . 'mooshow.1.04.js"></script>' . "\n"; $js_include .= '<script language="JavaScript" type="text/javascript">var showsIE = new Array("' . $pic_cat_reg . '");</script>' . "\n"; } // Upload To Album - BEGIN $select_cat = ''; if($userdata['user_level'] == ADMIN) { $template->assign_block_vars('upload_allowed', array()); $cat_id = ALBUM_ROOT_CATEGORY; album_read_tree($userdata['user_id'], ALBUM_READ_ALL_CATEGORIES|ALBUM_AUTH_VIEW_AND_UPLOAD); $userinfo = album_get_nonexisting_personal_gallery_info(); $count = count($userinfo); for($idx=0; $idx < count; $idx++) { $personal_gallery = init_personal_gallery_cat($userinfo[$idx]['user_id']); $album_user_access = album_permissions($userinfo[$idx]['user_id'], 0, ALBUM_AUTH_CREATE_PERSONAL, $personal_gallery); if (album_check_permission($album_user_access, ALBUM_AUTH_CREATE_PERSONAL) == true) { $selected = (($userdata['user_id'] == $userinfo[$idx]['user_id'])) ? ' selected="selected"' : ''; $personal_gallery_list .= '<option value="-' . $userinfo[$idx]['user_id'] . '" ' . $selected . '>' . sprintf($lang['Personal_Gallery_Of_User'], $userinfo[$idx]['username']) . '</option>'; } } if (!empty($personal_gallery_list)) { $personal_gallery_list = '<option value="' . ALBUM_JUMPBOX_SEPERATOR . '">------------------------------</option>' . $personal_gallery_list; } $temp_tree = album_get_tree_option($cat_id, ALBUM_AUTH_VIEW_AND_UPLOAD) . $personal_gallery_list; if ($temp_tree == '') { mx_message_die(GENERAL_ERROR, $lang['No_category_to_upload']); } $select_cat = '<select name="cat_id">'; $select_cat .= $temp_tree; $select_cat .= '</select>'; unset($personal_gallery_list); album_free_album_data(); } // Upload To Album - END $page_title = $lang['Album']; $template->set_filenames( array( "body" => "admin/album_admin_otf.tpl" )); // Upload To Album - BEGIN $upload_counter = 0; $otf_pic_time = time(); for($i = 0; $i < count($pic_images[$pic_cat]); $i++) { $template->assign_block_vars('pic_row', array()); $s_colspan = max($s_colspan, count($pic_images[$pic_cat][$i])); $s_colwidth = ( $s_colspan == 0 ) ? '100%' : 100 / $s_colspan . '%'; for($j = 0; $j < count($pic_images[$pic_cat][$i]); $j++) { $otf_pic_time = $otf_pic_time + 1; $pic_img_url = append_sid(ALBUM_OTF_PATH . $pic_images[$pic_cat][$i][$j]); $pic_thumbnail = $pic_images[$pic_cat][$i][$j]; $pic_thumbnail = $pic_cat_names[$pic_cat][$i][$j] . '_' . $pic_file_names[$pic_cat][$i][$j]; $pic_thumbnail_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail; /* if ( file_exists($pic_thumbnail_fullpath) ) { $pic_img_thumb = $pic_thumbnail_fullpath; } else { $pic_img_thumb = append_sid(this_smartor_mxurl("smartor_mode=album_otf_thumbnail" . '&pic_cat=' . $pic_cat_names[$pic_cat][$i][$j] . '&pic_id=' . $pic_file_names[$pic_cat][$i][$j])); } */ $pic_img_thumb = append_sid(this_smartor_mxurl("smartor_mode=album_otf_thumbnail" . '&pic_cat=' . $pic_cat_names[$pic_cat][$i][$j] . '&pic_id='... [truncated message content] |
Update of /cvsroot/mxbb/mx_smartor In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232 Modified Files: Smartor_album.pak album.php album_lists.php db_install.php db_uninstall.php db_upgrade.php mx_install_readme.htm Log Message: Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_uninstall.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** db_uninstall.php 2 May 2006 23:29:32 -0000 1.9 --- db_uninstall.php 7 Jun 2007 20:13:00 -0000 1.10 *************** *** 4,50 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! define( 'IN_PORTAL', true ); ! if ( !defined( 'IN_ADMIN' ) ) { ! $mx_root_path = './../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include( $mx_root_path . 'common.' . $phpEx ); ! // Start session management ! $$mx_user->init($user_ip, PAGE_INDEX); ! ! if ( !$userdata['session_logged_in'] ) ! { ! die( "Hacking attempt(1)" ); ! } ! if ( $userdata['user_level'] != ADMIN ) ! { ! die( "Hacking attempt(2)" ); } ! // End session management } ! $sql = array( "DROP TABLE " . $mx_table_prefix . "smartor_album ", ! "DROP TABLE " . $mx_table_prefix . "smartor_album_rate ", ! "DROP TABLE " . $mx_table_prefix . "smartor_album_comment ", ! "DROP TABLE " . $mx_table_prefix . "smartor_album_cat ", ! "DROP TABLE " . $mx_table_prefix . "smartor_album_config ", ! "DROP TABLE " . $mx_table_prefix . "smartor_album_sp_config " ! ); echo "<br /><br />"; ! echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; ! echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; ! echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . mx_do_install_upgrade( $sql ) . "</span></td></tr>"; echo "</table><br />"; --- 4,74 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! define('IN_PORTAL', true); ! if ( !defined('IN_ADMIN') ) { ! $mx_root_path = '../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! ! if( !$userdata['session_logged_in'] ) ! { ! die("Hacking attempt(3)"); ! } ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); } ! // ! // End session management ! // ! } + $sql = array( + "DROP TABLE ".$mx_table_prefix."smartor_album ", ! "DROP TABLE ".$mx_table_prefix."smartor_album_rate ", ! "DROP TABLE ".$mx_table_prefix."smartor_album_comment ", ! "DROP TABLE ".$mx_table_prefix."smartor_album_cat ", ! "DROP TABLE ".$mx_table_prefix."smartor_album_config ", ! "DROP TABLE ".$mx_table_prefix."smartor_album_sp_config " ! ); ! $n = 0; ! $message = "<b>This list is a result of the SQL queries needed for smartor module</b><br /><br />"; + while($sql[$n]) + { + $message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br />' : ''; + if(!$result = $db->sql_query($sql[$n])) + { + $message .= '<b><font color=#FF0000>[Error, Already deleted or updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; + } + else + { + $message .='<b><font color=#0000fF>[Deleted/Updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; + } + $n++; + } + + $message .= '<br /> If you get some Error, Already Deleted or Updated, relax, this is normal ;)'; echo "<br /><br />"; ! echo "<table cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; ! echo "<tr><th class=\"thHead\" align=\"center\">Module Uninstallation Information</th></tr>"; ! echo "<tr><td class=\"row1\" align=\"center\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; Index: album.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** album.php 30 Jun 2006 21:10:55 -0000 1.13 --- album.php 7 Jun 2007 20:13:00 -0000 1.14 *************** *** 4,99 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! // +--------------------------------------------------------+ ! // | Powered by Photo Album 2.x.x (c) 2002-2003 Smartor | ! // | with Volodymyr (CLowN) Skoryk's Service Pack 1 © 2003 | [...1649 lines suppressed...] ! // if (empty($album_view_mode)) ! // { ! album_display_index($album_user_id, ALBUM_ROOT_CATEGORY, true, true, true); ! // } ! // Generate the page ! $template->pparse('body'); ! if ( !is_object($mx_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 Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_upgrade.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** db_upgrade.php 30 Jan 2007 16:26:10 -0000 1.14 --- db_upgrade.php 7 Jun 2007 20:13:01 -0000 1.15 *************** *** 4,8 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * --- 4,8 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2002-2006 [Markus, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * *************** *** 30,101 **** } ! $mx_module_version = '2.0.0-beta'; ! $mx_module_copy = 'Original phpBB <i>Album</i> MOD by <a href="http://smartor.is-root.com" target="_blank">Smartor & Clown</a> :: Adapted for mxBB by <a href="http://www.mxbb.net" target="_blank">Jon</a>'; $sql = array(); // Precheck ! if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "kb_config" ) ) { // Upgrade checks ! $upgrade_101 = 0; ! $upgrade_102 = 0; ! $upgrade_103 = 0; ! // validate before 1.03 ! if ( !$result = $db->sql_query( "SELECT comment_cat_id from " . $mx_table_prefix . "smartor_album_comment" ) ) { ! $upgrade_103 = 1; } ! // validate before 1.04 ! if ( !$result = $db->sql_query( "SELECT cat_parent from " . $mx_table_prefix . "smartor_album_cat" ) ) { ! $upgrade_104 = 1; } $message = "<b>Upgrading!</b><br/><br/>"; ! if ( $upgrade_103 == 1 ) { ! $message .= "<b>Upgrading to v. 1.03...</b><br/><br/>"; ! // $sql[] ="INSERT INTO ".$mx_table_prefix."kb_config VALUES ('votes_check_userid', '1')"; ! // $sql[] ="INSERT INTO ".$mx_table_prefix."kb_config VALUES ('votes_check_ip', '1')"; ! // $sql[] ="INSERT INTO ".$mx_table_prefix."kb_config VALUES ('art_pagination', '5')"; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "smartor_album_comment ADD comment_cat_id int(11) NOT NULL AFTER comment_pic_id"; ! $sql[] = "UPDATE " . $mx_table_prefix . "smartor_album_config" . " ! SET config_value = '.0.53' ! WHERE config_name = 'album_version'"; ! } ! if ( $upgrade_104 == 1 ) { ! $message .= "<b>Upgrading to v. 1.04...subcats</b><br/><br/>"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "smartor_album_cat ADD cat_parent MEDIUMINT( 8 ) UNSIGNED DEFAULT '0' NULL AFTER cat_approval"; ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "smartor_album_cat ADD cat_user_id MEDIUMINT( 8 ) UNSIGNED DEFAULT '0' NULL AFTER cat_parent"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_thumb', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_total_pics', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_last_pic', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_pics', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('line_break_subcats', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_subcats', '1')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_total_comments', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_comments', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_index_last_comment', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_recent_in_subcats', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_recent_instead_of_nopics', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_personal_gallery_link', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('personal_allow_gallery_mod', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('personal_allow_sub_categories', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('personal_sub_category_limit', '-1')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('personal_show_subcats_in_index', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('personal_show_recent_in_subcats', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('personal_show_recent_instead_of_nopics', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('album_category_sorting', 'cat_order')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('album_category_sorting_direction', 'ASC')"; ! // --- version 1.2.0 ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('album_debug_mode', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('show_all_in_personal_gallery', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('new_pic_check_interval', '1M')"; ! // --- version 1.3.0 ! $sql[] = "INSERT INTO " . $mx_table_prefix . "smartor_album_config ( config_name , config_value ) VALUES ('index_enable_supercells', '1')"; } else --- 30,160 ---- } ! $mx_module_version = '2.0.0'; ! $mx_module_copy = 'mxBB <i> - smartor album FAP </i> module by Mighty Gorgon & <a href="http://www.mxbb.net" target="_blank">The mxBB Development Team</a>'; $sql = array(); + + // // Precheck ! // ! if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "smartor_album_config" ) ) { + // // Upgrade checks ! // ! $upgrade_2000 = 0; ! $upgrade_2001 = 0; ! ! // ! // validate before 2.00 ! // ! $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "smartor_album_config WHERE config_name = 'enable_integration'" ); ! if ( $db->sql_numrows( $result ) == 0 ) { ! $upgrade_2000 = 1; } ! ! $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "smartor_album_config WHERE config_name = 'show_otf_link'" ); ! if ( $db->sql_numrows( $result ) == 0 ) { ! $upgrade_2001 = 1; } $message = "<b>Upgrading!</b><br/><br/>"; ! if ( $upgrade_2000 == 1 ) { ! $message .= "<b>Upgrading to v. 2.00 Beta 1...</b><br/><br/>"; ! $sql[] = "UPDATE ". $mx_table_prefix ."smartor_album_config ! SET config_value = '0.54' ! WHERE config_name = 'album_version'"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_cat ADD cat_wm TEXT AFTER cat_desc"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_cat ADD cat_parent MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0' AFTER cat_approval"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_cat ADD cat_user_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0' AFTER cat_parent"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('fap_version', '1.4.0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_thumb', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_total_pics', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_total_comments', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_comments', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_comment', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_pic', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_pics', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_recent_in_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_recent_instead_of_nopics', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('line_break_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_gallery_mod', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_sub_categories', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_sub_category_limit', '-1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_subcats_in_index', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_recent_in_subcats', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_recent_instead_of_nopics', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_personal_gallery_link', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_category_sorting', 'cat_order')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_category_sorting_direction', 'ASC')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_debug_mode', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_all_in_personal_gallery', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('new_pic_check_interval', '1M')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('index_enable_supercells', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('email_notification', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_download', '2')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_slideshow', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_pic_size_on_thumb', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_files_to_upload', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_pregenerated_fields', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('dynamic_fields', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('pregenerate_fields', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('propercase_pic_title', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_pic_lv', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_pics_approval', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_img_no_gd', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('dynamic_pic_resampling', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_file_size_resampling', '1024000')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('switch_nuffload', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('path_to_bin', './modules/mx_smartor/cgi-bin/')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('perl_uploader', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_progress_bar', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('close_on_finish', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_pause', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('simple_format', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('multiple_uploads', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_uploads', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('zip_uploads', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_pic', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_width', '600')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_height', '600')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_quality', '70')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_pics_nav', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_inline_copyright', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_nuffimage', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_sepia_bw', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_avatar_gallery', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_gif_mid_thumb', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('slideshow_script', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_exif', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_bbcode', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('quick_thumbs', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('set_memory', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('lb_preview', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('use_old_pics_gen', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_last_comments', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_mooshow', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_integration', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('override_default_pages', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('index', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('disp_mostv', '1')"; ! } ! if ( $upgrade_2001 == 1 ) { ! $message .= "<b>Upgrading to v. 2.00 Beta 2...</b><br/><br/>"; ! $sql[] = "UPDATE ". $mx_table_prefix ."smartor_album_config ! SET config_value = '1.4.1' ! WHERE config_name = 'fap_version'"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('invert_nav_arrows', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_otf_link', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_all_pics_link', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_personal_galleries_link', '1')"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_comment ADD comment_cat_id int(11) NOT NULL default '0' AFTER comment_pic_id"; } else *************** *** 113,117 **** --- 172,178 ---- else { + // // If not installed + // $message = "<b>Module is not installed...and thus cannot be upgraded ;)</b><br/><br/>"; } *************** *** 123,130 **** echo "</table><br />"; - if ( $upgrade_104 == 1 || 1 == 1 ) - { - include( 'hierarchy_db_migrate.' . $phpEx ); - } - ?> --- 184,186 ---- Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/db_install.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** db_install.php 30 Jan 2007 16:26:10 -0000 1.14 --- db_install.php 7 Jun 2007 20:13:00 -0000 1.15 *************** *** 4,13 **** * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2002-2006 [Smartor, Volodymyr (CLowN) Skoryk, IdleVoid, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ - define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { --- 4,13 ---- * @package mxBB Portal Module - mx_smartor * @version $Id$ ! * @copyright (c) 2003 [ory...@rd..., OryNider] mxBB Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); + if ( !defined( 'IN_ADMIN' ) ) { *************** *** 15,20 **** --- 15,22 ---- $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $mx_root_path . 'common.' . $phpEx ); + // Start session management $mx_user->init($user_ip, PAGE_INDEX); + // End session management if ( !$userdata['session_logged_in'] ) *************** *** 27,245 **** die( "Hacking attempt(2)" ); } ! // End session management } ! $mx_module_version = '2.0.0-beta'; ! $mx_module_copy = 'Original phpBB <i>Album</i> MOD by <a href="http://smartor.is-root.com" target="_blank">Smartor & Clown</a> :: Adapted for mxBB by <a href="http://www.mxbb.net" target="_blank">Jon</a>'; // If upgrading from old mx album ! if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "album_config" ) ) ! { ! $message = "<b>Upgrading!...to use Clown SP...from old mx album </b><br/><br/>"; ! $sql = array( "RENAME TABLE " . $mx_table_prefix . "album TO " . $mx_table_prefix . "smartor_album, ! " . $mx_table_prefix . "album_rate TO " . $mx_table_prefix . "smartor_album_rate, ! " . $mx_table_prefix . "album_comment TO " . $mx_table_prefix . "smartor_album_comment, ! " . $mx_table_prefix . "album_cat TO " . $mx_table_prefix . "smartor_album_cat, ! " . $mx_table_prefix . "album_config TO " . $mx_table_prefix . "smartor_album_config", ! "CREATE TABLE " . $mx_table_prefix . "smartor_album_sp_config ( ! config_name varchar(255) NOT NULL, ! config_value varchar(255) NOT NULL, ! PRIMARY KEY (config_name))", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_late', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('rate_type', '2')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_high', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_rand', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('img_rows', '2')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('img_cols', '3')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('use_watermark', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('wut_users', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_watermark_at', '3')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_times', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_sep', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_where', '')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_users', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_use', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_height', '500')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_width', '500')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_cache', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('jaime_lettering', '0')", ! "ALTER TABLE " . $mx_table_prefix . "smartor_album_rate ADD rate_hon_point TINYINT(3) DEFAULT '0' NOT NULL ", ! "ALTER TABLE " . $mx_table_prefix . "smartor_album_comment ADD comment_cat_id int(11) NOT NULL AFTER comment_pic_id" ! ); $n = 0; $message .= "<b>OK...</b><br /><br />"; ! while ( $sql[$n] ) { ! $message .= ( $mods[$n-1] != $mods[$n] ) ? '<p><b><font size=3>' . $mods[$n] . '</font></b><br />' : ''; ! if ( !$result = $db->sql_query( $sql[$n] ) ) ! { ! $message .= '<b><font color=#FF0000>[Error or Already added]</font></b> line: ' . ( $n + 1 ) . ' , ' . $sql[$n] . '<br />'; ! } ! else ! { ! $message .= '<b><font color=#0000fF>[Added/Updated]</font></b> line: ' . ( $n + 1 ) . ' , ' . $sql[$n] . '<br />'; ! } ! $n++; } } // If fresh install ! elseif ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "smartor_album_sp_config" ) ) ! { ! $message = "<b>This is a fresh install!</b><br/><br/>"; ! $sql = array( "CREATE TABLE " . $mx_table_prefix . "smartor_album ( ! pic_id int(11) UNSIGNED NOT NULL auto_increment, ! pic_filename varchar(255) NOT NULL, ! pic_thumbnail varchar(255), ! pic_title varchar(255) NOT NULL, ! pic_desc text, ! pic_user_id mediumint(8) NOT NULL, ! pic_username varchar(32), ! pic_user_ip char(8) NOT NULL DEFAULT '0', ! pic_time int(11) UNSIGNED NOT NULL, ! pic_cat_id mediumint(8) UNSIGNED NOT NULL DEFAULT '1', ! pic_view_count int(11) UNSIGNED NOT NULL DEFAULT '0', ! pic_lock tinyint(3) NOT NULL DEFAULT '0', ! pic_approval tinyint(3) NOT NULL DEFAULT '1', ! PRIMARY KEY (pic_id), ! KEY pic_cat_id (pic_cat_id), ! KEY pic_user_id (pic_user_id), ! KEY pic_time (pic_time))", ! "CREATE TABLE " . $mx_table_prefix . "smartor_album_rate ( ! rate_pic_id int(11) UNSIGNED NOT NULL, ! rate_user_id mediumint(8) NOT NULL, ! rate_user_ip char(8) NOT NULL, ! rate_point tinyint(3) UNSIGNED NOT NULL, ! KEY rate_pic_id (rate_pic_id), ! KEY rate_user_id (rate_user_id), ! KEY rate_user_ip (rate_user_ip), ! KEY rate_point (rate_point))", ! "CREATE TABLE " . $mx_table_prefix . "smartor_album_comment ( ! comment_id int(11) UNSIGNED NOT NULL auto_increment, ! comment_pic_id int(11) UNSIGNED NOT NULL, ! comment_cat_id int(11) NOT NULL, ! comment_user_id mediumint(8) NOT NULL, ! comment_username varchar(32), ! comment_user_ip char(8) NOT NULL, ! comment_time int(11) UNSIGNED NOT NULL, ! comment_text TEXT, ! comment_edit_time int(11) UNSIGNED, ! comment_edit_count smallint(5) UNSIGNED NOT NULL DEFAULT '0', ! comment_edit_user_id mediumint(8), ! PRIMARY KEY(comment_id), ! KEY comment_pic_id (comment_pic_id), ! KEY comment_user_id (comment_user_id), ! KEY comment_user_ip (comment_user_ip), ! KEY comment_time (comment_time))", ! "CREATE TABLE " . $mx_table_prefix . "smartor_album_cat ( ! cat_id mediumint(8) UNSIGNED NOT NULL auto_increment, ! cat_title varchar(255) NOT NULL, ! cat_desc text, ! cat_order mediumint(8) NOT NULL, ! cat_view_level tinyint(3) NOT NULL DEFAULT '-1', ! cat_upload_level tinyint(3) NOT NULL DEFAULT '0', ! cat_rate_level tinyint(3) NOT NULL DEFAULT '0', ! cat_comment_level tinyint(3) NOT NULL DEFAULT '0', ! cat_edit_level tinyint(3) NOT NULL DEFAULT '0', ! cat_delete_level tinyint(3) NOT NULL DEFAULT '2', ! cat_view_groups varchar(255), ! cat_upload_groups varchar(255), ! cat_rate_groups varchar(255), ! cat_comment_groups varchar(255), ! cat_edit_groups varchar(255), ! cat_delete_groups varchar(255), ! cat_moderator_groups varchar(255), ! cat_approval tinyint(3) NOT NULL DEFAULT '0', ! PRIMARY KEY (cat_id), ! KEY cat_order (cat_order))", - "CREATE TABLE " . $mx_table_prefix . "smartor_album_config ( - config_name varchar(255) NOT NULL, - config_value varchar(255) NOT NULL, - PRIMARY KEY (config_name))", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('max_pics', '1024')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('user_pics_limit', '50')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('mod_pics_limit', '250')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('max_file_size', '128000')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('max_width', '800')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('max_height', '600')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('rows_per_page', '3')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('cols_per_page', '4')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('fullpic_popup', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('thumbnail_quality', '50')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('thumbnail_size', '150')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('thumbnail_cache', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('sort_method', 'pic_time')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('sort_order', 'DESC')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('jpg_allowed', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('png_allowed', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('gif_allowed', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('desc_length', '512')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('hotlink_prevent', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('hotlink_allowed', 'smartor.is-root.com')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('personal_gallery', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('personal_gallery_private', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('personal_gallery_limit', '10')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('personal_gallery_view', '-1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('rate', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('rate_scale', '10')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('comment', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('gd_version', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_config VALUES ('album_version', '.0.51')", ! "CREATE TABLE " . $mx_table_prefix . "smartor_album_sp_config ( ! config_name varchar(255) NOT NULL, ! config_value varchar(255) NOT NULL, ! PRIMARY KEY (config_name))", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_late', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('rate_type', '2')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_high', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_rand', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('img_rows', '2')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('img_cols', '3')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('use_watermark', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('wut_users', '0')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('disp_watermark_at', '3')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_times', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_sep', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_where', '')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('hon_rate_users', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_use', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_height', '500')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_width', '500')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('midthumb_cache', '1')", ! "INSERT INTO " . $mx_table_prefix . "smartor_album_sp_config VALUES ('jaime_lettering', '0')", ! "ALTER TABLE " . $mx_table_prefix . "smartor_album_rate ADD rate_hon_point TINYINT(3) DEFAULT '0' NOT NULL " ! ); ! $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; ! $message .= mx_do_install_upgrade( $sql ); } else { // If already installed ! $message = "<b>Module is already installed...consider upgrading ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; ! echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; --- 29,419 ---- die( "Hacking attempt(2)" ); } ! } ! $mx_module_version = '2.0.0'; ! $mx_module_copy = 'mxBB <i> - smartor album FAP </i> module by Mighty Gorgon & <a href="http://www.mxbb.net" target="_blank">The mxBB Development Team</a>'; ! // If upgrading from old mx album ! if( $result = $db->sql_query("SELECT config_name from ".$mx_table_prefix."album_config")) ! { ! $message = "<b>Upgrading!...to use Clown SP...from old mx album </b><br/><br/>"; ! $sql = array(); ! $sql[] = "RENAME TABLE ".$mx_table_prefix."album TO ".$mx_table_prefix."smartor_album"; ! $sql[] = "RENAME TABLE ".$mx_table_prefix."album_rate TO ".$mx_table_prefix."smartor_album_rate"; ! $sql[] = "RENAME TABLE ".$mx_table_prefix."album_comment TO ".$mx_table_prefix."smartor_album_comment"; ! $sql[] = "RENAME TABLE ".$mx_table_prefix."album_cat TO ".$mx_table_prefix."smartor_album_cat"; ! $sql[] = "RENAME TABLE ".$mx_table_prefix."album_config TO ".$mx_table_prefix."smartor_album_config"; ! $sql[] = "CREATE TABLE ".$mx_table_prefix."smartor_album_sp_config ( ! config_name varchar(255) NOT NULL, ! config_value varchar(255) NOT NULL, ! PRIMARY KEY (config_name) ! ) TYPE=MyISAM"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('disp_late', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('rate_type', '2')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('disp_high', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('disp_mostv', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('disp_rand', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('img_rows', '2')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('img_cols', '3')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('use_watermark', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('wut_users', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('disp_watermark_at', '3')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('hon_rate_times', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('hon_rate_sep', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('hon_rate_where', '')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('hon_rate_users', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('midthumb_use', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('midthumb_height', '500')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('midthumb_width', '500')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('midthumb_cache', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_sp_config VALUES ('jaime_lettering', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('fap_version', '1.4.1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_thumb', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_total_pics', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_total_comments', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_comments', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_comment', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_pic', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_pics', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_recent_in_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_recent_instead_of_nopics', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('line_break_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_gallery_mod', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_sub_categories', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_sub_category_limit', '-1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_subcats_in_index', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_recent_in_subcats', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_recent_instead_of_nopics', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_personal_gallery_link', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_category_sorting', 'cat_order')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_category_sorting_direction', 'ASC')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_debug_mode', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_all_in_personal_gallery', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('new_pic_check_interval', '1M')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('index_enable_supercells', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('email_notification', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_download', '2')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_slideshow', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_pic_size_on_thumb', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_files_to_upload', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_pregenerated_fields', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('dynamic_fields', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('pregenerate_fields', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('propercase_pic_title', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_pic_lv', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_pics_approval', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_img_no_gd', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('dynamic_pic_resampling', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_file_size_resampling', '1024000')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('switch_nuffload', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('path_to_bin', './modules/mx_smartor/cgi-bin/')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('perl_uploader', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_progress_bar', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('close_on_finish', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_pause', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('simple_format', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('multiple_uploads', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_uploads', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('zip_uploads', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_pic', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_width', '600')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_height', '600')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_quality', '70')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_pics_nav', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_inline_copyright', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_nuffimage', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_sepia_bw', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_avatar_gallery', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_gif_mid_thumb', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('slideshow_script', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_exif', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_bbcode', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('quick_thumbs', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('set_memory', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('lb_preview', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('use_old_pics_gen', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_last_comments', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_mooshow', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_integration', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('override_default_pages', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('index', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('invert_nav_arrows', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_otf_link', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_all_pics_link', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_personal_galleries_link', '1')"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_rate ADD rate_hon_point TINYINT(3) DEFAULT '0' NOT NULL"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_cat ADD cat_wm TEXT AFTER cat_desc"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_cat ADD cat_parent MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0' AFTER cat_approval"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_cat ADD cat_user_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0' AFTER cat_parent"; ! $sql[] = "ALTER TABLE ".$mx_table_prefix."smartor_album_comment ADD comment_cat_id int(11) NOT NULL default '0' AFTER comment_pic_id"; $n = 0; + $message .= "<b>OK...</b><br /><br />"; ! while($sql[$n]) ! { ! $message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br />' : ''; ! if(!$result = $db->sql_query($sql[$n])) { ! $message .= '<b><font color=#FF0000>[Error or Already added]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; ! } ! else ! { ! $message .='<b><font color=#0000fF>[Added/Updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; } + $n++; } + } + + // // If fresh install ! // ! elseif( !$result = $db->sql_query("SELECT config_name from ".$mx_table_prefix."smartor_album_sp_config")) ! { ! $message = "<b>This is a fresh install!</b><br/><br/>"; ! $sql = array(); ! $sql[] = "CREATE TABLE ".$mx_table_prefix."smartor_album ( ! pic_id int(11) UNSIGNED NOT NULL auto_increment, ! pic_filename varchar(255) NOT NULL, ! pic_thumbnail varchar(255), ! pic_title varchar(255) NOT NULL, ! pic_desc text, ! pic_user_id mediumint(8) NOT NULL, ! pic_username varchar(32), ! pic_user_ip char(8) NOT NULL DEFAULT '0', ! pic_time int(11) UNSIGNED NOT NULL, ! pic_cat_id mediumint(8) UNSIGNED NOT NULL DEFAULT '1', ! pic_view_count int(11) UNSIGNED NOT NULL DEFAULT '0', ! pic_lock tinyint(3) NOT NULL DEFAULT '0', ! pic_approval tinyint(3) NOT NULL DEFAULT '1', ! PRIMARY KEY (pic_id), ! KEY pic_cat_id (pic_cat_id), ! KEY pic_user_id (pic_user_id), ! KEY pic_time (pic_time) ! ) TYPE=MyISAM"; ! $sql[] = "CREATE TABLE ".$mx_table_prefix."smartor_album_rate ( ! rate_pic_id int(11) UNSIGNED NOT NULL, ! rate_user_id mediumint(8) NOT NULL, ! rate_user_ip char(8) NOT NULL, ! rate_point tinyint(3) UNSIGNED NOT NULL, ! KEY rate_pic_id (rate_pic_id), ! KEY rate_user_id (rate_user_id), ! KEY rate_user_ip (rate_user_ip), ! KEY rate_point (rate_point) ! ) TYPE=MyISAM"; ! $sql[] = "CREATE TABLE ".$mx_table_prefix."smartor_album_comment ( ! comment_id int(11) UNSIGNED NOT NULL auto_increment, ! comment_pic_id int(11) UNSIGNED NOT NULL, ! comment_cat_id int(11) NOT NULL default '0', ! comment_user_id mediumint(8) NOT NULL, ! comment_username varchar(32), ! comment_user_ip char(8) NOT NULL, ! comment_time int(11) UNSIGNED NOT NULL, ! comment_text TEXT, ! comment_edit_time int(11) UNSIGNED, ! comment_edit_count smallint(5) UNSIGNED NOT NULL DEFAULT '0', ! comment_edit_user_id mediumint(8), ! PRIMARY KEY(comment_id), ! KEY comment_pic_id (comment_pic_id), ! KEY comment_user_id (comment_user_id), ! KEY comment_user_ip (comment_user_ip), ! KEY comment_time (comment_time) ! ) TYPE=MyISAM"; ! $sql[] = "CREATE TABLE ".$mx_table_prefix."smartor_album_cat ( ! cat_id mediumint(8) UNSIGNED NOT NULL auto_increment, ! cat_title varchar(255) NOT NULL, ! cat_desc text, ! cat_wm text, ! cat_order mediumint(8) NOT NULL, ! cat_view_level tinyint(3) NOT NULL DEFAULT '-1', ! cat_upload_level tinyint(3) NOT NULL DEFAULT '0', ! cat_rate_level tinyint(3) NOT NULL DEFAULT '0', ! cat_comment_level tinyint(3) NOT NULL DEFAULT '0', ! cat_edit_level tinyint(3) NOT NULL DEFAULT '0', ! cat_delete_level tinyint(3) NOT NULL DEFAULT '2', ! cat_view_groups varchar(255), ! cat_upload_groups varchar(255), ! cat_rate_groups varchar(255), ! cat_comment_groups varchar(255), ! cat_edit_groups varchar(255), ! cat_delete_groups varchar(255), ! cat_moderator_groups varchar(255), ! cat_approval tinyint(3) NOT NULL DEFAULT '0', ! cat_parent mediumint(8) unsigned default '0', ! cat_user_id mediumint(8) unsigned default '0', ! PRIMARY KEY (cat_id), ! KEY cat_order (cat_order) ! ) TYPE=MyISAM"; ! $sql[] = "CREATE TABLE ".$mx_table_prefix."smartor_album_config ( ! config_name varchar(255) NOT NULL, ! config_value varchar(255) NOT NULL, ! PRIMARY KEY (config_name) ! ) TYPE=MyISAM"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_pics', '1024')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('user_pics_limit', '50')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('mod_pics_limit', '250')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_file_size', '128000')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_width', '1024')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_height', '768')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('rows_per_page', '3')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('cols_per_page', '4')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('fullpic_popup', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('thumbnail_quality', '50')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('thumbnail_size', '150')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('thumbnail_cache', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('sort_method', 'pic_time')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('sort_order', 'DESC')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('jpg_allowed', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('png_allowed', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('gif_allowed', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('desc_length', '512')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('hotlink_prevent', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('hotlink_allowed', 'smartor.is-root.com')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_gallery', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_gallery_private', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_gallery_limit', '10')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_gallery_view', '-1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('rate', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('rate_scale', '10')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('comment', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('gd_version', '2')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_version', '.0.54')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('fap_version', '1.4.1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_thumb', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_total_pics', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_total_comments', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_comments', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_comment', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_pic', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_pics', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_recent_in_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_recent_instead_of_nopics', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('line_break_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_subcats', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_gallery_mod', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_sub_categories', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_sub_category_limit', '-1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_subcats_in_index', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_recent_in_subcats', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_show_recent_instead_of_nopics', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_personal_gallery_link', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_category_sorting', 'cat_order')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_category_sorting_direction', 'ASC')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('album_debug_mode', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_all_in_personal_gallery', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('new_pic_check_interval', '1M')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('index_enable_supercells', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('email_notification', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_download', '2')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_slideshow', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_pic_size_on_thumb', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_files_to_upload', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_pregenerated_fields', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('dynamic_fields', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('pregenerate_fields', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('propercase_pic_title', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_index_last_pic_lv', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_pics_approval', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_img_no_gd', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('dynamic_pic_resampling', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_file_size_resampling', '1024000')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('switch_nuffload', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('path_to_bin', './modules/mx_smartor/cgi-bin/')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('perl_uploader', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_progress_bar', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('close_on_finish', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_pause', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('simple_format', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('multiple_uploads', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('max_uploads', '5')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('zip_uploads', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_pic', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_width', '600')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_height', '600')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('resize_quality', '70')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_pics_nav', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('show_inline_copyright', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_nuffimage', '1')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('enable_sepia_bw', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_prefix."smartor_album_config VALUES ('personal_allow_avatar_gallery', '0')"; ! $sql[] = "INSERT INTO ".$mx_table_pr... [truncated message content] |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:13
|
Update of /cvsroot/mxbb/mx_smartor/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/language/lang_english Modified Files: lang_admin.php Added Files: lang_admin_album.php lang_main_album.php Log Message: --- NEW FILE: lang_main_album.php --- <?php /** * * @package mxBB Portal Module - mx_smartor * @version $Id: lang_main_album.php,v 1.7 2007/06/07 20:13:35 orynider Exp $ * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // 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['JUpload_Pic'] = 'Upload Multiple Pictures with Jupload'; $lang['Upload_Pics'] = 'Upload Pics'; $lang['Pic_Title'] = 'Pic Title'; $lang['View'] = 'View'; $lang['Pic_Poster'] = 'Poster'; $lang['Pic_Image'] = 'Image'; $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['Add_File'] = 'Add File'; $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['Rotation'] = 'Rotate (Anti-Clockwise) - Degrees'; $lang['Max_file_size'] = 'Maximum file size (bytes)'; $lang['Max_width'] = 'Maximum image width before recompression (pixel)'; $lang['Max_height'] = 'Maximum image height before recompression (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_ID'] = 'ID'; $lang['Pic_Details'] = 'Image Details'; $lang['Pic_Size'] = 'Size'; $lang['Pic_Type'] = 'Image Type'; $lang['Pic_BBCode'] = 'BBCode'; $lang['Pic_not_exist'] = 'This pic does not exist'; $lang['Click_enlarge'] = 'Click on image to view larger image'; $lang['Prev_Pic'] = 'View Previous Picture'; $lang['Next_Pic'] = 'View Next Picture'; $lang['Slideshow'] = 'Slide Show'; $lang['Slideshow_Delay'] = 'Slide Show Delay'; $lang['Slideshow_On'] = 'Slide Show'; $lang['Slideshow_Off'] = 'Stop Slide Show'; $lang['Pics_Nav'] = 'Pictures Navigation'; $lang['Pics_Nav_Next'] = 'Next Pictures'; $lang['Pics_Nav_Prev'] = 'Previous Pictures'; // 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'] = 'Album Index'; $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['Nav_Separator'] = ' » '; $lang['Rss_Feed'] = 'RSS Feed'; $lang['Album_Search'] = 'Searching the Album'; $lang['Pic_Name'] = 'Picture Name'; $lang['Description'] = 'Description'; $lang['Search_Contents'] = ' that contains: '; $lang['Search_Found'] = 'Search found '; $lang['Search_Matches'] = 'Matches:'; // The picture list of a member (album_memberlist.php) $lang['Pic_Cat'] = 'Category'; $lang['Picture_List_Of_User'] = 'All Pictures by %s'; $lang['Member_Picture_List_Explain'] = 'You can view the complete list of picture contributed by other members by clicking on the link in their profiles'; $lang['Comment_List_Of_User'] = 'All Comments by %s'; $lang['Rating_List_Of_User'] = 'All Ratings by %s'; $lang['Show_All_Pictures_Of_user'] = 'Show All Pictures by %s'; $lang['Show_All_Comments_Of_user'] = 'Show All Comments by %s'; $lang['Show_All_Ratings_Of_user'] = 'Show All Ratings by %s'; // Album Nuffload $lang['time_elapsed'] = 'Time Elapsed'; $lang['time_remaining'] = 'Time Remaining'; $lang['upload_in_progress'] = 'Upload In Progress'; $lang['please_wait'] = 'Please Wait...'; $lang['uploaded'] = 'Uploaded %multi_id% of %multi_max% images.'; $lang['no_file_received'] = 'No image file received'; $lang['no_thumbnail_file_received'] = 'No thumbnail file received'; $lang['file_too_big'] = 'Image file size too big'; $lang['thumbnail_too_big'] = 'Thumbnail file size too big'; $lang['image_res_too_high'] = 'Image resolution too high'; $lang['add_field'] = 'Add file upload field'; $lang['remove_field'] = 'Remove file upload field'; $lang['ZIP_allowed'] = 'Allowed to upload ZIP files'; // Album Hierarchy Index Table $lang['Last_Comment'] = 'Last Comment'; $lang['Last_Comments'] = 'Last Comments'; $lang['No_Comment_Info'] = 'No Comments'; $lang['No_Pictures_In_Cat']= 'No Pictures In Category'; $lang['Total_Pics'] = 'Total Pics'; $lang['Total_Comments'] = 'Total Comments'; $lang['Last_Index_Thumbnail'] = 'Last Pic'; $lang['One_Sub_Total_Pics'] = '%d Pic'; $lang['Multiple_Sub_Total_Pics'] = '%d Pics'; $lang['Album_sub_categories'] = 'Sub Categories'; $lang['No_Public_Galleries'] = 'No Public Galleries'; $lang['One_new_picture'] = '%d new picture'; $lang['Multiple_new_pictures'] = '%d new pictures'; // The pictures list $lang['All_Picture_List_Of_User'] = 'All Pictures'; $lang['All_Comment_List_Of_User'] = 'All Comments'; $lang['All_Rating_List_Of_User'] = 'All Ratings'; $lang['All_Show_All_Pictures_Of_user'] = 'Show All Pictures'; $lang['All_Show_All_Comments_Of_user'] = 'Show All Comments'; $lang['All_Show_All_Ratings_Of_user'] = 'Show All Ratings'; $lang['Not_commented'] = '<i>Not Commented</i>'; // Nuff's Stuff $lang['Nuff_Click'] = 'Click here to apply Special Effects'; $lang['Nuff_UnClick'] = 'Click here for normal visualization'; $lang['Nuff_Title'] = 'Special Effects'; $lang['Nuff_Explain'] ='Using this page you can apply multiple effects to the pictures.<br />Remember that this is a <i><b>very heavy operation on server CPU load</b></i>, so please do not abuse it. Some effects will automatically resize the output image so to not charge too much server CPU.'; $lang['Nuff_Normal'] = 'Normal Image'; $lang['Nuff_Normal_Explain'] = 'No effects applied'; $lang['Nuff_BW'] = 'Black & White'; $lang['Nuff_BW_Explain'] = 'This effect will transform the image into Black and White'; $lang['Nuff_Sepia'] = 'Sepia Tone'; $lang['Nuff_Sepia_Explain'] = 'This effect will apply sepia toning to the picture'; $lang['Nuff_Flip'] = 'Flip'; $lang['Nuff_Flip_Explain'] = 'Using this function you can flip the image'; $lang['Nuff_Mirror'] = 'Mirror'; $lang['Nuff_Mirror_Explain'] = 'Using this function you can mirror the image'; $lang['Nuff_Flip_H'] = 'Horizontal'; $lang['Nuff_Flip_V'] = 'Vertical'; $lang['Nuff_Rotate'] = 'Picture Rotation (Anti Clockwise)'; $lang['Nuff_Rotate_Explain'] = 'Rotates the images anti clockwise'; $lang['Nuff_Resize'] = 'Resize'; $lang['Nuff_Resize_Explain'] = 'This function is for image resizing'; $lang['Nuff_Resize_W'] = 'Width'; $lang['Nuff_Resize_H'] = 'Height'; $lang['Nuff_Resize_No_Resize'] = 'No Resize'; $lang['Nuff_Watermark'] = 'Watermark'; $lang['Nuff_Watermark_Explain'] = 'Apply a watermark to the image'; $lang['Nuff_Recompress'] = 'Recompress'; $lang['Nuff_Recompress_Explain'] = 'This function can recompress the image'; $lang['Nuff_Alpha'] = 'Alpha'; $lang['Nuff_Alpha_Explain'] = 'This effect will overlay an alpha channel to the image'; $lang['Nuff_Blur'] = 'Blur'; $lang['Nuff_Blur_Explain'] = 'This effect will apply a blur filter to the image'; $lang['Nuff_Pixelate'] = 'Pixelate'; $lang['Nuff_Pixelate_Explain'] = 'This effect will apply a pixelate filter to the image'; $lang['Nuff_Scatter'] = 'Scatter'; $lang['Nuff_Scatter_Explain'] = 'This effect will apply a scatter filter to the image'; $lang['Nuff_Infrared'] = 'Infrared'; $lang['Nuff_Infrared_Explain'] = 'This effect will apply an infrared filter to the image'; $lang['Nuff_Tint'] = 'Tint'; $lang['Nuff_Tint_Explain'] = 'This effect will apply a red tint to the image'; $lang['Nuff_Interlace'] = 'Interlace (Horizontal Lines)'; $lang['Nuff_Interlace_Explain'] = 'This effect will overlay an interlace channel to the image'; $lang['Nuff_Screen'] = 'Screen (Hor Ver Lines)'; $lang['Nuff_Screen_Explain'] = 'This effect will overlay a screen channel to the image'; $lang['Nuff_Stereogram'] = 'Stereogram'; $lang['Nuff_Stereogram_Explain'] = 'This effect will convert the image to a stereogram (BW 16 bit required)'; $lang['Pic_Gallery'] = 'OTF Gallery'; $lang['Album_otf'] = 'OTF Gallery'; $lang['Select_Pic'] = 'Select Pic'; $lang['Select_Category'] = 'Select Category'; // Personal Album Hierarchy Index Table $lang['Personal_Categories'] = 'Personal Gallery'; $lang['Create_Personal_Categories'] = 'Create Personal Gallery'; $lang['Personal_Cat_Admin'] = 'Personal Gallery Category Admin'; $lang['Recent_Personal_Pics'] = 'Recent Pictures From the Personal Gallery of %s'; // Access language strings $lang['Album_Can_Manage_Categories'] = 'You <b>can</b> %smanage%s the categories in the gallery'; $lang['No_Personal_Category_admin'] = 'You are not allowed to manage your personal gallery categories'; ?> --- NEW FILE: lang_admin_album.php --- <?php /** * * @package mxBB Portal Module - mx_smartor * @version $Id: lang_admin_album.php,v 1.5 2007/06/07 20:13:35 orynider Exp $ * @copyright (c) 2003 [sma...@ho..., Smartor] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // 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'; $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'; $lang['Show_Download'] = 'Show DOWNLOAD button (which enables the downloading of pictures in ZIP format) only to those who have UPLOAD permissions in the Album (if you choose ALWAYS the button will be always available even if the users has no UPLOAD permissions)'; $lang['Show_Slideshow'] = 'Enable Slideshow feature'; $lang['Show_Slideshow_Script'] = 'Enable transition effects for Slideshow'; $lang['Show_Pic_Size'] = 'Show the pic size on thumbnail'; $lang['Show_IMG_No_GD'] = 'Show GIF thumbnails without using GD libraries (full images are loaded and then just shown resized).'; $lang['Show_GIF_MidThumb'] = 'Show full GIF images if Mid Thumb is enabled.'; $lang['Show_Pics_Nav'] = 'Show Picture Navigation Box in Show Page'; $lang['Invert_Nav_Arrows'] = 'Invert the Arrows link in Showpage (right arrow = more recent)'; $lang['Show_Inline_Copyright'] = 'Show Copyrights Info on a single line'; $lang['Enable_Nuffimage'] = 'Enable Pictures Special Effects page based on Nuffmon Images Class'; $lang['Enable_Sepia_BW'] = 'Enable Sepia and B&W in Special Effects page (disable this function if you want no to load server\'s CPU)'; $lang['Show_EXIF_Info'] = 'Show picture EXIF informations'; $lang['Set_Memory'] = 'Set a memory limit via PHP (MB)'; $lang['Set_Memory_Explain'] = 'This feature may be used to increase memory limit in PHP (this setting must be allowed by your hosting): you can try to increase memory when your images are not loaded correctly. To avoid higher memory limits the max value is forced to be 16MB.'; $lang['LB_Preview'] = 'Enable LightBox Preview'; $lang['LB_Preview_Explain'] = 'This feature will show a LightBox with picture preview when moving the mouse over a thumbnail.'; $lang['Album_config_notice'] = 'If you change the current Photo Album settings and then select another tab, you will be prompted to save your changes.<br />The system will <b>not save</b> the changes for you automatically.'; $lang['Save_sucessfully_confimation'] = '%s was saved successfully'; $lang['Show_Recent_In_Subcats'] = 'Show recent pictures in sub categories'; $lang['Show_Recent_Instead_of_NoPics'] = 'Show recent pictures instead of no picture message'; $lang['Show_Last_Comments'] = 'Display last comments block on album index and categories'; $lang['Album_Index_Settings'] = 'Album Index'; $lang['Show_Index_Subcats'] = 'Show sub categories in index table'; $lang['Show_Index_Thumb'] = 'Show category thumbnails in index table'; $lang['Show_Index_Pics'] = 'Show the number of pictures in current category in index table'; $lang['Show_Index_Comments'] = 'Show the number of comments in current category in index table'; $lang['Show_Index_Total_Pics'] = 'Show the number of total pictures for current categories and all it\'s sub categories in index table'; $lang['Show_Index_Total_Comments'] = 'Show the number of total comments for current categories and all it\'s sub categories in index table'; $lang['Show_Index_Last_Comment'] = 'Show last comments for current categories and all it\'s sub categories in index table'; $lang['Show_Index_Last_Pic'] = 'Show last picture info for current categories and all it\'s sub categories in index table'; $lang['Line_Break_Subcats'] = 'Show each sub cat on a new line'; $lang['Show_Personal_Gallery_Link'] = 'Show Personal Gallery and Users Personal Gallery link in Sub Categories'; $lang['Album_Personal_Auth_Explain'] = 'Here you can choose which usergroup(s) can be the moderators for <b>all</b> personal album categories or just has the private access to them'; $lang['Album_debug_mode'] = 'Enable the hierarchy debug mode.<br /><span class="gensmall">This will generate a lot of extra output on the page and also some header warnings, which are all ok.<br />This option should <b>only</b> be used when having problems.</span>'; $lang['New_Pic_Check_Interval'] = 'The time to use to see if a picture is new or not.<br /><span class="gensmall"><b>Format</b> : <number><type> Where type is either h, d, w or m (hour, day, week or month)<br /> e.g. 12H = 12 hours and 12D = 12 days and 12W = 12 weeks and 12M = 12 months<br />If no type is specified the system will use <b>days</b></span>'; $lang['New_Pic_Check_Interval_Desc'] = '<span class="gensmall">H = HOURS, D = DAYS, W = WEEKS, M = MONTHS</span>'; $lang['New_Pic_Check_Interval_LV'] = 'Enabling this option the new pics counter is based on users last visit time.'; $lang['Enable_Show_All_Pics'] = 'Enable toggling of personal gallery view mode (all pictures or only selected category).<br /> When set to <b>no</b>, only selected category is shown.'; $lang['Enable_Index_Supercells'] = 'Enable super cells in the index table. <br /><span class="gensmall">This will enable the mouseover effects on the columns, also knows as the supercell effect.</span>'; $lang['Show_OTF_Link'] = 'Show "Album OTF" link on Album Index'; $lang['Show_AllPics_Link'] = 'Show "All Pics" link on Album Index'; $lang['Show_PG_Link'] = 'Show "Personal Galleries" link on Album Index'; // 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'; $lang['Allow_Album_Avatars'] = 'Allow users to use own posted images in Album as Avatar'; // Personal Gallery FAP $lang['Album_Personal_Settings'] = 'Personal Galleries'; $lang['Album_Personal_Settings_Explain'] = 'You can change the settings of your Personal Galleries here'; $lang['Show_Personal_Sub_Cats'] = 'Show personal sub categories in index table'; $lang['Personal_Gallery_Approval'] = 'Personal gallery pics approval'; $lang['Personal_Gallery_MOD'] = 'Personal gallery can be moderated by owner'; $lang['Personal_Sub_Cat_Limit'] = 'Maximum number of sub categories (-1 = unlimited)'; $lang['User_Can_Create_Personal_SubCats'] = 'Users can create sub categories in own personal gallery'; $lang['Click_return_personal_gallery_index'] = 'Click %shere%s to return to the personal gallery index'; $lang['Show_Recent_In_Personal_Subcats'] = 'Show recent pictures in personal sub categories'; $lang['Show_Recent_Instead_of_Personal_NoPics'] = 'Show recent pictures instead of no picture message in personal gallery'; // // 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'; $lang['Watermark'] = 'WaterMark'; $lang['Watermark_explain'] = 'You can specify the watermark file to be used in this category. Insert the watermark file path respect to your phpBB root (i.e.: <b>modules/mx_smartor/album_mod/mark_fap.png</b>). The watermark will be applied only if Watermark feature is on.'; $lang['Personal_Root_Gallery'] = 'Personal Gallery Root Category'; $lang['Parent_Category'] = 'Parent Category (for this category)'; $lang['Child_Category_Moved'] = 'Selected category had child categories. The child categories got moved to the <B>%s</B> category.'; $lang['No_Self_Refering_Cat'] = 'You cannot set a category\'s parent to itself'; $lang['Can_Not_Change_Main_Parent'] = 'You cannot change to parent of the main category of your personal gallery'; // // 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 $lang['SP_Album_config'] = 'ADV CLowN SP Configuration'; $lang['SP_Album_config_explain'] = 'Here you can configure some options for the Album Service Pack'; $lang['SP_Album_sp_general'] = 'General Config'; $lang['SP_Album_sp_watermark'] = 'WaterMark Config'; $lang['SP_Album_sp_hotornot'] = 'Hot or Not Config'; $lang['SP_Rate_type'] = 'Select how do you want picture rating to be displayed'; $lang['SP_Rate_type_0'] = 'Images only'; $lang['SP_Rate_type_1'] = 'Numbers only'; $lang['SP_Rate_type_2'] = 'Numbers and Images'; $lang['SP_Display_latest'] = 'Display latest submited pictures block'; $lang['SP_Display_highest'] = 'Display highest rated pictures block'; $lang['SP_Display_most_viewed'] = 'Display most viewed pictures block'; $lang['SP_Display_random'] = 'Display random pictures block'; $lang['SP_Pic_row'] = 'Number of rows on thumbnail blocks'; $lang['SP_Pic_col'] = 'Number of columns on thumbnail blocks'; $lang['SP_Midthumb_use'] = 'Use mid-thumbnail'; $lang['SP_Midthumb_cache'] = 'Enable caching of mid-thumbnail'; $lang['SP_Midthumb_high'] = 'Height of mid-thumbnail (pixel)'; $lang['SP_Midthumb_width'] = 'Width of mid-thumbnail (pixel)'; $lang['SP_Watermark'] = 'Use WaterMark'; $lang['SP_Watermark_users'] = 'Show WaterMark for all users, if \'No\' only display to unregistered users'; $lang['SP_Watermark_placent'] = 'WaterMark position on the picture'; $lang['SP_Hon_already_rated'] = 'Unlimited rating on Hot or Not page'; $lang['SP_Hon_sep_rating'] = 'Store Hot or Not rating in a separate table'; $lang['SP_Hon_where'] = 'Display pictures on hot or not from what categories? (leave blank to use pictures from all of the categories, if more then one category, separate by commas)'; $lang['SP_Hon_users'] = 'Can unregistered users rate'; $lang['SP_jaime_lettering'] = 'Show alphabetic navigation index within a category (Jaime Lettering)'; $lang['SP_Always'] = 'Always'; // Multiple Uploads Admin configuration $lang['Upload_Settings'] = 'Upload'; $lang['Max_Files_To_Upload'] = 'Maximum number of files user can upload at a time'; $lang['Album_upload_settings'] = 'Album Upload Settings'; $lang['Max_pregenerated_fields'] = 'Maximum number of fields to pre-generate'; $lang['Dynamic_field_generation'] = 'Enable dynamic adding of upload fields'; $lang['Pre_generate_fields'] = 'Pre generate the upload fields'; $lang['Propercase_pic_title'] = 'Propercase picture title e.g. <i>\'This Is A Picture Title\'</i><br />Setting it to \'NO\' will result in this <i>\'This is a picture title\'</i>'; $lang['Pic_Resampling'] = 'Enabling this option, each image will be resized on the fly if needed (to keep image properties respecting the album settings in ACP).'; $lang['Max_file_size_resampling'] = 'Maximum file size before resampling (bytes)'; ?> Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/language/lang_english/lang_admin.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** lang_admin.php 5 Apr 2006 23:03:49 -0000 1.4 --- lang_admin.php 7 Jun 2007 20:13:35 -0000 1.5 *************** *** 9,142 **** */ ! // ! // 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)'; - // 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"; ?> \ No newline at end of file --- 9,57 ---- */ ! ! // ! // The format of this file is: ! // ! // ---> $lang["message"] = "text"; ! // ! // Specify your language character encoding... [optional] ! // ! // setlocale(LC_ALL, "en"); ! $lang['display_most_posts'] = "Display most posts"; ! $lang['display_random_posts'] = "Display random posts"; ! $lang['display_top_ranked'] = "Display top ranked"; ! $lang['display_latest_posts'] = "Display latest posts"; ! $lang['num_of_cols'] = "Num of cols"; ! $lang['num_of_rows'] = "Num of rows"; ! $lang['album_config_updated'] = 'Mx Smartor Configuration Updated Successfully.'; ! $lang['Click_return_album_config'] = 'Click %sHere%s to return to mx_smartor Configuration'; ! $lang['index'] = 'Mx Smartor Album Index'; ! $lang['mx_album_admin'] = 'mxBB Smartor Integration'; ! $lang['mx_album_admin_explain'] = 'Here, you can do album index and mxBB page mappings.'; ! $lang['default_pages_title'] = 'mxBB and Smartor integration'; ! $lang['default_pages_title_explain'] = ''; ! $lang['default_pages_more_title'] = 'More mappings...'; ! $lang['default_pages_more_title_explain'] = ''; ! $lang['integration_enabled'] = 'Activate the Integration?'; ! $lang['integration_enabled_explain'] = 'When the Smartor module integration is activated, all mx_smartor URLs will be directed to mxBB pages. If deactivated, album.php will operate "as usual"'; ! $lang['integration_enabled_yes'] = 'Activate'; ! $lang['integration_enabled_no'] = 'Do not integrate album.php'; ! $lang['override'] = 'Associate album.php and mxBB pages'; ! $lang['override_explain'] = 'All mx_smartor urls are redirected to mxBB pages following these settings.'; ! $lang['override_yes'] = 'Use Block Settings'; ! $lang['override_no'] = 'Use fixed mappings (see below)'; ! // ! // That's all Folks! ! // ------------------------------------------------- ?> \ No newline at end of file |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:07
|
Update of /cvsroot/mxbb/mx_smartor/upload/wm_cache In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/upload/wm_cache Added Files: .htaccess index.html Log Message: --- NEW FILE: .htaccess --- <Limit GET POST PUT> Order Allow,Deny Deny from All </Limit> --- NEW FILE: index.html --- <html> <head> <title>Mighty Gorgon - Album Pack</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://www.mightygorgon.com">http://www.mightygorgon.com</a></h1></center> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:06
|
Update of /cvsroot/mxbb/mx_smartor/upload/otf/demo In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/upload/otf/demo Added Files: leaf.jpg tomjerry.jpg Log Message: --- NEW FILE: leaf.jpg --- (This appears to be a binary file; contents omitted.) --- NEW FILE: tomjerry.jpg --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:05
|
Update of /cvsroot/mxbb/mx_smartor/upload/otf In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/upload/otf Added Files: .htaccess index.html Log Message: --- NEW FILE: .htaccess --- <Limit GET POST PUT> Order Allow,Deny Deny from All </Limit> --- NEW FILE: index.html --- <html> <head> <title>Mighty Gorgon - Album Pack</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://www.mightygorgon.com">http://www.mightygorgon.com</a></h1></center> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:05
|
Update of /cvsroot/mxbb/mx_smartor/upload/jupload In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/upload/jupload Added Files: .htaccess index.html Log Message: --- NEW FILE: .htaccess --- Options -Indexes -ExecCGI -Includes --- NEW FILE: index.html --- <html> <head> <title>Photo Album Addon by Smartor</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://smartor.is-root.com">http://smartor.is-root.com</a></h1></center> </body> |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:05
|
Update of /cvsroot/mxbb/mx_smartor/upload/med_cache In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/upload/med_cache Added Files: .htaccess index.html Log Message: --- NEW FILE: .htaccess --- <Limit GET POST PUT> Order Allow,Deny Deny from All </Limit> --- NEW FILE: index.html --- <html> <head> <title>Mighty Gorgon - Album Pack</title> </head> <body> <br /><br /><br /><br /><br /><br /><br /> <center><h1><a href="http://www.mightygorgon.com">http://www.mightygorgon.com</a></h1></center> </body> </html> |
|
From: OryNider <ory...@us...> - 2007-06-07 20:14:03
|
Update of /cvsroot/mxbb/mx_smartor/cgi-bin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/cgi-bin Added Files: nuffload.cgi Log Message: --- NEW FILE: nuffload.cgi --- #!/usr/bin/perl -W # Author : Nuffmon 2005 # http://www.nuffmon.oftheweek.de # Version 1.4.2 # Last Update 19/11/2005 # # The Initial Developer of the Original Code is Raditha Dissanayake. # Portions created by Raditha are Copyright (C) 2003 # Raditha Dissanayake. All Rights Reserved. use CGI; use CGI::Carp qw(fatalsToBrowser); my $qstring = ""; if (length ($ENV{'QUERY_STRING'}) > 0){ $buffer = $ENV{'QUERY_STRING'}; @pairs = split(/&/, $buffer); foreach $pair (@pairs){ ($name, $value) = split(/=/, $pair); $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $$name = $value; $qstring .= "$name=$value&"; } } $psid =~ s/[^a-zA-Z0-9]//g; $post_data_file = "tmp/" . $psid . "_postdata"; $monitor_file = "tmp/" . $psid . "_flength"; $qstring_file = "tmp/" . $psid . "_qstring"; $len = $ENV{'CONTENT_LENGTH'}; $bRead=0; $|=1; # Check for max upload size, set to whatever you want if($len > 32000000) { close (STDIN); print "Content-type: text/html\n\n"; print "<br>The maximum upload size has been exceeded<br>\n"; exit; } # Send content-length to monitor file if (-e "$monitor_file") { unlink("$monitor_file"); } open (MF,">", "$monitor_file") or die "can't open monitor file"; print MF $len; close (MF); sleep(1); # read and store the raw post data on a temporary file so that we can # pass it though to a CGI instance later on. if (-e "$post_data_file") { unlink("$post_data_file"); } open(TMP,">","$post_data_file") or &bye_bye ("can't open temp file"); my $i=0; $ofh = select(TMP); $| = 1; select ($ofh); while (read (STDIN ,$LINE, 4096) && $bRead < $len ) { $bRead += length $LINE; $i++; print TMP $LINE; } close (TMP); # # We don't want to decode the post data ourselves. That's like # reinventing the wheel. If we handle the post data with the perl # CGI module that means the PHP script does not get access to the # files, but there is a way around this. # # We can ask the CGI module to save the files, then we can pass # these filenames to the PHP script. In other words instead of # giving the raw post data (which contains the 'bodies' of the # files), we just send a list of file names. # open(STDIN,"$post_data_file") or die "can't open temp file"; my $cg = new CGI(); my %vars = $cg->Vars; my $j = 0; while(($key,$value) = each %vars) { $file_upload = $cg->param($key); if(defined $value && $value ne '') { my $fh = $cg->upload($key); if(defined $fh) { $tmp_filename = "tmp/$psid"."_actualdata"."$j"; open(TMP,">","$tmp_filename") or &bye_bye ("can't open temp file"); while(<$fh>) { print TMP $_; } close(TMP); $fsize =(-s $fh); $fh =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg; $tmp_filename =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg; $qstring .= "file[name][$j]=$fh&file[size][$j]=$fsize&"; $qstring .= "file[tmp_name][$j]=$tmp_filename&"; $qstring .= "file[field][$j]=$key&"; $j++; } else { $value =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg; $qstring .= "$key=$value&" ; } } } # Write query string to file. if (-e "$qstring_file") { unlink("$qstring_file"); } open (QSTR,">", "$qstring_file") or die "can't open output file"; print QSTR $qstring; close (QSTR); # Tidy up after ourselves. unlink("$monitor_file"); unlink("$post_data_file"); # OK lets get back to album upload. my $url= $redirect . "?psid=$psid"; print "Location: $url\n\n"; |
Update of /cvsroot/mxbb/mx_smartor/templates/subSilver/images/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/templates/subSilver/images/lang_english Added Files: download.gif download_all.gif icon_album.gif jupload_pic.gif manage_pic.gif upload_pic_2.gif Log Message: --- NEW FILE: manage_pic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: upload_pic_2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: jupload_pic.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: download.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_album.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: download_all.gif --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2007-06-07 20:13:59
|
Update of /cvsroot/mxbb/mx_smartor/jupload In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9232/jupload Added Files: jupload.jar Log Message: --- NEW FILE: jupload.jar --- (This appears to be a binary file; contents omitted.) |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:13:44
|
Update of /cvsroot/mxbb/mx_tinies/templates/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11045/images Log Message: Directory /cvsroot/mxbb/mx_tinies/templates/images added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:13:21
|
Update of /cvsroot/mxbb/mx_tinies/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10855/lang_english Log Message: Directory /cvsroot/mxbb/mx_tinies/language/lang_english added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:12:45
|
Update of /cvsroot/mxbb/mx_tinies/faqs/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10293/lang_english Log Message: Directory /cvsroot/mxbb/mx_tinies/faqs/lang_english added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:12:13
|
Update of /cvsroot/mxbb/mx_tinies/templates In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9861/templates Log Message: Directory /cvsroot/mxbb/mx_tinies/templates added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:12:13
|
Update of /cvsroot/mxbb/mx_tinies/language In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9861/language Log Message: Directory /cvsroot/mxbb/mx_tinies/language added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:12:12
|
Update of /cvsroot/mxbb/mx_tinies/faqs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9861/faqs Log Message: Directory /cvsroot/mxbb/mx_tinies/faqs added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:12:12
|
Update of /cvsroot/mxbb/mx_tinies/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9861/includes Log Message: Directory /cvsroot/mxbb/mx_tinies/includes added to the repository |
|
From: Jon O. <jon...@us...> - 2007-06-07 20:12:12
|
Update of /cvsroot/mxbb/mx_tinies/avatars In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9861/avatars Log Message: Directory /cvsroot/mxbb/mx_tinies/avatars added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-07 20:10:25
|
Update of /cvsroot/mxbb/mx_smartor/upload/otf/demo In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8604/demo Log Message: Directory /cvsroot/mxbb/mx_smartor/upload/otf/demo added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-07 20:09:56
|
Update of /cvsroot/mxbb/mx_smartor/upload/med_cache In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8084/med_cache Log Message: Directory /cvsroot/mxbb/mx_smartor/upload/med_cache added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-07 20:09:56
|
Update of /cvsroot/mxbb/mx_smartor/upload/otf In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8084/otf Log Message: Directory /cvsroot/mxbb/mx_smartor/upload/otf added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-07 20:09:56
|
Update of /cvsroot/mxbb/mx_smartor/upload/wm_cache In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8084/wm_cache Log Message: Directory /cvsroot/mxbb/mx_smartor/upload/wm_cache added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-07 20:09:56
|
Update of /cvsroot/mxbb/mx_smartor/upload/jupload In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8084/jupload Log Message: Directory /cvsroot/mxbb/mx_smartor/upload/jupload added to the repository |
|
From: OryNider <ory...@us...> - 2007-06-07 20:08:35
|
Update of /cvsroot/mxbb/mx_smartor/cgi-bin/tmp In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7216/tmp Log Message: Directory /cvsroot/mxbb/mx_smartor/cgi-bin/tmp added to the repository |