|
From: Jon O. <jon...@us...> - 2005-04-12 19:52:19
|
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17148/modules/mx_smartor/album_mod Modified Files: album_common.php Log Message: lang renaming... Index: album_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_common.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** album_common.php 5 Feb 2005 00:42:40 -0000 1.8 --- album_common.php 12 Apr 2005 19:51:47 -0000 1.9 *************** *** 1,174 **** ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Saturday, February 01, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! /** ! * MODIFICATIONS: ! * -added a query to get SP config info ! * -added a include to SP functions ! */ ! ! if ( !defined( 'IN_PORTAL' ) ) ! { ! die( 'Hacking attempt' ); ! } ! ! if ( !isset( $album_root_path ) || empty( $album_root_path ) ) ! { ! $album_root_path = $module_root_path . 'album_mod/'; ! } ! ! include_once( $album_root_path . 'album_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main_album.' . $phpEx ); ! include( $module_root_path . 'language/lang_english/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main_album.' . $phpEx ); ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/upload_pic.gif" ) ) ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/$link_language/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/$link_language/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/$link_language/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/$link_language/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/$link_language/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/$link_language/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! else ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/lang_english/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/lang_english/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/lang_english/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/lang_english/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/lang_english/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/lang_english/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! ! // Get Album Config ! ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_config_name = $row['config_name']; ! $album_config_value = $row['config_value']; ! $album_config[$album_config_name] = $album_config_value; ! } ! // --- Album Category Hirarchy : begin ! // --- version : 1.2.0 ! if ( $album_config['album_debug_mode'] == 1 ) ! { ! $GLOBALS['album_debug_enabled'] = true; ! } ! else ! { ! $GLOBALS['album_debug_enabled'] = false; ! } ! // --- Album Category Hirarchy : end ! // for compatibility with mx and SP... ! // $album_config['rate'] = '1'; ! // $album_config['comment'] = '1'; ! // $album_config['fullpic_popup'] = '0'; ! // get SP config info ! $sql = "SELECT * ! FROM " . ALBUM_SP_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query SP config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_sp_config_name = $row['config_name']; ! $album_sp_config_value = $row['config_value']; ! ! $album_sp_config[$album_sp_config_name] = $album_sp_config_value; ! } ! // end get SP config info ! include_once( $album_root_path . 'album_functions.' . $phpEx ); ! include_once( $album_root_path . 'clown_album_functions.' . $phpEx ); ! include_once( $album_root_path . 'album_hierarchy_functions.' . $phpEx ); ! ! // Set ALBUM Version ! ! $template->assign_vars( array( 'ALBUM_VERSION' => '2' . $album_config['album_version'], ! 'ALBUM_VERSION_INFO' => 'This script (Smartor Album v. 2.0.0 :: mxBB Portal Module 2004, with Volodymyr (CLowN) Skoryks SP1 addon, IdleVoid\'s Album Category Hierarchy mod) is modified by <a href="http://www.mx-system.com">mxBB Team</a> ', ! 'PAFILEDB_SEARCH_ACTION' => append_sid( album_append_uid( this_smartor_mxurl() ) ), ! 'PAFILEDB_SEARCH_HIDDEN' => '<input type="hidden" name="smartor_mode" value="album_search"><input type="hidden" name="page" value="' . $page_id . '">', ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'L_TITLE' => $title, ! 'U_ALBUM' => append_sid( album_append_uid( this_smartor_mxurl() ) ) ! ) ! ); ! ?> \ No newline at end of file --- 1,174 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal module ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * begin : Saturday, February 01, 2003 ! * copyright : (C) 2003 Smartor ! * email : sma...@ho... ! * ! * $Id$ ! */ ! ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! ! /** ! * MODIFICATIONS: ! * -added a query to get SP config info ! * -added a include to SP functions ! */ ! ! if ( !defined( 'IN_PORTAL' ) ) ! { ! die( 'Hacking attempt' ); ! } ! ! if ( !isset( $album_root_path ) || empty( $album_root_path ) ) ! { ! $album_root_path = $module_root_path . 'album_mod/'; ! } ! ! include_once( $album_root_path . 'album_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/lang_english/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_hierarchy_album.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/upload_pic.gif" ) ) ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/$link_language/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/$link_language/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/$link_language/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/$link_language/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/$link_language/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/$link_language/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! else ! { ! // ---------- ! $images['upload_pic'] = "$current_template_images/lang_english/upload_pic.gif"; ! $images['no_thumbnail'] = "$current_template_images/nothumbnail.jpg"; ! // --- Album Category Hierarchy : begin ! // --- Version 1.2.0 ! $images['mini_new_pictures'] = "$current_template_images/icon_minipost_new.gif"; ! $images['all_pic_view_mode'] = "$current_template_images/lang_english/simple_view.gif"; ! $images['normal_pic_view_mode'] = "$current_template_images/lang_english/normal_view.gif"; ! $images['mini_all_pic_view_mode'] = "$current_template_images/icon_mini_showall.gif"; ! ! $images['show_all_pics'] = "$current_template_images/lang_english/show_all_pics.gif"; ! $images['show_all_ratings'] = "$current_template_images/lang_english/show_all_ratings.gif"; ! $images['show_all_comments'] = "$current_template_images/lang_english/show_all_comments.gif"; ! // --- Album Category Hierarchy : end ! // ---------- ! } ! ! // Get Album Config ! ! $sql = "SELECT * ! FROM " . ALBUM_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Album config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_config_name = $row['config_name']; ! $album_config_value = $row['config_value']; ! $album_config[$album_config_name] = $album_config_value; ! } ! // --- Album Category Hirarchy : begin ! // --- version : 1.2.0 ! if ( $album_config['album_debug_mode'] == 1 ) ! { ! $GLOBALS['album_debug_enabled'] = true; ! } ! else ! { ! $GLOBALS['album_debug_enabled'] = false; ! } ! // --- Album Category Hirarchy : end ! // for compatibility with mx and SP... ! // $album_config['rate'] = '1'; ! // $album_config['comment'] = '1'; ! // $album_config['fullpic_popup'] = '0'; ! // get SP config info ! $sql = "SELECT * ! FROM " . ALBUM_SP_CONFIG_TABLE; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query SP config information", "", __LINE__, __FILE__, $sql ); ! } ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $album_sp_config_name = $row['config_name']; ! $album_sp_config_value = $row['config_value']; ! ! $album_sp_config[$album_sp_config_name] = $album_sp_config_value; ! } ! // end get SP config info ! include_once( $album_root_path . 'album_functions.' . $phpEx ); ! include_once( $album_root_path . 'clown_album_functions.' . $phpEx ); ! include_once( $album_root_path . 'album_hierarchy_functions.' . $phpEx ); ! ! // Set ALBUM Version ! ! $template->assign_vars( array( 'ALBUM_VERSION' => '2' . $album_config['album_version'], ! 'ALBUM_VERSION_INFO' => 'This script (Smartor Album v. 2.0.0 :: mxBB Portal Module 2004, with Volodymyr (CLowN) Skoryks SP1 addon, IdleVoid\'s Album Category Hierarchy mod) is modified by <a href="http://www.mx-system.com">mxBB Team</a> ', ! 'PAFILEDB_SEARCH_ACTION' => append_sid( album_append_uid( this_smartor_mxurl() ) ), ! 'PAFILEDB_SEARCH_HIDDEN' => '<input type="hidden" name="smartor_mode" value="album_search"><input type="hidden" name="page" value="' . $page_id . '">', ! 'L_INDEX' => '<<', ! 'U_INDEX' => append_sid( $mx_root_path . "index." . $phpEx ), ! 'L_ALBUM' => $lang['Album'], ! 'L_TITLE' => $title, ! 'U_ALBUM' => append_sid( album_append_uid( this_smartor_mxurl() ) ) ! ) ! ); ! ?> \ No newline at end of file |