Update of /cvsroot/mxbb/mx_act/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8846/admin Modified Files: Tag: core28x admin_activity.php admin_ina_ban.php admin_ina_category.php admin_ina_disable.php admin_ina_scores_edit.php admin_ina_xtras.php Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... Index: admin_ina_disable.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_disable.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_disable.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_disable.php 31 Jan 2008 08:50:23 -0000 1.6.2.1 *************** *** 24,45 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Hide/Show Games'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,41 ---- require( $module_root_path . 'includes/act_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_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) Index: admin_activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_activity.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** admin_activity.php 2 May 2006 23:25:45 -0000 1.8 --- admin_activity.php 31 Jan 2008 08:50:15 -0000 1.8.2.1 *************** *** 26,49 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! // include_once($phpbb_root_path . 'includes/functions_search.'.$phpEx); ! // include_once($mx_root_path . 'admin/page_header_admin.' . $phpEx); ! /* ! define('IN_PHPBB', 1); ! ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['.:Configuration:.'] = $file; ! $module['Activities']['Add_Game'] = append_sid("admin_activity.$phpEx?mode=add_game"); ! $module['Activities']['Edit_Games'] = append_sid("admin_activity.$phpEx?mode=edit_games"); ! return; } ! $phpbb_root_path = '../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! require('pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! */ $sql = "SELECT * FROM " . iNA; --- 26,43 ---- require( $module_root_path . 'includes/act_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_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! $sql = "SELECT * FROM " . iNA; *************** *** 291,294 **** --- 285,289 ---- "NAME" => $game_info['game_name'], "PATH" => $game_info['game_path'], + "PAGE" => $game_info['ina_page'], "DESC" => $game_info['game_desc'], "CHARGE" => $game_info['game_charge'], *************** *** 438,441 **** --- 433,437 ---- $game_name = ( isset( $HTTP_POST_VARS['game_name'] ) ) ? trim( $HTTP_POST_VARS['game_name'] ) : ""; $game_path = ( isset( $HTTP_POST_VARS['game_path'] ) ) ? trim( $HTTP_POST_VARS['game_path'] ) : ""; + $game_page = ( isset( $HTTP_POST_VARS['ina_page'] ) ) ? trim( $HTTP_POST_VARS['ina_page'] ) : 0; $game_desc = ( isset( $HTTP_POST_VARS['game_desc'] ) ) ? trim( $HTTP_POST_VARS['game_desc'] ) : ""; $game_charge = ( isset( $HTTP_POST_VARS['game_charge'] ) ) ? intval( $HTTP_POST_VARS['game_charge'] ) : 0; *************** *** 486,489 **** --- 482,498 ---- } + if ( $game_page ) + { + $sql = "UPDATE " . iNA_CONFIG . " + SET config_value = '$game_page' + WHERE config_name = 'ina_page'"; + if ( !$result = $db->sql_query( $sql ) ) + { + mx_message_die( GENERAL_ERROR, 'Can\'t upgrade the games portal page.', "", __LINE__, __FILE__, $sql ); + } + } + mx_message_die( GENERAL_ERROR, 'Can\'t upgrade the games portal page.', "", __LINE__, __FILE__, $sql ); + + if ( $game_category ) { *************** *** 567,570 **** --- 576,580 ---- $game_desc = $game_rows[$i]['game_desc']; $game_path = $game_rows[$i]['game_path']; + $game_page = $game_rows[$i]['ina_page']; if ( $game_rows[$i]['game_use_gl'] ) *************** *** 604,607 **** --- 614,618 ---- "NAME" => $game_name, "PATH" => $game_path, + "PAGE" => $game_page, "GAMELIB" => $game_gl, "FLASH" => $game_flash, *************** *** 702,705 **** --- 713,718 ---- $gamelib_path = $new['gamelib_path']; + $games_page = $new['ina_page']; + $games_per_page = $new['games_per_page']; *************** *** 759,762 **** --- 772,776 ---- "L_ADAR_SHOP" => $lang['admin_adar_shop'], "L_ADAR_INFO" => $lang['admin_no_adar_info'], + 'L_GAMES_PAGE' => $lang['games_page'], "L_PAGE" => $lang['admin_page'], *************** *** 782,785 **** --- 796,800 ---- "S_USE_REWARDS_NO" => $use_rewards_no, + 'S_GAMES_PAGE' => $games_page, "S_GAMES_PATH" => $games_path, "S_GAMELIB_PATH" => $gamelib_path, Index: admin_ina_xtras.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_xtras.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_xtras.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_xtras.php 31 Jan 2008 08:50:30 -0000 1.6.2.1 *************** *** 24,43 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Xtras'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); - require('./pagestart.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,41 ---- require( $module_root_path . 'includes/act_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_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) *************** *** 208,211 **** --- 206,219 ---- echo " <td align='left' valign='top' width='50%' class='row2'>"; echo " <span class='genmed'>"; + echo " mxBB Games Page"; + echo " </span>"; + echo " </td>"; + echo " <td align='center' valign='top' width='50%' class='row2'>"; + echo " <input type='text' name='games_page' value='" . $act_config['ina_page'] . "'>"; + echo " </td>"; + echo " </tr>"; + echo " <tr>"; + echo " <td align='left' valign='top' width='50%' class='row2'>"; + echo " <span class='genmed'>"; echo " Default Max Game Charge"; echo " </span>"; *************** *** 746,749 **** --- 754,758 ---- if ( $mode == "sconfig" ) { + $gpg = $_POST['games_page']; $nmc = $_POST['max_charge']; $ni = $_POST['increment']; *************** *** 911,915 **** $r = $db->sql_query( $q ); } ! if ( $nmc ) { --- 920,930 ---- $r = $db->sql_query( $q ); } ! if ( $gpg ) ! { ! $q = "UPDATE " . iNA_CONFIG . " ! SET config_value = '$gpg' ! WHERE config_name = 'ina_page'"; ! $r = $db->sql_query( $q ); ! } if ( $nmc ) { Index: admin_ina_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_category.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_category.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_category.php 31 Jan 2008 08:50:21 -0000 1.6.2.1 *************** *** 24,45 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Category'] = 'modules/mx_act/admin/' . "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,41 ---- require( $module_root_path . 'includes/act_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_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) Index: admin_ina_scores_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_scores_edit.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_scores_edit.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_scores_edit.php 31 Jan 2008 08:50:27 -0000 1.6.2.1 *************** *** 24,45 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Scores Editor'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); - require('./pagestart.' . $phpEx); - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { --- 24,42 ---- require( $module_root_path . 'includes/act_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_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { Index: admin_ina_ban.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_ban.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_ban.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_ban.php 31 Jan 2008 08:50:18 -0000 1.6.2.1 *************** *** 24,43 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['User Ban'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! require('./pagestart.' . $phpEx); ! */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,40 ---- require( $module_root_path . 'includes/act_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_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) |