|
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] |