|
From: Jon O. <jon...@us...> - 2005-04-12 19:48:29
|
Update of /cvsroot/mxbb/mx_act/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14412/modules/mx_act/includes Modified Files: act_constants.php Log Message: Index: act_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/includes/act_constants.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** act_constants.php 6 Mar 2005 01:11:40 -0000 1.8 --- act_constants.php 12 Apr 2005 19:48:19 -0000 1.9 *************** *** 1,125 **** ! <?php ! /** ! * kb_constants.php ! * ------------------- ! * begin : April, 2003 ! * copyright : (C) 2002 MX-System ! * email : su...@mx... ! * description : define constants ! * Author : Haplo (jon...@ho...) ! * credit : Roman Malarev (romutis), MarcMoris ! * ! * $Id$ ! */ ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_ACTIVITY', -12 ); ! define( 'PAGE_PLAYING_GAMES', -13 ); ! ! /* ! // iNetAngel Activity Data ! define('iNA', $mx_table_prefix.'ina_data'); ! ! // iNetAngel Games Data ! define('iNA_GAMES', $mx_table_prefix.'ina_games'); ! define('iNA_SCORES', $mx_table_prefix.'ina_scores'); ! ! // Addon ! define('INA_TROPHY', $mx_table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $mx_table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $mx_table_prefix .'ina_ban'); ! ! // MX ! define("iNA_CONFIG", $mx_table_prefix .'ina_config'); ! */ ! ! define( 'iNA', $mx_table_prefix . 'ina_data' ); ! ! define( 'iNA_GAMES', $mx_table_prefix . 'ina_games' ); ! define( 'iNA_SCORES', $mx_table_prefix . 'ina_scores' ); ! ! define( 'INA_TROPHY', $mx_table_prefix . 'ina_top_scores' ); ! define( 'INA_CHEAT', $mx_table_prefix . 'ina_cheat_fix' ); ! define( 'INA_BAN', $mx_table_prefix . 'ina_ban' ); ! ! define( 'INA_CATEGORY', $mx_table_prefix . 'ina_categories' ); ! define( 'INA_CATEGORY_MAIN', $mx_table_prefix . 'ina_main_categories' ); ! define( 'INA_CATEGORY_DATA', $mx_table_prefix . 'ina_categories_data' ); ! define( 'INA_DISABLE', $mx_table_prefix . 'ina_hidden' ); ! define( 'INA_CHALLENGE', $mx_table_prefix . 'ina_challenge_tracker' ); ! define( 'INA_CHALLENGE_USERS', $mx_table_prefix . 'ina_challenge_users' ); ! ! define( "iNA_TROPHY_COMMENTS", $mx_table_prefix . 'ina_trophy_comments' ); ! define( "iNA_CONFIG", $mx_table_prefix . 'ina_config' ); ! define( "iNA_SCORE_FIX", $mx_table_prefix . 'scores_fixer' ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx ) ) ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_english/lang_activity.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! // Pull all config data ! ! $sql = "SELECT * ! FROM " . iNA_CONFIG; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query config information in act_config", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $act_config[$config_name] = $config_value; ! } ! } ! ! $mxbb_footer_addup[] = 'mxBB Activity Games Module'; ! ! ?> \ No newline at end of file --- 1,125 ---- ! <?php ! /** ! * kb_constants.php ! * ------------------- ! * begin : April, 2003 ! * copyright : (C) 2002 MX-System ! * email : su...@mx... ! * description : define constants ! * Author : Haplo (jon...@ho...) ! * credit : Roman Malarev (romutis), MarcMoris ! * ! * $Id$ ! */ ! // ---------------------------------------------------------------------START ! // This file defines specific constants for the module ! // ------------------------------------------------------------------------- ! define( 'PAGE_ACTIVITY', -12 ); ! define( 'PAGE_PLAYING_GAMES', -13 ); ! ! /* ! // iNetAngel Activity Data ! define('iNA', $mx_table_prefix.'ina_data'); ! ! // iNetAngel Games Data ! define('iNA_GAMES', $mx_table_prefix.'ina_games'); ! define('iNA_SCORES', $mx_table_prefix.'ina_scores'); ! ! // Addon ! define('INA_TROPHY', $mx_table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $mx_table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $mx_table_prefix .'ina_ban'); ! ! // MX ! define("iNA_CONFIG", $mx_table_prefix .'ina_config'); ! */ ! ! define( 'iNA', $mx_table_prefix . 'ina_data' ); ! ! define( 'iNA_GAMES', $mx_table_prefix . 'ina_games' ); ! define( 'iNA_SCORES', $mx_table_prefix . 'ina_scores' ); ! ! define( 'INA_TROPHY', $mx_table_prefix . 'ina_top_scores' ); ! define( 'INA_CHEAT', $mx_table_prefix . 'ina_cheat_fix' ); ! define( 'INA_BAN', $mx_table_prefix . 'ina_ban' ); ! ! define( 'INA_CATEGORY', $mx_table_prefix . 'ina_categories' ); ! define( 'INA_CATEGORY_MAIN', $mx_table_prefix . 'ina_main_categories' ); ! define( 'INA_CATEGORY_DATA', $mx_table_prefix . 'ina_categories_data' ); ! define( 'INA_DISABLE', $mx_table_prefix . 'ina_hidden' ); ! define( 'INA_CHALLENGE', $mx_table_prefix . 'ina_challenge_tracker' ); ! define( 'INA_CHALLENGE_USERS', $mx_table_prefix . 'ina_challenge_users' ); ! ! define( "iNA_TROPHY_COMMENTS", $mx_table_prefix . 'ina_trophy_comments' ); ! define( "iNA_CONFIG", $mx_table_prefix . 'ina_config' ); ! define( "iNA_SCORE_FIX", $mx_table_prefix . 'scores_fixer' ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( !file_exists( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_english/lang_main.' . $phpEx ); ! $link_language = 'lang_english'; ! } ! else ! { ! include( $mx_root_path . 'modules/mx_act/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! $link_language = 'lang_' . $board_config['default_lang']; ! } ! // ********************************************************************** ! // Read theme definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; ! // ---------- ! } ! else ! { ! // ---------- ! $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; ! // ---------- ! } ! // ********************************************************************** ! // Read image language in theme definition ! // ********************************************************************** ! if ( file_exists( "$current_template_images/$link_language/kb.gif" ) ) ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/$link_language/kb.gif"; ! // ---------- ! } ! else ! { ! // ---------- ! $images['icon_approve'] = "$current_template_images/icon_approve.gif"; ! $images['icon_unapprove'] = "$current_template_images/icon_unapprove.gif"; ! $images['kb_title'] = "$current_template_images/lang_english/kb.gif"; ! // ---------- ! } ! ! // Pull all config data ! ! $sql = "SELECT * ! FROM " . iNA_CONFIG; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( CRITICAL_ERROR, "Could not query config information in act_config", "", __LINE__, __FILE__, $sql ); ! } ! else ! { ! while ( $row = $db->sql_fetchrow( $result ) ) ! { ! $config_name = $row['config_name']; ! $config_value = $row['config_value']; ! $act_config[$config_name] = $config_value; ! } ! } ! ! $mxbb_footer_addup[] = 'mxBB Activity Games Module'; ! ! ?> \ No newline at end of file |