You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2005-10-12 16:32:45
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32127/modules/mx_pafiledb/admin Added Files: mx_module_defs.php Log Message: forgotten --- NEW FILE: mx_module_defs.php --- <?php /** ------------------------------------------------------------------------ * Subject : mxBB - a fully modular portal and CMS (for phpBB) * Author : Jon Ohlsson and the mxBB Team * Credits : The phpBB Group & Marc Morisette * Copyright : (C) 2002-2005 mxBB Portal * Email : jo...@mx... * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * * $Id: mx_module_defs.php,v 1.1 2005/10/12 16:32:32 jonohlsson Exp $ */ /** * 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. */ /********************************************************************************\ | Class: mx_module_defs | The mx_module_defs object provides extra module block parameters, added to the standard core parameters. | | Usage examples: | \********************************************************************************/ // // The following flags are class specific options // // Flow control define('MX_PANEL_DEBUG' , false); class mx_module_defs { var $is_panel = false; // ------------------------------ // Private Methods // // // =================================================== // define module specific block parameters // =================================================== function get_parameters($type_row = '') { global $lang; if (empty($type_row)) { $type_row = array(); } $type_row['pa_mapping'] = !empty($lang['ParType_pa_mapping']) ? $lang['ParType_pa_mapping'] : "pafileDB category mapping"; $type_row['pa_quick_cat'] = !empty($lang['ParType_pa_quick_cat']) ? $lang['ParType_pa_quick_cat'] : "pafileDB default category"; return $type_row; } // =================================================== // Submit custom parameter field and data // =================================================== function submit_module_parameters( $parameter_data, $block_id ) { global $HTTP_POST_VARS, $db, $board_config, $mx_cache; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_id']]; $parameter_opt = ''; switch ( $parameter_data['parameter_type'] ) { case 'pa_quick_cat': $bbcode_on = $board_config['allow_bbcode'] ? true : false; $html_on = $board_config['allow_html'] ? true : false; $smilies_on = $board_config['allow_smilies'] ? true : false; if( $bbcode_on ) { $bbcode_uid = make_bbcode_uid(); } break; } $parameter_value = prepare_message(trim($parameter_value), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); $parameter_opt = $bbcode_uid; return array('parameter_value' => $parameter_value, 'parameter_opt' => $parameter_opt); } // =================================================== // display parameter field and data in the add/edit page // =================================================== function display_module_parameters( $parameter_data, $block_id ) { global $template, $mx_blockcp, $mx_root_path, $theme, $lang; switch ( $parameter_data['parameter_type'] ) { case 'pa_mapping': $this->display_edit_pa_mapping( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; case 'pa_quick_cat': $this->display_edit_pa_quick_cat( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; } } function display_edit_pa_quick_cat( $block_id, $parameter_id, $parameter_data ) { global $template, $board_config, $db, $theme, $lang, $mx_blockcp, $phpEx, $mx_root_path, $mx_table_prefix, $table_prefix; // // Includes // $module_root_path = $mx_root_path . $mx_blockcp->module_root_path; include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); // // Get varaibles // $data = ( !empty( $parameter_data['parameter_value'] ) ) ? $parameter_data['parameter_value'] : ''; $parameter_datas = $this->jumpmenu_option( 0, 0, array( $data => 1 ), false ); // // Start page proper // if (file_exists($mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl')) { $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl'; } else { $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/subSilver' . '/admin/mx_module_parameters.tpl'; } $template->set_filenames(array( 'parameter' => $module_template_file) ); $template->assign_block_vars( 'select', array( 'PARAMETER_TITLE' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], 'PARAMETER_TITLE_EXPLAIN' => ( !empty($lang[$parameter_data['parameter_name']. "_explain"]) ) ? '<br />' . $lang[$parameter_data['parameter_name']. "_explain"] : '', 'SELECT_LIST' => $parameter_datas, 'FIELD_NAME' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], 'FIELD_ID' => $parameter_data['parameter_id'], 'FIELD_DESCRIPTION' => ( !empty($lang["ParType_".$parameter_data['parameter_type']]) ) ? $lang["ParType_".$parameter_data['parameter_type']] : '' )); $template->pparse('parameter'); } // =================================================== // Display cuztom Panel // =================================================== function display_edit_pa_mapping( $block_id, $parameter_id, $parameter_data ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $userdata, $mx_request_vars, $phpEx, $mx_table_prefix, $table_prefix; // // This is a PANEL - with it's own submit and reload interface // $this->is_panel = true; // // Includes // $module_root_path = $mx_root_path . $mx_blockcp->module_root_path; include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); // // Mode setting // //$mode = $mx_request_vars->request('panel_mode', MX_TYPE_NO_TAGS, ''); $action = $mx_request_vars->request('panel_action', MX_TYPE_NO_TAGS, ''); // // SUBMIT? // if( !empty($action) ) { // // Get vars // $portalpage = $mx_request_vars->request('portalpage', MX_TYPE_INT, 1); $id = $mx_request_vars->request('id', MX_TYPE_INT, ''); // // Send to db functions // $result_message = $this->do_it($action, $id); // // If new // if (is_array($result_message)) { $result_message = $result_message['text']; } // // Refresh mx_block object with new settings // $mx_blockcp->init($block_id, true); } // if .. !empty($mode) // // Start page proper // if (file_exists($mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_panel.tpl')) { $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_panel.tpl'; } else { $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/subSilver' . '/admin/mx_module_panel.tpl'; } $template->set_filenames(array( 'parameter' => $module_template_file) ); $s_hidden_fields .= '<input type="hidden" name="block_id" value="' . $block_id . '" />'; // // Get blockcp mode -> to set action file // $s_action_file = $mx_blockcp->blockcp_mode == 'mx_blockcp' ? 'modules/mx_coreblocks/mx_blockcp.php' : 'admin/admin_mx_block_cp.php'; // // Define all actions // $deletemode = '?panel_action=' . MX_DO_DELETE . '&id=' . $parameter_id . '&block_id=' . $block_id; // // Hidden fields // $s_hidden_add_fields = '<input type="hidden" name="panel_action" value="' . MX_DO_INSERT . '" /> <input type="hidden" name="id" value="' . $parameter_id . '" /> <input type="hidden" name="block_id" value="' . $block_id . '" /> <input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />'; $s_hidden_update_fields = '<input type="hidden" name="panel_action" value="' . MX_DO_UPDATE . '" /> <input type="hidden" name="id" value="' . $parameter_id . '" /> <input type="hidden" name="block_id" value="' . $block_id . '" /> <input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />'; // // Get varaibles // $pa_map_cat = $this->jumpmenu_option( 0, 0, '', true ); $pa_map_dynid = get_list_formatted( 'block_list', 0, 'map_dyn_id' ); // // Main parameters // $template->assign_vars(array( // // Standards // 'SID' => $userdata['session_id'], 'RESULT_MESSAGE' => !empty($result_message) ? '<div style="overflow:auto; height:50px;"><span class="gensmall">' . $result_message . '<br/> -::-</span></div>': '', 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_MAP_PAFILEDB' => $lang['Map_pafiledb'], 'L_MAP_MXBB' => $lang['Map_mxbb'], 'L_PANEL_TITLE' => $lang['Panel_title'], 'L_PANEL_TITLE_EXPLAIN' => $lang['Panel_title_explain'], 'L_ADD' => $lang['Add_new'], 'L_EDIT' => $lang['Edit'], 'L_DELETE' => $lang['Delete'], 'L_MOVE_UP' => $lang['Move_up'], 'L_MOVE_DOWN' => $lang['Move_down'], 'L_RESYNC' => $lang['Resync'], 'L_CHANGE_NOW' => $lang['Change'], 'S_MAP_CAT_LIST' => $pa_map_cat, 'S_MAP_DYN_LIST' => $pa_map_dynid, 'L_BLOCK' => $lang['Block'], 'S_HIDDEN_ADD_FIELDS' => $s_hidden_add_fields, 'S_HIDDEN_UPDATE_FIELDS' => $s_hidden_update_fields, 'S_ACTION' => append_sid(PORTAL_URL . $s_action_file), )); if( !empty($portalpage) ) { $template->assign_block_vars('block_mode', array( 'U_RETURN' => append_sid(PORTAL_URL . "index.$phpEx?page=$portalpage") )); } $pa_mapping_data = !empty($mx_blockcp->block_parameters['pa_mapping']['parameter_value']) ? unserialize( stripslashes( $mx_blockcp->block_parameters['pa_mapping']['parameter_value'] )) : array(); // // Check that some categories exist // if ( $total_maps = count( $pa_mapping_data ) ) { for( $i = 0; $i < $total_maps; $i++ ) { $pa_map_cat_tmp = $this->jumpmenu_option( 0, 0, array( $pa_mapping_data[$i]['map_cat_id'] => 1 ), false ); $pa_map_dynid_id = 'map_dyn_id_'.$i; $pa_map_dynid_tmp = get_list_formatted( 'block_list', $pa_mapping_data[$i]['map_dyn_id'], $pa_map_dynid_id ); $pa_delete_url = append_sid($mx_root_path . $s_action_file . $deletemode . '&delete_id=' . $i . '&sid=' . $userdata['session_id']); $template->assign_block_vars( 'map_row', array( 'CAT_ID' => $i, 'CAT_LIST' => $pa_map_cat_tmp, 'DYN_ID' => $i, 'DYN_LIST' => $pa_map_dynid_tmp, 'DELETE' => $pa_delete_url, 'L_DELETE' => $lang['Delete'] ) ); } } $template->pparse('parameter'); } function do_it( $action = '', $id = '' ) { switch ( $action ) { case MX_DO_INSERT: $message = $this->_do_insert($id); break; case MX_DO_UPDATE: $message = $this->_do_update($id); break; case MX_DO_DELETE: $message = $this->_do_delete($id); break; } if (!empty($message)) { return $message; } } /********************************************************************************\ | Used by admin_mx_module.php, for the pak_import \********************************************************************************/ function _do_insert( $id ) { global $template, $lang, $db, $board_config, $theme, $phpEx, $HTTP_GET_VARS, $HTTP_POST_VARS, $userdata, $mx_request_vars, $mx_cache, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) { // // Get mapping // $pa_mapping_list = !empty($mx_blockcp->block_parameters['pa_mapping']['parameter_value']) ? unserialize( stripslashes( $mx_blockcp->block_parameters['pa_mapping']['parameter_value'] )) : array(); // // Append mapping // $pa_mapping_list[] = array( 'map_cat_id' => intval( $HTTP_POST_VARS['map_cat_id'] ), 'map_dyn_id' => intval( $HTTP_POST_VARS['map_dyn_id'] ) ); $pa_mapping_data = addslashes( serialize( $pa_mapping_list )); $sql1 = "UPDATE " . BLOCK_SYSTEM_PARAMETER_TABLE . " SET parameter_value = '" . $pa_mapping_data . "' WHERE block_id = $block_id AND parameter_id = '".$mx_blockcp->block_parameters['pa_mapping']['parameter_id']."'"; if ( !( $result = $db->sql_query( $sql1 ) ) ) { message_die( GENERAL_ERROR, $lang['News_update_error'], "", __LINE__, __FILE__, $sql[$i] ); } } $message['text'] = $lang['AdminCP_action'] . ": " . $lang['Nav_menu_cat'] . ' (' . $mx_request_vars->post('cat_title', MX_TYPE_NO_TAGS, 'error - no name given') . ') ' . $lang['was_inserted']; $message['new_cat_menu_id'] = $cat_id_new; return $message; } /********************************************************************************\ | Used by admin_mx_module.php, for the pak_import \********************************************************************************/ function _do_update( $id ) { global $template, $lang, $db, $board_config, $theme, $phpEx, $HTTP_GET_VARS, $HTTP_POST_VARS, $userdata, $mx_request_vars, $mx_cache, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) { $pa_mapping_list = !empty($mx_blockcp->block_parameters['pa_mapping']['parameter_value']) ? unserialize( stripslashes( $mx_blockcp->block_parameters['pa_mapping']['parameter_value'] )) : array(); for ( $i = 0; $i < count($pa_mapping_list); $i++ ) { $pa_cat_key = 'map_cat_id_' . $i; $pa_dyn_key = 'map_dyn_id_' . $i; $pa_mapping_list[$i] = array( 'map_cat_id' => intval( $HTTP_POST_VARS[$pa_cat_key] ), 'map_dyn_id' => intval( $HTTP_POST_VARS[$pa_dyn_key] ) ); } $pa_mapping_data = addslashes( serialize( $pa_mapping_list )); $sql = "UPDATE " . BLOCK_SYSTEM_PARAMETER_TABLE . " SET parameter_value = '" . $pa_mapping_data . "' WHERE block_id = $block_id AND parameter_id = '".$mx_blockcp->block_parameters['pa_mapping']['parameter_id']."'"; if ( !( $result = $db->sql_query( $sql ) ) ) { message_die( GENERAL_ERROR, $lang['News_update_error'], "", __LINE__, __FILE__, $sql[$i] ); } } $message = $lang['AdminCP_action'] . ": " . $lang['Nav_menu_cat'] . ' (' . $mx_request_vars->post('cat_title', MX_TYPE_NO_TAGS, '') . ') ' . $lang['was_updated']; return $message; } /********************************************************************************\ | Used by admin_mx_module.php, for the pak_import \********************************************************************************/ function _do_delete( $id ) { global $template, $lang, $db, $board_config, $theme, $phpEx, $HTTP_GET_VARS, $HTTP_POST_VARS, $mx_request_vars, $mx_cache, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) { $pa_mapping_list = !empty($mx_blockcp->block_parameters['pa_mapping']['parameter_value']) ? unserialize( stripslashes( $mx_blockcp->block_parameters['pa_mapping']['parameter_value'] )) : array(); $pa_mapping_list_tmp = array(); for ( $i = 0; $i < count($pa_mapping_list); $i++ ) { if ( $i != intval( $HTTP_GET_VARS['delete_id'] ) ) { $pa_mapping_list_tmp[] = $pa_mapping_list[$i]; } } $pa_mapping_data = addslashes( serialize( $pa_mapping_list_tmp )); $sql1 = "UPDATE " . BLOCK_SYSTEM_PARAMETER_TABLE . " SET parameter_value = '" . $pa_mapping_data . "' WHERE block_id = $block_id AND parameter_id = '".$mx_blockcp->block_parameters['pa_mapping']['parameter_id']."'"; if ( !( $result = $db->sql_query( $sql1 ) ) ) { message_die( GENERAL_ERROR, $lang['News_update_error'], "", __LINE__, __FILE__, $sql[$i] ); } } $message = $lang['AdminCP_action'] . ": " . $words_removed . ' ' . $lang['Nav_menu_cat'] . ' (ID: ' . $from_id . ') ' . $lang['was_deleted'] . '<br />' . $message_child; return $message; } // =================================================== // Jump menu function // $cat_id : to handle parent cat_id // $depth : related to function to generate tree // $default : the cat you wanted to be selected // $for_file: TRUE high category ids will be -1 // $check_upload: if true permission for upload will be checked // =================================================== function jumpmenu_option( $cat_id = 0, $depth = 0, $default = '', $for_file = false, $check_upload = false ) { global $db; static $cat_rowset = false; $sql = 'SELECT * FROM ' . PA_CATEGORY_TABLE . ' ORDER BY cat_order ASC'; if ( !( $result = $db->sql_query( $sql ) ) ) { message_die( GENERAL_ERROR, 'Couldnt Query categories info', '', __LINE__, __FILE__, $sql ); } $cat_rowset_temp = $db->sql_fetchrowset( $result ); $db->sql_freeresult( $result ); $cat_rowset = array(); foreach( $cat_rowset_temp as $row ) { $cat_rowset[$row['cat_id']] = $row; } // // Generate list // $cat_list .= ''; $pre = str_repeat( ' ', $depth ); $temp_cat_rowset = $cat_rowset; if ( !empty( $temp_cat_rowset ) ) { foreach ( $temp_cat_rowset as $temp_cat_id => $cat ) { if ( $cat['cat_parent'] == $cat_id ) { if ( is_array( $default ) ) { if ( isset( $default[$cat['cat_id']] ) ) { $sel = ' selected="selected"'; } else { $sel = ''; } } $cat_pre = ( !$cat['cat_allow_file'] ) ? '+ ' : '- '; $sub_cat_id = ( $for_file ) ? ( ( !$cat['cat_allow_file'] ) ? -1 : $cat['cat_id'] ) : $cat['cat_id']; $cat_class = ( !$cat['cat_allow_file'] ) ? 'class="greyed"' : ''; $cat_list .= '<option value="' . $sub_cat_id . '"' . $sel . ' ' . $cat_class . ' />' . $pre . $cat_pre . $cat['cat_name'] . '</option>'; $cat_list .= $this->jumpmenu_option( $cat['cat_id'], $depth + 1, $default, $for_file, $check_upload ); } } return $cat_list; } else { return; } } } ?> |
|
From: Jon O. <jon...@us...> - 2005-10-12 16:16:20
|
Update of /cvsroot/mxbb/mx_calsnails In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28170/modules/mx_calsnails Modified Files: CalSnails_Lite.pak Log Message: updated Index: CalSnails_Lite.pak =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/CalSnails_Lite.pak,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** CalSnails_Lite.pak 22 Sep 2005 10:08:05 -0000 1.6 --- CalSnails_Lite.pak 12 Oct 2005 16:16:11 -0000 1.7 *************** *** 22,30 **** New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:42=+:44=+:CalSnails Mini=+:Calendar Lite (mini function)=+:mx_calendar_mini.php=+: ! parameter=+:44=+:325=+:target_block=+:Function=+:0=+:get_list_formatted("block_list","{parameter_value}","{parameter_id}[]", "calendar.php") parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Mini=+:Demo block=+:44=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:42=+:46=+:Calendar Querys1=+:Sample function to help you export Calendar Lite data=+:mx_calendar_query.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Calendar Querys1=+:Demo block=+:46=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 --- 22,34 ---- New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:42=+:44=+:CalSnails Mini=+:Calendar Lite (mini function)=+:mx_calendar_mini.php=+: ! parameter=+:44=+:329=+:target_block=+:Function=+:0=+:get_list_formatted("block_list","{parameter_value}","{parameter_id}[]", "calendar.php") parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - CalSnails Mini=+:Demo block=+:44=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:42=+:46=+:Calendar Querys1=+:Sample function to help you export Calendar Lite data=+:mx_calendar_query.php=+: + parameter=+:46=+:75=+:Calendar_Block_Title=+:Text=+:=+: + parameter=+:46=+:76=+:Calendar_Events_dateformat=+:Text=+:=+: + parameter=+:46=+:78=+:Calendar_Order=+:Text=+:stamp, subject=+: + parameter=+:46=+:77=+:Calendar_Where=+:Text=+:=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - Calendar Querys1=+:Demo block=+:46=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 |
|
From: Jon O. <jon...@us...> - 2005-10-12 16:07:33
|
Update of /cvsroot/mxbb/core/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24348/install Modified Files: mx_install.php Log Message: updated installation for rc7 Index: mx_install.php =================================================================== RCS file: /cvsroot/mxbb/core/install/mx_install.php,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** mx_install.php 20 Sep 2005 15:36:47 -0000 1.49 --- mx_install.php 12 Oct 2005 16:07:21 -0000 1.50 *************** *** 48,52 **** // $mx_portal_name = 'mxBB-Portal'; ! $mx_portal_version = '2.8 - RC6'; // --- 48,52 ---- // $mx_portal_name = 'mxBB-Portal'; ! $mx_portal_version = '2.8 - RC7'; // |
|
From: Jon O. <jon...@us...> - 2005-10-12 16:07:33
|
Update of /cvsroot/mxbb/core/install/schemas In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24348/install/schemas Modified Files: upgrade_schemas_map.php Added Files: mysql_schema_upgrade_to_2.8_rc7.sql Log Message: updated installation for rc7 Index: upgrade_schemas_map.php =================================================================== RCS file: /cvsroot/mxbb/core/install/schemas/upgrade_schemas_map.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** upgrade_schemas_map.php 9 Sep 2005 16:49:57 -0000 1.7 --- upgrade_schemas_map.php 12 Oct 2005 16:07:21 -0000 1.8 *************** *** 40,44 **** array('schema' => 'upgrade_to_2.706' , 'sql' => "SELECT portal_version FROM mx_table_portal"), array('schema' => 'upgrade_to_2.7.1' , 'sql' => "SELECT link_target FROM mx_table_menu_nav"), ! array('schema' => 'upgrade_to_2.8_rc5' , 'sql' => "SELECT parameter_order FROM mx_table_parameter") ); --- 40,45 ---- array('schema' => 'upgrade_to_2.706' , 'sql' => "SELECT portal_version FROM mx_table_portal"), array('schema' => 'upgrade_to_2.7.1' , 'sql' => "SELECT link_target FROM mx_table_menu_nav"), ! array('schema' => 'upgrade_to_2.8_rc5' , 'sql' => "SELECT parameter_order FROM mx_table_parameter"), ! array('schema' => 'upgrade_to_2.8_rc7' , 'sql' => "SELECT ip_filter FROM mx_table_page") ); --- NEW FILE: mysql_schema_upgrade_to_2.8_rc7.sql --- # # mxBB-Portal - MySQL Schema - Upgrade "2.8 - RC7" # # $Id: mysql_schema_upgrade_to_2.8_rc7.sql,v 1.1 2005/10/12 16:07:21 jonohlsson Exp $ # # ------------------------------------------------------------ # # New Fields in Table `mx_page` # ALTER TABLE mx_table_page ADD ip_filter VARCHAR(255) NOT NULL DEFAULT ''; |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:41:48
|
Update of /cvsroot/mxbb/mx_phpbb/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16899/modules/mx_phpbb/includes Modified Files: forum_hack.php Log Message: several minor bugfixes Index: forum_hack.php =================================================================== RCS file: /cvsroot/mxbb/mx_phpbb/includes/forum_hack.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** forum_hack.php 1 Oct 2005 14:15:50 -0000 1.3 --- forum_hack.php 12 Oct 2005 15:41:36 -0000 1.4 *************** *** 208,212 **** while ( $phpbb_rows = $db->sql_fetchrow( $phpbb_result ) ) { - $page_id = $phpbb_rows['page_id']; $phpbb_type_select_data = ( !empty( $phpbb_rows['parameter_value'] ) ) ? unserialize($phpbb_rows['parameter_value']) : array(); --- 208,211 ---- *************** *** 217,221 **** if ($value == 1) { ! $this->phpbb_block_map[$forum_id] = $page_id; } } --- 216,220 ---- if ($value == 1) { ! $this->phpbb_block_map[$forum_id] = $phpbb_rows['page_id']; } } *************** *** 587,591 **** ); ! switch ( $this->script_name ) { case 'index': --- 586,590 ---- ); ! switch ( $this->phpbb_script ) { case 'index': *************** *** 1185,1189 **** { global $page_id; ! if (empty($this->phpbb_block_map)) { --- 1184,1188 ---- { global $page_id; ! if (empty($this->phpbb_block_map)) { |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:40:37
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16551/modules/mx_pafiledb/pafiledb/includes Modified Files: functions_pafiledb.php Log Message: rewritten part of the quickdl block: - now better in sync with navigation menu Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** functions_pafiledb.php 1 Oct 2005 14:15:19 -0000 1.18 --- functions_pafiledb.php 12 Oct 2005 15:40:20 -0000 1.19 *************** *** 873,877 **** } ! function category_display_quickdl( $cat_id = PA_ROOT_CAT ) { global $db, $pafiledb_template, $lang, $userdata, $phpEx, $images; --- 873,877 ---- } ! function category_display_quickdl( $cat_id = PA_ROOT_CAT, $pa_get_dynamic = array() ) { global $db, $pafiledb_template, $lang, $userdata, $phpEx, $images; *************** *** 927,931 **** $sub_cat = $this->get_sub_cat( $subcat_id ); ! $map_xtra = isset( $_REQUEST['dynamic_block'] ) ? '&dynamic_block=' . $_REQUEST['dynamic_block'] : ''; $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => false, /* - orig --- 927,932 ---- $sub_cat = $this->get_sub_cat( $subcat_id ); ! $map_xtra = !empty( $pa_get_dynamic[$subcat_id] ) ? '&dynamic_block=' . $pa_get_dynamic[$subcat_id] : ''; ! $pafiledb_template->assign_block_vars( 'no_cat_parent', array( 'IS_HIGHER_CAT' => false, /* - orig |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:40:29
|
Update of /cvsroot/mxbb/mx_pafiledb/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16551/modules/mx_pafiledb/templates/subSilver Modified Files: pa_quickdl_cat_body.tpl Log Message: rewritten part of the quickdl block: - now better in sync with navigation menu Index: pa_quickdl_cat_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/templates/subSilver/pa_quickdl_cat_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pa_quickdl_cat_body.tpl 6 Mar 2005 14:35:11 -0000 1.1 --- pa_quickdl_cat_body.tpl 12 Oct 2005 15:40:20 -0000 1.2 *************** *** 2,6 **** <tr> <td valign="bottom"> ! <span class="nav"><a href="{U_DOWNLOAD}" class="nav">{DOWNLOAD}</a></span> </td> </tr> --- 2,6 ---- <tr> <td valign="bottom"> ! <span class="nav"><a href="{U_DOWNLOAD}" class="nav">{BACK}</a>{DOWNLOAD}</span> </td> </tr> |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:40:29
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16551/modules/mx_pafiledb/pafiledb/modules Modified Files: pa_quickdl.php Log Message: rewritten part of the quickdl block: - now better in sync with navigation menu Index: pa_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_quickdl.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pa_quickdl.php 1 Oct 2005 14:15:20 -0000 1.2 --- pa_quickdl.php 12 Oct 2005 15:40:20 -0000 1.3 *************** *** 30,39 **** // ======================================================= ! // Get quickdl root cat ! $pa_mapping_data = array(); ! $pa_mapping_temp = $pafiledb_quickdl['pa_mapping']; ! $pa_mapping_temp = stripslashes( $pa_mapping_temp ); ! $pa_mapping_list = eval( "return " . $pa_mapping_temp . ";" ); if ( isset( $_REQUEST['dynamic_block'] ) ) { --- 30,50 ---- // ======================================================= ! $pa_mapping_list = !empty($pafiledb_quickdl['pa_mapping']) ? unserialize( stripslashes( $pafiledb_quickdl['pa_mapping'] )) : array(); ! ! // ! // Setup mappings ! // ! for ( $i = 0; $i < count( $pa_mapping_list ); $i++ ) ! { ! $pa_get_dynamic[$pa_mapping_list[$i]['map_cat_id']] = $pa_mapping_list[$i]['map_dyn_id']; ! $pa_get_cat[$pa_mapping_list[$i]['map_dyn_id']] = $pa_mapping_list[$i]['map_cat_id']; ! } ! ! // ! // Get pafiledb cat id - either from cat_id (GET), mapping (GET) or default cat_id (PAR) ! // ! $pa_cat_id = isset( $_REQUEST['cat_id'] ) ? intval( $_REQUEST['cat_id'] ) : ( isset( $_REQUEST['dynamic_block'] ) && !empty( $pa_get_cat[$_REQUEST['dynamic_block']] ) ? intval( $pa_get_cat[$_REQUEST['dynamic_block']] ) : intval( $pafiledb_quickdl['pa_quick_cat'] ) ); + /* if ( isset( $_REQUEST['dynamic_block'] ) ) { *************** *** 56,59 **** --- 67,71 ---- $pa_cat_id = isset( $_REQUEST['cat_id'] ) ? intval( $_REQUEST['cat_id'] ) : $map_cat_id; + */ $start = ( isset( $_REQUEST['start'] ) ) ? intval( $_REQUEST['start'] ) : 0; *************** *** 148,162 **** $quickdl = $this->cat_rowset[$pa_cat_id]; ! $quickdl_tmp = ''; ! if ( !empty( $pa_cat_id ) && $pa_cat_id != $map_cat_id ) { ! $quickdl_tmp = '« '; } ! $map_xtra = isset( $_REQUEST['dynamic_block'] ) ? '&dynamic_block=' . $_REQUEST['dynamic_block'] : ''; $pafiledb_template->assign_vars( array( ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'action=quickdl&cat_id=' . $map_cat_id . $map_xtra ) ), ! 'DOWNLOAD' => $quickdl_tmp . $quickdl['cat_name'] ) ); --- 160,175 ---- $quickdl = $this->cat_rowset[$pa_cat_id]; ! $quickdl_back = ''; ! if ( $pa_cat_id != $pafiledb_quickdl['pa_quick_cat'] ) { ! $quickdl_back = '« '; } ! $map_xtra = !empty( $pa_get_dynamic[$pafiledb_quickdl['pa_quick_cat']] ) ? '&dynamic_block=' . $pa_get_dynamic[$pafiledb_quickdl['pa_quick_cat']] : ''; $pafiledb_template->assign_vars( array( ! 'U_DOWNLOAD' => append_sid( pa_this_mxurl( 'action=quickdl&cat_id=' . $pafiledb_quickdl['pa_quick_cat'] . $map_xtra ) ), ! 'DOWNLOAD' => $quickdl['cat_name'], ! 'BACK' => $quickdl_back ) ); *************** *** 170,174 **** $no_file_message = false; ! $this->category_display_quickdl( $pa_cat_id ); } --- 183,187 ---- $no_file_message = false; ! $this->category_display_quickdl( $pa_cat_id, $pa_get_dynamic ); } |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:39:14
|
Update of /cvsroot/mxbb/mx_gallery2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16247/modules/mx_gallery2 Modified Files: gallery2_toplist.php Log Message: nicer toplist layout Index: gallery2_toplist.php =================================================================== RCS file: /cvsroot/mxbb/mx_gallery2/gallery2_toplist.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** gallery2_toplist.php 1 Oct 2005 14:13:00 -0000 1.2 --- gallery2_toplist.php 12 Oct 2005 15:39:06 -0000 1.3 *************** *** 180,184 **** else { ! $ret = GalleryEmbed::init(array( 'embedUri' => $embedUri, 'embedPath' => $embedPath, 'relativeG2Path' => $relativeG2Path, 'loginRedirect' => $loginRedirect, 'activeUserId' => 0)); if ($ret->isError()) { echo $ret->getAsHtml(); --- 180,184 ---- else { ! $ret = GalleryEmbed::init(array( 'embedUri' => $embedUri, 'embedPath' => $embedPath, 'relativeG2Path' => $relativeG2Path, 'loginRedirect' => $loginRedirect, 'activeUserId' => 2)); if ($ret->isError()) { echo $ret->getAsHtml(); |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:38:47
|
Update of /cvsroot/mxbb/mx_calsnails/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16141/modules/mx_calsnails/templates/subSilver Modified Files: mx_calendar_events.tpl Log Message: nicer events layout Index: mx_calendar_events.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/templates/subSilver/mx_calendar_events.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mx_calendar_events.tpl 6 Mar 2005 01:11:51 -0000 1.3 --- mx_calendar_events.tpl 12 Oct 2005 15:38:35 -0000 1.4 *************** *** 1,57 **** ! <table width="{BLOCK_SIZE}" cellpadding="0" cellspacing="0" border="0" class="forumline"> ! <!-- Old title ! <tr> ! <th align="left" class="thHead" align="center"> {L_TITLE} </th> ! </tr> ! --> <tr> ! <td width="100%" style="padding:0px;"> ! <!-- BEGIN switch_use_vsize_on --> <div style="overflow:auto; height:{BLOCK_VSIZE}px;"> ! <!-- END switch_use_vsize_on --> ! <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-style:none;"> ! ! <tr> ! <td class="rowpic" align="left" valign="middle" height="15"> ! <span class="gensmall"><b>{EVENTS_LABEL}</b></span><hr> ! </td> ! </tr> ! <!-- BEGIN no_events --> ! <tr> ! <td class="row1" align="center"><span class="gen"> <br />{no_events.NO_EVENTS}</span></td> ! </tr> ! <!-- END no_events --> ! <!-- BEGIN event_row --> ! <!-- BEGIN event_row_switch_day --> ! <tr> ! <td class="row2" valign="middle" height="15"> ! <span class="genmed"><a href="{event_row.U_INI_DATE}" ><b>{event_row.INI_DATE}</b></a> ! <!-- END event_row_switch_day --> ! <!-- BEGIN event_row_switch_endday --> ! <br />-> <a href="{event_row.U_END_DATE}" ><b>{event_row.END_DATE}</b></a> ! <!-- END event_row_switch_endday --> ! <!-- BEGIN event_row_switch_day --> ! </span></td> ! </tr> ! <!-- END event_row_switch_day --> ! <tr> ! <td class="{event_row.ROW_CLASS}"> ! <!-- BEGIN event_row_switch_time --> ! <span class="genmed"><u>{event_row.INI_TIME}</u></span><br /> ! <!-- END event_row_switch_time --> ! <span class="gensmall"><b>{event_row.SUBJECT}</b></span><br /> ! <span class="gensmall">{event_row.DESC}</span> ! <!-- ! <span class="gensmall">{event_row.AUTHOR}</span><br /> ! --> ! <span class="gensmall"><a href="{event_row.U_MORE_INFO}" class="gensmall">{L_MORE_INFO}</a></span> ! </td> ! </tr> ! <!-- END event_row --> </table> ! <!-- BEGIN switch_use_vsize_on --> </div> ! <!-- END switch_use_vsize_on --> </td> </tr> --- 1,60 ---- ! <table width="{BLOCK_SIZE}" cellpadding="3" cellspacing="0" border="0" class="forumline"> <tr> ! <td width="100%" > ! <!-- BEGIN switch_use_vsize_on --> <div style="overflow:auto; height:{BLOCK_VSIZE}px;"> ! <!-- END switch_use_vsize_on --> ! <table width="100%" cellpadding="2" cellspacing="1" border="0"> ! <tr> ! <td class="row3" align="left" valign="middle" height="15"> ! <span class="genmed"><b>{EVENTS_LABEL}</b></span> ! </td> ! </tr> ! ! <!-- BEGIN no_events --> ! <tr> ! <td class="row1" align="center"><span class="gen"> <br />{no_events.NO_EVENTS}</span></td> ! </tr> ! <!-- END no_events --> ! ! <!-- BEGIN event_row --> ! ! <!-- BEGIN event_row_switch_day --> ! <tr> ! <td class="row2" valign="middle" height="15"> ! <span class="gensmall"><a href="{event_row.U_INI_DATE}" ><b>{event_row.INI_DATE}</b></a> ! ! <!-- BEGIN event_row_switch_endday --> ! <br />» <a href="{event_row.U_END_DATE}" ><b>{event_row.END_DATE}</b></a> ! <!-- END event_row_switch_endday --> ! ! <!-- END event_row_switch_day --> ! ! <!-- BEGIN event_row_switch_day --> ! </span></td> ! </tr> ! <!-- END event_row_switch_day --> ! <tr> ! <td class="{event_row.ROW_CLASS}"> ! <!-- BEGIN event_row_switch_time --> ! <!-- ! <span class="genmed"><u>{event_row.INI_TIME}</u></span><br /> ! --> ! <!-- END event_row_switch_time --> ! <span class="gensmall"><b>{event_row.SUBJECT}</b></span><br /> ! <span class="gensmall">{event_row.DESC}</span> ! <!-- ! <span class="gensmall">{event_row.AUTHOR}</span><br /> ! --> ! <span class="gensmall"><br /><a href="{event_row.U_MORE_INFO}" class="gensmall">{L_MORE_INFO}</a></span> ! </td> ! </tr> ! <!-- END event_row --> </table> ! ! <!-- BEGIN switch_use_vsize_on --> </div> ! <!-- END switch_use_vsize_on --> </td> </tr> |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:38:46
|
Update of /cvsroot/mxbb/mx_calsnails In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16141/modules/mx_calsnails Modified Files: mx_calendar_events.php Log Message: nicer events layout Index: mx_calendar_events.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/mx_calendar_events.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mx_calendar_events.php 1 Oct 2005 14:12:12 -0000 1.11 --- mx_calendar_events.php 12 Oct 2005 15:38:35 -0000 1.12 *************** *** 216,220 **** if ( $ini_date != my_dateformat( $row['eventspan'], $block_datefmt, 1 ) ) { ! $template->assign_block_vars( 'event_row.event_row_switch_endday', array() ); } $lastdate = $ini_date; --- 216,220 ---- if ( $ini_date != my_dateformat( $row['eventspan'], $block_datefmt, 1 ) ) { ! $template->assign_block_vars( 'event_row.event_row_switch_day.event_row_switch_endday', array() ); } $lastdate = $ini_date; *************** *** 255,271 **** { case CALRANGE_TODAY: ! $events_label = $lang['Ev_this_day'] . ' (' . $curdayname . '): '; break; case CALRANGE_THIS_WEEK: ! $events_label = $lang['Ev_this_week'] . '' . $currentweek . ': '; break; case CALRANGE_NEXT_WEEK: ! $events_label = $lang['Ev_next_week'] . '' . $nextweek . ': ' ; break; case CALRANGE_NEXT_MONTH: ! $events_label = $lang['Ev_next_month'] . ' (' . $nextmonthname . '): '; break; case CALRANGE_THIS_MONTH: ! $events_label = $lang['Ev_this_month'] . ' (' . $curmonthname . '): '; break; default: --- 255,271 ---- { case CALRANGE_TODAY: ! $events_label = $lang['Ev_this_day'] . ' (' . $curdayname . ')'; break; case CALRANGE_THIS_WEEK: ! $events_label = $lang['Ev_this_week'] . '' . $currentweek; break; case CALRANGE_NEXT_WEEK: ! $events_label = $lang['Ev_next_week'] . '' . $nextweek; break; case CALRANGE_NEXT_MONTH: ! $events_label = $lang['Ev_next_month'] . ' (' . $nextmonthname . ')'; break; case CALRANGE_THIS_MONTH: ! $events_label = $lang['Ev_this_month'] . ' (' . $curmonthname . ')'; break; default: |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:38:27
|
Update of /cvsroot/mxbb/core/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763/language/lang_english Modified Files: lang_admin.php Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/core/language/lang_english/lang_admin.php,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** lang_admin.php 1 Oct 2005 14:10:45 -0000 1.44 --- lang_admin.php 12 Oct 2005 15:37:32 -0000 1.45 *************** *** 293,296 **** --- 293,298 ---- $lang['Click_page_delete_yes'] = "Click %sHere%s to delete the Page"; + $lang['Mx_IP_filter'] = "IP Filter"; + $lang['Mx_IP_filter_explain'] = "To restrict access to this page by IP, enter the valid IP adresses - one IP adress per line.<br>Eg 127.0.0.1 or 127.1.*.*"; $lang['Column_admin'] = "Page Column Administration"; $lang['Column_admin_explain'] = "Administer Page Columns"; |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:37:47
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763/includes Modified Files: mx_functions.php mx_functions_admincp.php mx_functions_blockcp.php mx_functions_core.php mx_functions_phpbb.php Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: mx_functions_blockcp.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_blockcp.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_functions_blockcp.php 1 Oct 2005 14:10:45 -0000 1.5 --- mx_functions_blockcp.php 12 Oct 2005 15:37:32 -0000 1.6 *************** *** 434,441 **** // Load and display additional blockcp panels (if any) // ! $this->load_block_panels($block_id); // ! // Load and display additional blockcp parameters (if any) // if (!empty($this->block_parameters)) --- 434,441 ---- // Load and display additional blockcp panels (if any) // ! //$this->load_block_panels($block_id); // ! // Load and display additional blockcp parameters or panels (if any) // if (!empty($this->block_parameters)) Index: mx_functions_core.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_core.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mx_functions_core.php 2 Oct 2005 21:24:30 -0000 1.11 --- mx_functions_core.php 12 Oct 2005 15:37:32 -0000 1.12 *************** *** 419,422 **** --- 419,423 ---- pag.auth_view_group AS pag_auth_view_group, pag.auth_moderator_group AS pag_auth_moderator_group, + pag.ip_filter, bct.column_id, col.column_title, *************** *** 460,464 **** "page_auth_view" => $row['page_auth_view'], "page_auth_view_group" => $row['page_auth_view_group'], ! "page_auth_moderator_group" => $row['page_auth_moderator_group'] ); --- 461,466 ---- "page_auth_view" => $row['page_auth_view'], "page_auth_view_group" => $row['page_auth_view_group'], ! "page_auth_moderator_group" => $row['page_auth_moderator_group'], ! "ip_filter" => $row['ip_filter'] ); *************** *** 726,730 **** function _is_dynamic( $block_id ) { ! global $HTTP_POST_VARS, $HTTP_GET_VARS; $is_dynamic = ( ( $this->block_file == 'mx_dynamic.php' ) ? true : false ); --- 728,732 ---- function _is_dynamic( $block_id ) { ! global $mx_request_vars; $is_dynamic = ( ( $this->block_file == 'mx_dynamic.php' ) ? true : false ); *************** *** 732,743 **** if ( $is_dynamic ) { ! if ( isset( $HTTP_POST_VARS['dynamic_block'] ) || isset( $HTTP_GET_VARS['dynamic_block'] ) ) ! { ! $this->dynamic_block_id = ( isset( $HTTP_POST_VARS['dynamic_block'] ) ) ? intval( $HTTP_POST_VARS['dynamic_block'] ) : intval( $HTTP_GET_VARS['dynamic_block'] ); ! } ! else ! { ! $this->dynamic_block_id = $this->block_parameters['default_block_id']['parameter_value']; ! } if ( $this->dynamic_block_id == 0 || empty( $this->dynamic_block_id ) ) --- 734,738 ---- if ( $is_dynamic ) { ! $this->dynamic_block_id = $mx_request_vars->request('dynamic_block', MX_TYPE_INT, $this->block_parameters['default_block_id']['parameter_value']); if ( $this->dynamic_block_id == 0 || empty( $this->dynamic_block_id ) ) *************** *** 981,984 **** --- 976,981 ---- } } + + return $mx_module_defs->is_panel; } *************** *** 1177,1181 **** //$template = new mx_Template($template->root, $board_config); $template = new mx_Template($mx_root_path . 'templates/'. $theme['template_name'], $board_config); ! $this->_get_custom_module_panels($parameter_data, $block_id); $block_panels = ob_get_contents(); ob_end_clean(); --- 1174,1178 ---- //$template = new mx_Template($template->root, $board_config); $template = new mx_Template($mx_root_path . 'templates/'. $theme['template_name'], $board_config); ! $this->_get_custom_module_panels($this->block_parameters, $block_id); $block_panels = ob_get_contents(); ob_end_clean(); *************** *** 1199,1207 **** $return = false; if ( $this->_parameter_data_exist() ) { - ob_start(); foreach( $this->block_parameters as $parameter_name => $parameter_data ) { $this->is_panel = false; //$template = new mx_Template($template->root, $board_config); --- 1196,1206 ---- $return = false; + $block_panel_data = $block_parameter_data = ''; + if ( $this->_parameter_data_exist() ) { foreach( $this->block_parameters as $parameter_name => $parameter_data ) { + ob_start(); $this->is_panel = false; //$template = new mx_Template($template->root, $board_config); *************** *** 1249,1266 **** break; default: ! $this->_get_custom_module_parameters($parameter_data, $block_id); break; } $return = true; } ! $block_parameters = ob_get_contents(); ! ob_end_clean(); ! // // Now send all parameter data to main blockcp template // $blockcptemplate->assign_vars(array( ! 'BLOCKCP_PARAMETERS' => ( !empty($block_parameters) ) ? $block_parameters : '' )); } --- 1248,1277 ---- break; default: ! $this->is_panel = $this->_get_custom_module_parameters($parameter_data, $block_id); break; } + $block_output_data = ob_get_contents(); + ob_end_clean(); + + if ($this->is_panel) + { + $blockcptemplate->assign_block_vars('blockcp_panel', array( + 'BLOCKCP_PANELS' => ( !empty($block_output_data) ) ? $block_output_data : '' + )); + } + else + { + $block_parameter_data .= $block_output_data; + } + $return = true; } ! // // Now send all parameter data to main blockcp template // $blockcptemplate->assign_vars(array( ! 'BLOCKCP_PARAMETERS' => ( !empty($block_parameter_data) ) ? $block_parameter_data : '' )); } *************** *** 1660,1664 **** var $total_block = ''; ! var $auth_view = ''; var $block_border_graphics = false; --- 1671,1676 ---- var $total_block = ''; ! var $auth_view = false; ! var $auth_ip = false; var $block_border_graphics = false; *************** *** 1685,1691 **** $this->info = $this->page_config[$page_id]['page_info']; $mx_is_auth_ary = array(); $mx_is_auth_ary = page_auth( AUTH_VIEW, $userdata, $this->info['page_auth_view'], $this->info['page_auth_view_group'] ); ! $this->auth_view = $mx_is_auth_ary['auth_view']; $this->columns = $this->page_config[$page_id]['columns']; --- 1697,1716 ---- $this->info = $this->page_config[$page_id]['page_info']; + // + // View auth check + // $mx_is_auth_ary = array(); $mx_is_auth_ary = page_auth( AUTH_VIEW, $userdata, $this->info['page_auth_view'], $this->info['page_auth_view_group'] ); ! ! // ! // IP filter ! // ! $mx_ip = new mx_ip; ! ! // ! // Set the public view auth ! // ! $this->auth_view = $mx_is_auth_ary['auth_view']; ! $this->auth_ip = $mx_ip->auth($this->info['ip_filter']); $this->columns = $this->page_config[$page_id]['columns']; *************** *** 1782,1785 **** --- 1807,1884 ---- } // class mx_page + class mx_ip + { + + function mx_getip() + { + if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) + { + $ip = getenv("HTTP_CLIENT_IP"); + } + else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) + { + $ip = getenv("HTTP_X_FORWARDED_FOR"); + } + else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) + { + $ip = getenv("REMOTE_ADDR"); + } + else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) + { + $ip = $_SERVER['REMOTE_ADDR']; + } + else + { + $ip = "unknown"; + } + + return($ip); + } + + function auth( $mx_page_allowed_ips = '' ) + { + // + // Turn the serialized data into an array + // + $mx_page_allowed_ips = !empty($mx_page_allowed_ips) ? unserialize( stripslashes( $mx_page_allowed_ips )) : array(); + + // + // If no IP filtering is defined, return valid + // + if (count($mx_page_allowed_ips) == 0 || $mx_page_allowed_ips[0] == '') + { + return true; + } + + // + // If IP filter is set, go thorugh the filters + // + $mx_client_ip = $this->mx_getip(); + $mx_client_ip_subs = explode('.', $mx_client_ip); + + foreach($mx_page_allowed_ips as $key => $mx_page_allowed_ip) + { + $mx_page_allowed_ip_subs = explode('.', $mx_page_allowed_ip); + + $valid = true; + for( $i=0; $i < count($mx_client_ip_subs); $i++) + { + if ($mx_client_ip_subs[$i] != $mx_page_allowed_ip_subs[$i] && $mx_page_allowed_ip_subs[$i] != '*') + { + $valid = false; + continue; + } + } + + if ($valid) + { + return $valid; + } + } + + return false; + } + } + // // ------------------------------------------------------------------------------------------------------------- *************** *** 1793,1797 **** if ( empty( $mx_block->block_config[$block_id] ) ) { ! $block_config_temp = $mx_cache->read( $block_id, MX_BLOCK, !$cache ); $block_config_temp[$block_id] = array_merge($block_config_temp[$block_id]['block_info'], $block_config_temp[$block_id]['block_parameters']); return $block_config_temp; --- 1892,1896 ---- if ( empty( $mx_block->block_config[$block_id] ) ) { ! $block_config_temp = $mx_cache->read( $block_id, MX_CACHE_BLOCK_TYPE, $cache ); $block_config_temp[$block_id] = array_merge($block_config_temp[$block_id]['block_info'], $block_config_temp[$block_id]['block_parameters']); return $block_config_temp; Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** mx_functions_phpbb.php 1 Oct 2005 14:10:45 -0000 1.13 --- mx_functions_phpbb.php 12 Oct 2005 15:37:32 -0000 1.14 *************** *** 502,506 **** --- 502,562 ---- } + // -------------------------------------------------------------------------------- + // Hook into some phpBB functions to append phpBB path to URLs... + // -------------------------------------------------------------------------------- + function mx_append_sid( $url, $non_html_amp = false ) + { + // + // Is mod_rewrite enabled? If so, do some url rewrites... + // + if ($mx_mod_rewrite || true) + { + + } + + // + // Replaces same function in sessions.php + // + return append_sid( $url, $non_html_amp ); + } + + function _mx_get_all_get_vars() + { + // + // Does this url have GET vars? If not this is NOT a portal url. Do nothing! + // + if ( ( $pos = strpos( $url, '?' ) ) === false ) + { + return array(); + } + // + // Reformat all unicode to plain & + // + $url = substr( $url, $pos + 1 ); + + if ( ( $pos = strpos( $url, '&' ) ) !== false ) + { + $url = str_replace( '&', '&', $url ); + } + + // + // Not collect all GET vars in an array + // + $query_array = array(); + $query_string = explode( '&', $url ); + + // + // First get page_id + // + for( $i = 0; $i < count( $query_string ); $i++ ) + { + $keyval = explode( '=', $query_string[$i] ); + $query_array[$keyval[0]] = $keyval[1]; + } + + return $query_array; + } + function mx_redirect($url, $redirect_msg = '', $redirect_link = '') { Index: mx_functions_admincp.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_admincp.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** mx_functions_admincp.php 1 Oct 2005 14:10:45 -0000 1.9 --- mx_functions_admincp.php 12 Oct 2005 15:37:32 -0000 1.10 *************** *** 357,361 **** --- 357,374 ---- $page_graph_border = $mx_request_vars->post('page_graph_border', MX_TYPE_NO_TAGS | MX_TYPE_SQL_QUOTED, ''); $auth_view = $mx_request_vars->post('auth_view', MX_TYPE_INT, 0); + + $ipfilter = $mx_request_vars->post('ip_filter', MX_TYPE_POST_VARS, ''); + + // + // Format the mod_rewrite array + // + $ipfilter = explode( "\n", htmlspecialchars( trim( $ipfilter ) ) ); + foreach( $ipfilter as $key => $value ) + { + $ipfilter[$key] = trim( $value ); + } + $ipfilter = addslashes( serialize( $ipfilter ) ); + $sql = "SELECT MAX(page_id) AS next_id FROM " . PAGE_TABLE; if( !($result = $db->sql_query($sql)) ) *************** *** 372,376 **** } ! $sql = "INSERT INTO " . PAGE_TABLE . " ( page_id, page_name, page_desc, page_icon, page_graph_border, auth_view, page_header ) VALUES ( '" . $page_id_new . "', '" . $page_name . "', --- 385,389 ---- } ! $sql = "INSERT INTO " . PAGE_TABLE . " ( page_id, page_name, page_desc, page_icon, page_graph_border, auth_view, page_header, ip_filter ) VALUES ( '" . $page_id_new . "', '" . $page_name . "', *************** *** 379,383 **** '" . $page_graph_border . "', '" . $auth_view . "', ! '" . $page_header . "' )"; if( !($result = $db->sql_query($sql)) ) --- 392,397 ---- '" . $page_graph_border . "', '" . $auth_view . "', ! '" . $page_header . "', ! '" . $ipfilter . "' )"; if( !($result = $db->sql_query($sql)) ) *************** *** 692,695 **** --- 706,713 ---- $data = addslashes( serialize( $data ) ); } + else + { + $data = addslashes( $data ); + } // *************** *** 913,917 **** $page_graph_border = $mx_request_vars->post('page_graph_border', MX_TYPE_NO_TAGS | MX_TYPE_SQL_QUOTED, ''); $auth_view = $mx_request_vars->post('auth_view', MX_TYPE_INT, 0); ! $sql = "UPDATE " . PAGE_TABLE . " SET page_name = '$page_name', --- 931,947 ---- $page_graph_border = $mx_request_vars->post('page_graph_border', MX_TYPE_NO_TAGS | MX_TYPE_SQL_QUOTED, ''); $auth_view = $mx_request_vars->post('auth_view', MX_TYPE_INT, 0); ! $ipfilter = $mx_request_vars->post('ip_filter', MX_TYPE_POST_VARS, ''); ! ! // ! // Format the mod_rewrite array ! // ! $ipfilter = explode( "\n", htmlspecialchars( trim( $ipfilter ) ) ); ! ! foreach( $ipfilter as $key => $value ) ! { ! $ipfilter[$key] = trim( $value ); ! } ! $ipfilter = addslashes( serialize( $ipfilter ) ); ! $sql = "UPDATE " . PAGE_TABLE . " SET page_name = '$page_name', *************** *** 920,924 **** page_header = '$page_header', page_graph_border = '$page_graph_border', ! auth_view = '$auth_view' WHERE page_id = $page_id"; if( !($result = $db->sql_query($sql)) ) --- 950,955 ---- page_header = '$page_header', page_graph_border = '$page_graph_border', ! auth_view = '$auth_view', ! ip_filter = '$ipfilter' WHERE page_id = $page_id"; if( !($result = $db->sql_query($sql)) ) Index: mx_functions.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions.php,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** mx_functions.php 1 Oct 2005 14:10:45 -0000 1.47 --- mx_functions.php 12 Oct 2005 15:37:32 -0000 1.48 *************** *** 156,160 **** | \********************************************************************************/ ! function get_list_multiple($name_select, $table, $idfield, $namefield, $id_list, $select) { global $db; --- 156,160 ---- | \********************************************************************************/ ! function get_list_multiple($name_select, $table, $idfield, $namefield, $id_list, $select, $namefield2 = '') { global $db; *************** *** 182,187 **** while( $row = $db->sql_fetchrow($result) ) { $selected = ( in_array($row[$idfield], $id_list) ) ? ' selected="selected"' : ''; ! $column_list .= '<option value="' . $row[$idfield] . '"' . $selected . '>' . $row[$namefield] . "</option>\n"; } --- 182,188 ---- while( $row = $db->sql_fetchrow($result) ) { + $namefield_desc = !empty($row[$namefield2]) ? ' (' . $row[$namefield2] . ')' : ''; $selected = ( in_array($row[$idfield], $id_list) ) ? ' selected="selected"' : ''; ! $column_list .= '<option value="' . $row[$idfield] . '"' . $selected . '>' . $row[$namefield] . $namefield_desc . "</option>\n"; } *************** *** 201,205 **** | $function_file: for filtering blocklists \********************************************************************************/ ! function get_list_formatted($type, $id, $name_select = '', $function_file = '') { global $db, $lang; --- 202,206 ---- | $function_file: for filtering blocklists \********************************************************************************/ ! function get_list_formatted($type, $id, $name_select = '', $function_file = '', $multiple_select = false) { global $db, $lang; *************** *** 278,282 **** } ! $column_list = '<select name="' . $name_select . '">'; if( $type == 'page_list' ) --- 279,288 ---- } ! if ($multiple_select) ! { ! $multiple_select_option = 'multiple="multiple"'; ! } ! ! $column_list = '<select name="' . $name_select . '" '.$multiple_select_option.'>'; if( $type == 'page_list' ) |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:37:45
|
Update of /cvsroot/mxbb/core/templates/subSilver/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763/templates/subSilver/admin Modified Files: mx_blockcp_admin_body.tpl mx_pagecp_admin_body.tpl Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: mx_pagecp_admin_body.tpl =================================================================== RCS file: /cvsroot/mxbb/core/templates/subSilver/admin/mx_pagecp_admin_body.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_pagecp_admin_body.tpl 20 Sep 2005 15:30:59 -0000 1.2 --- mx_pagecp_admin_body.tpl 12 Oct 2005 15:37:33 -0000 1.3 *************** *** 640,643 **** --- 640,647 ---- <td><input type="text" size="45" name="page_graph_border" value="{pages.E_PAGE_GRAPH_BORDER}" class="post" /></td> </tr> + <tr> + <td width="50%" align="right" >{L_IP_FILTER}<br /><span class="gensmall">{L_IP_FILTER_EXPLAIN}</span></td> + <td><textarea rows="5" cols="50" wrap="virtual" name="ip_filter" class="post" />{pages.IP_FILTER}</textarea></td> + </tr> <!-- BEGIN template --> <tr> Index: mx_blockcp_admin_body.tpl =================================================================== RCS file: /cvsroot/mxbb/core/templates/subSilver/admin/mx_blockcp_admin_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_blockcp_admin_body.tpl 9 Sep 2005 09:15:13 -0000 1.1 --- mx_blockcp_admin_body.tpl 12 Oct 2005 15:37:33 -0000 1.2 *************** *** 149,153 **** <tr> <td class="row1" colspan="2"> - {blockcp_panel.BLOCKCP_PANELS} --- 149,152 ---- *************** *** 162,166 **** <tr> <td class="row1" colspan="2"> - <form action="{S_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> <table width="100%" cellpadding="2" cellspacing="0" border="0" align="center"> --- 161,164 ---- |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:37:44
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763 Modified Files: index.php Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/index.php,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** index.php 2 Oct 2005 21:24:30 -0000 1.44 --- index.php 12 Oct 2005 15:37:32 -0000 1.45 *************** *** 74,77 **** --- 74,82 ---- mx_redirect( append_sid( $mx_root_path . "login.$phpEx?redirect=" . mx_this_url(), true ) ); } + elseif ( !$mx_page->auth_ip ) + { + $message = empty( $lang['Page_Not_Authorised'] ) ? "Sorry, but you don't have privilege to access this page." : $lang['Page_Not_Authorised']; + mx_message_die(GENERAL_MESSAGE, $message, '', __LINE__, __FILE__, ''); + } |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:37:40
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763/modules/mx_navmenu/admin Modified Files: mx_module_defs.php Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/admin/mx_module_defs.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mx_module_defs.php 1 Oct 2005 14:10:45 -0000 1.8 --- mx_module_defs.php 12 Oct 2005 15:37:32 -0000 1.9 *************** *** 40,44 **** class mx_module_defs { ! var $is_panel = false; // ------------------------------ // Private Methods --- 40,44 ---- class mx_module_defs { ! var $is_panel = true; // ------------------------------ // Private Methods *************** *** 80,84 **** // Display cuztom Panel // =================================================== ! function display_module_panels( $parameter_data, $block_id ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $userdata, $mx_request_vars; --- 80,84 ---- // Display cuztom Panel // =================================================== ! function display_module_parameters( $parameter_data, $block_id ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $userdata, $mx_request_vars; |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:37:40
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763/modules/mx_navmenu Modified Files: mx_menu_nav.php Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: mx_menu_nav.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/mx_menu_nav.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mx_menu_nav.php 1 Oct 2005 14:10:45 -0000 1.3 --- mx_menu_nav.php 12 Oct 2005 15:37:32 -0000 1.4 *************** *** 116,120 **** $cat_target = ( $mx_nav_data[$menu_count]['cat_target'] == 0 ) ? '' : '_blank'; ! $cat_url_tmp = append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['cat_url'] . '&cat_link=' . intval($cat_id)); $catt = ( $mx_nav_data[$menu_count]['cat_url'] != 0 ) ? '<a class="genmed" href="' . $cat_url_tmp . '" target="' . $cat_target . '" /><span class="genmed">' . $cat . '</span></a>' : $cat; --- 116,120 ---- $cat_target = ( $mx_nav_data[$menu_count]['cat_target'] == 0 ) ? '' : '_blank'; ! $cat_url_tmp = mx_append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['cat_url'] . '&cat_link=' . intval($cat_id)); $catt = ( $mx_nav_data[$menu_count]['cat_url'] != 0 ) ? '<a class="genmed" href="' . $cat_url_tmp . '" target="' . $cat_target . '" /><span class="genmed">' . $cat . '</span></a>' : $cat; *************** *** 123,127 **** 'BLOCK_ID' => intval($block_id), 'CATEGORY' => $catt, ! 'U_URL' => append_sid(PORTAL_URL . 'index.' . $phpEx . '?block_id=' . $block_id), 'U_CAT_ICON' => $cat_icon, 'U_CAT_NAV' => $cat_nav_icon_url, --- 123,127 ---- 'BLOCK_ID' => intval($block_id), 'CATEGORY' => $catt, ! 'U_URL' => mx_append_sid(PORTAL_URL . 'index.' . $phpEx . '?block_id=' . $block_id), 'U_CAT_ICON' => $cat_icon, 'U_CAT_NAV' => $cat_nav_icon_url, *************** *** 165,169 **** if ( $menu_page_sync ) { ! $style = ( $mx_nav_data[$menu_count]['block_id'] == $HTTP_GET_VARS['dynamic_block'] ) ? 'cattitle' : ( ( $mx_nav_data[$menu_count]['block_id'] == 0 && $mx_nav_data[$menu_count]['page_id'] == $page_id ) ? 'cattitle' : 'genmed' ); } else --- 165,180 ---- if ( $menu_page_sync ) { ! if ( $mx_nav_data[$menu_count]['block_id'] == $HTTP_GET_VARS['dynamic_block'] ) ! { ! $style = 'cattitle'; ! } ! else if ( $mx_nav_data[$menu_count]['page_id'] == $page_id && $mx_nav_data[$menu_count]['block_id'] == 0 && !isset($HTTP_GET_VARS['dynamic_block']) ) ! { ! $style = 'cattitle'; ! } ! else ! { ! $style = 'genmed'; ! } } else *************** *** 189,201 **** if ( $mx_nav_data[$menu_count]['page_id'] != 0 && $mx_nav_data[$menu_count]['block_id'] == 0 && $mx_nav_data[$menu_count]['link_target'] != 2 ) { ! $menu_link = append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['page_id']); } else if ( $mx_nav_data[$menu_count]['page_id'] != 0 && $mx_nav_data[$menu_count]['link_target'] == 2 ) { ! $menu_link = append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['page_id'] . '&' . $mx_nav_data[$menu_count]['menu_links']); } else if ( $mx_nav_data[$menu_count]['link_target'] == 2 ) { ! $menu_link = append_sid(PORTAL_URL . 'index.php?page=' . $page_id . '&' . $mx_nav_data[$menu_count]['menu_links']); } else if ( $mx_nav_data[$menu_count]['menu_links'] != '' ) --- 200,212 ---- if ( $mx_nav_data[$menu_count]['page_id'] != 0 && $mx_nav_data[$menu_count]['block_id'] == 0 && $mx_nav_data[$menu_count]['link_target'] != 2 ) { ! $menu_link = mx_append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['page_id']); } else if ( $mx_nav_data[$menu_count]['page_id'] != 0 && $mx_nav_data[$menu_count]['link_target'] == 2 ) { ! $menu_link = mx_append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['page_id'] . '&' . $mx_nav_data[$menu_count]['menu_links']); } else if ( $mx_nav_data[$menu_count]['link_target'] == 2 ) { ! $menu_link = mx_append_sid(PORTAL_URL . 'index.php?page=' . $page_id . '&' . $mx_nav_data[$menu_count]['menu_links']); } else if ( $mx_nav_data[$menu_count]['menu_links'] != '' ) *************** *** 205,213 **** else if ( $mx_nav_data[$menu_count]['page_id'] == 0 && $mx_nav_data[$menu_count]['block_id'] != 0 ) { ! $menu_link = append_sid(PORTAL_URL . 'index.php?page=' . $page_id . '&dynamic_block=' . $mx_nav_data[$menu_count]['block_id']); } else if ( $mx_nav_data[$menu_count]['page_id'] != 0 && $mx_nav_data[$menu_count]['block_id'] != 0 ) { ! $menu_link = append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['page_id'] . '&dynamic_block=' . $mx_nav_data[$menu_count]['block_id']); } else --- 216,224 ---- else if ( $mx_nav_data[$menu_count]['page_id'] == 0 && $mx_nav_data[$menu_count]['block_id'] != 0 ) { ! $menu_link = mx_append_sid(PORTAL_URL . 'index.php?page=' . $page_id . '&dynamic_block=' . $mx_nav_data[$menu_count]['block_id']); } else if ( $mx_nav_data[$menu_count]['page_id'] != 0 && $mx_nav_data[$menu_count]['block_id'] != 0 ) { ! $menu_link = mx_append_sid(PORTAL_URL . 'index.php?page=' . $mx_nav_data[$menu_count]['page_id'] . '&dynamic_block=' . $mx_nav_data[$menu_count]['block_id']); } else *************** *** 223,227 **** } $row = $db->sql_fetchrow($result); ! $menu_link = append_sid(PORTAL_URL . $row['module_path'] . $row['function_file']); } --- 234,238 ---- } $row = $db->sql_fetchrow($result); ! $menu_link = mx_append_sid(PORTAL_URL . $row['module_path'] . $row['function_file']); } |
|
From: Jon O. <jon...@us...> - 2005-10-12 15:37:40
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763/admin Modified Files: admin_mx_page_cp.php admin_mx_portal.php Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: admin_mx_portal.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/admin_mx_portal.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** admin_mx_portal.php 1 Oct 2005 14:10:44 -0000 1.18 --- admin_mx_portal.php 12 Oct 2005 15:37:32 -0000 1.19 *************** *** 46,54 **** if( !empty($mode) ) { ! $new['portal_name'] = $HTTP_POST_VARS['portal_name']; ! $new['portal_url'] = $HTTP_POST_VARS['portal_url']; ! $new['portal_phpbb_url'] = $HTTP_POST_VARS['portal_phpbb_url']; ! $new['top_phpbb_links'] = $HTTP_POST_VARS['top_phpbb_links']; ! $new['mx_use_cache'] = $HTTP_POST_VARS['mx_use_cache']; $sql = "UPDATE " . PORTAL_TABLE . " --- 46,54 ---- if( !empty($mode) ) { ! $new['portal_name'] = $mx_request_vars->post('portal_name', MX_TYPE_NO_TAGS, 'mxBB Portal and CMS'); ! $new['portal_url'] = $mx_request_vars->post('portal_url', MX_TYPE_NO_TAGS, ''); ! $new['portal_phpbb_url'] = $mx_request_vars->post('portal_phpbb_url', MX_TYPE_NO_TAGS, ''); ! $new['top_phpbb_links'] = $mx_request_vars->post('top_phpbb_links', MX_TYPE_INT, '0'); ! $new['mx_use_cache'] = $mx_request_vars->post('mx_use_cache', MX_TYPE_INT, '1'); $sql = "UPDATE " . PORTAL_TABLE . " *************** *** 80,83 **** --- 80,84 ---- $phpbb_rel_path = substr( "$phpbb_root_path", 3 ); + $portal_version = $portal_config['portal_version']; *************** *** 106,109 **** --- 107,111 ---- "PORTAL_URL" => $portal_config['portal_url'], "PORTAL_PHPBB_URL" => $portal_config['portal_phpbb_url'], + // Added in v 2.706 "L_PHPBB_RELATIVE_PATH" => $lang['Phpbb_path'], Index: admin_mx_page_cp.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/admin_mx_page_cp.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_mx_page_cp.php 1 Oct 2005 14:10:44 -0000 1.6 --- admin_mx_page_cp.php 12 Oct 2005 15:37:32 -0000 1.7 *************** *** 260,264 **** 'L_PRIVATE_AUTH_EXPLAIN' => $lang['Mx_Page_Auth_Explain'], 'L_GROUPS' => $lang['Usergroups'], ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], // // Graphics --- 260,267 ---- 'L_PRIVATE_AUTH_EXPLAIN' => $lang['Mx_Page_Auth_Explain'], 'L_GROUPS' => $lang['Usergroups'], ! 'L_IS_MODERATOR' => $lang['Is_Moderator'], ! "L_IP_FILTER" => $lang['Mx_IP_filter'], ! "L_IP_FILTER_EXPLAIN" => $lang['Mx_IP_filter_explain'], ! // // Graphics *************** *** 651,654 **** --- 654,659 ---- $icon_tmp = ( !empty($page_icon) && $page_icon != 'none' && file_exists($mx_root_path . TEMPLATE_ROOT_PATH . "images/page_icons/" . $page_icon)) ? '<img align="absmiddle" src="' . PORTAL_URL . TEMPLATE_ROOT_PATH . "images/page_icons/" . $page_icon . '" />' : ''; + $ip_filter = !empty($page_rows[$page_count]['ip_filter']) ? implode( "\n", unserialize( stripslashes( $page_rows[$page_count]['ip_filter'] ))) : '' ; + // // Page subpanel - edit *************** *** 720,723 **** --- 725,733 ---- 'E_PAGE_GRAPH_BORDER' => $page_graph_border, 'S_TEMPLATE_LIST' => $template_list, + + // + // IP filter + // + "IP_FILTER" => $ip_filter, // Main |
|
From: Jon O. <jon...@us...> - 2005-10-02 23:47:39
|
Update of /cvsroot/mxbb/mx_calsnails/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv778/modules/mx_calsnails/admin Modified Files: admin_calendar.php Log Message: updated all file headers Index: admin_calendar.php =================================================================== RCS file: /cvsroot/mxbb/mx_calsnails/admin/admin_calendar.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin_calendar.php 12 Apr 2005 19:37:10 -0000 1.8 --- admin_calendar.php 1 Oct 2005 14:12:12 -0000 1.9 *************** *** 1,208 **** ! <?php ! /** ! * MX-System changes to original source: ! * ! * MX001: Replace IN_PHPBB by IN_PORTAL. ! * MX002: Change Module name and add path in admin $module array. ! * MX003: Change the way it sets/loads default header, tablename usage, etc. ! * MX004: Change the way is included page_footer_admin.php ! * MX005: Make $config['allow_anon'] like $config['allow_user_default']. ! */ ! ! /** ! * Calendar Lite ! * note: following info added by CVS ! * original author: WebSnail < Martin Smallridge > ! * ! * $Author$ ! * $Date$ ! * $Revision$ ! */ ! ! /** ! * admin_calendar.php ! * ------------------- ! * Copyright: (C) 2003 SnailSource.com ! * Mod Title: phpBB2 Calendar Lite ! * Mod Version: 1.4.0 ! * Author: WebSnail < http://www.snailsource.com > ! */ ! ! /** ! * 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. ! */ ! // MX001: define('IN_PHPBB', 1); ! define( 'IN_PORTAL', true ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! // MX002 ! $module['Portal CalSnails Lite']['Settings'] = 'modules/mx_calsnails/admin/' . $filename; ! return; ! } ! // -------------------------------------------------- ! // MX003: Begin ! ! /* ========== * ========== * ========== * ! global $db; ! // ! // Load default header ! // ! $phpbb_root_path = "../"; ! require($phpbb_root_path . 'extension.inc'); ! require('pagestart.' . $phpEx); ! ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! $page_title = $lang['Config_Cal']; ! $caltable = $table_prefix . "cal_config"; ! * ========== * ========== * ========== */ ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/mx_common.' . $phpEx ); ! ! $caltable = CALLITE_CONFIG_TABLE; ! ! include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); ! ! // MX003: End ! // -------------------------------------------------- ! $sql = "SELECT * FROM " . $caltable; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Couldn't query calendar config table", "", __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 " . $caltable . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Failed to update calendar configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Cal_config_updated'] . "<br /><br />" . sprintf( $lang['Cal_return_config'], "<a href=\"" . append_sid( "admin_calendar.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); ! message_die( GENERAL_MESSAGE, $message ); ! } ! } ! // Build Week Start select box ! $week_start_select = "<select name='week_start'>"; ! $week_start_select .= "<option value='0' "; ! $week_start_select .= ( $new['week_start'] == '0' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Sunday'] . "</option>"; ! $week_start_select .= "<option value='1' "; ! $week_start_select .= ( $new['week_start'] == '1' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Monday'] . "</option>"; ! $week_start_select .= "</select>"; ! ! $allow_anon_yes = ( $new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! $allow_anon_no = ( !$new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! ! $allow_old_yes = ( $new['allow_old'] ) ? "checked=\"checked\"" : ""; ! $allow_old_no = ( !$new['allow_old'] ) ? "checked=\"checked\"" : ""; ! ! $show_headers_yes = ( $new['show_headers'] ) ? "checked=\"checked\"" : ""; ! $show_headers_no = ( !$new['show_headers'] ) ? "checked=\"checked\"" : ""; ! // ---------- ! // +MX005 ! ! function get_cal_levels( $field ) ! { ! global $lang, $new; ! ! $cal_levels[0] = $lang['no_public']; ! $cal_levels[1] = $lang['view_only']; ! $cal_levels[2] = $lang['view_suggest']; ! $cal_levels[3] = $lang['view_add']; ! $cal_levels[4] = $lang['view_edit_own']; ! $select = "<select name='" . $field . "'>"; ! for ( $i = 0; $i <= 4; $i++ ) ! { ! $select .= "<option value='" . $i; ! if ( $i == $new[$field] ) ! { ! $select .= "' selected='selected'>\n"; ! } ! else ! { ! $select .= "'>\n"; ! } ! $select .= $cal_levels[$i] . "</option>"; ! } ! return $select .= "</select>"; ! } ! ! $s_cal_anon = get_cal_levels( 'allow_anon' ); ! $s_cal_type = get_cal_levels( 'allow_user_default' ); ! ! // -MX005 ! // ---------- ! $template->set_filenames( array( "body" => "admin/calendar_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( "S_CONFIG_ACTION" => append_sid( "admin_calendar.$phpEx" ), ! ! "L_YES" => $lang['Yes'], ! "L_NO" => $lang['No'], ! "L_CONFIGURATION_TITLE" => $lang['Config_Calendar'], ! "L_GENERAL_SETTINGS" => $lang['Config_Calendar'], ! "L_CONFIGURATION_EXPLAIN" => $lang['Config_Calendar_explain'], ! "L_WEEK_START" => $lang['week_start'], ! "L_SUBJECT_LENGTH" => $lang['subject_length'], ! "L_SUBJECT_LENGTH_EXPLAIN" => $lang['subject_length_explain'], ! "L_ALLOW_ANON" => $lang['allow_anon'], ! "L_ALLOW_USER_POST" => $lang['allow_user_post'], ! "L_ALLOW_ANON_DEFAULT" => $lang['allow_anon_post_default'], // MX005: added ! "L_ALLOW_USER_DEFAULT" => $lang['allow_user_post_default'], ! "L_ALLOW_OLD" => $lang['allow_old'], ! "L_ALLOW_OLD_EXPLAIN" => $lang['allow_old_explain'], ! "L_SHOW_HEADERS" => $lang['show_headers'], ! "L_DATE_FORMAT" => $lang['Date_format'], ! "L_DATE_FORMAT_EXPLAIN" => $lang['cal_date_explain'], ! ! "L_SUBMIT" => $lang['Submit'], ! "L_RESET" => $lang['Reset'], ! ! "WEEK_START_SELECT" => $week_start_select, ! "SUBJECT_LENGTH" => $new['subject_length'], ! "SCIPT_PATH" => $new['cal_script_path'], ! ! "S_ALLOW_ANON_YES" => $allow_anon_yes, ! "S_ALLOW_ANON_NO" => $allow_anon_no, ! "S_ALLOW_USER_POST_YES" => $allow_user_post_yes, ! "S_ALLOW_USER_POST_NO" => $allow_user_post_no, ! "S_ALLOW_ANON_DEFAULT" => $s_cal_anon, // MX005: added ! "S_ALLOW_USER_DEFAULT" => $s_cal_type, ! "S_ALLOW_OLD_YES" => $allow_old_yes, ! "S_ALLOW_OLD_NO" => $allow_old_no, ! "S_SHOW_HEADERS_YES" => $show_headers_yes, ! "S_SHOW_HEADERS_NO" => $show_headers_no, ! ! "CAL_DATEFORMAT" => $new['cal_dateformat'] ) ! ); ! ! $template->pparse( "body" ); ! // MX004: include('./page_footer_admin.'.$phpEx); ! include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file --- 1,202 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, WebSnail < Martin Smallridge > ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- ! * ! * $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. ! */ ! ! /** ! * MX-System changes to original source: ! * ! * MX001: Replace IN_PHPBB by IN_PORTAL. ! * MX002: Change Module name and add path in admin $module array. ! * MX003: Change the way it sets/loads default header, tablename usage, etc. ! * MX004: Change the way is included page_footer_admin.php ! * MX005: Make $config['allow_anon'] like $config['allow_user_default']. ! */ ! ! // MX001: define('IN_PHPBB', 1); ! define( 'IN_PORTAL', true ); ! ! if ( !empty( $setmodules ) ) ! { ! $filename = basename( __FILE__ ); ! // MX002 ! $module['Portal CalSnails Lite']['Settings'] = 'modules/mx_calsnails/admin/' . $filename; ! return; ! } ! // -------------------------------------------------- ! // MX003: Begin ! ! /* ========== * ========== * ========== * ! global $db; ! // ! // Load default header ! // ! $phpbb_root_path = "../"; ! require($phpbb_root_path . 'extension.inc'); ! require('pagestart.' . $phpEx); ! ! require($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! $page_title = $lang['Config_Cal']; ! $caltable = $table_prefix . "cal_config"; ! * ========== * ========== * ========== */ ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! require( $module_root_path . 'includes/mx_common.' . $phpEx ); ! ! $caltable = CALLITE_CONFIG_TABLE; ! ! include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); ! ! // MX003: End ! // -------------------------------------------------- ! $sql = "SELECT * FROM " . $caltable; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Couldn't query calendar config table", "", __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 " . $caltable . " SET ! config_value = '" . str_replace( "\'", "''", $new[$config_name] ) . "' ! WHERE config_name = '$config_name'"; ! if ( !$db->sql_query( $sql ) ) ! { ! message_die( GENERAL_ERROR, "Failed to update calendar configuration for $config_name", "", __LINE__, __FILE__, $sql ); ! } ! } ! } ! ! if ( isset( $HTTP_POST_VARS['submit'] ) ) ! { ! $message = $lang['Cal_config_updated'] . "<br /><br />" . sprintf( $lang['Cal_return_config'], "<a href=\"" . append_sid( "admin_calendar.$phpEx" ) . "\">", "</a>" ) . "<br /><br />" . sprintf( $lang['Click_return_admin_index'], "<a href=\"" . append_sid( $mx_root_path . "admin/index.$phpEx?pane=right" ) . "\">", "</a>" ); ! message_die( GENERAL_MESSAGE, $message ); ! } ! } ! // Build Week Start select box ! $week_start_select = "<select name='week_start'>"; ! $week_start_select .= "<option value='0' "; ! $week_start_select .= ( $new['week_start'] == '0' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Sunday'] . "</option>"; ! $week_start_select .= "<option value='1' "; ! $week_start_select .= ( $new['week_start'] == '1' ) ? "selected='selected'" : ""; ! $week_start_select .= ">" . $lang['datetime']['Monday'] . "</option>"; ! $week_start_select .= "</select>"; ! ! $allow_anon_yes = ( $new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! $allow_anon_no = ( !$new['allow_anon'] ) ? "checked=\"checked\"" : ""; ! ! $allow_old_yes = ( $new['allow_old'] ) ? "checked=\"checked\"" : ""; ! $allow_old_no = ( !$new['allow_old'] ) ? "checked=\"checked\"" : ""; ! ! $show_headers_yes = ( $new['show_headers'] ) ? "checked=\"checked\"" : ""; ! $show_headers_no = ( !$new['show_headers'] ) ? "checked=\"checked\"" : ""; ! // ---------- ! // +MX005 ! ! function get_cal_levels( $field ) ! { ! global $lang, $new; ! ! $cal_levels[0] = $lang['no_public']; ! $cal_levels[1] = $lang['view_only']; ! $cal_levels[2] = $lang['view_suggest']; ! $cal_levels[3] = $lang['view_add']; ! $cal_levels[4] = $lang['view_edit_own']; ! $select = "<select name='" . $field . "'>"; ! for ( $i = 0; $i <= 4; $i++ ) ! { ! $select .= "<option value='" . $i; ! if ( $i == $new[$field] ) ! { ! $select .= "' selected='selected'>\n"; ! } ! else ! { ! $select .= "'>\n"; ! } ! $select .= $cal_levels[$i] . "</option>"; ! } ! return $select .= "</select>"; ! } ! ! $s_cal_anon = get_cal_levels( 'allow_anon' ); ! $s_cal_type = get_cal_levels( 'allow_user_default' ); ! ! // -MX005 ! // ---------- ! $template->set_filenames( array( "body" => "admin/calendar_config_body.tpl" ) ! ); ! ! $template->assign_vars( array( "S_CONFIG_ACTION" => append_sid( "admin_calendar.$phpEx" ), ! ! "L_YES" => $lang['Yes'], ! "L_NO" => $lang['No'], ! "L_CONFIGURATION_TITLE" => $lang['Config_Calendar'], ! "L_GENERAL_SETTINGS" => $lang['Config_Calendar'], ! "L_CONFIGURATION_EXPLAIN" => $lang['Config_Calendar_explain'], ! "L_WEEK_START" => $lang['week_start'], ! "L_SUBJECT_LENGTH" => $lang['subject_length'], ! "L_SUBJECT_LENGTH_EXPLAIN" => $lang['subject_length_explain'], ! "L_ALLOW_ANON" => $lang['allow_anon'], ! "L_ALLOW_USER_POST" => $lang['allow_user_post'], ! "L_ALLOW_ANON_DEFAULT" => $lang['allow_anon_post_default'], // MX005: added ! "L_ALLOW_USER_DEFAULT" => $lang['allow_user_post_default'], ! "L_ALLOW_OLD" => $lang['allow_old'], ! "L_ALLOW_OLD_EXPLAIN" => $lang['allow_old_explain'], ! "L_SHOW_HEADERS" => $lang['show_headers'], ! "L_DATE_FORMAT" => $lang['Date_format'], ! "L_DATE_FORMAT_EXPLAIN" => $lang['cal_date_explain'], ! ! "L_SUBMIT" => $lang['Submit'], ! "L_RESET" => $lang['Reset'], ! ! "WEEK_START_SELECT" => $week_start_select, ! "SUBJECT_LENGTH" => $new['subject_length'], ! "SCIPT_PATH" => $new['cal_script_path'], ! ! "S_ALLOW_ANON_YES" => $allow_anon_yes, ! "S_ALLOW_ANON_NO" => $allow_anon_no, ! "S_ALLOW_USER_POST_YES" => $allow_user_post_yes, ! "S_ALLOW_USER_POST_NO" => $allow_user_post_no, ! "S_ALLOW_ANON_DEFAULT" => $s_cal_anon, // MX005: added ! "S_ALLOW_USER_DEFAULT" => $s_cal_type, ! "S_ALLOW_OLD_YES" => $allow_old_yes, ! "S_ALLOW_OLD_NO" => $allow_old_no, ! "S_SHOW_HEADERS_YES" => $show_headers_yes, ! "S_SHOW_HEADERS_NO" => $show_headers_no, ! ! "CAL_DATEFORMAT" => $new['cal_dateformat'] ) ! ); ! ! $template->pparse( "body" ); ! // MX004: include('./page_footer_admin.'.$phpEx); ! include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-10-02 23:47:00
|
Update of /cvsroot/mxbb/mx_act In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv582/modules/mx_act Modified Files: activity.php db_install.php db_uninstall.php db_upgrade.php game.php newscore.php Log Message: updated all file headers Index: newscore.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/newscore.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** newscore.php 12 Apr 2005 19:48:18 -0000 1.5 --- newscore.php 1 Oct 2005 14:11:39 -0000 1.6 *************** *** 1,769 **** ! <?php ! /** ! * newscore.php ! * ------------------ ! * begin : Thursday, August 1, 2002 ! * copyright : (c)2002 iNetAngel ! * email : su...@in... ! * ! * $Id$ ! * [...1501 lines suppressed...] ! // put it back the way it was. ! if ( $userdata['user_session_page'] == PAGE_PLAYING_GAMES ) ! { ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_session_page = '" . PAGE_ACTIVITY . "' ! WHERE user_id = " . $userdata['user_id']; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql ); ! } ! } ! } ! } ! // Generate page ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! $template->pparse( 'body' ); ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! ?> \ No newline at end of file Index: game.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/game.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** game.php 12 Apr 2005 19:48:18 -0000 1.3 --- game.php 1 Oct 2005 14:11:39 -0000 1.4 *************** *** 1,213 **** ! <?php ! /** ! * game.php ! * ------------------ ! * begin : Thursday, August 1, 2002 ! * copyright : (c) 2002 iNetAngel ! * email : su...@iN... ! * ! * $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. ! * ! * ! * ! * This is a MOD for phpbb v2+. The phpbb group has all rights to the ! * phpbb source. They can be contacted at : ! * ! * I-Net : www.phpbb.com ! * E-Mail: su...@ph... ! * ! * If you have made any changes then please notify me so they can be added ! * if they are improvments. You of course will get the credit for helping ! * out. If you would like to see other MODs that I have made then check ! * out my forum at : www.iNetAngel.com and click on the community button. ! */ ! ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! $module_root_path = './'; ! ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! /* ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_PLAYING_GAMES); ! init_userprefs($userdata); ! // End session management ! ! */ ! // For some reason user_session_page is not always updated with session_pagestart. ! // So we check for it and if not set, we have game.php set it. This is needed to ! // keep others from cheating. ! // define('INA_BAN', $table_prefix .'ina_ban'); ! // define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! if ( $userdata['user_session_page'] != PAGE_PLAYING_GAMES ) ! { ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_session_page = '" . PAGE_PLAYING_GAMES . "' ! WHERE user_id = " . $userdata['user_id']; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql ); ! } ! } ! ! /* Do a quick ban check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* Finished with ban check */ ! ! $game_id = ( isset( $HTTP_GET_VARS['id'] ) ) ? intval( $HTTP_GET_VARS['id'] ) : 0; ! // Grab Game info from game_id ! $sql = "SELECT * FROM " . iNA_GAMES . " ! WHERE game_id = " . $game_id; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql ); ! } ! $game_info = $db->sql_fetchrow( $result ); ! // Extra Vars ! $game_name = $game_info['game_name']; ! $game_width = $game_info['win_width']; ! $game_height = $game_info['win_height']; ! $game_path = $game_info['game_path']; ! $game_flash = $game_info['game_flash']; ! $game_title = $board_config['sitename'] . $lang['game_dash'] . $lang['game_dash'] . $game_name; ! ! if ( ( $game_flash ) && ( !$_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body.tpl' ) ); ! // Generate page ! $template->assign_vars( array( 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! $template->pparse( 'body' ); ! }elseif ( ( $game_flash ) && ( $_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body2.tpl' ) ); ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game_name'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $t_holder_id = $row['player']; ! $t_holder_sc = $row['score']; ! $t_holder_da = $row['date']; ! $trophy_score = number_format( $t_holder_sc ); ! $trophy_date = strftime( "%b. %d, %Y @ %H:%M:%S", $t_holder_da ); ! ! $q1 = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '$t_holder_id'"; ! $r1 = $db->sql_query( $q1 ); ! $row = $db->sql_fetchrow( $r1 ); ! $t_holder_name = $row['username']; ! ! $t_link = $t_holder_name . "'s <a href='" . $phpbb_root_path . "profile.php?mode=viewprofile&u=$t_holder_id&sid=" . $userdata['session_id'] . "'>" . $lang['main_profile'] . "</a>", ! $t_link1 = $t_holder_name . "'s <a href='" . this_act_mxurl( "mode=act_trophy&user=$t_holder_name&sid=" . $userdata['session_id'] ) . "'>" . $lang['game_profile'] . "</a>", ! ! $template->assign_vars( array( 'T_HOLDER' => $lang['trophy_holder'], ! 'T_HOLDER_1' => $t_holder_name, ! 'T_DATE' => $trophy_date, ! 'T_DATE_1' => $lang['trophy_held_since'], ! 'T_SCORE' => $trophy_score, ! 'T_SCORE_1' => $lang['score_to_beat'], ! 'T_LINK' => $t_link, ! 'T_LINK_1' => $t_link1, ! 'T_IMAGE' => "images/trophy.gif", ! 'R_TITLE' => $lang['top_ten'], ! 'NAME' => $game_name, ! 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! ! $q2 = "SELECT *, MAX(score) AS hscore ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game_name' ! GROUP BY player ! ORDER BY score DESC ! LIMIT 0,10"; ! $r2 = $db->sql_query( $q2 ); ! if ( $row = $db->sql_fetchrow( $r2 ) ) ! { ! $p = 1; ! do ! { ! $runner_up_name = $row['player']; ! $runner_up_score1 = $row['hscore']; ! $runner_up_score = number_format( $runner_up_score1 ); ! ! $template->assign_block_vars( "runner", array( 'R_U_NAME' => $runner_up_name, ! 'R_U_SCORE' => $runner_up_score ) ! ); ! ! $p++; ! } ! while ( $row = $db->sql_fetchrow( $r2 ) ); ! } ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! $template->pparse( 'body' ); ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! else ! { ! $template->set_filenames( array( 'body' => $game_name . '_body.tpl' ) ); ! ! $template->assign_vars( array( 'USERNAME' => $userdata['username'], ! 'PATH' => $module_root_path . $game_path, ! 'GAMELIB' => "./" . $act_config['games_path'] . "/" . $act_config['gamelib_path'] . "/", ! 'S_GAME_ACTION' => append_sid( $module_root_path . 'newscore.' . $phpEx . '?mode=check_score&game_name=' . $game_name ) ) ! ); ! $template->pparse( 'body' ); ! } ! ?> \ No newline at end of file --- 1,202 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- ! * ! * $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. ! */ ! ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! $module_root_path = './'; ! ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! /* ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_PLAYING_GAMES); ! init_userprefs($userdata); ! // End session management ! ! */ ! // For some reason user_session_page is not always updated with session_pagestart. ! // So we check for it and if not set, we have game.php set it. This is needed to ! // keep others from cheating. ! // define('INA_BAN', $table_prefix .'ina_ban'); ! // define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! if ( $userdata['user_session_page'] != PAGE_PLAYING_GAMES ) ! { ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_session_page = '" . PAGE_PLAYING_GAMES . "' ! WHERE user_id = " . $userdata['user_id']; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql ); ! } ! } ! ! /* Do a quick ban check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* Finished with ban check */ ! ! $game_id = ( isset( $HTTP_GET_VARS['id'] ) ) ? intval( $HTTP_GET_VARS['id'] ) : 0; ! // Grab Game info from game_id ! $sql = "SELECT * FROM " . iNA_GAMES . " ! WHERE game_id = " . $game_id; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql ); ! } ! $game_info = $db->sql_fetchrow( $result ); ! // Extra Vars ! $game_name = $game_info['game_name']; ! $game_width = $game_info['win_width']; ! $game_height = $game_info['win_height']; ! $game_path = $game_info['game_path']; ! $game_flash = $game_info['game_flash']; ! $game_title = $board_config['sitename'] . $lang['game_dash'] . $lang['game_dash'] . $game_name; ! ! if ( ( $game_flash ) && ( !$_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body.tpl' ) ); ! // Generate page ! $template->assign_vars( array( 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! $template->pparse( 'body' ); ! }elseif ( ( $game_flash ) && ( $_GET['parent'] ) ) ! { ! $template->set_filenames( array( 'body' => 'flash_body2.tpl' ) ); ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game_name'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $t_holder_id = $row['player']; ! $t_holder_sc = $row['score']; ! $t_holder_da = $row['date']; ! $trophy_score = number_format( $t_holder_sc ); ! $trophy_date = strftime( "%b. %d, %Y @ %H:%M:%S", $t_holder_da ); ! ! $q1 = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '$t_holder_id'"; ! $r1 = $db->sql_query( $q1 ); ! $row = $db->sql_fetchrow( $r1 ); ! $t_holder_name = $row['username']; ! ! $t_link = $t_holder_name . "'s <a href='" . $phpbb_root_path . "profile.php?mode=viewprofile&u=$t_holder_id&sid=" . $userdata['session_id'] . "'>" . $lang['main_profile'] . "</a>", ! $t_link1 = $t_holder_name . "'s <a href='" . this_act_mxurl( "mode=act_trophy&user=$t_holder_name&sid=" . $userdata['session_id'] ) . "'>" . $lang['game_profile'] . "</a>", ! ! $template->assign_vars( array( 'T_HOLDER' => $lang['trophy_holder'], ! 'T_HOLDER_1' => $t_holder_name, ! 'T_DATE' => $trophy_date, ! 'T_DATE_1' => $lang['trophy_held_since'], ! 'T_SCORE' => $trophy_score, ! 'T_SCORE_1' => $lang['score_to_beat'], ! 'T_LINK' => $t_link, ! 'T_LINK_1' => $t_link1, ! 'T_IMAGE' => "images/trophy.gif", ! 'R_TITLE' => $lang['top_ten'], ! 'NAME' => $game_name, ! 'TITLE' => $game_title, ! 'WIDTH' => $game_width, ! 'HEIGHT' => $game_height, ! 'SWFNAME' => $game_name . '.swf', ! 'PATH' => $module_root_path . $game_path ) ! ); ! ! $q2 = "SELECT *, MAX(score) AS hscore ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game_name' ! GROUP BY player ! ORDER BY score DESC ! LIMIT 0,10"; ! $r2 = $db->sql_query( $q2 ); ! if ( $row = $db->sql_fetchrow( $r2 ) ) ! { ! $p = 1; ! do ! { ! $runner_up_name = $row['player']; ! $runner_up_score1 = $row['hscore']; ! $runner_up_score = number_format( $runner_up_score1 ); ! ! $template->assign_block_vars( "runner", array( 'R_U_NAME' => $runner_up_name, ! 'R_U_SCORE' => $runner_up_score ) ! ); ! ! $p++; ! } ! while ( $row = $db->sql_fetchrow( $r2 ) ); ! } ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! $template->pparse( 'body' ); ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! else ! { ! $template->set_filenames( array( 'body' => $game_name . '_body.tpl' ) ); ! ! $template->assign_vars( array( 'USERNAME' => $userdata['username'], ! 'PATH' => $module_root_path . $game_path, ! 'GAMELIB' => "./" . $act_config['games_path'] . "/" . $act_config['gamelib_path'] . "/", ! 'S_GAME_ACTION' => append_sid( $module_root_path . 'newscore.' . $phpEx . '?mode=check_score&game_name=' . $game_name ) ) ! ); ! $template->pparse( 'body' ); ! } ! ?> \ No newline at end of file Index: activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/activity.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** activity.php 12 Apr 2005 19:48:18 -0000 1.5 --- activity.php 1 Oct 2005 14:11:39 -0000 1.6 *************** *** 1,438 **** ! <?php ! /** ! * activity.php ! * ------------------- ! * begin : Thursday, August 1, 2002 ! * copyright : (c) 2002 iNetAngel ! * email : su...@in... ! * ! * $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. ! * ! * ! * ! * This is a MOD for phpbb v2.0.+ The phpbb group has all rights to the ! * phpbb source. They can be contacted at : ! * ! * I-Net : www.phpbb.com ! * E-Mail: su...@ph... ! * ! * If you have made any changes then please notify me so they can be added ! * if they are improvments. You of course will get the credit for helping ! * out. If you would like to see other MODs that I have made then check ! * out my forum at : www.iNetAngel.com and click on the community button. ! */ ! // MX ! if ( !function_exists( 'read_block_config' ) ) ! { ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if ( empty( $block_id ) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'ActivityGames' LIMIT 1"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Activity Mod module information", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $block_id = $row['block_id']; ! } ! $is_block = false; ! } ! else ! { ! ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! ! $is_block = true; ! global $images; ! } ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* Original code ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $table_prefix .'ina_ban'); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_ACTIVITY); ! init_userprefs($userdata); ! // End session management ! */ ! // Make sure the player is registered ! $user_id = $userdata['user_id']; ! if ( $act_config['ina_guest_play'] == "2" ) ! { ! if ( !$userdata['session_logged_in'] && $user_id == ANONYMOUS ) ! { ! mx_message_die( GENERAL_ERROR, $lang['not_logged_in'], $lang['info'] ); ! // $header_location = ( @preg _match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: "; ! // header($header_location . append_sid("login.$phpEx?redirect=activity.$phpEx", true)); ! // exit; ! } ! } ! ! $q = "UPDATE " . SESSIONS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE session_user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . USERS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! /* Start Restriction Checks */ ! /* Start Ban Check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* End Ban Check */ ! /* Start Post Count Check */ ! if ( $act_config['ina_post_block'] == "1" ) ! { ! if ( $userdata['user_posts'] < $act_config['ina_post_block_count'] ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires " . $act_config['ina_post_block_count'] . " Posts Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Post Count Check */ ! /* Start Registration Date Check */ ! if ( $act_config['ina_join_block'] == "1" ) ! { ! $days_block = $act_config['ina_join_block_count']; ! $length_check = time() - $userdata['user_regdate']; ! $length_block = $length_check / 86400; ! $rounded = round( $length_block ); ! if ( $rounded < $days_block ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires Being A Member For " . $act_config['ina_join_block_count'] . " Day(s) Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Registration Date Check */ ! /* End Restriction Checks */ ! ! if ( $act_config['use_rewards_mod'] ) ! { ! if ( $act_config['use_point_system'] ) ! { ! include( $phpbb_root_path . 'includes/functions_points.' . $phpEx ); ! } ! if ( $act_config['use_cash_system'] || $act_config['use_allowance_system'] ) ! { ! include( $module_root_path . 'includes/rewards_api.' . $phpEx ); ! } ! if ( ( $act_config['use_point_system'] ) && ( file_exists( $phpbb_root_path . 'includes/functions_points.' . $phpEx ) == 0 ) ) ! { ! function get_user_points( $user_id ) ! { ! global $db; ! ! $sql = "SELECT user_points ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_points from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $points = $db->sql_fetchrow( $result ); ! ! return $points['user_points']; ! } ! ! function get_username_from_id( $user_id ) ! { ! global $db; ! ! $sql = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id ! AND user_id != " . ANONYMOUS; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get username from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $username = $db->sql_fetchrow( $result ); ! ! return $username['username']; ! } ! ! function get_userid_from_name( $username ) ! { ! global $db; ! ! $username = str_replace( "\'", "''", trim( $username ) ); ! ! $sql = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '$username' ! AND user_id != " . ANONYMOUS; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_id from $username.", '', __LINE__, __FILE__, $sql ); ! } ! $user_id = $db->sql_fetchrow( $result ); ! ! return $user_id['user_id']; ! } ! ! function add_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points + $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! ! function subtract_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points - $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! } ! } ! ! if ( isset( $HTTP_GET_VARS['mode'] ) || isset( $HTTP_POST_VARS['mode'] ) ) ! { ! $mode = ( isset( $HTTP_GET_VARS['mode'] ) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; ! } ! else ! { ! if ( isset( $HTTP_POST_VARS['game'] ) ) ! { ! $mode = "game"; ! } ! else if ( isset( $HTTP_POST_VARS['stats'] ) ) ! { ! $mode = "stats"; ! } ! else ! { ! $mode = ""; ! } ! } ! ! $q = "SELECT game_id ! FROM " . iNA_GAMES . " ! ORDER BY RAND() ! LIMIT 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $random_game = append_sid( this_act_mxurl( "mode=game&id=" . $row['game_id'] . "&parent=true" ) ); ! $random_image = $phpbb_root_path . "templates/subSilver/images/icon_mini_faq.gif"; ! // Challenge -------------------------------- ! if ( $mode == "challenge" ) ! { ! include( $module_root_path . 'includes/act_challenges_main.' . $phpEx ); ! } ! ! $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; ! $finish = $act_config['games_per_page']; ! ! if ( isset( $HTTP_POST_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_POST_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! }elseif ( isset( $HTTP_GET_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_GET_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! } ! else ! { ! $sort_order = 'DESC'; ! } ! ! if ( $act_config['use_point_system'] ) ! { ! $game_cost = $act_config['points_name']; ! } ! else ! { ! $game_cost = $lang['game_cost']; ! } ! ! $mode_types_text = array( $lang['game_instructions'], $game_cost, $lang['game_bonuses'], $lang['game_played'] ); ! $mode_types = array( 'game_instructions', 'game_charge', 'game_bonus', 'game_played' ); ! ! $select_sort_mode = '<select name="mode">'; ! ! for( $i = 0; $i < count( $mode_types_text ); $i++ ) ! { ! $selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : ''; ! $select_sort_mode .= '<option value="' . $mode_types[$i] . '"' . $selected . '>' . $mode_types_text[$i] . '</option>'; ! } ! $select_sort_mode .= '</select>'; ! ! $select_sort_order = '<select name="order">'; ! if ( $sort_order == 'DESC' ) ! { ! $select_sort_order .= '<option value="DESC" selected="selected">' . $lang['Sort_Descending'] . '</option><option value="ASC">' . $lang['Sort_Ascending'] . '</option>'; ! } ! else ! { ! $select_sort_order .= '<option value="DESC">' . $lang['Sort_Descending'] . '</option><option value="ASC" selected="selected">' . $lang['Sort_Ascending'] . '</option>'; ! } ! $select_sort_order .= '</select>'; ! ! switch ( $mode ) ! { ! case 'game_instructions': ! $order_by = "instructions $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_charge': ! $order_by = "game_charge $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_bonus': ! $order_by = "game_bonus $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_played': ! $order_by = "played $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! default: ! $order_by = "game_id $sort_order LIMIT $start, " . $act_config['games_per_page']; ! break; ! } ! ! if ( $mode != "" ) ! { ! if ( $mode == "game" ) ! { ! include( $module_root_path . 'includes/act_games.' . $phpEx ); ! } ! else if ( $mode == "stats" ) ! { ! include( $module_root_path . 'includes/act_stats.' . $phpEx ); ! } ! else if ( $mode == "act_scores" ) ! { ! include( $module_root_path . 'includes/act_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores" ) ! { ! include( $module_root_path . 'includes/act_top_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores_search" ) ! { ! include( $module_root_path . 'includes/act_top_scores_search.' . $phpEx ); ! } ! else if ( $mode == "act_trophy" ) ! { ! include( $module_root_path . 'includes/act_trophy.' . $phpEx ); ! } ! else if ( $mode == "act_trophy_comments" ) ! { ! include( $module_root_path . 'includes/act_trophy_comments.' . $phpEx ); ! } ! else if ( $mode == "act_challenges" ) ! { ! include( $module_root_path . 'includes/act_challenges.' . $phpEx ); ! } ! else if ( $mode == "category_play" ) ! { ! include( $module_root_path . 'includes/act_cat_play.' . $phpEx ); ! } ! } ! else ! { ! include( $module_root_path . 'includes/act_main.' . $phpEx ); ! } ! ! $template->assign_vars( array( "U_INDEX" => append_sid( $mx_root_path ), ! "L_INDEX" => '<< ' . $lang['site_home'], ! "U_TROPHY" => append_sid( this_act_mxurl( "mode=act_trophy" ) ), ! "L_TROPHY" => $lang['trophy_count_link'], ! "U_TOP_SCORES" => append_sid( this_act_mxurl( "mode=act_top_scores" ) ), ! "L_TOP_SCORES" => $lang['game_highscores'], ! "U_ACTIVITY" => append_sid( this_act_mxurl() ), ! "L_ACTIVITY" => $lang['act_home'], ! "U_STATS" => append_sid( this_act_mxurl( "mode=stats" ) ), ! "L_STATS" => $lang['game_stats'], ! "U_GAMES" => append_sid( this_act_mxurl( "mode=games" ) ), ! "L_GAMES" => $lang['game'], ! "L_COMMENTS_TITLE" => $lang['comments_title'], ! "L_HIGHSCORES_TITLE" => $lang['game_highscores'], ! ) ); ! // Generate page ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! } ! include ( $module_root_path . "includes/act_header." . $phpEx ); ! ! $template->pparse( 'body' ); ! ! include ( $module_root_path . "includes/act_footer." . $phpEx ); ! ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! ?> \ No newline at end of file --- 1,427 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- ! * ! * $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. ! */ ! ! if ( !function_exists( 'read_block_config' ) ) ! { ! define( 'IN_PORTAL', true ); ! $mx_root_path = '../../'; ! include_once( $mx_root_path . 'extension.inc' ); ! include_once( $mx_root_path . 'common.' . $phpEx ); ! ! // Start session management ! ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); ! mx_init_userprefs( $userdata ); ! ! // End session management ! ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if ( empty( $block_id ) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'ActivityGames' LIMIT 1"; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not query Activity Mod module information", "", __LINE__, __FILE__, $sql ); ! } ! $row = $db->sql_fetchrow( $result ); ! $block_id = $row['block_id']; ! } ! $is_block = false; ! } ! else ! { ! ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; ! $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! ! $is_block = true; ! global $images; ! } ! ! include( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* Original code ! define('IN_PHPBB', true); ! $phpbb_root_path = './'; ! include($phpbb_root_path . 'extension.inc'); ! include($phpbb_root_path . 'common.'.$phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! define('INA_TROPHY', $table_prefix .'ina_top_scores'); ! define('INA_CHEAT', $table_prefix .'ina_cheat_fix'); ! define('INA_BAN', $table_prefix .'ina_ban'); ! ! // Start session management ! $userdata = session_pagestart($user_ip, PAGE_ACTIVITY); ! init_userprefs($userdata); ! // End session management ! */ ! // Make sure the player is registered ! $user_id = $userdata['user_id']; ! if ( $act_config['ina_guest_play'] == "2" ) ! { ! if ( !$userdata['session_logged_in'] && $user_id == ANONYMOUS ) ! { ! mx_message_die( GENERAL_ERROR, $lang['not_logged_in'], $lang['info'] ); ! // $header_location = ( @preg _match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: "; ! // header($header_location . append_sid("login.$phpEx?redirect=activity.$phpEx", true)); ! // exit; ! } ! } ! ! $q = "UPDATE " . SESSIONS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE session_user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . USERS_TABLE . " ! SET session_page = '" . PAGE_ACTIVITY . "' ! WHERE user_id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! ! /* Start Restriction Checks */ ! /* Start Ban Check */ ! $q = "SELECT id ! FROM " . INA_BAN . " ! WHERE id = '" . $userdata['user_id'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_1 = $row['id']; ! if ( $ban_1 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! ! $q = "SELECT * ! FROM " . INA_BAN . " ! WHERE username = '" . $userdata['username'] . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $ban_2 = $row['username']; ! if ( $ban_2 ) ! { ! mx_message_die( GENERAL_ERROR, $lang['ban'], $lang['ban_error'] ); ! } ! /* End Ban Check */ ! /* Start Post Count Check */ ! if ( $act_config['ina_post_block'] == "1" ) ! { ! if ( $userdata['user_posts'] < $act_config['ina_post_block_count'] ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires " . $act_config['ina_post_block_count'] . " Posts Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Post Count Check */ ! /* Start Registration Date Check */ ! if ( $act_config['ina_join_block'] == "1" ) ! { ! $days_block = $act_config['ina_join_block_count']; ! $length_check = time() - $userdata['user_regdate']; ! $length_block = $length_check / 86400; ! $rounded = round( $length_block ); ! if ( $rounded < $days_block ) ! { ! mx_message_die( GENERAL_ERROR, "Sorry, The Admin Requires Being A Member For " . $act_config['ina_join_block_count'] . " Day(s) Before Playing These Games.", $lang['ban_error'] ); ! } ! } ! /* End Registration Date Check */ ! /* End Restriction Checks */ ! ! if ( $act_config['use_rewards_mod'] ) ! { ! if ( $act_config['use_point_system'] ) ! { ! include( $phpbb_root_path . 'includes/functions_points.' . $phpEx ); ! } ! if ( $act_config['use_cash_system'] || $act_config['use_allowance_system'] ) ! { ! include( $module_root_path . 'includes/rewards_api.' . $phpEx ); ! } ! if ( ( $act_config['use_point_system'] ) && ( file_exists( $phpbb_root_path . 'includes/functions_points.' . $phpEx ) == 0 ) ) ! { ! function get_user_points( $user_id ) ! { ! global $db; ! ! $sql = "SELECT user_points ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id"; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_points from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $points = $db->sql_fetchrow( $result ); ! ! return $points['user_points']; ! } ! ! function get_username_from_id( $user_id ) ! { ! global $db; ! ! $sql = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = $user_id ! AND user_id != " . ANONYMOUS; ! ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get username from $user_id.", '', __LINE__, __FILE__, $sql ); ! } ! $username = $db->sql_fetchrow( $result ); ! ! return $username['username']; ! } ! ! function get_userid_from_name( $username ) ! { ! global $db; ! ! $username = str_replace( "\'", "''", trim( $username ) ); ! ! $sql = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '$username' ! AND user_id != " . ANONYMOUS; ! if ( !$result = $db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not get user_id from $username.", '', __LINE__, __FILE__, $sql ); ! } ! $user_id = $db->sql_fetchrow( $result ); ! ! return $user_id['user_id']; ! } ! ! function add_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points + $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! ! function subtract_points( $user_id, $amount ) ! { ! global $db; ! ! $sql = "UPDATE " . USERS_TABLE . " ! SET user_points = user_points - $amount ! WHERE user_id = $user_id"; ! if ( !$db->sql_query( $sql ) ) ! { ! mx_message_die( GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql ); ! } ! ! return; ! } ! } ! } ! ! if ( isset( $HTTP_GET_VARS['mode'] ) || isset( $HTTP_POST_VARS['mode'] ) ) ! { ! $mode = ( isset( $HTTP_GET_VARS['mode'] ) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; ! } ! else ! { ! if ( isset( $HTTP_POST_VARS['game'] ) ) ! { ! $mode = "game"; ! } ! else if ( isset( $HTTP_POST_VARS['stats'] ) ) ! { ! $mode = "stats"; ! } ! else ! { ! $mode = ""; ! } ! } ! ! $q = "SELECT game_id ! FROM " . iNA_GAMES . " ! ORDER BY RAND() ! LIMIT 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $random_game = append_sid( this_act_mxurl( "mode=game&id=" . $row['game_id'] . "&parent=true" ) ); ! $random_image = $phpbb_root_path . "templates/subSilver/images/icon_mini_faq.gif"; ! // Challenge -------------------------------- ! if ( $mode == "challenge" ) ! { ! include( $module_root_path . 'includes/act_challenges_main.' . $phpEx ); ! } ! ! $start = ( isset( $HTTP_GET_VARS['start'] ) ) ? intval( $HTTP_GET_VARS['start'] ) : 0; ! $finish = $act_config['games_per_page']; ! ! if ( isset( $HTTP_POST_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_POST_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! }elseif ( isset( $HTTP_GET_VARS['order'] ) ) ! { ! $sort_order = ( $HTTP_GET_VARS['order'] == 'DESC' ) ? 'DESC' : 'ASC'; ! } ! else ! { ! $sort_order = 'DESC'; ! } ! ! if ( $act_config['use_point_system'] ) ! { ! $game_cost = $act_config['points_name']; ! } ! else ! { ! $game_cost = $lang['game_cost']; ! } ! ! $mode_types_text = array( $lang['game_instructions'], $game_cost, $lang['game_bonuses'], $lang['game_played'] ); ! $mode_types = array( 'game_instructions', 'game_charge', 'game_bonus', 'game_played' ); ! ! $select_sort_mode = '<select name="mode">'; ! ! for( $i = 0; $i < count( $mode_types_text ); $i++ ) ! { ! $selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : ''; ! $select_sort_mode .= '<option value="' . $mode_types[$i] . '"' . $selected . '>' . $mode_types_text[$i] . '</option>'; ! } ! $select_sort_mode .= '</select>'; ! ! $select_sort_order = '<select name="order">'; ! if ( $sort_order == 'DESC' ) ! { ! $select_sort_order .= '<option value="DESC" selected="selected">' . $lang['Sort_Descending'] . '</option><option value="ASC">' . $lang['Sort_Ascending'] . '</option>'; ! } ! else ! { ! $select_sort_order .= '<option value="DESC">' . $lang['Sort_Descending'] . '</option><option value="ASC" selected="selected">' . $lang['Sort_Ascending'] . '</option>'; ! } ! $select_sort_order .= '</select>'; ! ! switch ( $mode ) ! { ! case 'game_instructions': ! $order_by = "instructions $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_charge': ! $order_by = "game_charge $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_bonus': ! $order_by = "game_bonus $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! case 'game_played': ! $order_by = "played $sort_order LIMIT $start," . $act_config['games_per_page']; ! $mode = ""; ! break; ! default: ! $order_by = "game_id $sort_order LIMIT $start, " . $act_config['games_per_page']; ! break; ! } ! ! if ( $mode != "" ) ! { ! if ( $mode == "game" ) ! { ! include( $module_root_path . 'includes/act_games.' . $phpEx ); ! } ! else if ( $mode == "stats" ) ! { ! include( $module_root_path . 'includes/act_stats.' . $phpEx ); ! } ! else if ( $mode == "act_scores" ) ! { ! include( $module_root_path . 'includes/act_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores" ) ! { ! include( $module_root_path . 'includes/act_top_scores.' . $phpEx ); ! } ! else if ( $mode == "act_top_scores_search" ) ! { ! include( $module_root_path . 'includes/act_top_scores_search.' . $phpEx ); ! } ! else if ( $mode == "act_trophy" ) ! { ! include( $module_root_path . 'includes/act_trophy.' . $phpEx ); ! } ! else if ( $mode == "act_trophy_comments" ) ! { ! include( $module_root_path . 'includes/act_trophy_comments.' . $phpEx ); ! } ! else if ( $mode == "act_challenges" ) ! { ! include( $module_root_path . 'includes/act_challenges.' . $phpEx ); ! } ! else if ( $mode == "category_play" ) ! { ! include( $module_root_path . 'includes/act_cat_play.' . $phpEx ); ! } ! } ! else ! { ! include( $module_root_path . 'includes/act_main.' . $phpEx ); ! } ! ! $template->assign_vars( array( "U_INDEX" => append_sid( $mx_root_path ), ! "L_INDEX" => '<< ' . $lang['site_home'], ! "U_TROPHY" => append_sid( this_act_mxurl( "mode=act_trophy" ) ), ! "L_TROPHY" => $lang['trophy_count_link'], ! "U_TOP_SCORES" => append_sid( this_act_mxurl( "mode=act_top_scores" ) ), ! "L_TOP_SCORES" => $lang['game_highscores'], ! "U_ACTIVITY" => append_sid( this_act_mxurl() ), ! "L_ACTIVITY" => $lang['act_home'], ! "U_STATS" => append_sid( this_act_mxurl( "mode=stats" ) ), ! "L_STATS" => $lang['game_stats'], ! "U_GAMES" => append_sid( this_act_mxurl( "mode=games" ) ), ! "L_GAMES" => $lang['game'], ! "L_COMMENTS_TITLE" => $lang['comments_title'], ! "L_HIGHSCORES_TITLE" => $lang['game_highscores'], ! ) ); ! // Generate page ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_header.' . $phpEx ); ! } ! include ( $module_root_path . "includes/act_header." . $phpEx ); ! ! $template->pparse( 'body' ); ! ! include ( $module_root_path . "includes/act_footer." . $phpEx ); ! ! if ( !$is_block ) ! { ! include( $mx_root_path . 'includes/page_tail.' . $phpEx ); ! } ! ?> \ No newline at end of file Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/db_uninstall.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** db_uninstall.php 22 Sep 2005 10:07:30 -0000 1.5 --- db_uninstall.php 1 Oct 2005 14:11:39 -0000 1.6 *************** *** 1,21 **** <?php ! /** ! * * ------------------------------------------------------------------------ ! * subject : mxBB-Portal - CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 mxBB-Portal ! * email : jon...@ho... ! * project site : www.mx-system.com ! * * ------------------------------------------------------------------------- * ! * $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. */ --- 1,20 ---- <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * ! * $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. */ Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/db_upgrade.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** db_upgrade.php 22 Sep 2005 10:07:30 -0000 1.8 --- db_upgrade.php 1 Oct 2005 14:11:39 -0000 1.9 *************** *** 1,21 **** <?php ! /** ! * * ------------------------------------------------------------------------ ! * subject : mxBB-Portal - CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 mxBB-Portal ! * email : jon...@ho... ! * project site : www.mx-system.com ! * * ------------------------------------------------------------------------- * ! * $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. */ --- 1,20 ---- <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * ! * $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. */ Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/db_install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** db_install.php 22 Sep 2005 10:07:30 -0000 1.8 --- db_install.php 1 Oct 2005 14:11:39 -0000 1.9 *************** *** 1,21 **** <?php ! /** ! * * ------------------------------------------------------------------------ ! * subject : mxBB-Portal - CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 mxBB-Portal ! * email : jon...@ho... ! * project site : www.mx-system.com ! * * ------------------------------------------------------------------------- * ! * $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. */ --- 1,20 ---- <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * ! * $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. */ |
|
From: Jon O. <jon...@us...> - 2005-10-02 23:47:00
|
Update of /cvsroot/mxbb/mx_newssuite/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1560/modules/mx_newssuite/includes Modified Files: news.php newssuite_constants.php newssuite_defs.php Log Message: updated all file headers Index: newssuite_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_newssuite/includes/newssuite_constants.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** newssuite_constants.php 22 Sep 2005 10:10:19 -0000 1.16 --- newssuite_constants.php 1 Oct 2005 14:14:44 -0000 1.17 *************** *** 1,11 **** <?php /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : * ------------------------------------------------------------------------- * --- 1,10 ---- <?php /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * *************** *** 13,17 **** */ ! /** * 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 --- 12,16 ---- */ ! /** * 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 Index: newssuite_defs.php =================================================================== RCS file: /cvsroot/mxbb/mx_newssuite/includes/newssuite_defs.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** newssuite_defs.php 23 Jan 2005 20:44:41 -0000 1.4 --- newssuite_defs.php 1 Oct 2005 14:14:44 -0000 1.5 *************** *** 1,11 **** <?php /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : * ------------------------------------------------------------------------- * --- 1,10 ---- <?php /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * *************** *** 13,17 **** */ ! /** * 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 --- 12,16 ---- */ ! /** * 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 *************** *** 20,26 **** */ - // ---------------------------------------------------------------------START - // This file defines specific constants for the module - // ------------------------------------------------------------------------- switch ( $newssuite_config['news_source_switch'] ) { --- 19,22 ---- Index: news.php =================================================================== RCS file: /cvsroot/mxbb/mx_newssuite/includes/news.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** news.php 22 Sep 2005 10:10:19 -0000 1.16 --- news.php 1 Oct 2005 14:14:44 -0000 1.17 *************** *** 1,11 **** <?php /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : * ------------------------------------------------------------------------- * --- 1,10 ---- <?php /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * *************** *** 13,17 **** */ ! /** * 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 --- 12,16 ---- */ ! /** * 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 |
|
From: Jon O. <jon...@us...> - 2005-10-02 23:46:59
|
Update of /cvsroot/mxbb/mx_act/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv582/modules/mx_act/language/lang_english Modified Files: lang_main.php Log Message: updated all file headers Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/language/lang_english/lang_main.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_main.php 12 Apr 2005 19:48:20 -0000 1.1 --- lang_main.php 1 Oct 2005 14:11:39 -0000 1.2 *************** *** 1,376 **** ! <?php ! /*************************************************************************** ! * lang_main.php [english] ! * ------------------- ! * begin : Saturday December 20, 2003 ! * copyright : (c) 2003 iNetAngel ! * email : su...@iN... ! * ! * $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. ! * ! ***************************************************************************/ ! ! // Admin ! $lang['admin_main_header'] = "-:- This is an interface between iNetAngel MODs and other MODs. It will help site admins from having conflicts with other MODs that may have been installed or are no longer supported but well liked. This control panel will help you maintain and control the online activities that have been created by <a href=\"http://www.iNetAngel.com/\" target=\"newindow\" class=\"copyright\">iNetAngel</a>. Future iNetAngel MODs will use this menu for any new expansions that are user specific. If you are currently having a problem with an iNetAngel MOD and another MOD, then please contact us at <a href=\"mailto:su...@iN...\" class=\"copyright\">su...@iN...</a> so we may help fix the problem."; ! $lang['admin_config_menu'] = "iNetAngel Online Activity Configuration Menu"; ! $lang['admin_game_menu'] = "iNetAngel Online Activity Game Menu"; ! $lang['admin_game_editor'] = "iNetAngel Online Activity Game Editor Menu"; ! $lang['admin_editor_info'] = "-:- This control panel allows you to edit Game data. Any game that has been released by <a href=\"http://www.iNetAngel.com\" target=\"new_window\">iNetAngel</a> can easily be plugged into your forums using this control panel. If you would like to convert a game to use this control panel, then ask for help at our <a href=\"http://www.iNetAngel.com/community/index.php\" target=\"new_window\">forums</a>. If you are having trouble with this menu or the Activity MOD then please contact us at <a href=\"mailto:su...@iN...\">Su...@iN...</a>."; ! $lang['admin_game_deleted'] = "Game Deleted<br /><br />"; ! $lang['admin_game_not_deleted'] = "Game NOT Deleted<br /><br />"; ! $lang['admin_game_repaired'] = "Games Repaired<br /><br />"; ! $lang['admin_game_saved'] = "Game Saved Successfully<br /><br />"; ! $lang['admin_score_reset'] = "All scores have been reset<br /><br />"; ! $lang['admin_return_activity'] = "Click %sHere%s to return to the Activity Menu"; ! $lang['admin_config_updated'] = "Online Activities Configuration Updated<br /><br />"; ! $lang['admin_toggles'] = "Support Toggles"; ! $lang['admin_rewards'] = "Reward system Toggles"; ! $lang['admin_activity_config'] = "Activity Configuration"; ! $lang['admin_use_adar_shop'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Adar Item Shop</a></b><br />"; ! $lang['admin_use_adar_info'] = "-:- If you want to reward Items for Highscore bonuses and you have the<br /> Adar ItemShop, then toggle this to <b>Yes</b>.<br /><br />-:- <b>NOTE : </b>This will not work with other shops!"; ! $lang['admin_use_gamelib'] = "<b>Use the <a href=\"http://www.javascript-games.org/gamelib/\" target=\"newindow\">Gamelib Javascript Library</a></b><br />"; ! $lang['admin_use_gl_info'] = "-:- If you are using a game/application that uses Scott Porter's gamelib,<br /> then toggle this on."; ! $lang['admin_use_points'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Points System</a></b><br />"; ! $lang['admin_use_pts_info'] = "-:- If you are using the Points System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; ! $lang['admin_use_cash'] = "<b>Use the <a href=\"http://www.phpbb.com/community/\" target=\"newindow\">Cash System</a></b><br />"; ! $lang['admin_use_cash_info'] = "-:- If you are using the Cash System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; ! $lang['admin_use_allowance'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Allowance System</a></b><br />"; ! $lang['admin_use_allowance_info'] = "-:- If you are using the Allowance System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; ! $lang['admin_gl_game_path'] = "<b>Gamelib Games Path</b><br />"; ! $lang['admin_gl_path_info'] = "-:- This is the directory located in your forums root directory where you wish<br /> to hold all of your games that use the gamelib."; ! $lang['admin_gl_lib_path'] = "<b>Gamelib Javascript Library Path</b><br />"; ! $lang['admin_gl_lib_info'] = "-:- This Directory is located in your \"<b>Gamelib Games Path</b>\" and holds all<br /> of the gamelib*.js files.<br /><br />-:- <b>NOTE</b> : If your games are locking up or you don't hear any<br /> sound then check this directory to make sure there are gamelib files<br /> in here."; ! $lang['admin_games_per_page'] = "<b>Games Per Page</b><br />"; ! $lang['admin_games_per_info'] = "-:- This is how many games you want listed before a new page is needed.<br /><br />-:- <b>NOTE</b> : Leaving this blank or <b>0</b> will return errors."; ! $lang['admin_page'] = "Pages"; ! $lang['admin_path'] = "Path"; ! $lang['admin_adar_config'] = "Adarian Shop Options"; ! $lang['admin_adar_shop'] = "<b>Adar Shop</b><br />"; ! $lang['admin_no_adar_info'] = "-:- The Adarian Shop options are not installed. Please install Adar before<br /> setting these options."; ! $lang['admin_games'] = "Games"; ! $lang['admin_charge'] = "Charge"; ! $lang['admin_button'] = "Button"; ! $lang['admin_description'] = "Description"; ! $lang['admin_genre'] = "Genre"; ! $lang['admin_reward'] = "Reward"; ! $lang['admin_bonus'] = "Bonus"; ! $lang['admin_flash'] = "Flash"; ! $lang['admin_score'] = "Score"; ! $lang['admin_gamelib'] = "Gamelib"; ! $lang['admin_action'] = "Action"; ! $lang['admin_move'] = "Move"; ! $lang['admin_repair'] = "Repair Game Index"; ! $lang['admin_reset'] = "Reset all Scores"; ! $lang['admin_up'] = "Up"; ! $lang['admin_down'] = "Dn"; ! $lang['admin_delete'] = "X"; ! $lang['admin_limit'] = "Limit"; ! $lang['admin_width'] = "Width"; ! $lang['admin_height'] = "Height"; ! $lang['admin_cash'] = "Cash"; ! $lang['admin_name'] = "<b>Name</b><br />"; ! $lang['admin_name_info'] = "-:- This is the name of the game you are installing. <br /><br />-:- <b>NOTE</b> : Keep the name of this game limited to one word with no<br /> spaces or unusual characters. Anything else will cause errors."; ! $lang['admin_game_path'] = "<b>Game Path</b><br />"; ! $lang['admin_game_path_info'] = "-:- This is the path location of your game located within your forum root directory."; ! $lang['admin_game_desc'] = "<b>Description</b><br />"; ! $lang['admin_game_desc_info'] = "-:- This is the description of this game that is displayed on the activity menu."; ! $lang['admin_game_genre'] = "<b>Genre</b><br />"; ! $lang['admin_game_genre_info'] = "-:- This is the genre of this game that is displayed on the activity menu."; ! $lang['admin_game_charge'] = "<b>Game Charges</b><br />"; ! $lang['admin_game_charge_info'] = "-:- This is how much to charge users to play this game."; ! $lang['admin_game_per'] = "<b>Score per point reward</b><br />"; ! $lang['admin_game_per_info'] = "-:- This is the score value the user has to get to receive 1 Reward <br /><br />-:- <b>Example</b> : A player gets 100 score points. If you put 100 as the value<br /> for this option, then the player will get 1 Reward Point."; ! $lang['admin_game_bonus'] = "<b>Highscore Bonus</b><br />"; ! $lang['admin_game_bonus_info'] = "-:- This is the amount of reward points to give a user if they obtain the highscore."; ! $lang['admin_game_gamelib'] = "<b>Use the Gamelib</b><br />"; ! $lang['admin_game_gamelib_info'] = "-:- Set this to yes if this game uses the <b>GameLib</b>."; ! $lang['admin_game_flash'] = "<b>Uses Macromedia Flash</b><br />"; ! $lang['admin_game_flash_info'] = "-:- Set this to yes if this is a Macromedia Flash game or has a .SWF extension."; ! $lang['admin_game_show_score'] = "<b>Show the scores</b><br />"; ! $lang['admin_game_show_info'] = "-:- Set this to yes if you wish to use scores for this activity."; ! $lang['admin_game_reverse'] = "<b>Reverse Highscore Listing</b><br />"; ! $lang['admin_game_reverse_info'] = "-:- Set this to yes if you wish to list the lowest scores first."; ! $lang['admin_game_highscore'] = "<b>Highscore Limit</b><br />"; ! $lang['admin_game_highscore_info'] = "-:- This is how many scores you want listed for this game. Leave blank for all."; ! $lang['admin_game_size'] = "<b>Window Size</b><br />"; ! $lang['admin_game_size_info'] = "-:- This is how big in pixels, the window will be when a game is started."; ! $lang['instructions_info'] = "Enter this games \"How to play\" instructions below. HTML Tags will also work in here.<br />"; ! $lang['admin_game_reset_hs'] = "<b>Reset Highscores</b><br />"; ! $lang['admin_game_reset_hs_info'] = "-:- By setting this to <b>\"Yes\"</b> the Highscores will reset."; ! $lang['admin_use_rewards'] = "<b>Use Rewards MOD</b><br />"; ! $lang['admin_use_rewards_info'] = "-:- If you have a rewards MOD installed [Points/Cash/Allowance]<br /> then turn this on to configure your rewards MOD."; ! $lang['admin_warn_cheater'] = "<b>Display warning to possible cheater</b><br />"; ! $lang['admin_warn_cheater_info'] = "-:- If turned on, then this will display a message to anyone who might get caught cheating."; ! $lang['admin_cheater_warning'] = "You have been reported to the site Admin as a possible cheater. If you feel that you have not cheated in an online game, then please contact the site Admin."; ! $lang['admin_warn_admin'] = "<b>Report cheaters</b><br />"; ! $lang['admin_warn_admin_info'] = "-:- If turned on the site Admin will get an E-mail notification if someone is caught cheating."; ! $lang['admin_cash_default_info'] = "-:- The Activity MOD uses only 1 reward field. Please enter in a default user<br /> reward field for your users. [<b>Cash MOD Only</b>]"; ! ! // Activity ! $lang['not_enough_points'] = "You do NOT have enough " . $board_config['points_name'] . " to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>"; ! $lang['not_enough_reward'] = "You do NOT have enough to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>"; ! $lang['game_instructions'] = "Instructions"; ! $lang['game_no_instructions'] = "No Instructions."; ! $lang['game_free'] = "Free"; ! $lang['game_cost'] = "Cost"; ! $lang['game_dash'] = ":"; ! $lang['game_number'] = "#"; ! $lang['game_list'] = "Games"; ! $lang['game_score'] = "Score"; ! $lang['game_info'] = "Info"; ! $lang['game_bonuses'] = "Bonuses"; ! $lang['game_best_player'] = "Best Player"; ! $lang['game_score_saved'] = "Score Saved"; ! $lang['game_no_score_saved'] = "You don't have a score so your score was not saved"; ! $lang['game_score_close'] = "Close"; ! $lang['game_cheater'] = "Busted!"; ! $lang['game_played'] = "Played"; ! ! // If anything is changed below this line, then don't be surprised if you don't get very ! // good support from the MOD Author. The next few lines deal with error handling & GPL ! // licenses. By changing them you could break the law as well as cause errors. ! //======================================================================================== ! // DO NOT TAKE THIS LINK OUT! Scott Porters Gamelib requires that this link is included ! // by anyone using his library. If you don't have any games using gamelib, then turn it ! // off and this link will not get displayed! ! $lang['game_lib_link'] = "<br />Some of the games here have been created with © <A HREF=\"http://www.javascript-games.org/gamelib/\" TARGET=\"New_Window\">GameLib</A> v2.08<br />Check out <A HREF=\"http://www.javascript-games.org\" TARGET=\"New_Window\">JavaScript Games</A> for more info."; ! ! // Errors ! $lang['no_main_data'] = "Couldn't obtain main data"; ! $lang['no_game_data'] = "Couldn't obtain game data"; ! $lang['no_game_update'] = "Could't update game data"; ! $lang['no_game_total'] = "Error getting total games"; ! $lang['no_game_user'] = "Error obtaining user game data"; ! $lang['no_game_delete'] = "Couldn't delete game"; ! $lang['no_game_repair'] = "Couldn't repair game tables"; ! $lang['no_game_save'] = "Couldn't save game data"; ! $lang['no_user_update'] = "Couldn't update user data"; ! $lang['no_score_data'] = "Couldn't obtain scores data"; ! $lang['no_score_reset'] = "Couldn't reset scores data"; ! $lang['no_score_insert'] = "Couldn't insert score"; ! $lang['no_score_reset'] = "Couldn't reset scores"; ! $lang['no_config_data'] = "Could not access Online Activities configuration"; ! $lang['no_config_update'] = "Failed to update Online Activities configuration for "; ! ! // ! // Score - Upade - Mod ! // by ChriChra ! $lang['no_score_update'] = "Couldn't update score"; ! $lang['game_score_updated'] = "Score updated"; ! $lang['game_score_not_updated'] = "Your score wasn't updated because your score wasn't better than your best personel score"; ! ! /*************************************************************************** ! * lang_main.php ! * ------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! * ! ***************************************************************************/ ! ! /* Added By aUsTiN For Activity Mod Plus */ ! /* Main Activity Strings */ ! $lang['ban'] = "You Have Been Banned From Playing Games By The Administrator."; ! $lang['ban_error'] = "Error"; ! $lang['score'] = "Score: "; ! $lang['seperator'] = "-> "; ! $lang['info'] = "Info"; ! $lang['same_window'] = "Same Window"; ! $lang['new_window'] = "New Window"; ! $lang['quick_select'] = "Quick Select"; ! $lang['choose_game'] = "Choose A Game"; ! $lang['cost'] = "Cost"; ! $lang['score_2'] = "Score"; ! $lang['runner_up'] = "Runner Up"; ! $lang['score_of'] = " With A Score Of "; ! $lang['been_deleted_n_replaced'] = " Has Been Deleted & Replaced With The Runner Up, "; ! $lang['please_click'] = ".<br> Please Click <b><a href='"; ! $lang['here_to_return'] = "'>Here</a></b> To Return To The Top Scores Page."; ! $lang['success'] = "Successfull"; ! $lang['scores_reset'] = "All Highscores Have Been Reset, The Current Trophy Holder Of All The Games Is Now "; ! $lang['zero_score'] = " With A Score Of 0 (Zero)"; ! $lang['delete_specific'] = "Delete A Specific Highscore?"; ! $lang['delete_all'] = "Delete All Highscores?"; ! $lang['delete_this_button'] = " Delete This Top Score "; ! $lang['delete_all_button'] = " Delete All Top Scores "; ! $lang['score_owned_on'] = "Score<br>Date Owned"; ! $lang['contacts'] = "Contacts"; ! $lang['game_profile'] = ' Game Profile'; ! $lang['join_date'] = "Join Date"; ! $lang['posts'] = "Posts"; ! $lang['last_visit'] = "Last Visited"; ! $lang['gender'] = "Gender"; ! $lang['permissions'] = "Permissions"; ! $lang['game'] = "Game"; ! $lang['date_took'] = "Date Took"; ! $lang['trophy_held_since'] = "Trophy Held Since"; ! $lang['score_to_beat'] = "Score To Beat"; ! $lang['main_profile'] = "Main Profile"; ! $lang['game_profile'] = "Game Profile"; ! $lang['top_ten'] = "Top 10"; ! $lang['not_nice_to_cheat'] = "Its Not Nice To Try & Cheat The System "; ! $lang['period'] = "."; ! $lang['cheat_warning'] = "Cheat Warning"; ! $lang['no_score_saved'] = "You Didn't Beat Your Current Highscore For This Game, No Score Was Saved."; ! $lang['go_back_to_games'] = "Go Back To Playing Games"; ! $lang['you_won_trophy'] = "You Won The Trophy!"; ! $lang['challenge_self_error'] = 'You Can Not Challenge Yourself. Please Click <i><b>Back</b></i> And Try Again.'; ! $lang['challenge_information'] = 'Information'; ! $lang['pm_msg_top'] = 'The Following Message Has Been Sent To The Trophy Holder.<br>'; ! $lang['pm_msg_bottom'] = '<br>Good Luck Winning The Trophy.'; ! $lang['category_desc'] = 'Play By Category'; ! $lang['category_default'] = 'Categories'; ! $lang['category_default_2'] = 'All Games'; ! $lang['highscore_games'] = 'Games'; ! $lang['admin_delete_default'] = 'Choose A Game'; ! $lang['t_holder_link_name'] = 'Trophy Holders'; ! $lang['gender_none'] = 'None Selected.'; ! $lang['gender_male'] = 'Male'; ! $lang['gender_female'] = 'Female'; ! $lang['gender_not_installed'] = 'Not Installed.'; ! $lang['level_member'] = 'Member'; ! $lang['level_mod'] = 'Moderator'; ! $lang['level_admin'] = 'Admin'; ! $lang['level_less_admin'] = 'Jr. Admin'; ! $lang['challenge_header_1'] = 'This Boards Users Have Issued '; ! $lang['challenge_header_2'] = ' Challenges. They Are Listed Below.'; ! $lang['challenge_username'] = 'Username'; ! $lang['challenge_position'] = 'Position'; ! $lang['challenge_challenges'] = 'Total Challenges'; ! $lang['online_no_guests'] = 'There Are No Guests Currently Playing Here'; ! $lang['online_g_one_1'] = 'There Is Currently '; ! $lang['online_g_one_2'] = ' Guest Playing.'; ! $lang['online_g_1'] = 'There Are Currently '; ! $lang['online_g_2'] = ' Guests Playing.'; ! $lang['online_no_members'] = 'There Are No Registered Users Currently Playing Here.'; ! $lang['online_m_one_1'] = 'There Is Currently '; ! $lang['online_m_one_2'] = ' Registered User Playing.'; ! $lang['online_m_1'] = 'There Are Currently '; ! $lang['online_m_2'] = ' Registered Users Playing.'; ! $lang['online_title_bar'] = 'Users Currently Playing Games'; ! $lang['online_viewing_games'] = 'Viewing Games'; ! $lang['online_playing_games'] = 'Playing A Game'; ! $lang['game_link_play'] = 'Play '; ! $lang['challenge_link_key'] = 'Challenge'; ! $lang['comments_link_key'] = ' Comments'; ! $lang['newest_title_1'] = 'Newest '; ! $lang['newest_title_2'] = ' Games Added'; ! $lang['best_player_default'] = 'No One Yet.'; ! $lang['challenge_page_1'] = 'User Receiving The Challenge'; ! $lang['challenge_page_2'] = 'Total Challenges Sent To User'; ! $lang['challenge_page_3'] = ' Challenge History'; ! $lang['challenge_page_4'] = '#'; ! $lang['trophy_comment_notice'] = 'Since You Won The Trophy, You May Leave A Comment!'; ! $lang['trophy_won_notice'] = 'You Won The Trophy!'; ! $lang['trophy_comment_1'] = 'Sorry, You\'re Not The Current Trophy Holder, Please Win The Trophy Before Trying To Leave A Comment.'; ! $lang['trophy_comment_2'] = 'Max Comment Length Is 200 Characters, Yours Is '; ! $lang['trophy_comment_3'] = ' Characters.'; ! $lang['trophy_comment_4'] = 'Minimum Comment Length Is 2 Characters.'; ! $lang['trophy_comment_5'] = 'New Trophy Comment Added!'; ! $lang['trophy_comment_6'] = 'Information'; ! $lang['trophy_comment_7'] = 'Please Add Your Comment'; ! $lang['trophy_comment_8'] = '<i>Max Comment Length: 200 Characters</i>'; ! $lang['trophy_comment_9'] = 'Add This'; ! $lang['trophy_comment_10'] = 'Sorry, There Are No Comments For This Game Yet.'; ! $lang['trophy_comment_11'] = 'Username'; ! $lang['trophy_comment_12'] = 'Their Comment'; ! $lang['trophy_comment_13'] = 'Their Score'; ! $lang['trophy_comment_14'] = 'Date & Time Of Comment'; ! $lang['trophy_count_1'] = 'Position'; ! $lang['trophy_count_2'] = 'Total Trophies'; ! $lang['trophy_count_3'] = 'Username'; ! $lang['trophy_count_4'] = 'Contacts'; ! /* Admin Panel Strings */ ! $lang['admin_default_no_games'] = 'No New Games.'; ! $lang['admin_default_1_game'] = '1 New Game To Add.'; ! $lang['admin_default_multi_games'] = 'New Games To Add.'; ! $lang['a_default_category'] = 'Select A Category'; ! $lang['a_category'] = 'Category'; ! $lang['a_category_explain'] = 'Add This Game To One Of Your Boards Categories'; ! $lang['a_default_charge'] = 'Select A Charge'; ! $lang['a_default_bonus'] = 'Select A Bonus'; ! $lang['a_default_hide'] = 'Hide This Game'; ! $lang['a_default_hide_explain'] = 'Will Allow You To Test It Before Users Play.'; ! $lang['a_add_game_error'] = 'You Must Specify A Game To Add It.'; ! $lang['a_ban_1'] = 'Activiy Ban: Ban List'; ! $lang['a_ban_2'] = 'Remove A Banned Member'; ! $lang['a_ban_3'] = 'Un-Ban A User Id:'; ! $lang['a_ban_4'] = 'Choose An Id'; ! $lang['a_ban_5'] = 'Un-Ban A Username:'; ! $lang['a_ban_6'] = 'Choose A Name'; ! $lang['a_ban_7'] = ' Apply Changes '; ! $lang['a_ban_8'] = 'Ban A Member'; ! $lang['a_ban_9'] = 'Ban A User Id:'; ! $lang['a_ban_10'] = 'Ban A Username:'; ! $lang['a_ban_11'] = ' Apply Ban '; ! $lang['a_ban_12'] = 'User Ids Are Typically Numbers Only.<br><br>Click '; ! $lang['a_ban_13'] = 'Here</a> To Try Again.'; ! $lang['a_ban_14'] = 'Nothing Specified To Ban.<br><br>Click '; ! $lang['a_ban_15'] = 'The User Id: '; ! $lang['a_ban_16'] = ' Does Not Exist.<br><br>Click '; ! $lang['a_ban_17'] = '<i>Here</i></a> To Try Again.'; ! $lang['a_ban_18'] = ' Is Already Banned.<br><br>Click '; ! $lang['a_ban_19'] = 'You Have Successfully Banned The User Id: '; ! $lang['a_ban_20'] = '<br><br>Click '; ! $lang['a_ban_21'] = '<i>Here</i></a> To Return To The Ban Page.'; ! $lang['a_ban_22'] = 'Success'; ! $lang['a_ban_23'] = 'The User: '; ! $lang['a_ban_24'] = 'You Have Successfully Banned The User: '; ! $lang['a_ban_25'] = 'You Have Successfully Unbanned The User Id: '; ! $lang['a_ban_26'] = 'You Have Successfully Unbanned The User: '; ! $lang['a_ban_27'] = 'Nothing Specified To Unban.<br><br>Click '; ! $lang['a_ban_28'] = 'Here</a> To Try Again.'; ! $lang['a_disable_1'] = 'Activity Hide/Show Admin'; ! $lang['a_disable_2'] = 'Games To Hide/Show'; ! $lang['a_disable_3'] = 'Game Choices<br> * Means Its Already Hidden, Submit It Again To Show It.<br><br>(game_id) game_name*'; ! $lang['a_disable_4'] = 'Choose A Game'; ! $lang['a_disable_5'] = ' Submit '; ! $lang['a_disable_6'] = 'A Game Is A Required Field, When Trying To Change It.<br>Click '; ! $lang['a_disable_7'] = 'Here</a> To Try Again.'; ! $lang['a_disable_8'] = 'The Game Is Now Viewable To Users.<br>Click '; ! $lang['a_disable_9'] = 'Here</a> To Return To The Hide/Show Page.'; ! $lang['a_disable_10'] = 'The Game Is Now Hidden From Users.<br>Click '; ! $lang['a_disable_11'] = 'Here</a> To Return To The Hide/Show Page.'; ! $lang['a_disable_12'] = 'Here</a> To Try Again.'; ! $lang['a_disable_13'] = 'An Error Has Occured.<br>Click '; ! $lang['the_trophy_holder'] = "The Trophy Holder, "; ! $lang['trophy_page'] = "Trophies Page"; ! $lang['stats'] = "Stats"; ! ! //MX Addon ! $lang['site_home'] = "Site"; ! ! $lang['choose_game'] = "Choose A Game"; ! $lang['not_logged_in'] = "You must be registered to use this activity..."; ! ! $lang['Play_again'] = "[Play game]"; ! $lang['Return_act'] = "[Return]"; ! ! $lang['act_home'] = "Activity Home"; ! $lang['comments_title'] = "Trophy comments"; ! $lang['trophy_holder'] = "Trophy Holder"; ! $lang['game_highscores'] = "Highscores"; ! $lang['trophy_holders'] = "Trophy Holders"; ! $lang['trophy_count_link'] = "Top Trophy Holders"; ! $lang['game_stats'] = "Game Stats"; ! $lang['random_game'] = "Random game"; ! ! // Stats ! $lang['Game_statistics'] = "Game statistics"; ! $lang['Games_played'] = "Games played"; ! $lang['Game_cost'] = "Game cost"; ! $lang['Game_bonus'] = "Game bonus"; ! $lang['Best_player'] = "Best player"; ! $lang['Best_score'] = "Best score"; ! $lang['Instructions'] = "Instructions"; ! ! ?> \ No newline at end of file --- 1,377 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- ! * ! * $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. ! */ ! ! // Admin ! $lang['admin_main_header'] = "-:- This is an interface between iNetAngel MODs and other MODs. It will help site admins from having conflicts with other MODs that may have been installed or are no longer supported but well liked. This control panel will help you maintain and control the online activities that have been created by <a href=\"http://www.iNetAngel.com/\" target=\"newindow\" class=\"copyright\">iNetAngel</a>. Future iNetAngel MODs will use this menu for any new expansions that are user specific. If you are currently having a problem with an iNetAngel MOD and another MOD, then please contact us at <a href=\"mailto:su...@iN...\" class=\"copyright\">su...@iN...</a> so we may help fix the problem."; ! $lang['admin_config_menu'] = "iNetAngel Online Activity Configuration Menu"; ! $lang['admin_game_menu'] = "iNetAngel Online Activity Game Menu"; ! $lang['admin_game_editor'] = "iNetAngel Online Activity Game Editor Menu"; ! $lang['admin_editor_info'] = "-:- This control panel allows you to edit Game data. Any game that has been released by <a href=\"http://www.iNetAngel.com\" target=\"new_window\">iNetAngel</a> can easily be plugged into your forums using this control panel. If you would like to convert a game to use this control panel, then ask for help at our <a href=\"http://www.iNetAngel.com/community/index.php\" target=\"new_window\">forums</a>. If you are having trouble with this menu or the Activity MOD then please contact us at <a href=\"mailto:su...@iN...\">Su...@iN...</a>."; ! $lang['admin_game_deleted'] = "Game Deleted<br /><br />"; ! $lang['admin_game_not_deleted'] = "Game NOT Deleted<br /><br />"; ! $lang['admin_game_repaired'] = "Games Repaired<br /><br />"; ! $lang['admin_game_saved'] = "Game Saved Successfully<br /><br />"; ! $lang['admin_score_reset'] = "All scores have been reset<br /><br />"; ! $lang['admin_return_activity'] = "Click %sHere%s to return to the Activity Menu"; ! $lang['admin_config_updated'] = "Online Activities Configuration Updated<br /><br />"; ! $lang['admin_toggles'] = "Support Toggles"; ! $lang['admin_rewards'] = "Reward system Toggles"; ! $lang['admin_activity_config'] = "Activity Configuration"; ! $lang['admin_use_adar_shop'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Adar Item Shop</a></b><br />"; ! $lang['admin_use_adar_info'] = "-:- If you want to reward Items for Highscore bonuses and you have the<br /> Adar ItemShop, then toggle this to <b>Yes</b>.<br /><br />-:- <b>NOTE : </b>This will not work with other shops!"; ! $lang['admin_use_gamelib'] = "<b>Use the <a href=\"http://www.javascript-games.org/gamelib/\" target=\"newindow\">Gamelib Javascript Library</a></b><br />"; ! $lang['admin_use_gl_info'] = "-:- If you are using a game/application that uses Scott Porter's gamelib,<br /> then toggle this on."; ! $lang['admin_use_points'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Points System</a></b><br />"; ! $lang['admin_use_pts_info'] = "-:- If you are using the Points System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; ! $lang['admin_use_cash'] = "<b>Use the <a href=\"http://www.phpbb.com/community/\" target=\"newindow\">Cash System</a></b><br />"; ! $lang['admin_use_cash_info'] = "-:- If you are using the Cash System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; ! $lang['admin_use_allowance'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Allowance System</a></b><br />"; ! $lang['admin_use_allowance_info'] = "-:- If you are using the Allowance System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums."; ! $lang['admin_gl_game_path'] = "<b>Gamelib Games Path</b><br />"; ! $lang['admin_gl_path_info'] = "-:- This is the directory located in your forums root directory where you wish<br /> to hold all of your games that use the gamelib."; ! $lang['admin_gl_lib_path'] = "<b>Gamelib Javascript Library Path</b><br />"; ! $lang['admin_gl_lib_info'] = "-:- This Directory is located in your \"<b>Gamelib Games Path</b>\" and holds all<br /> of the gamelib*.js files.<br /><br />-:- <b>NOTE</b> : If your games are locking up or you don't hear any<br /> sound then check this directory to make sure there are gamelib files<br /> in here."; ! $lang['admin_games_per_page'] = "<b>Games Per Page</b><br />"; ! $lang['admin_games_per_info'] = "-:- This is how many games you want listed before a new page is needed.<br /><br />-:- <b>NOTE</b> : Leaving this blank or <b>0</b> will return errors."; ! $lang['admin_page'] = "Pages"; ! $lang['admin_path'] = "Path"; ! $lang['admin_adar_config'] = "Adarian Shop Options"; ! $lang['admin_adar_shop'] = "<b>Adar Shop</b><br />"; ! $lang['admin_no_adar_info'] = "-:- The Adarian Shop options are not installed. Please install Adar before<br /> setting these options."; ! $lang['admin_games'] = "Games"; ! $lang['admin_charge'] = "Charge"; ! $lang['admin_button'] = "Button"; ! $lang['admin_description'] = "Description"; ! $lang['admin_genre'] = "Genre"; ! $lang['admin_reward'] = "Reward"; ! $lang['admin_bonus'] = "Bonus"; ! $lang['admin_flash'] = "Flash"; ! $lang['admin_score'] = "Score"; ! $lang['admin_gamelib'] = "Gamelib"; ! $lang['admin_action'] = "Action"; ! $lang['admin_move'] = "Move"; ! $lang['admin_repair'] = "Repair Game Index"; ! $lang['admin_reset'] = "Reset all Scores"; ! $lang['admin_up'] = "Up"; ! $lang['admin_down'] = "Dn"; ! $lang['admin_delete'] = "X"; ! $lang['admin_limit'] = "Limit"; ! $lang['admin_width'] = "Width"; ! $lang['admin_height'] = "Height"; ! $lang['admin_cash'] = "Cash"; ! $lang['admin_name'] = "<b>Name</b><br />"; ! $lang['admin_name_info'] = "-:- This is the name of the game you are installing. <br /><br />-:- <b>NOTE</b> : Keep the name of this game limited to one word with no<br /> spaces or unusual characters. Anything else will cause errors."; ! $lang['admin_game_path'] = "<b>Game Path</b><br />"; ! $lang['admin_game_path_info'] = "-:- This is the path location of your game located within your forum root directory."; ! $lang['admin_game_desc'] = "<b>Description</b><br />"; ! $lang['admin_game_desc_info'] = "-:- This is the description of this game that is displayed on the activity menu."; ! $lang['admin_game_genre'] = "<b>Genre</b><br />"; ! $lang['admin_game_genre_info'] = "-:- This is the genre of this game that is displayed on the activity menu."; ! $lang['admin_game_charge'] = "<b>Game Charges</b><br />"; ! $lang['admin_game_charge_info'] = "-:- This is how much to charge users to play this game."; ! $lang['admin_game_per'] = "<b>Score per point reward</b><br />"; ! $lang['admin_game_per_info'] = "-:- This is the score value the user has to get to receive 1 Reward <br /><br />-:- <b>Example</b> : A player gets 100 score points. If you put 100 as the value<br /> for this option, then the player will get 1 Reward Point."; ! $lang['admin_game_bonus'] = "<b>Highscore Bonus</b><br />"; ! $lang['admin_game_bonus_info'] = "-:- This is the amount of reward points to give a user if they obtain the highscore."; ! $lang['admin_game_gamelib'] = "<b>Use the Gamelib</b><br />"; ! $lang['admin_game_gamelib_info'] = "-:- Set this to yes if this game uses the <b>GameLib</b>."; ! $lang['admin_game_flash'] = "<b>Uses Macromedia Flash</b><br />"; ! $lang['admin_game_flash_info'] = "-:- Set this to yes if this is a Macromedia Flash game or has a .SWF extension."; ! $lang['admin_game_show_score'] = "<b>Show the scores</b><br />"; ! $lang['admin_game_show_info'] = "-:- Set this to yes if you wish to use scores for this activity."; ! $lang['admin_game_reverse'] = "<b>Reverse Highscore Listing</b><br />"; ! $lang['admin_game_reverse_info'] = "-:- Set this to yes if you wish to list the lowest scores first."; ! $lang['admin_game_highscore'] = "<b>Highscore Limit</b><br />"; ! $lang['admin_game_highscore_info'] = "-:- This is how many scores you want listed for this game. Leave blank for all."; ! $lang['admin_game_size'] = "<b>Window Size</b><br />"; ! $lang['admin_game_size_info'] = "-:- This is how big in pixels, the window will be when a game is started."; ! $lang['instructions_info'] = "Enter this games \"How to play\" instructions below. HTML Tags will also work in here.<br />"; ! $lang['admin_game_reset_hs'] = "<b>Reset Highscores</b><br />"; ! $lang['admin_game_reset_hs_info'] = "-:- By setting this to <b>\"Yes\"</b> the Highscores will reset."; ! $lang['admin_use_rewards'] = "<b>Use Rewards MOD</b><br />"; ! $lang['admin_use_rewards_info'] = "-:- If you have a rewards MOD installed [Points/Cash/Allowance]<br /> then turn this on to configure your rewards MOD."; ! $lang['admin_warn_cheater'] = "<b>Display warning to possible cheater</b><br />"; ! $lang['admin_warn_cheater_info'] = "-:- If turned on, then this will display a message to anyone who might get caught cheating."; ! $lang['admin_cheater_warning'] = "You have been reported to the site Admin as a possible cheater. If you feel that you have not cheated in an online game, then please contact the site Admin."; ! $lang['admin_warn_admin'] = "<b>Report cheaters</b><br />"; ! $lang['admin_warn_admin_info'] = "-:- If turned on the site Admin will get an E-mail notification if someone is caught cheating."; ! $lang['admin_cash_default_info'] = "-:- The Activity MOD uses only 1 reward field. Please enter in a default user<br /> reward field for your users. [<b>Cash MOD Only</b>]"; ! ! // Activity ! $lang['not_enough_points'] = "You do NOT have enough " . $board_config['points_name'] . " to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>"; ! $lang['not_enough_reward'] = "You do NOT have enough to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>"; ! $lang['game_instructions'] = "Instructions"; ! $lang['game_no_instructions'] = "No Instructions."; ! $lang['game_free'] = "Free"; ! $lang['game_cost'] = "Cost"; ! $lang['game_dash'] = ":"; ! $lang['game_number'] = "#"; ! $lang['game_list'] = "Games"; ! $lang['game_score'] = "Score"; ! $lang['game_info'] = "Info"; ! $lang['game_bonuses'] = "Bonuses"; ! $lang['game_best_player'] = "Best Player"; ! $lang['game_score_saved'] = "Score Saved"; ! $lang['game_no_score_saved'] = "You don't have a score so your score was not saved"; ! $lang['game_score_close'] = "Close"; ! $lang['game_cheater'] = "Busted!"; ! $lang['game_played'] = "Played"; ! ! // If anything is changed below this line, then don't be surprised if you don't get very ! // good support from the MOD Author. The next few lines deal with error handling & GPL ! // licenses. By changing them you could break the law as well as cause errors. ! //======================================================================================== ! // DO NOT TAKE THIS LINK OUT! Scott Porters Gamelib requires that this link is included ! // by anyone using his library. If you don't have any games using gamelib, then turn it ! // off and this link will not get displayed! ! $lang['game_lib_link'] = "<br />Some of the games here have been created with © <A HREF=\"http://www.javascript-games.org/gamelib/\" TARGET=\"New_Window\">GameLib</A> v2.08<br />Check out <A HREF=\"http://www.javascript-games.org\" TARGET=\"New_Window\">JavaScript Games</A> for more info."; ! ! // Errors ! $lang['no_main_data'] = "Couldn't obtain main data"; ! $lang['no_game_data'] = "Couldn't obtain game data"; ! $lang['no_game_update'] = "Could't update game data"; ! $lang['no_game_total'] = "Error getting total games"; ! $lang['no_game_user'] = "Error obtaining user game data"; ! $lang['no_game_delete'] = "Couldn't delete game"; ! $lang['no_game_repair'] = "Couldn't repair game tables"; ! $lang['no_game_save'] = "Couldn't save game data"; ! $lang['no_user_update'] = "Couldn't update user data"; ! $lang['no_score_data'] = "Couldn't obtain scores data"; ! $lang['no_score_reset'] = "Couldn't reset scores data"; ! $lang['no_score_insert'] = "Couldn't insert score"; ! $lang['no_score_reset'] = "Couldn't reset scores"; ! $lang['no_config_data'] = "Could not access Online Activities configuration"; ! $lang['no_config_update'] = "Failed to update Online Activities configuration for "; ! ! // ! // Score - Upade - Mod ! // by ChriChra ! $lang['no_score_update'] = "Couldn't update score"; ! $lang['game_score_updated'] = "Score updated"; ! $lang['game_score_not_updated'] = "Your score wasn't updated because your score wasn't better than your best personel score"; ! ! /*************************************************************************** ! * lang_main.php ! * ------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! * ! ***************************************************************************/ ! ! /* Added By aUsTiN For Activity Mod Plus */ ! /* Main Activity Strings */ ! $lang['ban'] = "You Have Been Banned From Playing Games By The Administrator."; ! $lang['ban_error'] = "Error"; ! $lang['score'] = "Score: "; ! $lang['seperator'] = "-> "; ! $lang['info'] = "Info"; ! $lang['same_window'] = "Same Window"; ! $lang['new_window'] = "New Window"; ! $lang['quick_select'] = "Quick Select"; ! $lang['choose_game'] = "Choose A Game"; ! $lang['cost'] = "Cost"; ! $lang['score_2'] = "Score"; ! $lang['runner_up'] = "Runner Up"; ! $lang['score_of'] = " With A Score Of "; ! $lang['been_deleted_n_replaced'] = " Has Been Deleted & Replaced With The Runner Up, "; ! $lang['please_click'] = ".<br> Please Click <b><a href='"; ! $lang['here_to_return'] = "'>Here</a></b> To Return To The Top Scores Page."; ! $lang['success'] = "Successfull"; ! $lang['scores_reset'] = "All Highscores Have Been Reset, The Current Trophy Holder Of All The Games Is Now "; ! $lang['zero_score'] = " With A Score Of 0 (Zero)"; ! $lang['delete_specific'] = "Delete A Specific Highscore?"; ! $lang['delete_all'] = "Delete All Highscores?"; ! $lang['delete_this_button'] = " Delete This Top Score "; ! $lang['delete_all_button'] = " Delete All Top Scores "; ! $lang['score_owned_on'] = "Score<br>Date Owned"; ! $lang['contacts'] = "Contacts"; ! $lang['game_profile'] = ' Game Profile'; ! $lang['join_date'] = "Join Date"; ! $lang['posts'] = "Posts"; ! $lang['last_visit'] = "Last Visited"; ! $lang['gender'] = "Gender"; ! $lang['permissions'] = "Permissions"; ! $lang['game'] = "Game"; ! $lang['date_took'] = "Date Took"; ! $lang['trophy_held_since'] = "Trophy Held Since"; ! $lang['score_to_beat'] = "Score To Beat"; ! $lang['main_profile'] = "Main Profile"; ! $lang['game_profile'] = "Game Profile"; ! $lang['top_ten'] = "Top 10"; ! $lang['not_nice_to_cheat'] = "Its Not Nice To Try & Cheat The System "; ! $lang['period'] = "."; ! $lang['cheat_warning'] = "Cheat Warning"; ! $lang['no_score_saved'] = "You Didn't Beat Your Current Highscore For This Game, No Score Was Saved."; ! $lang['go_back_to_games'] = "Go Back To Playing Games"; ! $lang['you_won_trophy'] = "You Won The Trophy!"; ! $lang['challenge_self_error'] = 'You Can Not Challenge Yourself. Please Click <i><b>Back</b></i> And Try Again.'; ! $lang['challenge_information'] = 'Information'; ! $lang['pm_msg_top'] = 'The Following Message Has Been Sent To The Trophy Holder.<br>'; ! $lang['pm_msg_bottom'] = '<br>Good Luck Winning The Trophy.'; ! $lang['category_desc'] = 'Play By Category'; ! $lang['category_default'] = 'Categories'; ! $lang['category_default_2'] = 'All Games'; ! $lang['highscore_games'] = 'Games'; ! $lang['admin_delete_default'] = 'Choose A Game'; ! $lang['t_holder_link_name'] = 'Trophy Holders'; ! $lang['gender_none'] = 'None Selected.'; ! $lang['gender_male'] = 'Male'; ! $lang['gender_female'] = 'Female'; ! $lang['gender_not_installed'] = 'Not Installed.'; ! $lang['level_member'] = 'Member'; ! $lang['level_mod'] = 'Moderator'; ! $lang['level_admin'] = 'Admin'; ! $lang['level_less_admin'] = 'Jr. Admin'; ! $lang['challenge_header_1'] = 'This Boards Users Have Issued '; ! $lang['challenge_header_2'] = ' Challenges. They Are Listed Below.'; ! $lang['challenge_username'] = 'Username'; ! $lang['challenge_position'] = 'Position'; ! $lang['challenge_challenges'] = 'Total Challenges'; ! $lang['online_no_guests'] = 'There Are No Guests Currently Playing Here'; ! $lang['online_g_one_1'] = 'There Is Currently '; ! $lang['online_g_one_2'] = ' Guest Playing.'; ! $lang['online_g_1'] = 'There Are Currently '; ! $lang['online_g_2'] = ' Guests Playing.'; ! $lang['online_no_members'] = 'There Are No Registered Users Currently Playing Here.'; ! $lang['online_m_one_1'] = 'There Is Currently '; ! $lang['online_m_one_2'] = ' Registered User Playing.'; ! $lang['online_m_1'] = 'There Are Currently '; ! $lang['online_m_2'] = ' Registered Users Playing.'; ! $lang['online_title_bar'] = 'Users Currently Playing Games'; ! $lang['online_viewing_games'] = 'Viewing Games'; ! $lang['online_playing_games'] = 'Playing A Game'; ! $lang['game_link_play'] = 'Play '; ! $lang['challenge_link_key'] = 'Challenge'; ! $lang['comments_link_key'] = ' Comments'; ! $lang['newest_title_1'] = 'Newest '; ! $lang['newest_title_2'] = ' Games Added'; ! $lang['best_player_default'] = 'No One Yet.'; ! $lang['challenge_page_1'] = 'User Receiving The Challenge'; ! $lang['challenge_page_2'] = 'Total Challenges Sent To User'; ! $lang['challenge_page_3'] = ' Challenge History'; ! $lang['challenge_page_4'] = '#'; ! $lang['trophy_comment_notice'] = 'Since You Won The Trophy, You May Leave A Comment!'; ! $lang['trophy_won_notice'] = 'You Won The Trophy!'; ! $lang['trophy_comment_1'] = 'Sorry, You\'re Not The Current Trophy Holder, Please Win The Trophy Before Trying To Leave A Comment.'; ! $lang['trophy_comment_2'] = 'Max Comment Length Is 200 Characters, Yours Is '; ! $lang['trophy_comment_3'] = ' Characters.'; ! $lang['trophy_comment_4'] = 'Minimum Comment Length Is 2 Characters.'; ! $lang['trophy_comment_5'] = 'New Trophy Comment Added!'; ! $lang['trophy_comment_6'] = 'Information'; ! $lang['trophy_comment_7'] = 'Please Add Your Comment'; ! $lang['trophy_comment_8'] = '<i>Max Comment Length: 200 Characters</i>'; ! $lang['trophy_comment_9'] = 'Add This'; ! $lang['trophy_comment_10'] = 'Sorry, There Are No Comments For This Game Yet.'; ! $lang['trophy_comment_11'] = 'Username'; ! $lang['trophy_comment_12'] = 'Their Comment'; ! $lang['trophy_comment_13'] = 'Their Score'; ! $lang['trophy_comment_14'] = 'Date & Time Of Comment'; ! $lang['trophy_count_1'] = 'Position'; ! $lang['trophy_count_2'] = 'Total Trophies'; ! $lang['trophy_count_3'] = 'Username'; ! $lang['trophy_count_4'] = 'Contacts'; ! /* Admin Panel Strings */ ! $lang['admin_default_no_games'] = 'No New Games.'; ! $lang['admin_default_1_game'] = '1 New Game To Add.'; ! $lang['admin_default_multi_games'] = 'New Games To Add.'; ! $lang['a_default_category'] = 'Select A Category'; ! $lang['a_category'] = 'Category'; ! $lang['a_category_explain'] = 'Add This Game To One Of Your Boards Categories'; ! $lang['a_default_charge'] = 'Select A Charge'; ! $lang['a_default_bonus'] = 'Select A Bonus'; ! $lang['a_default_hide'] = 'Hide This Game'; ! $lang['a_default_hide_explain'] = 'Will Allow You To Test It Before Users Play.'; ! $lang['a_add_game_error'] = 'You Must Specify A Game To Add It.'; ! $lang['a_ban_1'] = 'Activiy Ban: Ban List'; ! $lang['a_ban_2'] = 'Remove A Banned Member'; ! $lang['a_ban_3'] = 'Un-Ban A User Id:'; ! $lang['a_ban_4'] = 'Choose An Id'; ! $lang['a_ban_5'] = 'Un-Ban A Username:'; ! $lang['a_ban_6'] = 'Choose A Name'; ! $lang['a_ban_7'] = ' Apply Changes '; ! $lang['a_ban_8'] = 'Ban A Member'; ! $lang['a_ban_9'] = 'Ban A User Id:'; ! $lang['a_ban_10'] = 'Ban A Username:'; ! $lang['a_ban_11'] = ' Apply Ban '; ! $lang['a_ban_12'] = 'User Ids Are Typically Numbers Only.<br><br>Click '; ! $lang['a_ban_13'] = 'Here</a> To Try Again.'; ! $lang['a_ban_14'] = 'Nothing Specified To Ban.<br><br>Click '; ! $lang['a_ban_15'] = 'The User Id: '; ! $lang['a_ban_16'] = ' Does Not Exist.<br><br>Click '; ! $lang['a_ban_17'] = '<i>Here</i></a> To Try Again.'; ! $lang['a_ban_18'] = ' Is Already Banned.<br><br>Click '; ! $lang['a_ban_19'] = 'You Have Successfully Banned The User Id: '; ! $lang['a_ban_20'] = '<br><br>Click '; ! $lang['a_ban_21'] = '<i>Here</i></a> To Return To The Ban Page.'; ! $lang['a_ban_22'] = 'Success'; ! $lang['a_ban_23'] = 'The User: '; ! $lang['a_ban_24'] = 'You Have Successfully Banned The User: '; ! $lang['a_ban_25'] = 'You Have Successfully Unbanned The User Id: '; ! $lang['a_ban_26'] = 'You Have Successfully Unbanned The User: '; ! $lang['a_ban_27'] = 'Nothing Specified To Unban.<br><br>Click '; ! $lang['a_ban_28'] = 'Here</a> To Try Again.'; ! $lang['a_disable_1'] = 'Activity Hide/Show Admin'; ! $lang['a_disable_2'] = 'Games To Hide/Show'; ! $lang['a_disable_3'] = 'Game Choices<br> * Means Its Already Hidden, Submit It Again To Show It.<br><br>(game_id) game_name*'; ! $lang['a_disable_4'] = 'Choose A Game'; ! $lang['a_disable_5'] = ' Submit '; ! $lang['a_disable_6'] = 'A Game Is A Required Field, When Trying To Change It.<br>Click '; ! $lang['a_disable_7'] = 'Here</a> To Try Again.'; ! $lang['a_disable_8'] = 'The Game Is Now Viewable To Users.<br>Click '; ! $lang['a_disable_9'] = 'Here</a> To Return To The Hide/Show Page.'; ! $lang['a_disable_10'] = 'The Game Is Now Hidden From Users.<br>Click '; ! $lang['a_disable_11'] = 'Here</a> To Return To The Hide/Show Page.'; ! $lang['a_disable_12'] = 'Here</a> To Try Again.'; ! $lang['a_disable_13'] = 'An Error Has Occured.<br>Click '; ! $lang['the_trophy_holder'] = "The Trophy Holder, "; ! $lang['trophy_page'] = "Trophies Page"; ! $lang['stats'] = "Stats"; ! ! //MX Addon ! $lang['site_home'] = "Site"; ! ! $lang['choose_game'] = "Choose A Game"; ! $lang['not_logged_in'] = "You must be registered to use this activity..."; ! ! $lang['Play_again'] = "[Play game]"; ! $lang['Return_act'] = "[Return]"; ! ! $lang['act_home'] = "Activity Home"; ! $lang['comments_title'] = "Trophy comments"; ! $lang['trophy_holder'] = "Trophy Holder"; ! $lang['game_highscores'] = "Highscores"; ! $lang['trophy_holders'] = "Trophy Holders"; ! $lang['trophy_count_link'] = "Top Trophy Holders"; ! $lang['game_stats'] = "Game Stats"; ! $lang['random_game'] = "Random game"; ! ! // Stats ! $lang['Game_statistics'] = "Game statistics"; ! $lang['Games_played'] = "Games played"; ! $lang['Game_cost'] = "Game cost"; ! $lang['Game_bonus'] = "Game bonus"; ! $lang['Best_player'] = "Best player"; ! $lang['Best_score'] = "Best score"; ! $lang['Instructions'] = "Instructions"; ! ! ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-10-02 23:39:58
|
Update of /cvsroot/mxbb/mx_profilecp/profilcp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7601/modules/mx_profilecp/profilcp Modified Files: profilcp_email.php Log Message: fiddling with new email classes, from phpbb, decided against it, will use original methods Index: profilcp_email.php =================================================================== RCS file: /cvsroot/mxbb/mx_profilecp/profilcp/profilcp_email.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** profilcp_email.php 22 Sep 2005 10:11:46 -0000 1.4 --- profilcp_email.php 1 Oct 2005 08:54:53 -0000 1.5 *************** *** 54,61 **** if ( !$userdata['session_logged_in'] ) { - //redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=email&" . POST_USERS_URL . "=$user_id", true)); - $redirect = str_replace("?", "&", this_profile_mxurl("mode=email&" . POST_USERS_URL . "=$user_id") ); mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=". $redirect, true)); } --- 54,62 ---- if ( !$userdata['session_logged_in'] ) { $redirect = str_replace("?", "&", this_profile_mxurl("mode=email&" . POST_USERS_URL . "=$user_id") ); mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=". $redirect, true)); + // mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=".this_profile_mxurl("mode=email&" . POST_USERS_URL . "=$user_id"), true)); + // redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=email&" . POST_USERS_URL . "=$user_id", true)); + // redirect(append_sid("login.$phpEx?redirect=" . ( $is_block ? "index.$phpEx&page=$page_id&mode=" : "profile.$phpEx&mode=" ) . "email&" . POST_USERS_URL . "=$user_id", true)); } *************** *** 81,84 **** --- 82,91 ---- if ( isset($HTTP_POST_VARS['submit']) ) { + // session id check + if ( ($sid == '' || $sid != $userdata['session_id']) && !defined('NO_SID') ) + { + message_die(GENERAL_ERROR, 'Invalid_session'); + } + $error = FALSE; *************** *** 116,121 **** $emailer = new emailer($board_config['smtp_delivery']); ! $emailer->from($userdata['user_email']); ! $emailer->replyto($userdata['user_email']); $email_headers .= 'X-AntiAbuse: Board servername - ' . $server_name . "\n"; --- 123,139 ---- $emailer = new emailer($board_config['smtp_delivery']); ! //-- mod : profilcp -------------------------------------------------------------------------------- ! $email_headers = ''; ! switch ( $board_config['version'] ) ! { ! case '.0.4': ! $email_headers = 'Return-Path: ' . $userdata['user_email'] . "\nFrom: " . $userdata['user_email'] . "\n"; ! break; ! default: ! $emailer->from($userdata['user_email']); ! $emailer->replyto($userdata['user_email']); ! break; ! } ! //-- fin mod : profilcp ---------------------------------------------------------------------------- $email_headers .= 'X-AntiAbuse: Board servername - ' . $server_name . "\n"; *************** *** 154,158 **** } //-- fin mod : profilcp ---------------------------------------------------------------------------- - $emailer->use_template('profile_send_email'); $emailer->email_address($userdata['user_email']); --- 172,175 ---- *************** *** 160,164 **** $emailer->extra_headers($email_headers); - $emailer->assign_vars(array( 'SITENAME' => $board_config['sitename'], --- 177,180 ---- |
Update of /cvsroot/mxbb/mx_act/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv582/modules/mx_act/admin Modified Files: 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: updated all file headers Index: admin_ina_disable.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_disable.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_ina_disable.php 12 Apr 2005 19:48:19 -0000 1.3 --- admin_ina_disable.php 1 Oct 2005 14:11:39 -0000 1.4 *************** *** 1,168 **** ! <?php ! ! /** ! * admin_ina_disable.php ! * ---------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Hide/Show Games'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! 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 = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! 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'] ) ) ! { ! $mode = ( isset( $HTTP_POST_VARS['mode'] ) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_disable." . $phpEx ); ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " " . $lang['a_disable_1']; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_2']; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<form name='do_it' action='$link' method='post'>"; ! echo "<table border='0' align='center' valign='middle' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='left' valign='middle' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_3']; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='middle' width='50%' class='row2'>"; ! echo " <select name='game_choice'>"; ! echo " <option selected value=''>" . $lang['a_disable_4'] . "</option>"; ! ! $q = "SELECT * ! FROM " . iNA_GAMES . " ! ORDER BY game_id ASC"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $g_name = $row['game_name']; ! $g_id = $row['game_id']; ! $g_dis = $row['disabled']; ! ! if ( $g_dis == "2" ) ! { ! $new_name = "($g_id) $g_name*"; ! } ! else ! { ! $new_name = "($g_id) $g_name"; ! } ! ! echo " <option value='$g_id'>$new_name</option>"; ! } ! ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='hide_show'>"; ! echo " <input type='submit' class='mainoption' value='" . $lang['a_disable_5'] . "' onchange='document.do_it.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "hide_show" ) ! { ! $id = $_POST['game_choice']; ! ! if ( !$id ) ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_6'] . "<a href='" . $link . "'>" . $lang['a_disable_7'], $lang['ban_error'] ); ! } ! ! $q = "SELECT disabled ! FROM " . iNA_GAMES . " ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $disabled = $row['disabled']; ! ! if ( $disabled == "2" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '1' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_8'] . "<a href='" . $link . "'>" . $lang['a_disable_9'] , $lang['a_ban_22'] ); ! }elseif ( $disabled == "1" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '2' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_10'] . "<a href='" . $link . "'>" . $lang['a_disable_11'], $lang['a_ban_22'] ); ! } ! else ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_13'] . "<a href='" . $link . "'>" . $lang['a_disable_12'], $lang['ban_error'] ); ! } ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file --- 1,178 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- ! * ! * $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. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Hide/Show Games'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! 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 = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! 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'] ) ) ! { ! $mode = ( isset( $HTTP_POST_VARS['mode'] ) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_disable." . $phpEx ); ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " " . $lang['a_disable_1']; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_2']; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<form name='do_it' action='$link' method='post'>"; ! echo "<table border='0' align='center' valign='middle' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='left' valign='middle' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " " . $lang['a_disable_3']; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='middle' width='50%' class='row2'>"; ! echo " <select name='game_choice'>"; ! echo " <option selected value=''>" . $lang['a_disable_4'] . "</option>"; ! ! $q = "SELECT * ! FROM " . iNA_GAMES . " ! ORDER BY game_id ASC"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $g_name = $row['game_name']; ! $g_id = $row['game_id']; ! $g_dis = $row['disabled']; ! ! if ( $g_dis == "2" ) ! { ! $new_name = "($g_id) $g_name*"; ! } ! else ! { ! $new_name = "($g_id) $g_name"; ! } ! ! echo " <option value='$g_id'>$new_name</option>"; ! } ! ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='hide_show'>"; ! echo " <input type='submit' class='mainoption' value='" . $lang['a_disable_5'] . "' onchange='document.do_it.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "hide_show" ) ! { ! $id = $_POST['game_choice']; ! ! if ( !$id ) ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_6'] . "<a href='" . $link . "'>" . $lang['a_disable_7'], $lang['ban_error'] ); ! } ! ! $q = "SELECT disabled ! FROM " . iNA_GAMES . " ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $disabled = $row['disabled']; ! ! if ( $disabled == "2" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '1' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_8'] . "<a href='" . $link . "'>" . $lang['a_disable_9'] , $lang['a_ban_22'] ); ! }elseif ( $disabled == "1" ) ! { ! $q = "UPDATE " . iNA_GAMES . " ! SET disabled = '2' ! WHERE game_id = '$id'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, $lang['a_disable_10'] . "<a href='" . $link . "'>" . $lang['a_disable_11'], $lang['a_ban_22'] ); ! } ! else ! { ! mx_message_die( GENERAL_ERROR, $lang['a_disable_13'] . "<a href='" . $link . "'>" . $lang['a_disable_12'], $lang['ban_error'] ); ! } ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file Index: admin_activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_activity.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_activity.php 20 Aug 2005 18:21:13 -0000 1.5 --- admin_activity.php 1 Oct 2005 14:11:39 -0000 1.6 *************** *** 1,32 **** <?php ! /** ! * admin_activity.php ! * -------------------- ! * begin : Tuesday, October 15, 2002 ! * copyright : (c)2002 www.iNetAngel.com ! * email : su...@iN... ! * ! * $Id : admin_activity.php, v2.0.0 2003/12/18 59:59:59 Napoleon Exp $ ! * ! * * ! * 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. - * - * - * - * This is a MOD for phpbb v2+. The phpbb group has all rights to the - * phpbb source. They can be contacted at : - * - * I-Net : www.phpbb.com - * E-Mail: su...@ph... - * - * If you have made any changes then please notify me so they can be added - * if they are improvments. You of course will get the credit for helping - * out. If you would like to see other MODs that I have made then check - * out my forum at : www.iNetAngel.com and click on the community button. */ define( 'IN_PORTAL', 1 ); --- 1,22 ---- <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- * ! * $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. */ + define( 'IN_PORTAL', 1 ); Index: admin_ina_xtras.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_xtras.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_ina_xtras.php 9 Jan 2005 21:30:34 -0000 1.3 --- admin_ina_xtras.php 1 Oct 2005 14:11:39 -0000 1.4 *************** *** 1,12 **** <?php /** ! * admin_ina_xtras.php ! * ------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) */ define( 'IN_PORTAL', 1 ); --- 1,22 ---- <?php + /** ------------------------------------------------------------------------ + * Subject : mxBB - a fully modular portal and CMS (for phpBB) + * Author : Jon Ohlsson and the mxBB Team + * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com + * Copyright : (C) 2002-2005 mxBB Portal + * Email : jo...@mx... + * Project site : www.mxbb-portal.com + * ------------------------------------------------------------------------- + * + * $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. */ + define( 'IN_PORTAL', 1 ); Index: admin_ina_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_category.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_ina_category.php 12 Apr 2005 19:48:19 -0000 1.3 --- admin_ina_category.php 1 Oct 2005 14:11:39 -0000 1.4 *************** *** 1,666 **** ! <?php ! ! /** ! * admin_ina_category.php ! * ------------------------ ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ [...1315 lines suppressed...] ! WHERE cat_id = '$cat'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $check = $row['cat_name']; ! ! $q = "DELETE FROM " . INA_CATEGORY . " ! WHERE cat_id = '$cat'"; ! $r = $db->sql_query( $q ); ! ! $q = "DELETE FROM " . INA_CATEGORY_DATA . " ! WHERE cat_id = '$cat'"; ! $r = $db->sql_query( $q ); ! ! mx_message_die( GENERAL_MESSAGE, "All Data For The Category [<b> " . $check . " </b>] Has Been Deleted.<br>Click <a href='" . $link . "'>Here</a> To Return To The Categories Page.", "Success" ); ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file Index: admin_ina_scores_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_scores_edit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_ina_scores_edit.php 12 Apr 2005 19:48:19 -0000 1.3 --- admin_ina_scores_edit.php 1 Oct 2005 14:11:39 -0000 1.4 *************** *** 1,428 **** ! <?php ! ! /** ! * admin_ina_scores_edit.php ! * --------------------------- ! * Version : 1.0.3 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) ! */ ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Scores Editor'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! 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 = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! 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'] ) ) ! { ! $mode = ( isset( $HTTP_POST_VARS['mode'] ) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_scores_edit." . $phpEx ); ! ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " Activity Scores Edit Admin"; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='100%' class='row2'>"; ! echo " <span class='gensmall'>"; ! echo " This feature is provided for changing players scores a little up or down etc. This ! feature <b>is NOT</b> for moving trophy holders around, that will cause issues ! among the tables. If you want to move trophy holders around, please do that via ! the top of your activity_top_scores.php page & not here."; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Normal Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Find Scores ' onchange='document.edit_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Trophy Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='trophy_game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_trophy_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Trophy Score ' onchange='document.edit_trophy.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "edit_game_score" ) ! { ! $game = $_POST['game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy_player' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select A Player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='player_selected'>"; ! echo " <option selected value=''>Choose A Player</option>"; ! ! $q = "SELECT player ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! GROUP BY player"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $player_name = $row['player']; ! echo " <option value='" . $player_name . "'>" . $player_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_player'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Player ' onchange='document.edit_trophy_player.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "edit_player" ) ! { ! $player = $_POST['player_selected']; ! $game = $_POST['game_selected']; ! ! $q = "SELECT * ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! AND player = '$player' ! GROUP BY player ! ORDER BY score ASC ! LIMIT 0, 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_name = $row['player']; ! $player_score = $row['score']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player_name On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player_name"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player_name'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! $q = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '" . $player . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_id = $row['user_id']; ! ! if ( $trophy_id == $player_id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $player_id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! if ( $mode == "edit_trophy_game_score" ) ! { ! $game = $_POST['trophy_game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_score = $row['score']; ! $player_id = $row['player']; ! ! $q = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '" . $player_id . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player = $row['username']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_t_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player'>"; ! echo " <input type='hidden' name='player_id_selected' value='$player_id'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_t_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! $id = $_POST['player_id_selected']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! if ( $trophy_id == $id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file --- 1,438 ---- ! <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- ! * ! * $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. ! */ ! ! define( 'IN_PORTAL', 1 ); ! ! if ( !empty( $setmodules ) ) ! { ! $file = basename( __FILE__ ); ! $module['Activities']['Scores Editor'] = 'modules/mx_act/admin/' . "$file"; ! return; ! } ! ! $mx_root_path = '../../../'; ! $module_root_path = "../"; ! require( $mx_root_path . 'extension.inc' ); ! require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! 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 = "./../"; ! require($phpbb_root_path . 'extension.inc'); ! ! 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'] ) ) ! { ! $mode = ( isset( $HTTP_POST_VARS['mode'] ) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; ! } ! else ! { ! $mode = ''; ! } ! ! $link = append_sid( "admin_ina_scores_edit." . $phpEx ); ! ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <th class='thHead' colspan='2'>"; ! echo " Activity Scores Edit Admin"; ! echo " </th>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! ! if ( $mode == "main" || !$mode ) ! { ! echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='100%' class='row2'>"; ! echo " <span class='gensmall'>"; ! echo " This feature is provided for changing players scores a little up or down etc. This ! feature <b>is NOT</b> for moving trophy holders around, that will cause issues ! among the tables. If you want to move trophy holders around, please do that via ! the top of your activity_top_scores.php page & not here."; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br><br>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Normal Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Find Scores ' onchange='document.edit_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo " <tr>"; ! echo " <td align='center' valign='top' width='100%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Edit A Trophy Score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select Game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='trophy_game_selected'>"; ! echo " <option selected value=''>Choose A Game</option>"; ! ! $q = "SELECT game_name ! FROM " . iNA_GAMES . " ! WHERE game_id > '0'"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $game_name = $row['game_name']; ! echo " <option value='" . $game_name . "'>" . $game_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_trophy_game_score'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Trophy Score ' onchange='document.edit_trophy.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! echo "<br><br>"; ! } ! ! if ( $mode == "edit_game_score" ) ! { ! $game = $_POST['game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='edit_trophy_player' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Select A Player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <select name='player_selected'>"; ! echo " <option selected value=''>Choose A Player</option>"; ! ! $q = "SELECT player ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! GROUP BY player"; ! $r = $db->sql_query( $q ); ! while ( $row = $db->sql_fetchrow( $r ) ) ! { ! $player_name = $row['player']; ! echo " <option value='" . $player_name . "'>" . $player_name . "</option>"; ! } ! echo " </select>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='edit_player'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='submit' class='mainoption' value=' Edit Player ' onchange='document.edit_trophy_player.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "edit_player" ) ! { ! $player = $_POST['player_selected']; ! $game = $_POST['game_selected']; ! ! $q = "SELECT * ! FROM " . iNA_SCORES . " ! WHERE game_name = '$game' ! AND player = '$player' ! GROUP BY player ! ORDER BY score ASC ! LIMIT 0, 1"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_name = $row['player']; ! $player_score = $row['score']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player_name On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player_name"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player_name'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! $q = "SELECT user_id ! FROM " . USERS_TABLE . " ! WHERE username = '" . $player . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_id = $row['user_id']; ! ! if ( $trophy_id == $player_id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $player_id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! if ( $mode == "edit_trophy_game_score" ) ! { ! $game = $_POST['trophy_game_selected']; ! ! if ( !$game ) ! { ! mx_message_die( GENERAL_ERROR, "Please Specify A Game.", "Error" ); ! } ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '$game'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player_score = $row['score']; ! $player_id = $row['player']; ! ! $q = "SELECT username ! FROM " . USERS_TABLE . " ! WHERE user_id = '" . $player_id . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $player = $row['username']; ! ! echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>"; ! echo "<form name='save_score' action='$link' method='post'>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " Current Score For $player On $game"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " $player_score"; ! echo " </span>"; ! echo " </td>"; ! echo " </tr>"; ! echo " <tr>"; ! echo " <td align='left' valign='top' width='50%' class='row2'>"; ! echo " <span class='genmed'>"; ! echo " New Score For $player"; ! echo " </span>"; ! echo " </td>"; ! echo " <td align='center' valign='top' width='50%' class='row2'>"; ! echo " <input type='text' name='new_score' value='$player_score' class='post'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "<br>"; ! echo "<table border='0' align='center' valign='top'>"; ! echo " <tr>"; ! echo " <td align='center' valign='middle' width='100%' class='row2'>"; ! echo " <input type='hidden' name='mode' value='save_new_t_score'>"; ! echo " <input type='hidden' name='game_selected' value='$game'>"; ! echo " <input type='hidden' name='player_selected' value='$player'>"; ! echo " <input type='hidden' name='player_id_selected' value='$player_id'>"; ! echo " <input type='submit' class='mainoption' value=' Save Score ' onchange='document.save_score.submit()'>"; ! echo " </td>"; ! echo " </tr>"; ! echo "</table>"; ! echo "</form>"; ! } ! ! if ( $mode == "save_new_t_score" ) ! { ! $game = $_POST['game_selected']; ! $player = $_POST['player_selected']; ! $score = $_POST['new_score']; ! $id = $_POST['player_id_selected']; ! ! $q = "SELECT * ! FROM " . INA_TROPHY . " ! WHERE game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! $row = $db->sql_fetchrow( $r ); ! $trophy_id = $row['player']; ! $trophy_sc = $row['score']; ! ! if ( $trophy_id == $id ) ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! ! $q = "UPDATE " . INA_TROPHY . " ! SET score = '" . $score . "' ! WHERE player = '" . $id . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! else ! { ! $q = "UPDATE " . iNA_SCORES . " ! SET score = '" . $score . "' ! WHERE player = '" . $player . "' ! AND game_name = '" . $game . "'"; ! $r = $db->sql_query( $q ); ! } ! mx_message_die( GENERAL_MESSAGE, $player . "'s New Score Was Saved.", "Success" ); ! } ! ! include( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ! ?> \ No newline at end of file Index: admin_ina_ban.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_ban.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** admin_ina_ban.php 9 Jan 2005 21:30:34 -0000 1.3 --- admin_ina_ban.php 1 Oct 2005 14:11:39 -0000 1.4 *************** *** 1,11 **** <?php /** ! * admin_ina_ban.php ! * ------------------- ! * Version : 0.0.4 ! * Email : aus...@ho... ! * Site : austin-inc.com/Blend/ ! * Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System) */ --- 1,20 ---- <?php + /** ------------------------------------------------------------------------ + * Subject : mxBB - a fully modular portal and CMS (for phpBB) + * Author : Jon Ohlsson and the mxBB Team + * Credits : The phpBB Group & Marc Morisette, (c)2002 www.iNetAngel.com + * Copyright : (C) 2002-2005 mxBB Portal + * Email : jo...@mx... + * Project site : www.mxbb-portal.com + * ------------------------------------------------------------------------- + * + * $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. */ |
|
From: Jon O. <jon...@us...> - 2005-10-02 23:39:05
|
Update of /cvsroot/mxbb/mx_newssuite/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1560/modules/mx_newssuite/language/lang_english Modified Files: lang_main.php Log Message: updated all file headers Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_newssuite/language/lang_english/lang_main.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** lang_main.php 22 Sep 2005 10:10:19 -0000 1.2 --- lang_main.php 1 Oct 2005 14:14:45 -0000 1.3 *************** *** 1,23 **** <?php ! /*************************************************************************** ! * lang_admin.php ! * ------------------- ! * begin : Sunday, Mar 31, 2003 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $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. ! * ! ***************************************************************************/ // // General --- 1,22 ---- <?php ! /** ------------------------------------------------------------------------ ! * Subject : mxBB - a fully modular portal and CMS (for phpBB) ! * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & Marc Morisette ! * Copyright : (C) 2002-2005 mxBB Portal ! * Email : jo...@mx... ! * Project site : www.mxbb-portal.com ! * ------------------------------------------------------------------------- ! * ! * $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. ! */ ! // // General |