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-22 22:42:40
|
Update of /cvsroot/mxbb/mx_dev_startkit/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv378/modules/mx_dev_startkit/admin Modified Files: mx_module_defs.php Added Files: admin_dev_startkit.php Log Message: adding this dev startkit module Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/admin/mx_module_defs.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_module_defs.php 22 Oct 2005 12:40:33 -0000 1.1 --- mx_module_defs.php 22 Oct 2005 22:42:31 -0000 1.2 *************** *** 20,23 **** --- 20,27 ---- */ + if ( !empty( $setmodules ) ) + { + return; + } /********************************************************************************\ *************** *** 53,57 **** } ! $type_row['phpbb_type_select'] = !empty($lang['ParType_phpbb_type_select']) ? $lang['ParType_phpbb_type_select'] : "phpBB Source"; return $type_row; --- 57,61 ---- } ! $type_row['startkit_module_select'] = !empty($lang['ParType_startkit_module_select']) ? $lang['ParType_startkit_module_select'] : "startkit_module_select"; return $type_row; *************** *** 63,75 **** function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $html_entities_match, $html_entities_replace; ! $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_id']]; $parameter_opt = ''; switch ( $parameter_data['parameter_type'] ) { ! case 'phpbb_type_select': ! $parameter_value = addslashes( serialize( $parameter_value ) ); break; } --- 67,79 ---- function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $html_entities_match, $html_entities_replace, $mx_request_vars, $mx_request_vars; ! $parameter_value = $mx_request_vars->request($parameter_data['parameter_id'], MX_TYPE_INT, 1); $parameter_opt = ''; switch ( $parameter_data['parameter_type'] ) { ! case 'startkit_module_select': ! // Nothing special to do for this simple integer break; } *************** *** 86,197 **** switch ( $parameter_data['parameter_type'] ) { ! case 'phpbb_type_select': ! $this->display_edit_Phpbb_type_select( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; } } ! function display_edit_Phpbb_type_select( $block_id, $parameter_id, $parameter_data ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; $module_root_path = $mx_root_path . $mx_blockcp->module_root_path; ! include_once( $module_root_path . "includes/phpbb_constants.$phpEx" ); ! include_once( $module_root_path . "includes/phpbb_defs.$phpEx" ); ! 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) ); - - // Get number of forums in db - $sql = "SELECT * - FROM " . NEWS_CAT_TABLE . " - ORDER BY $cat_extract_order"; - if ( !( $result = $db->sql_query( $sql ) ) ) - { - message_die( GENERAL_ERROR, "Couldn't obtain forums information.", "", __LINE__, __FILE__, $sql ); - } - - $forums = $db->sql_fetchrowset( $result ); - - // Get array of categories from the database - - $sql = "SELECT cat_id, cat_title - FROM " . CATEGORIES_TABLE . " - ORDER BY cat_order"; - if ( !( $result = $db->sql_query( $sql ) ) ) - { - mx_message_die( GENERAL_ERROR, "Couldn't obtain category list.", "", __LINE__, __FILE__, $sql ); - } - - $categories = $db->sql_fetchrowset( $result ); ! $phpbb_type_select_data = ( !empty( $mx_blockcp->block_parameters['Source_phpBB_Forums']['parameter_value'] ) ) ? unserialize($mx_blockcp->block_parameters['Source_phpBB_Forums']['parameter_value']) : array(); ! // ! // Check that some categories exist ! // ! if ( $total_categories = count( $categories ) ) ! { ! // ! // Check that some forums exist (these were queried earlier) ! // ! if ( $total_forums = count( $forums ) ) ! { ! $template->assign_block_vars( 'switch_forums_phpbb', array( 'COLSPAN' => count( $item_types_array ) + 2 ! ) ); ! ! for( $i = 0; $i < $total_categories; $i++ ) ! { ! $template->assign_block_vars( 'catrow', array( 'CAT_ID' => $categories[$i]['cat_id'], ! 'COLSPAN' => count( $item_types_array ) + 1, ! 'CAT_NAME' => $categories[$i]['cat_title'] ! ) ); ! ! for( $j = 0; $j < $total_forums; $j++ ) ! { ! if ( $forums[$j]['cat_id'] == $categories[$i]['cat_id'] || $forums[$j]['cat_id'] == '' ) ! { ! $template->assign_block_vars( 'catrow.forumrow_phpbb', array( 'FORUM_ID' => $forums[$j][$catt_id], ! 'FORUM_NAME' => $forums[$j][$catt_name], ! 'FORUM_DESC' => $forums[$j][$catt_desc], ! ! 'CHECKED' => ( $phpbb_type_select_data[$forums[$j]['forum_id']] ? 'CHECKED' : '' ), ! )); ! } ! } ! } ! } ! } ! ! $template->assign_vars(array( ! 'NAME' => $lang[$parameter_data['parameter_name']], ! 'SELECT_NAME' => $parameter_data['parameter_id'], ! 'PARAMETER_TITLE' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], ! 'PARAMETER_TYPE' => ( !empty($lang["ParType_".$parameter_data['parameter_type']]) ) ? $lang["ParType_".$parameter_data['parameter_type']] : '', ! 'PARAMETER_TYPE_EXPLAIN' => ( !empty($lang["ParType_".$parameter_data['parameter_type'] . "_info"]) ) ? '<br />' . $lang["ParType_".$parameter_data['parameter_type'] . "_info"] : '', ! 'SCRIPT_PATH' => $module_root_path, ! 'I_ANNOUNCE' => PHPBB_URL . $images['folder_announce'], ! 'I_STICKY' => PHPBB_URL . $images['folder_sticky'], ! 'I_NORMAL' => PHPBB_URL . $images['folder'], ! ! 'L_ANNOUNCEMENT' => $lang['Post_Announcement'], ! 'L_STICKY' => $lang['Post_Sticky'], ! 'L_NORMAL' => $lang['Posted'], ! )); ! ! $template->pparse('parameter'); ! ! } } ?> \ No newline at end of file --- 90,133 ---- switch ( $parameter_data['parameter_type'] ) { ! case 'startkit_module_select': ! $this->display_edit_startkit_module_select( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; } } ! function display_edit_startkit_module_select( $block_id, $parameter_id, $parameter_data ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; + // + // Includes + // $module_root_path = $mx_root_path . $mx_blockcp->module_root_path; ! include_once( $module_root_path . 'includes/startkit_constants.' . $phpEx ); ! // ! // Get varaibles ! // ! $parameter_datas = get_list($parameter_id, MODULE_TABLE, 'module_id', 'module_name', $parameter_data['parameter_value'], true); ! ! // ! // Start page proper ! // $template->set_filenames(array( ! 'parameter' => 'admin/mx_module_parameters.tpl') ); ! $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'); } } ?> \ No newline at end of file --- NEW FILE: admin_dev_startkit.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, WebSnail < Martin Smallridge > * Copyright : (C) 2002-2005 mxBB Portal * Email : jo...@mx... * Project site : www.mxbb-portal.com * ------------------------------------------------------------------------- * * $Id: admin_dev_startkit.php,v 1.1 2005/10/22 22:42:31 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. */ define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); $module['Hej']['Hej'] = 'modules/mx_dev_startkit/admin/' . $filename; return; } $mx_root_path = '../../../'; $module_root_path = "../"; require( $mx_root_path . 'extension.inc' ); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); // // Includes // require( $module_root_path . 'includes/startkit_constants.' . $phpEx ); include_once( $mx_root_path . 'admin/page_header_admin.' . $phpEx ); // -------------------------------------------------- $sql = "SELECT * FROM " . STARTKIT_CONFIG_TABLE; if ( !$result = $db->sql_query( $sql ) ) { message_die( GENERAL_ERROR, "Couldn't query dev startkit 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 " . STARTKIT_CONFIG_TABLE . " 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 startkit configuration for $config_name", "", __LINE__, __FILE__, $sql ); } } } if ( isset( $HTTP_POST_VARS['submit'] ) ) { $message = $lang['Startkit_config_updated'] . "<br /><br />" . sprintf( $lang['Startkit_return_config'], "<a href=\"" . append_sid( "admin_dev_startkit.$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 ); } } $startkit_config1 = $new['startkit_config1']; $startkit_config2_yes = ( $new['startkit_config2'] ) ? "checked=\"checked\"" : ""; $startkit_config2_no = ( !$new['startkit_config2'] ) ? "checked=\"checked\"" : ""; $template->set_filenames( array( "body" => "admin/startkit_config_body.tpl" ) ); $template->assign_vars( array( "S_CONFIG_ACTION" => append_sid( "admin_dev_startkit.$phpEx" ), "L_YES" => $lang['Yes'], "L_NO" => $lang['No'], "L_CONFIGURATION_TITLE" => $lang['Config_Startkit'], "L_CONFIGURATION_EXPLAIN" => $lang['Config_Startkit_explain'], "L_GENERAL_SETTINGS" => $lang['Config_Startkit'], "L_STARTKIT_CONFIG1" => $lang['startkit_config1'], "L_STARTKIT_CONFIG1_EXPLAIN" => $lang['startkit_config1_explain'], "L_STARTKIT_CONFIG2" => $lang['startkit_config2'], "L_STARTKIT_CONFIG2_EXPLAIN" => $lang['startkit_config2_explain'], "L_SUBMIT" => $lang['Submit'], "L_RESET" => $lang['Reset'], "STARTKIT_CONFIG1" => $startkit_config1, "S_STARTKIT_CONFIG2_YES" => $startkit_config2_yes, "S_STARTKIT_CONFIG2_NO" => $startkit_config2_no )); $template->pparse( "body" ); include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 22:42:39
|
Update of /cvsroot/mxbb/mx_dev_startkit/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv378/modules/mx_dev_startkit/templates/subSilver Modified Files: startkit_body.tpl Log Message: adding this dev startkit module Index: startkit_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/templates/subSilver/startkit_body.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** startkit_body.tpl 22 Oct 2005 12:40:33 -0000 1.1 --- startkit_body.tpl 22 Oct 2005 22:42:31 -0000 1.2 *************** *** 1,31 **** ! <script type="text/javascript" src="{SCRIPT_PATH}/templates/rollout.js"></script> ! ! <tr> ! <td width="100%" colspan="2"> ! <!-- BEGIN switch_forums_phpbb --> ! <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr> ! <th align="center" class="thTop" colspan="2" nowrap="nowrap" colspan="2"> {L_NEWS_FORUMS} </th> ! </tr> ! <!-- END switch_forums_phpbb --> ! <!-- BEGIN catrow --> ! <tr> ! <td class="cat" align="center"><a href="#" onClick="toggle('cat_{catrow.CAT_ID}', '../templates/subSilver/images/'); return false;"><img src="../templates/subSilver/images/contract.gif" border="0" id="cat_{catrow.CAT_ID}_img" /></a> ! <td class="cat" ><span class="cattitle">{catrow.CAT_NAME}</span></td> ! </tr> ! <tbody id="cat_{catrow.CAT_ID}"> ! <!-- BEGIN forumrow_phpbb --> ! <tr> ! <td class="row1" align="center" valign="top"><input type="checkbox" name="{SELECT_NAME}[{catrow.forumrow_phpbb.FORUM_ID}]" value="1" {catrow.forumrow_phpbb.CHECKED} /></td> ! <td class="row1" align="left" valign="top"><span class="forumlink">{catrow.forumrow_phpbb.FORUM_NAME}</span><br /><span class="gensmall">{catrow.forumrow_phpbb.FORUM_DESC}</span></td> ! </tr> ! <!-- END forumrow_phpbb --> ! </tbody> ! <!-- END catrow --> ! <!-- BEGIN switch_forums_phpbb --> ! </table> ! <!-- END switch_forums_phpbb --> ! </td> ! </tr> --- 1,90 ---- ! <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> ! <tr> ! <td class="cat" colspan="2" align="left" valign="middle"> ! <span class="cattitle">{L_STARTKIT}</span> ! </td> ! </tr> ! <tr> ! <td class="row3" colspan="2" align="left" valign="middle"> ! <span class="topictitle">{L_STARTKIT_PARAMETER}</span><br /><span class="genmed">{L_STARTKIT_PARAMETER_EXPLAIN}</span> ! </td> ! </tr> ! <tr> ! <td class="row2" width="50%" align="right" valign="middle"> ! {L_TEST_STRING} ! </td> ! <td class="row1" align="left" valign="middle"> ! {TEST_STRING} ! </td> ! </tr> ! <tr> ! <td class="row2" width="50%" align="right" valign="middle"> ! {L_TEST_NUMBER} ! </td> ! <td class="row1" align="left" valign="middle"> ! {TEST_NUMBER} ! </td> ! </tr> ! <tr> ! <td class="row3" colspan="2" align="left" valign="middle"> ! <span class="topictitle">{L_STARTKIT_PARAMETER_MODIFIED}</span><br /><span class="genmed">{L_STARTKIT_PARAMETER_MODIFIED_EXPLAIN}</span> ! </td> ! </tr> ! <tr> ! <td class="row2" width="50%" align="right" valign="middle"> ! {L_TEST_MODIFIED} ! </td> ! <td class="row1" align="left" valign="middle"> ! {TEST_MODIFIED} ! </td> ! </tr> ! <tr> ! <td class="row3" colspan="2" align="left" valign="middle"> ! <span class="topictitle">{L_STARTKIT_PARAMETER_CUSTOM}</span><br /><span class="genmed">{L_STARTKIT_PARAMETER_CUSTOM_EXPLAIN}</span> ! </td> ! </tr> ! <tr> ! <td class="row2" width="50%" align="right" valign="middle"> ! {L_TEST_CUSTOM} ! </td> ! <td class="row1" align="left" valign="middle"> ! {TEST_CUSTOM} ! </td> ! </tr> ! <tr> ! <td class="row3" colspan="2" align="left" valign="middle"> ! <span class="topictitle">{L_STARTKIT_CONFIG}</span><br /><span class="genmed">{L_STARTKIT_CONFIG_EXPLAIN}</span> ! </td> ! </tr> ! <tr> ! <td class="row2" width="50%" align="right" valign="middle"> ! {L_TEST_CONFIG1} ! </td> ! <td class="row1" align="left" valign="middle"> ! {TEST_CONFIG1} ! </td> ! </tr> ! <tr> ! <td class="row2" width="50%" align="right" valign="middle"> ! {L_TEST_CONFIG2} ! </td> ! <td class="row1" align="left" valign="middle"> ! {TEST_CONFIG2} ! </td> ! </tr> ! <tr> ! <td class="row3" colspan="2" align="left" valign="middle"> ! <span class="topictitle">{L_STARTKIT_GET}</span><br /><span class="genmed">{L_STARTKIT_GET_EXPLAIN}</span> ! </td> ! </tr> ! <tr> ! <td class="row2" width="50%" align="right" valign="middle"> ! {L_TEST_GET} ! </td> ! <td class="row1" align="left" valign="middle"> ! {TEST_GET} ! </td> ! </tr> ! </table> |
|
From: Jon O. <jon...@us...> - 2005-10-22 22:42:39
|
Update of /cvsroot/mxbb/mx_dev_startkit/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv378/modules/mx_dev_startkit/language/lang_english Modified Files: lang_admin.php lang_main.php Log Message: adding this dev startkit module Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/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 22 Oct 2005 12:40:33 -0000 1.1 --- lang_main.php 22 Oct 2005 22:42:31 -0000 1.2 *************** *** 24,35 **** // Block specific // ! $lang['Startkit_info'] = 'This is a developers startkit exampmle block'; $lang['Test_string'] = 'This is block parameter (string), with value: '; $lang['Test_number'] = 'This is block parameter (number), with value: '; $lang['Test_config1'] = 'This is a config setting, with value: '; $lang['Test_config2'] = 'This is a second config setting, with value: '; ! $lang['Test_get_par'] = 'This block recognises the GET var "test". Try adding "&test=whatever" to the page url.'; ?> \ No newline at end of file --- 24,50 ---- // Block specific // ! $lang['Startkit'] = 'This is a developers startkit exampmle block'; + $lang['Startkit_parameter'] = 'Block Parameters'; + $lang['Startkit_parameter_explain'] = 'Block parameters are set in the blockCP - unique for this block and included in mxBB cache'; $lang['Test_string'] = 'This is block parameter (string), with value: '; $lang['Test_number'] = 'This is block parameter (number), with value: '; + + $lang['Startkit_parameter_modified'] = 'Modified block parameter'; + $lang['Startkit_parameter_modified_explain'] = 'This parameter has been modified by the script'; + $lang['Test_modified'] = 'This is a modified block parameter: the parameter \'number\' has been doubled'; + + $lang['Startkit_parameter_custom'] = 'Custom block parameter'; + $lang['Startkit_parameter_custom_explain'] = 'Additional module parameters are defined in admin/mx_module_defs.php'; + $lang['Test_custom'] = 'This is a block parameter (custom), with value: '; + + $lang['Startkit_config'] = 'Module config values'; + $lang['Startkit_config_explain'] = 'Config values are set in the adminCP - main settings for all module blocks'; $lang['Test_config1'] = 'This is a config setting, with value: '; $lang['Test_config2'] = 'This is a second config setting, with value: '; ! $lang['Startkit_get'] = 'GET value'; ! $lang['Startkit_get_explain'] = 'This is a fetched GET parameter'; ! $lang['Test_get_par'] = 'This block recognises the GET var "test". Try adding "&test=whatever" to the page url.'; ?> \ No newline at end of file Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/language/lang_english/lang_admin.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_admin.php 22 Oct 2005 12:40:33 -0000 1.1 --- lang_admin.php 22 Oct 2005 22:42:31 -0000 1.2 *************** *** 22,32 **** // ! // AdminCP lang keys ! // - only needed if the module has its own adminCP panel, typically when the module requires extra db tables for its setup (operations) // ! $lang['mx_startkit_admin'] = 'mxBB Startkit Example AdminCP'; ! $lang['mx_forum_admin_explain'] = 'This panel demonstrates how the module may be configured using additional db tables.'; $lang['startkit_config1'] = 'First test config'; $lang['startkit_config1_explain'] = 'More info is given here'; --- 22,37 ---- // ! // AdminCP // + $lang['Config_Startkit'] = "mxBB Startkit Example AdminCP"; + $lang['Config_Startkit_explain'] = "This panel demonstrates how the module may be configured using additional db tables."; ! $lang['Startkit_config_updated'] = "Calendar Configuration Updated Sucessfully"; ! $lang['Startkit_return_config'] = 'Click %sHere%s to return to Calendar Configuration'; + // + // AdminCP lang keys + // - only needed if the module has its own adminCP panel, typically when the module requires extra db tables for its setup (operations) + // $lang['startkit_config1'] = 'First test config'; $lang['startkit_config1_explain'] = 'More info is given here'; *************** *** 48,50 **** --- 53,64 ---- $lang['startkit_test_number_explain'] = 'More info is given here'; + $lang['startkit_test_custom'] = 'Test Custom Parameter'; + $lang['startkit_test_custom_explain'] = 'More info is given here'; + + // + // Custom Parameter Types + // + $lang['ParType_startkit_module_select'] = "Custom module select"; + $lang['ParType_startkit_module_select_info'] = ""; + ?> \ No newline at end of file |
|
From: Jon O. <jon...@us...> - 2005-10-22 22:42:39
|
Update of /cvsroot/mxbb/mx_dev_startkit/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv378/modules/mx_dev_startkit/includes Modified Files: startkit_constants.php startkit_functions.php Log Message: adding this dev startkit module Index: startkit_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/includes/startkit_constants.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** startkit_constants.php 22 Oct 2005 12:40:33 -0000 1.1 --- startkit_constants.php 22 Oct 2005 22:42:31 -0000 1.2 *************** *** 45,56 **** // Read language definition // ********************************************************************** ! if ( !file_exists( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); $link_language = 'lang_english'; } else { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); $link_language = 'lang_' . $board_config['default_lang']; } --- 45,56 ---- // Read language definition // ********************************************************************** ! if ( !file_exists( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_english/lang_main.' . $phpEx ); $link_language = 'lang_english'; } else { ! include( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); $link_language = 'lang_' . $board_config['default_lang']; } Index: startkit_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/includes/startkit_functions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** startkit_functions.php 22 Oct 2005 12:40:33 -0000 1.1 --- startkit_functions.php 22 Oct 2005 22:42:31 -0000 1.2 *************** *** 34,38 **** function double($number = 0) { ! $new_number = 2 * $number; return $new_number; --- 34,38 ---- function double($number = 0) { ! $new_number = $number + $number; return $new_number; |
|
From: Jon O. <jon...@us...> - 2005-10-22 22:42:39
|
Update of /cvsroot/mxbb/mx_dev_startkit/templates/subSilver/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv378/modules/mx_dev_startkit/templates/subSilver/admin Modified Files: mx_module_parameters.tpl Added Files: startkit_config_body.tpl Log Message: adding this dev startkit module Index: mx_module_parameters.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_dev_startkit/templates/subSilver/admin/mx_module_parameters.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_module_parameters.tpl 22 Oct 2005 12:40:33 -0000 1.1 --- mx_module_parameters.tpl 22 Oct 2005 22:42:31 -0000 1.2 *************** *** 1,32 **** ! <script type="text/javascript" src="{SCRIPT_PATH}/templates/rollout.js"></script> ! <tr> <td width="100%" colspan="2"> ! <!-- BEGIN switch_forums_phpbb --> ! <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> ! <tr> ! <th align="center" class="thTop" colspan="2" nowrap="nowrap" colspan="2"> {L_NEWS_FORUMS} </th> ! </tr> ! <!-- END switch_forums_phpbb --> ! <!-- BEGIN catrow --> ! <tr> ! <td class="cat" align="center"><a href="#" onClick="toggle('cat_{catrow.CAT_ID}', '../templates/subSilver/images/'); return false;"><img src="../templates/subSilver/images/contract.gif" border="0" id="cat_{catrow.CAT_ID}_img" /></a> ! <td class="cat" ><span class="cattitle">{catrow.CAT_NAME}</span></td> ! </tr> ! <tbody id="cat_{catrow.CAT_ID}"> ! <!-- BEGIN forumrow_phpbb --> ! <tr> ! <td class="row1" align="center" valign="top"><input type="checkbox" name="{SELECT_NAME}[{catrow.forumrow_phpbb.FORUM_ID}]" value="1" {catrow.forumrow_phpbb.CHECKED} /></td> ! <td class="row1" align="left" valign="top"><span class="forumlink">{catrow.forumrow_phpbb.FORUM_NAME}</span><br /><span class="gensmall">{catrow.forumrow_phpbb.FORUM_DESC}</span></td> ! </tr> ! <!-- END forumrow_phpbb --> ! </tbody> ! <!-- END catrow --> ! <!-- BEGIN switch_forums_phpbb --> </table> - <!-- END switch_forums_phpbb --> </td> </tr> ! ! ! \ No newline at end of file --- 1,19 ---- ! <!-- BEGIN select --> <tr> <td width="100%" colspan="2"> ! <table cellpadding="2" cellspacing="0" width="100%"> ! <tr title="{select.FIELD_DESCRIPTION}"> ! <td class="row1" width="50%" align="right"> ! <span class="topictitle">{select.PARAMETER_TITLE}:</span> ! <span class="gensmall">{select.PARAMETER_TITLE_EXPLAIN}</span> ! </td> ! <td class="row1"> ! ! {select.SELECT_LIST} ! ! </td> ! </tr> </table> </td> </tr> ! <!-- END select --> \ No newline at end of file --- NEW FILE: startkit_config_body.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_CONFIG_ACTION}" method="post"> <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{L_GENERAL_SETTINGS}</th> </tr> <tr> <td class="row1"><p>{L_STARTKIT_CONFIG1}<br> <span class="gensmall">{L_STARTKIT_CONFIG1_EXPLAIN}</span> </p></td> <td class="row2"><input type="text" maxlength="5" size="5" name="startkit_config1" value="{STARTKIT_CONFIG1}" /></td> </tr> <tr> <td class="row1">{L_STARTKIT_CONFIG2}<br> <span class="gensmall">{L_STARTKIT_CONFIG2_EXPLAIN}</span> </td> <td class="row2"><input type="radio" name="startkit_config2" value="1" {S_STARTKIT_CONFIG2_YES} /> {L_YES} <input type="radio" name="startkit_config2" value="0" {S_STARTKIT_CONFIG2_NO} /> {L_NO}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS} <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </td> </tr> </table> </form> <br clear="all" /> |
|
From: Andrew N. \(MHobbit\) <men...@us...> - 2005-10-22 21:43:05
|
Update of /cvsroot/mxbb/core/modules/mx_last_msg/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19253/modules/mx_last_msg/language/lang_english Modified Files: lang_admin.php Log Message: Misspelling fixed... Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_last_msg/language/lang_english/lang_admin.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** lang_admin.php 1 Oct 2005 14:10:45 -0000 1.4 --- lang_admin.php 22 Oct 2005 21:42:51 -0000 1.5 *************** *** 39,43 **** $lang['Last_Msg_Number_Title'] = "Number of Posts to display:"; $lang['Last_Msg_Display_Date'] = "Display Date?"; ! $lang['Last_Msg_Title_Length'] = "Title lenght (max characters):"; $lang['Last_Msg_Title_Length_Info'] = ""; --- 39,43 ---- $lang['Last_Msg_Number_Title'] = "Number of Posts to display:"; $lang['Last_Msg_Display_Date'] = "Display Date?"; ! $lang['Last_Msg_Title_Length'] = "Title length (max. characters):"; $lang['Last_Msg_Title_Length_Info'] = ""; |
|
From: Andrew N. \(MHobbit\) <men...@us...> - 2005-10-22 21:40:20
|
Update of /cvsroot/mxbb/core/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18859/language/lang_english Modified Files: lang_main.php Log Message: Reverted the Credits bit in the header to have "Marc Morisette" instead of "mxBB Development Team"... for sake of consistency. Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/core/language/lang_english/lang_main.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** lang_main.php 22 Oct 2005 21:39:06 -0000 1.21 --- lang_main.php 22 Oct 2005 21:40:08 -0000 1.22 *************** *** 3,7 **** * Subject : mxBB - a fully modular portal and CMS (for phpBB) * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & mxBB Development Team * Copyright : (C) 2002-2005 mxBB Portal * Email : jo...@mx... --- 3,7 ---- * 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... |
|
From: Andrew N. \(MHobbit\) <men...@us...> - 2005-10-22 21:39:15
|
Update of /cvsroot/mxbb/core/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18577/language/lang_english Modified Files: lang_main.php Log Message: Some small changes... Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/core/language/lang_english/lang_main.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** lang_main.php 16 Oct 2005 12:49:33 -0000 1.20 --- lang_main.php 22 Oct 2005 21:39:06 -0000 1.21 *************** *** 3,7 **** * 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... --- 3,7 ---- * Subject : mxBB - a fully modular portal and CMS (for phpBB) * Author : Jon Ohlsson and the mxBB Team ! * Credits : The phpBB Group & mxBB Development Team * Copyright : (C) 2002-2005 mxBB Portal * Email : jo...@mx... *************** *** 107,111 **** $lang['Modules_copy'] = "and mxBB Modules "; ! $lang['mx_copy_text'] = '<b>mxBB - modular Portal & CMS for phpBB!</b> <br /><br/> mxBB is a fully modular portal and CMS for phpBB, featuring dynamic pages/blocks/themes by means of a powerful yet flexible Admin CP. While it uses integrated features, it works without touching phpBB. mxBB-Portal is the classical phpBB portal add-on, improved and enhanced for every phpBB version since 2001. <br /><br />Authors: Jon Ohlsson, Marc Morissette, Markus, Jaime, Luke Finnigan & Snake - the mxBB Development Team. <br />Please visit <a href="http://www.mx-system.com/">www.mx-system.com</a> for further information.'; $lang['mx_modules_text'] = '<b>mxBB Modules</b>'; --- 107,111 ---- $lang['Modules_copy'] = "and mxBB Modules "; ! $lang['mx_copy_text'] = '<b>mxBB - Modular Portal & CMS for phpBB!</b> <br /><br/> mxBB is a fully modular portal and CMS for phpBB, featuring dynamic pages/blocks/themes by means of a powerful yet flexible AdminCP. While it uses integrated features, it works without touching phpBB. mxBB-Portal is the classical phpBB portal add-on, improved and enhanced for every phpBB version since 2001. <br /><br />Authors: Jon Ohlsson, Marc Morissette, Markus, Jaime, Luke Finnigan, Snake, and the rest of the mxBB Development Team. <br />Please visit <a href="http://www.mx-system.com/">www.mx-system.com</a> for further information.'; $lang['mx_modules_text'] = '<b>mxBB Modules</b>'; |
|
From: Andrew N. \(MHobbit\) <men...@us...> - 2005-10-22 19:55:47
|
Update of /cvsroot/mxbb/core/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1319/language/lang_english Modified Files: lang_admin.php Log Message: Fixed some language entries... just spelling and capitalization errors really. Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/core/language/lang_english/lang_admin.php,v retrieving revision 1.47 retrieving revision 1.48 diff -C2 -d -r1.47 -r1.48 *** lang_admin.php 22 Oct 2005 10:51:02 -0000 1.47 --- lang_admin.php 22 Oct 2005 19:55:39 -0000 1.48 *************** *** 60,64 **** $lang['No_functions'] = "This module has no block functions"; $lang['No_parameters'] = "This function has no parameters"; ! $lang['No_blocks'] = "No blocks for this function has been created"; $lang['No_pages'] = "No pages created"; $lang['No_settings'] = "No further settings for this block"; --- 60,64 ---- $lang['No_functions'] = "This module has no block functions"; $lang['No_parameters'] = "This function has no parameters"; ! $lang['No_blocks'] = "No blocks for this function have been created"; $lang['No_pages'] = "No pages created"; $lang['No_settings'] = "No further settings for this block"; *************** *** 82,86 **** $lang['AdminCP_status'] = "<b>Progress report</b>"; ! $lang['AdminCP_action'] = "<b>DB action</b>"; $lang['Invalid_action'] = "Error"; $lang['was_installed'] = "was installed"; --- 82,86 ---- $lang['AdminCP_status'] = "<b>Progress report</b>"; ! $lang['AdminCP_action'] = "<b>DB Action</b>"; $lang['Invalid_action'] = "Error"; $lang['was_installed'] = "was installed"; *************** *** 96,100 **** $lang['was_synced'] = "was synced"; ! $lang['error_no_field'] = "Missing field. Please fill out all needed fields..."; // --- 96,100 ---- $lang['was_synced'] = "was synced"; ! $lang['error_no_field'] = "There's a missing field. Please fill out all the needed fields..."; // *************** *** 126,132 **** // $lang['Module_admin'] = "Module Administration"; ! $lang['Module_admin_explain'] = "Use this form to manage modules: installation, upgrading and module development.<br /><b>To use this panel, you need to have javascript and cookies enabled in your browser!</b>"; $lang['Modulecp_admin'] = "Module Control Panel"; ! $lang['Modulecp_admin_explain'] = "Use this form to manage modules: block functions (parameters) and portal blocks.<br /><b>To use this panel, you need to have javascript and cookies enabled in your browser!</b>"; $lang['Modules'] = "Modules"; $lang['Module'] = "Module"; --- 126,132 ---- // $lang['Module_admin'] = "Module Administration"; ! $lang['Module_admin_explain'] = "Use this form to manage modules: installation, upgrading and module development.<br /><b>To use this panel, you need to have JavaScript and cookies enabled in your browser!</b>"; $lang['Modulecp_admin'] = "Module Control Panel"; ! $lang['Modulecp_admin_explain'] = "Use this form to manage modules: block functions (parameters) and portal blocks.<br /><b>To use this panel, you need to have JavaScript and cookies enabled in your browser!</b>"; $lang['Modules'] = "Modules"; $lang['Module'] = "Module"; *************** *** 143,162 **** // Module Installation // ! $lang['Module_delete_db'] = "Do you really want to uninstall the Module? Warning: you will lose all Module data. Consider upgrading instead..."; ! $lang['Click_module_delete_yes'] = "Click %sHere%s to uninstall the Module"; ! $lang['Click_module_upgrade_yes'] = "Click %sHere%s to upgrade the Module"; ! $lang['Click_module_export_yes'] = "Click %sHere%s to export the Module"; $lang['Error_no_db_install'] = "Error: The file db_install.php does not exist. Please verify this and try again..."; $lang['Error_no_db_uninstall'] = "Error: The file db_uninstall.php does not exist, or the uninstall feature is not supported for this module. Please verify this and try again..."; $lang['Error_no_db_upgrade'] = "Error: The file db_upgrade.php does not exist, or the upgrade feature is not supported for this module. Please verify this and try again..."; ! $lang['Error_module_installed'] = "Error: This module is already installed! Please either first delete module, or upgrade the module instead."; $lang['Uninstall_module'] = "Uninstall Module"; $lang['import_module_pack'] = "Install Module"; ! $lang['import_module_pack_explain'] = "This will add a Module to the portal. Be sure the Module Package is uploaded to the /modules folder. Remember to use the latest Module version!"; $lang['upgrade_module_pack'] = "Upgrade Module"; ! $lang['upgrade_module_pack_explain']= "This will upgrade your Module. Be sure to read the Module Documentation before proceeding, or you may risk module data loss."; $lang['export_module_pack'] = "Export Module"; $lang['Export_Module'] = "Select a Module:"; ! $lang['export_module_pack_explain'] = "This will export a Module *.pak file. This is only intended for Module writers..."; $lang['Module_Config_updated'] = "Module Configuration Updated Successfully"; $lang['Click_return_module_admin'] = "Click %sHere%s to return to Module Administration"; --- 143,162 ---- // Module Installation // ! $lang['Module_delete_db'] = "Do you really want to uninstall the Module? Warning: You will lose all module data. Consider upgrading instead..."; ! $lang['Click_module_delete_yes'] = "Click %sHere%s to uninstall the module"; ! $lang['Click_module_upgrade_yes'] = "Click %sHere%s to upgrade the module"; ! $lang['Click_module_export_yes'] = "Click %sHere%s to export the module"; $lang['Error_no_db_install'] = "Error: The file db_install.php does not exist. Please verify this and try again..."; $lang['Error_no_db_uninstall'] = "Error: The file db_uninstall.php does not exist, or the uninstall feature is not supported for this module. Please verify this and try again..."; $lang['Error_no_db_upgrade'] = "Error: The file db_upgrade.php does not exist, or the upgrade feature is not supported for this module. Please verify this and try again..."; ! $lang['Error_module_installed'] = "Error: This module is already installed! Please either first delete the module, or upgrade the module instead."; $lang['Uninstall_module'] = "Uninstall Module"; $lang['import_module_pack'] = "Install Module"; ! $lang['import_module_pack_explain'] = "This will add a module to the portal. Be sure the Module Package is uploaded to the /modules folder. Remember to use the latest Module version!"; $lang['upgrade_module_pack'] = "Upgrade Module"; ! $lang['upgrade_module_pack_explain']= "This will upgrade your module. Be sure to read the Module Documentation before proceeding, or you may risk module data loss."; $lang['export_module_pack'] = "Export Module"; $lang['Export_Module'] = "Select a Module:"; ! $lang['export_module_pack_explain'] = "This will export a module *.pak file. This is only intended for module writers..."; $lang['Module_Config_updated'] = "Module Configuration Updated Successfully"; $lang['Click_return_module_admin'] = "Click %sHere%s to return to Module Administration"; *************** *** 168,172 **** $lang['Function_admin'] = "Block Function Administration"; $lang['Function_admin_explain'] = "Each Module has one or more Block Functions. Use this form to edit, add, or delete a Block Function"; ! $lang['Function'] = "Block function"; $lang['Function_name'] = "Block Function Name"; $lang['Function_desc'] = "Description"; --- 168,172 ---- $lang['Function_admin'] = "Block Function Administration"; $lang['Function_admin_explain'] = "Each Module has one or more Block Functions. Use this form to edit, add, or delete a Block Function"; ! $lang['Function'] = "Block Function"; $lang['Function_name'] = "Block Function Name"; $lang['Function_desc'] = "Description"; *************** *** 231,237 **** $lang['Show_title_explain'] = "Whether or not to display the block title"; $lang['Show_block'] = "Show Block?"; ! $lang['Show_block_explain'] = "- if 'no', the Block is hidden to all users, except administrators"; $lang['Show_stats'] = "Show Statistics?"; ! $lang['Show_stats_explain'] = "- if 'yes', 'edited by...' will be displayed below the block"; $lang['Show_blocks'] = "View Function Blocks"; $lang['Block_delete'] = "Delete a Block"; --- 231,237 ---- $lang['Show_title_explain'] = "Whether or not to display the block title"; $lang['Show_block'] = "Show Block?"; ! $lang['Show_block_explain'] = "- If 'no', the Block is hidden to all users, except administrators"; $lang['Show_stats'] = "Show Statistics?"; ! $lang['Show_stats_explain'] = "- If 'yes', 'edited by...' will be displayed below the block"; $lang['Show_blocks'] = "View Function Blocks"; $lang['Block_delete'] = "Delete a Block"; *************** *** 295,299 **** $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"; --- 295,299 ---- $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 address per line.<br>Eg 127.0.0.1 or 127.1.*.*"; $lang['Column_admin'] = "Page Column Administration"; $lang['Column_admin_explain'] = "Administer Page Columns"; *************** *** 340,344 **** $lang['Welcome_install'] = "Welcome to the mxBB-Portal Installation Wizard"; $lang['Install_Instruction'] = "Please, fill out the details requested below. This installation program will create your personalized config.php (in the Portal root directory) and the Portal database with default settings. Once this is done, you'll see a report of all the steps taken (please note mxBB-Portal does not modify your phpBB database in any way). Then, you should login to your board with your administrator username and password and go to the Administration Control Panel to configure your portal upon your own needs. Please note mxBB-Portal will not work by itself, phpBB must already be installed and configured. Thank you for choosing mxBB-Portal."; ! $lang['Upgrade_Instruction'] = "mxBB-Portal is already installed. Please, make backups of your database now !<br /><br />The next step will modify the structure of your database (please note mxBB-Portal does not modify your phpBB database in any way). If for whatever reason this upgrade procedure fails, there would be no other way to return to your current state. Please, make backups of your database BEFORE proceeding !<br /><br />Once done, click the button below to start the upgrade procedure."; $lang['Install_moreinfo'] = "%sRelease Notes%s | %sWelcome Pack%s | %sOnline FAQ%s | %sSupport Forums%s | %sTerms Of Use%s"; $lang['Install_settings'] = "Installation Settings"; --- 340,344 ---- $lang['Welcome_install'] = "Welcome to the mxBB-Portal Installation Wizard"; $lang['Install_Instruction'] = "Please, fill out the details requested below. This installation program will create your personalized config.php (in the Portal root directory) and the Portal database with default settings. Once this is done, you'll see a report of all the steps taken (please note mxBB-Portal does not modify your phpBB database in any way). Then, you should login to your board with your administrator username and password and go to the Administration Control Panel to configure your portal upon your own needs. Please note mxBB-Portal will not work by itself, phpBB must already be installed and configured. Thank you for choosing mxBB-Portal."; ! $lang['Upgrade_Instruction'] = "mxBB-Portal is already installed. Please make backups of your database now !<br /><br />The next step will modify the structure of your database (please note mxBB-Portal does not modify your phpBB database in any way). If for whatever reason this upgrade procedure fails, there would be no other way to return to your current state. Please, make backups of your database BEFORE proceeding !<br /><br />Once done, click the button below to start the upgrade procedure."; $lang['Install_moreinfo'] = "%sRelease Notes%s | %sWelcome Pack%s | %sOnline FAQ%s | %sSupport Forums%s | %sTerms Of Use%s"; $lang['Install_settings'] = "Installation Settings"; |
|
From: Andrew N. \(MHobbit\) <men...@us...> - 2005-10-22 19:02:04
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22341/admin Modified Files: index.php Log Message: And now to undo that... whooo, I know how to use CVS now. :-P Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/index.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** index.php 22 Oct 2005 19:01:12 -0000 1.12 --- index.php 22 Oct 2005 19:01:50 -0000 1.13 *************** *** 33,38 **** require('./pagestart.' . $phpEx); - /* test */ - // ------------------------------ --- 33,36 ---- |
|
From: Andrew N. \(MHobbit\) <men...@us...> - 2005-10-22 19:01:22
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22177/admin Modified Files: index.php Log Message: Just a testing... added the line /* test */ Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/index.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** index.php 1 Oct 2005 14:10:44 -0000 1.11 --- index.php 22 Oct 2005 19:01:12 -0000 1.12 *************** *** 33,36 **** --- 33,38 ---- require('./pagestart.' . $phpEx); + /* test */ + // ------------------------------ |
|
From: Jon O. <jon...@us...> - 2005-10-22 13:03:56
|
Update of /cvsroot/mxbb/core/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8152/install Modified Files: mx_install.php Log Message: updated Index: mx_install.php =================================================================== RCS file: /cvsroot/mxbb/core/install/mx_install.php,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** mx_install.php 22 Oct 2005 10:51:02 -0000 1.51 --- mx_install.php 22 Oct 2005 13:03:43 -0000 1.52 *************** *** 48,52 **** // $mx_portal_name = 'mxBB-Portal'; ! $mx_portal_version = '2.8.1 rc1'; // --- 48,52 ---- // $mx_portal_name = 'mxBB-Portal'; ! $mx_portal_version = '2.8.1 rc7'; // |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:11
|
Update of /cvsroot/mxbb/mx_errordocs/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/templates Added Files: errordocs_body.tpl Log Message: adding this module --- NEW FILE: errordocs_body.tpl --- <table width="{BLOCK_SIZE}" cellpadding="0" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="center" style="padding:4px;">{L_TITLE}</th> </tr> <tr> <td class="row1" valign="top"> <table width="100%" cellpadding="10" cellspacing="0" border="0"> <tr> <td class="row1"> <span class="maintitle"><u><b>{L_TITLE}</b></u></span> <br /> <br /> <br /> <span class="gen">{L_ERROR_LONG}</span> <br /> <br /> <span class="gen">{L_REFERER_INFO}</span> <div style="width:10px;height:100px;"> </div> <div class="gensmall">{L_ERROR_LOGGED}<hr size="1" width="100%">{L_MORE_INFO}<br /><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10" target="_rfc2616">RFC2616 - Hypertext Transfer Protocol -- HTTP/1.1 -- Status Code Definitions</a> </div> </td> </tr> </table> </td> </tr> </table> <br clear="all" /> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:10
|
Update of /cvsroot/mxbb/mx_errordocs/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/admin Added Files: admin_errordocs_log.php Log Message: adding this module --- NEW FILE: admin_errordocs_log.php --- <?php /*************************************************************************** * admin_errordocs_log.php * ----------------------- * begin : September, 2003 * copyright : (c) 2003 Marc Ferran * email : phpmix at pobox.com * module : ErrorDocs * file contents : ErrorDocs Log Management (AdminCP). * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // ====================================================== // [ ADMINCP COMMON INITIALIZATION ] // ====================================================== // // This is how we add an entry to the phpBB Administration Control Panel... // if( !empty($setmodules) ) { $module['ErrorDocs']['Log_Management'] = 'modules/mx_errordocs/admin/' . @basename(__FILE__); return; } // // Setup basic portal stuff... // define('IN_PORTAL', 1); $mx_root_path = '../../../'; $module_root_path = '../'; // // Security and page header... // require($mx_root_path . 'extension.inc'); $no_page_header = TRUE; require($mx_root_path . 'admin/pagestart.' . $phpEx); // // Include common module stuff... // require($module_root_path . 'includes/common.' . $phpEx); // ====================================================== // [ MAIN PROCESS ] // ====================================================== // // Check to see if we need to ask for a module pack. // $mode = $_GET['mode']; $id = $_GET['id']; switch($mode) { case 'delete': $sql = "DELETE FROM ".ERRORDOCS_LOG_TABLE." WHERE id = $id"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't DELETE ErrorDocs LOG record", "", __LINE__, __FILE__, $sql); } break; case 'delall': $sql = "DELETE FROM ".ERRORDOCS_LOG_TABLE; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't DELETE ErrorDocs LOG records", "", __LINE__, __FILE__, $sql); } break; default: break; } // // Setup basic arguments... // $rec_days = ( isset($_GET['recdays']) ? intval($_GET['recdays']) : 7 ); $rec_sort = ( isset($_GET['recsort']) ? $_GET['recsort'] : 'tstamp' ); $this_href = basename(__FILE__).'?recdays='.$rec_days.'&recsort='.$rec_sort; // // Send Page Header... // include_once($mx_root_path . 'admin/page_header_admin.'.$phpEx); // // Report Log... // $template->set_filenames(array( 'body' => "admin/errordocs_log_admin.tpl") ); $sql = 'SELECT t01.id, t01.tstamp, t01.errno, t01.user_id, t01.user_ip, t01.request_uri, t01.http_referer, t02.username'. ' FROM '.ERRORDOCS_LOG_TABLE.' t01, '.USERS_TABLE.' t02'. ' WHERE t01.user_id = t02.user_id'. ( empty($rec_days) ? '' : ' AND t01.tstamp > '.(time() - ($rec_days * 86400)) ). ' ORDER BY '.( $rec_sort == 'username' ? 't02.' : 't01.' ).$rec_sort.', t01.id'; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Couldn't retrieve ErrorDocs LOG data", "", __LINE__, __FILE__, $sql); } $log_count = $db->sql_numrows($result); $log_data = $db->sql_fetchrowset($result); for( $i = 0; $i < $log_count; $i++ ) { $template->assign_block_vars('datarow', array( 'ID' => $log_data[$i]['id'], 'TSTAMP' => create_date('Y-m-d H:i:s', $log_data[$i]['tstamp'], $board_config['board_timezone']), 'ERRNO' => $log_data[$i]['errno'], 'USERNAME' => $log_data[$i]['username'], 'USER_IP' => decode_ip($log_data[$i]['user_ip']), 'REQUEST_URI' => $log_data[$i]['request_uri'], 'HTTP_REFERER' => $log_data[$i]['http_referer'], 'U_DELETE' => append_sid($this_href.'&mode=delete&id='.$log_data[$i]['id'])) ); } $log_days = array(0, 1, 7, 14, 30, 90, 180, 364); $log_days_text = array($lang['All_Records'], $lang['1_Day'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']); $select_rec_days = "\n"; for( $i = 0; $i < count($log_days); $i++ ) { $selected = ( $rec_days == $log_days[$i] ) ? ' selected="selected"' : ''; $select_rec_days .= '<option value="' . $log_days[$i] . '"' . $selected . '>' . $log_days_text[$i] . '</option>'."\n"; } $log_sort = array('tstamp', 'errno', 'username', 'user_ip', 'request_uri', 'http_referer'); $log_sort_text = array($lang['Date'], 'errno', 'User Name', 'User IP', 'Request URI', 'HTTP Referer'); $select_rec_sort = "\n"; for( $i = 0; $i < count($log_sort); $i++ ) { $selected = ( $rec_sort == $log_sort[$i] ) ? ' selected="selected"' : ''; $select_rec_sort .= '<option value="' . $log_sort[$i] . '"' . $selected . '>' . $log_sort_text[$i] . '</option>'."\n"; } $template->assign_vars(array( 'L_ID' => 'Id.', 'L_TSTAMP' => $lang['Date'], 'L_ERRNO' => 'errno', 'L_USERNAME' => 'User Name', 'L_USER_IP' => 'User IP', 'L_REQUEST_URI' => 'Request URI', 'L_HTTP_REFERER' => 'HTTP Referer', 'L_SELECT_REC_DAYS' => $lang['Display_Records'], 'S_SELECT_REC_DAYS' => $select_rec_days, 'L_SORT' => $lang['Select_sort_method'], 'S_SELECT_REC_SORT' => $select_rec_sort, 'U_THIS' => append_sid($this_href), 'L_ACTION' => $lang['Action'], 'L_DELETE' => $lang['Delete'], 'L_DELETE_ALL' => $lang['Delete_all'], 'U_DELETE_ALL' => append_sid($this_href.'&mode=delall'), 'L_ARE_YOU_SURE' => $lang['Are_you_sure'], 'L_TITLE_EXPLAIN' => $lang['Log_Management_Explain'], 'L_TITLE' => $lang['ErrorDocs'].': '.$lang['Log_Management']) ); $template->pparse('body'); // // Send Page Footer... // include_once($mx_root_path . 'admin/page_footer_admin.'.$phpEx); exit; ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:10
|
Update of /cvsroot/mxbb/mx_errordocs/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/includes Added Files: common.php Log Message: adding this module --- NEW FILE: common.php --- <?php /*************************************************************************** * common.php * ---------- * begin : September, 2003 * copyright : (c) 2003 Marc Ferran * email : phpmix at pobox.com * module : ErrorDocs * file contents : Common definitions for the module. * ***************************************************************************/ /*************************************************************************** * * 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 table names. // define('ERRORDOCS_LOG_TABLE', $mx_table_prefix.'errordocs_log'); // // Load language files. // if( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx) ) { include_once($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); } else { include_once($module_root_path . 'language/lang_english/lang_admin.' . $phpEx); } if( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { include_once($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); } else { include_once($module_root_path . 'language/lang_english/lang_main.' . $phpEx); } // ================================================================================ // [ COMMON CLASSES ] // ================================================================================ // // ErrorDocs class // class clsErrorDocs { var $code, $short_info, $long_info, $title, $server_name, $request_uri, $http_referer, $referer_info, $user_id, $user_ip; var $include_codes, $exclude_fiext; // // Constructor... // function clsErrorDocs($max_log_records) { $this->code = 0; $this->include_codes = array(); $this->exclude_fiext = array(); $id = $this->dbMaxId(ERRORDOCS_LOG_TABLE, 'id'); $sql = "DELETE FROM ".ERRORDOCS_LOG_TABLE." WHERE id < ".max(0, ($id - $max_log_records)); $this->dbQuery($sql); } // // Public Methods... // function set_include_codes($include_codes) { $this->include_codes = ( empty($include_codes) ? array() : explode(',', $include_codes) ); } function set_exclude_fiext($exclude_fiext) { $this->exclude_fiext = ( empty($exclude_fiext) ? array() : explode(',', $exclude_fiext) ); } function capture_error_info($code) { global $lang, $userdata, $user_ip; global $HTTP_SERVER_VARS, $HTTP_ENV_VARS, $REMOTE_ADDR; $this->code = $code; // // Retrieve relevant information... // if( !empty($lang['ErrorDocs_Error'][$this->code]['short']) ) { $this->short_info = $lang['ErrorDocs_Error'][$this->code]['short']; $this->long_info = $lang['ErrorDocs_Error'][$this->code]['long']; } else { $this->short_info = $lang['ErrorDocs_Error'][0]['short']; $this->long_info = $lang['ErrorDocs_Error'][0]['long']; } $this->title = sprintf($lang['ErrorDocs_Title'], $this->code.'', $this->short_info); $this->server_name = $HTTP_SERVER_VARS['SERVER_NAME']; $this->request_uri = $HTTP_SERVER_VARS['REQUEST_URI']; $this->http_referer = $HTTP_SERVER_VARS['HTTP_REFERER']; if( !empty($this->http_referer) ) { $this->referer_info = sprintf($lang['ErrorDocs_Referer'], $this->http_referer); } else { $this->referer_info = $lang['ErrorDocs_ChkRequ']; } // // Capture user's identifier... // $this->user_id = $userdata['user_id']; // // Capture user's IP Address (even if behind a proxy)... // $client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR ); if( getenv('HTTP_X_FORWARDED_FOR') != '' ) { if ( preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", getenv('HTTP_X_FORWARDED_FOR'), $ip_list) ) { $private_ip = array('/^0\./', '/^127\.0\.0\.1/', '/^192\.168\..*/', '/^172\.16\..*/', '/^10.\.*/', '/^224.\.*/', '/^240.\.*/'); $client_ip = preg_replace($private_ip, $client_ip, $ip_list[1]); } } $this->user_ip = encode_ip($client_ip); } function is_write_log_allowed() { // // Filter Log Records depending on ErrorDocs_Include_Codes... // if( count($this->include_codes) > 0 && !in_array($this->code, $this->include_codes) ) { return FALSE; } // // Filter Log Records depending on ErrorDocs_Exclude_Extensions... // $uri = parse_url($this->request_uri); $fiext = end(explode('.', $uri['path'])); if( count($this->exclude_fiext) > 0 && in_array($fiext, $this->exclude_fiext) ) { return FALSE; } return TRUE; } function write_log() { global $userdata; if( !$this->is_write_log_allowed() ) { return FALSE; } $id = $this->dbMaxId(ERRORDOCS_LOG_TABLE, 'id'); if( empty($id) ) $id = 0; $id++; $sql = "INSERT INTO ".ERRORDOCS_LOG_TABLE. " (id, tstamp, errno, user_id, user_ip, request_uri, http_referer)". " VALUES ($id, ".time().", $this->code, ".$this->user_id.", '".$this->user_ip."', '".addslashes($this->request_uri)."', '".addslashes($this->http_referer)."')"; if( !$this->dbQuery($sql) ) { if( $userdata['user_level'] == ADMIN ) { message_die(GENERAL_ERROR, "Couldn't insert data into ErrorDocs table", '', __LINE__, __FILE__, $sql); } return FALSE; } return TRUE; } // // DataBase interface... // var $sql; // Last SQL query executed. function dbQuery($sql) { global $db; $this->sql = $sql; $result = $db->sql_query($sql); return $result; } function dbFetchRow($sql) { global $db; $this->sql = $sql; if( !$result = $db->sql_query($sql) ) return false; if( !$row = $db->sql_fetchrow($result) ) return false; return $row; } function dbMaxId($table_name, $table_key) { global $db; $sql = "SELECT MAX(" . $table_key . ") AS max_id FROM " . $table_name; $this->sql = $sql; if( !$row = $this->dbFetchRow($sql) ) return -1; return $row['max_id']; } function dbCount($table_name) { global $db; $sql = "SELECT COUNT(*) AS numrecs FROM " . $table_name; $this->sql = $sql; if( !$row = $this->dbFetchRow($sql) ) return 0; return $row['numrecs']; } } //class clsErrorDocs ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:10
|
Update of /cvsroot/mxbb/mx_errordocs/language/lang_swedish In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/language/lang_swedish Added Files: lang_admin.php lang_main.php Log Message: adding this module --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_main.php * -------------- * begin : July, 2003 * copyright : (c) 2003 Marc Ferran * email : phpmix at pobox.com * module : ErrorDocs * file contents : Main module strings. * language : English * translated by : * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // RFC2616 - Hypertext Transfer Protocol -- HTTP/1.1 // Status Code Definitions // http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10 // // // ErrorDocs v.1.0.0 // $lang['ErrorDocs_Title'] = "HTTP Fel %s: %s"; $lang['ErrorDocs_Referer'] = "Du hänvisades från <a href=\"%1\$s\">%1\$s</a>"; $lang['ErrorDocs_ChkRequ'] = "Vänligen kontrollera din adress."; $lang['ErrorDocs_Logged'] = "Notera: Felet har loggats för senare analys."; $lang['ErrorDocs_MoreInfo'] = "Mer information om HTTP-felkoder:"; $lang['ErrorDocs_400_499'] = "Klientfel, anropet var fel på något sätt."; $lang['ErrorDocs_500_599'] = "Serverfel, servern kunde inte utföra åtgärden."; $lang['ErrorDocs_Error'][0]['short'] = "Okänd"; $lang['ErrorDocs_Error'][0]['long'] = "Servern skickade ett okänt felmeddelande. Detta beteende är förmodligen tillfälligt. Försök igen senare.<br />Kontrollera att du angav en giltig adress."; // // Client Errors... // $lang['ErrorDocs_Error'][400]['short'] = "Felaktigt anrop"; $lang['ErrorDocs_Error'][400]['long'] = "Din webbläsare skickade en felformaterad Host Header (fel syntax) eller så förstod inte servern anropet.<br />Du uppmnanas att inte fortsätta anropa på detta sätt."; $lang['ErrorDocs_Error'][401]['short'] = "Inte tillåten"; $lang['ErrorDocs_Error'][401]['long'] = "Du saknar rättigheter att utföra detta anrop."; $lang['ErrorDocs_Error'][402]['short'] = "Payment Required"; $lang['ErrorDocs_Error'][402]['long'] = "This code is reserved for future use."; $lang['ErrorDocs_Error'][403]['short'] = "Förbjuden"; $lang['ErrorDocs_Error'][403]['long'] = "The server understood the request, but is refusing to fulfill it. The request is forbidden because of some unknown reason.<br />You shouldn't access this resource again."; $lang['ErrorDocs_Error'][404]['short'] = "Hittades inte :("; $lang['ErrorDocs_Error'][404]['long'] = "Sidan hittades inte. Detta kan bero på ett tillfälligt fel. Försök igen senare.<br />Kontrollera att du angav en giltig adress."; $lang['ErrorDocs_Error'][405]['short'] = "Method Not Allowed"; $lang['ErrorDocs_Error'][405]['long'] = "The method specified in the Request-Line is not allowed for the resource identified by the Request-URI."; $lang['ErrorDocs_Error'][406]['short'] = "Not Acceptable"; $lang['ErrorDocs_Error'][406]['long'] = "The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request."; $lang['ErrorDocs_Error'][407]['short'] = "Proxy Authentication Required"; $lang['ErrorDocs_Error'][407]['long'] = "The client must first authenticate itself with the proxy."; $lang['ErrorDocs_Error'][408]['short'] = "Request Timeout"; $lang['ErrorDocs_Error'][408]['long'] = "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time."; $lang['ErrorDocs_Error'][409]['short'] = "Conflict"; $lang['ErrorDocs_Error'][409]['long'] = "The request could not be completed due to a conflict with the current state of the resource."; $lang['ErrorDocs_Error'][410]['short'] = "Gone"; $lang['ErrorDocs_Error'][410]['long'] = "The requested resource is no longer available at the server and no forwarding address is known. This condition is expected to be considered permanent."; $lang['ErrorDocs_Error'][411]['short'] = "Length Required"; $lang['ErrorDocs_Error'][411]['long'] = "The server refuses to accept the request without a defined Content- Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message."; $lang['ErrorDocs_Error'][412]['short'] = "Precondition Failed"; $lang['ErrorDocs_Error'][412]['long'] = "The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server."; $lang['ErrorDocs_Error'][413]['short'] = "Request Entity Too Large"; $lang['ErrorDocs_Error'][413]['long'] = "The server is refusing to process a request because the request entity is larger than the server is willing or able to process."; $lang['ErrorDocs_Error'][414]['short'] = "Request-URI Too Long"; $lang['ErrorDocs_Error'][414]['long'] = "The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret."; $lang['ErrorDocs_Error'][415]['short'] = "Unsupported Media Type"; $lang['ErrorDocs_Error'][415]['long'] = "The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method."; $lang['ErrorDocs_Error'][416]['short'] = "Requested Range Not Satisfiable"; $lang['ErrorDocs_Error'][416]['long'] = "None of the range-specifier values in this field overlap the current extent of the selected resource, and the request did not include an If-Range request-header field."; $lang['ErrorDocs_Error'][417]['short'] = "Expectation Failed"; $lang['ErrorDocs_Error'][417]['long'] = "The expectation given in an Expect request-header field could not be met by this server, or, if the server is a proxy, the server has unambiguous evidence that the request could not be met by the next-hop server."; // // Server Errors... // $lang['ErrorDocs_Error'][500]['short'] = "Internal Server Error"; $lang['ErrorDocs_Error'][500]['long'] = "The server encountered an unexpected condition which prevented it from fulfilling the request."; $lang['ErrorDocs_Error'][501]['short'] = "Not Implemented"; $lang['ErrorDocs_Error'][501]['long'] = "The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource."; $lang['ErrorDocs_Error'][502]['short'] = "Bad Gateway"; $lang['ErrorDocs_Error'][502]['long'] = "The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request."; $lang['ErrorDocs_Error'][503]['short'] = "Service Unavailable"; $lang['ErrorDocs_Error'][503]['long'] = "The server is currently unable to handle the request due to a temporary overloading or maintenance of the server."; $lang['ErrorDocs_Error'][504]['short'] = "Gateway Timeout"; $lang['ErrorDocs_Error'][504]['long'] = "The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access in attempting to complete the request."; $lang['ErrorDocs_Error'][505]['short'] = "HTTP Version Not Supported"; $lang['ErrorDocs_Error'][505]['long'] = "The server does not support, or refuses to support, the HTTP protocol version that was used in the request message."; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * lang_admin.php * -------------- * begin : September, 2003 * copyright : (c) 2003 Marc Ferran * email : phpmix at pobox.com * module : ErrorDocs * file contents : Admin module strings. * language : English * translated by : * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // ErrorDocs v.1.0.0 // $lang['ErrorDocs'] = "ErrorDocs"; $lang['Log_Management'] = "Log Management"; $lang['Log_Management_Explain'] = "Use this form to review and/or delete HTTP Error Log records."; $lang['Display_Records'] = "Display records from previous"; $lang['All_Records'] = "All Records"; $lang['Are_you_sure'] = "Are you sure?"; $lang['Log_Settings'] = "Log Settings"; // ----------------------------------- // Block Parameter Specific // ----------------------------------- $lang['ErrorDocs_Enable_Log'] = "Enable Log"; $lang['ErrorDocs_Enable_Log_explain'] = "Use this parameter to enable or disable the Log (ie. ignore <b>errlog=yes</b>)."; $lang['ErrorDocs_Include_Codes'] = "Include Codes"; $lang['ErrorDocs_Include_Codes_explain'] = "HTTP Error Codes (comma separated list) to Log. All errors logged by default."; $lang['ErrorDocs_Exclude_Extensions'] = "Exclude Extensions"; $lang['ErrorDocs_Exclude_Extensions_explain'] = "File extensions (comma separated list) to ignore from filling the Log (ie. gif,jpg)."; $lang['ErrorDocs_Max_Records'] = "Max Log Records"; $lang['ErrorDocs_Max_Records_explain'] = "Use this parameter to set the maximum number of Log records to keep."; // // That's all Folks! // ------------------------------------------------- ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:10
|
Update of /cvsroot/mxbb/mx_errordocs/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/templates/admin Added Files: errordocs_log_admin.tpl Log Message: adding this module --- NEW FILE: errordocs_log_admin.tpl --- <h1>{L_TITLE}</h1> <p>{L_TITLE_EXPLAIN}</p> <script language="javascript" type="text/javascript"> <!-- function recdays_onchange() { var u_this = "{U_THIS}"; u_this = u_this.replace(/recdays=([0-9]+)&/, "recdays="+document.frmLog.recdays.value+"&"); document.location.href = u_this; } function recsort_onchange() { var u_this = "{U_THIS}"; u_this = u_this.replace(/recsort=(.+)&/, "recsort="+document.frmLog.recsort.value+"&"); document.location.href = u_this; } function doOnDeleteConfirm(p_id) { return confirm((p_id ? "{L_DELETE} id="+p_id : "{L_DELETE_ALL}")+". {L_ARE_YOU_SURE}"); } function doOnDelete(p_id) { return doOnDeleteConfirm(p_id); } function doOnDeleteAll() { if( !doOnDeleteConfirm() ) { return false; } document.location.href = "{U_DELETE_ALL}"; return true; } // --> </script> <form name="frmLog"> <table border="0" cellpadding="2" cellspacing="1" width="100%" class="forumline"> <tr> <th class="thCornerL"> {L_ID} </th> <th class="thTop"> {L_TSTAMP} </th> <th class="thTop"> {L_ERRNO} </th> <th class="thTop"> {L_USERNAME} </th> <th class="thTop"> {L_USER_IP} </th> <th class="thCornerR"> {L_ACTION} </th> </tr> <tr> <th class="thCornerL" colspan="3"> {L_REQUEST_URI} </th> <th class="thCornerR" colspan="3"> {L_HTTP_REFERER} </th> </tr> <!-- BEGIN datarow --> <tr> <td class="row1" align="center"><span class="gensmall">{datarow.ID}</span></td> <td class="row1" align="center"><span class="gensmall">{datarow.TSTAMP}</span></td> <td class="row1" align="center"><span class="gensmall">{datarow.ERRNO}</span></td> <td class="row1" align="center"><span class="gensmall">{datarow.USERNAME}</span></td> <td class="row1" align="center"><span class="gensmall">{datarow.USER_IP}</span></td> <td class="row3" align="center"><span class="gensmall"><a href="{datarow.U_DELETE}" onClick="return doOnDelete({datarow.ID});">{L_DELETE}</a></span></td> </tr> <tr> <td class="row2" colspan="3" align="left"><span class="gensmall">{datarow.REQUEST_URI}</span></td> <td class="row2" colspan="3" align="left"><span class="gensmall"><a href="{datarow.HTTP_REFERER}" target="_referer">{datarow.HTTP_REFERER}</a></span></td> </tr> <!-- END datarow --> <tr> <td class="catBottom" colspan="3" align="center"> <span class="gensmall">{L_SELECT_REC_DAYS}:</span> <select name="recdays" onchange="recdays_onchange();">{S_SELECT_REC_DAYS}</select> </td> <td class="catBottom" colspan="2" align="center"> <span class="gensmall">{L_SORT}:</span> <select name="recsort" onchange="recsort_onchange();">{S_SELECT_REC_SORT}</select> </td> <td class="catBottom" align="center"> <input type="button" class="liteoption" name="delete_all" value="{L_DELETE_ALL}" onClick="return doOnDeleteAll();" /> </td> </tr> </table> </form> <br clear="all" /> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:10
|
Update of /cvsroot/mxbb/mx_errordocs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406 Added Files: db_install.php db_uninstall.php errordocs.pak errordocs.php readme.txt version_history.txt Log Message: adding this module --- NEW FILE: errordocs.php --- <?php /*************************************************************************** * errordocs.php * ------------- * begin : September, 2003 * copyright : (c) 2003 Marc Ferran * email : phpmix at pobox.com * module : ErrorDocs * file contents : ErrorDocs block/standalone * more information : * * RFC2616 - Hypertext Transfer Protocol -- HTTP/1.1 * http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10 * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // -------------------------------------------------------------------------------- // Block Initialization // -------------------------------------------------------------------------------- if( function_exists('read_block_config') ) { // // Running as a Block... // $generate_headers = FALSE; } else { // // Running Standalone... // define('IN_PORTAL', 1); $mx_root_path = '../../'; include_once($mx_root_path . 'extension.inc'); include_once($mx_root_path . 'common.'.$phpEx); $userdata = session_pagestart($user_ip, PAGE_INDEX); mx_init_userprefs($userdata); $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 = 'ErrorDocs' LIMIT 1"; if( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, "Could not query ErrorDocs module information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $block_id = $row['block_id']; } $generate_headers = TRUE; } // // Include common module stuff... // include_once($module_root_path . 'includes/common.' . $phpEx); // // Read block Configuration // $block_config = read_block_config($block_id); $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); $block_enable_log = $block_config[$block_id]['ErrorDocs_Enable_Log']['parameter_value']; $block_include_codes = $block_config[$block_id]['ErrorDocs_Include_Codes']['parameter_value']; $block_exclude_fiext = $block_config[$block_id]['ErrorDocs_Exclude_Extensions']['parameter_value']; $block_max_records = $block_config[$block_id]['ErrorDocs_Max_Records']['parameter_value']; if( $block_enable_log == '' || $block_enable_log == 'TRUE' ) { $block_enable_log = TRUE; } // -------------------------------------------------------------------------------- // Block Procedure // -------------------------------------------------------------------------------- // // Get arguments... // global $HTTP_GET_VARS; $errdoc_code = ( isset($HTTP_GET_VARS['errno']) ) ? intval($HTTP_GET_VARS['errno']) : 0; $errdoc_log = ( isset($HTTP_GET_VARS['errlog']) && $HTTP_GET_VARS['errlog'] == 'yes' && $block_enable_log ) ? TRUE : FALSE; // // ErrorDocs procedure (behind the class)... // $errdoc = new clsErrorDocs($block_max_records); $errdoc->set_include_codes($block_include_codes); $errdoc->set_exclude_fiext($block_exclude_fiext); $errdoc->capture_error_info($errdoc_code); // // Generate header if running standalone... // if( $generate_headers ) { $page_title = $block_title; include($mx_root_path . 'includes/page_header.'.$phpEx); } // // This is the template used to render this block. // $template->set_filenames(array( 'body' => 'errordocs_body.tpl') ); // // Setup common template vars and display the block. // if( $errdoc_log && $errdoc->is_write_log_allowed() ) { // // Ok, try to log the HTTP Error record... // if( $errdoc->write_log() ) { $template->assign_vars(array('L_ERROR_LOGGED' => $lang['ErrorDocs_Logged'].' IP: '.decode_ip($errdoc->user_ip))); } } $template->assign_vars(array( 'L_ERROR_CODE' => $errdoc->code, 'L_ERROR_SHORT' => $errdoc->short_info, 'L_ERROR_LONG' => $errdoc->long_info, 'U_REQUEST_URI' => $errdoc->request_uri, 'L_REFERER_INFO' => $errdoc->referer_info, 'L_MORE_INFO' => $lang['ErrorDocs_MoreInfo'], 'L_SERVER_NAME' => $errdoc->server_name, 'U_MODULE_IMAGES' => PORTAL_URL . $module_root_path . 'templates/images/', 'BLOCK_SIZE' => $block_size, 'L_TITLE' => $errdoc->title) ); $template->pparse('body'); // // Generate footer if running standalone... // if( $generate_headers ) { include_once($mx_root_path . 'includes/page_tail.'.$phpEx); } ?> --- NEW FILE: errordocs.pak --- module=+:55=+:ErrorDocs=+:modules/mx_errordocs/=+:mx_errordocs version 1.0.0=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:55=+:98=+:ErrorDocss=+:=+:errordocs.php=+: parameter=+:98=+:319=+:ErrorDocs_Enable_Log=+:Boolean=+:TRUE=+: parameter=+:98=+:321=+:ErrorDocs_Exclude_Extensions=+:Text=+:ico=+: parameter=+:98=+:320=+:ErrorDocs_Include_Codes=+:Text=+:=+: parameter=+:98=+:322=+:ErrorDocs_Max_Records=+:Number=+:100=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Demo - ErrorDocss=+:Demo block=+:98=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- NEW FILE: db_uninstall.php --- <?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: db_uninstall.php,v 1.1 2005/10/22 12:40:53 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. * ***************************************************************************/ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_INDEX ); mx_init_userprefs( $userdata ); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } // // Read module constants... // $module_root_path = dirname(__FILE__) . '/'; include_once($module_root_path . 'includes/common.'.$phpEx); if( !defined('ERRORDOCS_LOG_TABLE') ) { message_die(GENERAL_ERROR, "Couldn't load file includes/common.$phpEx", "", __LINE__, __FILE__); } // // SQL statements to drop module tables... // $sql = array( "DROP TABLE ".ERRORDOCS_LOG_TABLE ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . mx_do_install_upgrade( $sql ) . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: version_history.txt --- ################################################################# ## ## mx_errordocs module v.1.0.0 for MX-System Portal 2.7+ ## ## mx_errordocs Author: ## - markus_petrux (http://www.phpmix.com) ## ## Editor TabSize = 4 ## v.1.0.0 - 2003/09/22 (markus_petrux) - First time released. ## ## /Markus ## ################################################################# --- NEW FILE: db_install.php --- <?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: db_install.php,v 1.1 2005/10/22 12:40:53 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. * ***************************************************************************/ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_INDEX ); mx_init_userprefs( $userdata ); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } // // Check if install is really needed... // $module_root_path = dirname(__FILE__) . '/'; include_once($module_root_path . 'includes/common.'.$phpEx); if( !defined('ERRORDOCS_LOG_TABLE') ) { message_die(GENERAL_ERROR, "Couldn't load file includes/common.$phpEx", "", __LINE__, __FILE__); } // // SQL statements to build required module tables... // $sql = array( // // Table: ErrorDocs Log // "CREATE TABLE ".ERRORDOCS_LOG_TABLE." ( id INT(11) DEFAULT '0' NOT NULL, tstamp INT(11) DEFAULT '0' NOT NULL, errno SMALLINT(5) DEFAULT '0' NOT NULL, user_id MEDIUMINT(8) DEFAULT '0' NOT NULL, user_ip CHAR(8) DEFAULT '', request_uri VARCHAR(255) DEFAULT '', http_referer VARCHAR(255) DEFAULT '', PRIMARY KEY (tstamp) )" ); $n = 0; $message = "<b>This list is a result of the SQL queries needed for this Module</b><br/><br/>"; while($sql[$n]) { $message .= ($mods[$n-1] != $mods[$n]) ? '<p><b><font size=3>'.$mods[$n].'</font></b><br/>' : ''; if( !$result = $db->sql_query($sql[$n]) ) { $message .= '<b><font color=#FF0000>[Error or Already added]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; } else { $message .='<b><font color=#0000fF>[Added/Updated]</font></b> line: '.($n+1).' , '.$sql[$n].'<br />'; } $n++; } $message .= '<br />If you get some Error, Already Added or Updated, relax, this is normal when updating modules'; echo '<br /> <br />'; echo '<table cellpadding="4" cellspacing="1" border="0" class="forumline">'; echo '<tr><th class="thHead" align="center">Module Installation Information</th></tr>'; echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ?> --- NEW FILE: readme.txt --- mx_errordocs module for MX-System Portal 2.7+ ====================================================================== - Author: markus_petrux (http://www.phpmix.com) - Installation: Please, read this topic for details: http://www.phpmix.com/phpBB2/viewtopic.php?p=124 - Demo: http://www.phpmix.com/index.php?page=15&errno=404 - Changes: Please, read file version_history.txt ====================================================================== |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:10
|
Update of /cvsroot/mxbb/mx_errordocs/templates/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/templates/images Added Files: burst.gif Log Message: adding this module --- NEW FILE: burst.gif --- (This appears to be a binary file; contents omitted.) |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:41:07
|
Update of /cvsroot/mxbb/mx_errordocs/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4406/language/lang_english Added Files: lang_admin.php lang_main.php Log Message: adding this module --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_main.php * -------------- * begin : July, 2003 * copyright : (c) 2003 Marc Ferran * email : phpmix at pobox.com * module : ErrorDocs * file contents : Main module strings. * language : English * translated by : * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // RFC2616 - Hypertext Transfer Protocol -- HTTP/1.1 // Status Code Definitions // http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10 // // // ErrorDocs v.1.0.0 // $lang['ErrorDocs_Title'] = "HTTP Error %s: %s"; $lang['ErrorDocs_Referer'] = "You were referred from <a href=\"%1\$s\">%1\$s</a>"; $lang['ErrorDocs_ChkRequ'] = "Please, check your request for typing errors and retry."; $lang['ErrorDocs_Logged'] = "Note: Information on this error event has been logged for later analysis."; $lang['ErrorDocs_MoreInfo'] = "More Information on HTTP Error Codes:"; $lang['ErrorDocs_400_499'] = "Client Error, the request was invalid in some way."; $lang['ErrorDocs_500_599'] = "Server Error, the server could not fulfil the (valid) request."; $lang['ErrorDocs_Error'][0]['short'] = "Unknown"; $lang['ErrorDocs_Error'][0]['long'] = "The server response is sending an unknown error code. This condition may be temporary. You may try again later.<br />The address you entered or link you followed may have been mistyped. You may try retyping the address."; // // Client Errors... // $lang['ErrorDocs_Error'][400]['short'] = "Bad Request"; $lang['ErrorDocs_Error'][400]['long'] = "Your browser sent a request with a malformed Host Header bad syntax or that this server could not understand it.<br />You are discouraged from repeating the request without modification."; $lang['ErrorDocs_Error'][401]['short'] = "Unauthorized"; $lang['ErrorDocs_Error'][401]['long'] = "The request requires user authentication."; $lang['ErrorDocs_Error'][402]['short'] = "Payment Required"; $lang['ErrorDocs_Error'][402]['long'] = "This code is reserved for future use."; $lang['ErrorDocs_Error'][403]['short'] = "Forbidden"; $lang['ErrorDocs_Error'][403]['long'] = "The server understood the request, but is refusing to fulfill it. The request is forbidden because of some unknown reason.<br />You shouldn't access this resource again."; $lang['ErrorDocs_Error'][404]['short'] = "Not Found"; $lang['ErrorDocs_Error'][404]['long'] = "The server has not found any resources matching the Request-URI. This condition may be temporary. You may try again later.<br />The address you entered or link you followed may have been mistyped. You may try retyping the address."; $lang['ErrorDocs_Error'][405]['short'] = "Method Not Allowed"; $lang['ErrorDocs_Error'][405]['long'] = "The method specified in the Request-Line is not allowed for the resource identified by the Request-URI."; $lang['ErrorDocs_Error'][406]['short'] = "Not Acceptable"; $lang['ErrorDocs_Error'][406]['long'] = "The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request."; $lang['ErrorDocs_Error'][407]['short'] = "Proxy Authentication Required"; $lang['ErrorDocs_Error'][407]['long'] = "The client must first authenticate itself with the proxy."; $lang['ErrorDocs_Error'][408]['short'] = "Request Timeout"; $lang['ErrorDocs_Error'][408]['long'] = "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time."; $lang['ErrorDocs_Error'][409]['short'] = "Conflict"; $lang['ErrorDocs_Error'][409]['long'] = "The request could not be completed due to a conflict with the current state of the resource."; $lang['ErrorDocs_Error'][410]['short'] = "Gone"; $lang['ErrorDocs_Error'][410]['long'] = "The requested resource is no longer available at the server and no forwarding address is known. This condition is expected to be considered permanent."; $lang['ErrorDocs_Error'][411]['short'] = "Length Required"; $lang['ErrorDocs_Error'][411]['long'] = "The server refuses to accept the request without a defined Content- Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message."; $lang['ErrorDocs_Error'][412]['short'] = "Precondition Failed"; $lang['ErrorDocs_Error'][412]['long'] = "The precondition given in one or more of the request-header fields evaluated to false when it was tested on the server."; $lang['ErrorDocs_Error'][413]['short'] = "Request Entity Too Large"; $lang['ErrorDocs_Error'][413]['long'] = "The server is refusing to process a request because the request entity is larger than the server is willing or able to process."; $lang['ErrorDocs_Error'][414]['short'] = "Request-URI Too Long"; $lang['ErrorDocs_Error'][414]['long'] = "The server is refusing to service the request because the Request-URI is longer than the server is willing to interpret."; $lang['ErrorDocs_Error'][415]['short'] = "Unsupported Media Type"; $lang['ErrorDocs_Error'][415]['long'] = "The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method."; $lang['ErrorDocs_Error'][416]['short'] = "Requested Range Not Satisfiable"; $lang['ErrorDocs_Error'][416]['long'] = "None of the range-specifier values in this field overlap the current extent of the selected resource, and the request did not include an If-Range request-header field."; $lang['ErrorDocs_Error'][417]['short'] = "Expectation Failed"; $lang['ErrorDocs_Error'][417]['long'] = "The expectation given in an Expect request-header field could not be met by this server, or, if the server is a proxy, the server has unambiguous evidence that the request could not be met by the next-hop server."; // // Server Errors... // $lang['ErrorDocs_Error'][500]['short'] = "Internal Server Error"; $lang['ErrorDocs_Error'][500]['long'] = "The server encountered an unexpected condition which prevented it from fulfilling the request."; $lang['ErrorDocs_Error'][501]['short'] = "Not Implemented"; $lang['ErrorDocs_Error'][501]['long'] = "The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource."; $lang['ErrorDocs_Error'][502]['short'] = "Bad Gateway"; $lang['ErrorDocs_Error'][502]['long'] = "The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request."; $lang['ErrorDocs_Error'][503]['short'] = "Service Unavailable"; $lang['ErrorDocs_Error'][503]['long'] = "The server is currently unable to handle the request due to a temporary overloading or maintenance of the server."; $lang['ErrorDocs_Error'][504]['short'] = "Gateway Timeout"; $lang['ErrorDocs_Error'][504]['long'] = "The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access in attempting to complete the request."; $lang['ErrorDocs_Error'][505]['short'] = "HTTP Version Not Supported"; $lang['ErrorDocs_Error'][505]['long'] = "The server does not support, or refuses to support, the HTTP protocol version that was used in the request message."; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * lang_admin.php * -------------- * begin : September, 2003 * copyright : (c) 2003 Marc Ferran * email : phpmix at pobox.com * module : ErrorDocs * file contents : Admin module strings. * language : English * translated by : * ***************************************************************************/ /*************************************************************************** * * 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. * ***************************************************************************/ // // ErrorDocs v.1.0.0 // $lang['ErrorDocs'] = "ErrorDocs"; $lang['Log_Management'] = "Log Management"; $lang['Log_Management_Explain'] = "Use this form to review and/or delete HTTP Error Log records."; $lang['Display_Records'] = "Display records from previous"; $lang['All_Records'] = "All Records"; $lang['Are_you_sure'] = "Are you sure?"; $lang['Log_Settings'] = "Log Settings"; // ----------------------------------- // Block Parameter Specific // ----------------------------------- $lang['ErrorDocs_Enable_Log'] = "Enable Log"; $lang['ErrorDocs_Enable_Log_explain'] = "Use this parameter to enable or disable the Log (ie. ignore <b>errlog=yes</b>)."; $lang['ErrorDocs_Include_Codes'] = "Include Codes"; $lang['ErrorDocs_Include_Codes_explain'] = "HTTP Error Codes (comma separated list) to Log. All errors logged by default."; $lang['ErrorDocs_Exclude_Extensions'] = "Exclude Extensions"; $lang['ErrorDocs_Exclude_Extensions_explain'] = "File extensions (comma separated list) to ignore from filling the Log (ie. gif,jpg)."; $lang['ErrorDocs_Max_Records'] = "Max Log Records"; $lang['ErrorDocs_Max_Records_explain'] = "Use this parameter to set the maximum number of Log records to keep."; // // That's all Folks! // ------------------------------------------------- ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:40:58
|
Update of /cvsroot/mxbb/mx_dev_startkit/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4328/language/lang_english Added Files: lang_admin.php lang_main.php Log Message: adding this module --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_admin.php * ------------------- * begin : Sunday, Mar 31, 2003 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: lang_main.php,v 1.1 2005/10/22 12:40:33 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. * ***************************************************************************/ // // Block specific // $lang['Startkit_info'] = 'This is a developers startkit exampmle block'; $lang['Test_string'] = 'This is block parameter (string), with value: '; $lang['Test_number'] = 'This is block parameter (number), with value: '; $lang['Test_config1'] = 'This is a config setting, with value: '; $lang['Test_config2'] = 'This is a second config setting, with value: '; $lang['Test_get_par'] = 'This block recognises the GET var "test". Try adding "&test=whatever" to the page url.'; ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * lang_admin.php * ------------------- * begin : Sunday, Mar 31, 2003 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: lang_admin.php,v 1.1 2005/10/22 12:40:33 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. * ***************************************************************************/ // // AdminCP lang keys // - only needed if the module has its own adminCP panel, typically when the module requires extra db tables for its setup (operations) // $lang['mx_startkit_admin'] = 'mxBB Startkit Example AdminCP'; $lang['mx_forum_admin_explain'] = 'This panel demonstrates how the module may be configured using additional db tables.'; $lang['startkit_config1'] = 'First test config'; $lang['startkit_config1_explain'] = 'More info is given here'; $lang['startkit_config2'] = 'Second test config'; $lang['startkit_config2_explain'] = 'More info is given here'; // // Block Parameter lang keys // - only needed if the module has block parameters // // The lang key and the block parameter name should match, to make the adminCP identify the parameter and display its description // $lang['startkit_test_string'] = 'Test string'; $lang['startkit_test_string_explain'] = 'More info is given here'; $lang['startkit_test_number'] = 'Test number'; $lang['startkit_test_number_explain'] = 'More info is given here'; ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:40:50
|
Update of /cvsroot/mxbb/mx_dev_startkit/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4328/templates/subSilver Added Files: startkit_body.tpl Log Message: adding this module --- NEW FILE: startkit_body.tpl --- <script type="text/javascript" src="{SCRIPT_PATH}/templates/rollout.js"></script> <tr> <td width="100%" colspan="2"> <!-- BEGIN switch_forums_phpbb --> <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> <tr> <th align="center" class="thTop" colspan="2" nowrap="nowrap" colspan="2"> {L_NEWS_FORUMS} </th> </tr> <!-- END switch_forums_phpbb --> <!-- BEGIN catrow --> <tr> <td class="cat" align="center"><a href="#" onClick="toggle('cat_{catrow.CAT_ID}', '../templates/subSilver/images/'); return false;"><img src="../templates/subSilver/images/contract.gif" border="0" id="cat_{catrow.CAT_ID}_img" /></a> <td class="cat" ><span class="cattitle">{catrow.CAT_NAME}</span></td> </tr> <tbody id="cat_{catrow.CAT_ID}"> <!-- BEGIN forumrow_phpbb --> <tr> <td class="row1" align="center" valign="top"><input type="checkbox" name="{SELECT_NAME}[{catrow.forumrow_phpbb.FORUM_ID}]" value="1" {catrow.forumrow_phpbb.CHECKED} /></td> <td class="row1" align="left" valign="top"><span class="forumlink">{catrow.forumrow_phpbb.FORUM_NAME}</span><br /><span class="gensmall">{catrow.forumrow_phpbb.FORUM_DESC}</span></td> </tr> <!-- END forumrow_phpbb --> </tbody> <!-- END catrow --> <!-- BEGIN switch_forums_phpbb --> </table> <!-- END switch_forums_phpbb --> </td> </tr> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:40:50
|
Update of /cvsroot/mxbb/mx_dev_startkit/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4328/admin Added Files: mx_module_defs.php Log Message: adding this module --- NEW FILE: mx_module_defs.php --- <?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 : * ------------------------------------------------------------------------- * * $Id: mx_module_defs.php,v 1.1 2005/10/22 12:40:33 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_blockcp_parameter | The mx_blockcp_parameter object provides extra module block parameters, added to the standard core parameters. | | Usage examples: | \********************************************************************************/ // // The following flags are class specific options // //define('MX_ALL_DATA' , -1); // Flag - write all data class mx_module_defs { // ------------------------------ // Private Methods // // // =================================================== // define module specific block parameters // =================================================== function get_parameters($type_row = '') { global $lang; if (empty($type_row)) { $type_row = array(); } $type_row['phpbb_type_select'] = !empty($lang['ParType_phpbb_type_select']) ? $lang['ParType_phpbb_type_select'] : "phpBB Source"; return $type_row; } // =================================================== // Submit custom parameter field and data // =================================================== function submit_module_parameters( $parameter_data, $block_id ) { global $HTTP_POST_VARS, $db, $board_config, $html_entities_match, $html_entities_replace; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_id']]; $parameter_opt = ''; switch ( $parameter_data['parameter_type'] ) { case 'phpbb_type_select': $parameter_value = addslashes( serialize( $parameter_value ) ); break; } 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 ) { global $template, $mx_blockcp, $mx_root_path, $theme, $lang; switch ( $parameter_data['parameter_type'] ) { case 'phpbb_type_select': $this->display_edit_Phpbb_type_select( $block_id, $parameter_data['parameter_id'], $parameter_data ); break; } } function display_edit_Phpbb_type_select( $block_id, $parameter_id, $parameter_data ) { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; $module_root_path = $mx_root_path . $mx_blockcp->module_root_path; include_once( $module_root_path . "includes/phpbb_constants.$phpEx" ); include_once( $module_root_path . "includes/phpbb_defs.$phpEx" ); 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) ); // Get number of forums in db $sql = "SELECT * FROM " . NEWS_CAT_TABLE . " ORDER BY $cat_extract_order"; if ( !( $result = $db->sql_query( $sql ) ) ) { message_die( GENERAL_ERROR, "Couldn't obtain forums information.", "", __LINE__, __FILE__, $sql ); } $forums = $db->sql_fetchrowset( $result ); // Get array of categories from the database $sql = "SELECT cat_id, cat_title FROM " . CATEGORIES_TABLE . " ORDER BY cat_order"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, "Couldn't obtain category list.", "", __LINE__, __FILE__, $sql ); } $categories = $db->sql_fetchrowset( $result ); $phpbb_type_select_data = ( !empty( $mx_blockcp->block_parameters['Source_phpBB_Forums']['parameter_value'] ) ) ? unserialize($mx_blockcp->block_parameters['Source_phpBB_Forums']['parameter_value']) : array(); // // Check that some categories exist // if ( $total_categories = count( $categories ) ) { // // Check that some forums exist (these were queried earlier) // if ( $total_forums = count( $forums ) ) { $template->assign_block_vars( 'switch_forums_phpbb', array( 'COLSPAN' => count( $item_types_array ) + 2 ) ); for( $i = 0; $i < $total_categories; $i++ ) { $template->assign_block_vars( 'catrow', array( 'CAT_ID' => $categories[$i]['cat_id'], 'COLSPAN' => count( $item_types_array ) + 1, 'CAT_NAME' => $categories[$i]['cat_title'] ) ); for( $j = 0; $j < $total_forums; $j++ ) { if ( $forums[$j]['cat_id'] == $categories[$i]['cat_id'] || $forums[$j]['cat_id'] == '' ) { $template->assign_block_vars( 'catrow.forumrow_phpbb', array( 'FORUM_ID' => $forums[$j][$catt_id], 'FORUM_NAME' => $forums[$j][$catt_name], 'FORUM_DESC' => $forums[$j][$catt_desc], 'CHECKED' => ( $phpbb_type_select_data[$forums[$j]['forum_id']] ? 'CHECKED' : '' ), )); } } } } } $template->assign_vars(array( 'NAME' => $lang[$parameter_data['parameter_name']], 'SELECT_NAME' => $parameter_data['parameter_id'], 'PARAMETER_TITLE' => ( !empty($lang[$parameter_data['parameter_name']]) ) ? $lang[$parameter_data['parameter_name']] : $parameter_data['parameter_name'], 'PARAMETER_TYPE' => ( !empty($lang["ParType_".$parameter_data['parameter_type']]) ) ? $lang["ParType_".$parameter_data['parameter_type']] : '', 'PARAMETER_TYPE_EXPLAIN' => ( !empty($lang["ParType_".$parameter_data['parameter_type'] . "_info"]) ) ? '<br />' . $lang["ParType_".$parameter_data['parameter_type'] . "_info"] : '', 'SCRIPT_PATH' => $module_root_path, 'I_ANNOUNCE' => PHPBB_URL . $images['folder_announce'], 'I_STICKY' => PHPBB_URL . $images['folder_sticky'], 'I_NORMAL' => PHPBB_URL . $images['folder'], 'L_ANNOUNCEMENT' => $lang['Post_Announcement'], 'L_STICKY' => $lang['Post_Sticky'], 'L_NORMAL' => $lang['Posted'], )); $template->pparse('parameter'); } } ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:40:50
|
Update of /cvsroot/mxbb/mx_dev_startkit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4328 Added Files: db_install.php db_uninstall.php db_upgrade.php mx_dev_startkit.php Log Message: adding this module --- NEW FILE: db_upgrade.php --- <?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: db_upgrade.php,v 1.1 2005/10/22 12:40:33 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. */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_INDEX ); mx_init_userprefs( $userdata ); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = 'mxBB - phpBB Integration Module 1.0.3'; $mx_module_copy = 'Based on <a href="http://www.phpbb.com/" target="_phpbb" >phpBB</a>'; $sql = array(); // // Precheck // if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "phpbb_plugin_config" ) ) { // // Upgrade checks // $upgrade_101 = 0; $upgrade_102 = 0; $upgrade_103 = 0; $upgrade_104 = 0; $upgrade_105 = 0; $upgrade_106 = 0; $upgrade_107 = 0; // // validate before 1.01 // $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "phpbb_plugin_config WHERE config_name = 'override_default_pages'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_101 = 1; } $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "phpbb_plugin_config WHERE config_name = 'enable_module'" ); if ( $db->sql_numrows( $result ) == 0 ) { $upgrade_102 = 1; } $message = "<b>Upgrading!</b><br/><br/>"; if ( $upgrade_101 == 1 ) { $message .= "<b>Upgrading to v. 1.01...</b><br/><br/>"; $sql[] = "CREATE TABLE " . $mx_table_prefix . "phpbb_plugin_config ( config_name VARCHAR(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ) TYPE=MyISAM"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('override_default_pages', 'Block_setup')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('faq', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('groupcp', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('index', '2')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('login', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('memberlist', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('modcp', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('posting', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('privmsg', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('profile', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('search', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('viewonline', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('other', '0')"; } else if ( $upgrade_102 == 1 ) { $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('enable_module', '1')"; } else { $message .= "<b>Nothing to upgrade...</b><br/><br/>"; } $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); } else { // // If not installed // $message = "<b>Module is not installed...and thus cannot be upgraded ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: db_uninstall.php --- <?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: db_uninstall.php,v 1.1 2005/10/22 12:40:33 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. */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_INDEX ); mx_init_userprefs( $userdata ); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $sql = array( "DROP TABLE IF EXISTS " . $mx_table_prefix . "phpbb_plugin_config", ); echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . mx_do_install_upgrade( $sql ) . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: db_install.php --- <?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: db_install.php,v 1.1 2005/10/22 12:40:33 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. */ define( 'IN_PORTAL', true ); if ( !defined( 'IN_ADMIN' ) ) { $mx_root_path = './../../'; include( $mx_root_path . 'extension.inc' ); include( $mx_root_path . 'common.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_INDEX ); mx_init_userprefs( $userdata ); if ( !$userdata['session_logged_in'] ) { die( "Hacking attempt(1)" ); } if ( $userdata['user_level'] != ADMIN ) { die( "Hacking attempt(2)" ); } // End session management } $mx_module_version = 'mxBB - phpBB Integration Module 1.0.3'; $mx_module_copy = 'Based on <a href="http://www.phpbb.com/" target="_phpbb">phpBB</a>'; // If fresh install if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "phpbb_plugin_config" ) ) { $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "phpbb_plugin_config"; $sql[] = "CREATE TABLE " . $mx_table_prefix . "phpbb_plugin_config ( config_name VARCHAR(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ) TYPE=MyISAM"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('override_default_pages', 'Block_setup')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('enable_module', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('faq', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('groupcp', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('index', '2')"; //$sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('viewforum', '0')"; //$sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('viewtopic', '0')"; //$sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('modcp', '0')"; //$sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('posting', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('login', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('memberlist', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('privmsg', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('profile', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('search', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('viewonline', '0')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "phpbb_plugin_config VALUES ('other', '0')"; $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', module_copy = '" . $mx_module_copy . "' WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); } else { // If already installed $message = "<b>Module is already installed...consider upgrading ;)</b><br/><br/>"; } echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- NEW FILE: mx_dev_startkit.php --- <?php /*************************************************************************** * mx_index.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: mx_dev_startkit.php,v 1.1 2005/10/22 12:40:33 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. * ***************************************************************************/ /********************************************************************************\ | Developers Startkit Module |******************************************************************************** | | General Core resources | ------------------ | Every block inherit a basic set of block and page attributes. These are obtained from the mx_block and mx_page objects. | Core also defines a set of basic variables | | | Examples: | | Block attributes: $mx_block->block_id, $mx_block->block_title|block_desc, $mx_block->auth_view|auth_edit|auth_mod | Page attributes: $mx_page->info['page_name'] | Basic variables: $mx_root_path (string), $phpbb_root_path (string), $template (object), $db (object) | | The full list of object attributes are available in the classes technical notes (see includes/mx_functions_core.php). | The full set of portal predefined variables are defined in includes/mx_constants.php | | Handy Core methods | ------------------ | When porting phpBB MODs to mxBB, typically you need a few standard rewrites. The mx_modules class provides a handy set of methods. | | | Examples: | | $mx_module->append_sid() | $mx_module->redirect() | $mx_module->make_jumpbox() | $mx_module->generate_pagination() | $mx_module->smilies_pass() | $mx_module->generate_smilies() | | | Remember: All instances of page_header and page_tail inclusions should be removed, not to interfer with mxBB headers | | | Module Parameters Api | ------------------ | Core provides a rich set of parameter types. Additional block specific types are defined in module_root/admin/mx_module_defs.php. | Block parameters are accessed with the mx_block->get_parameters() method. | | mx_block->get_parameters() Api | | Available switches: MX_GET_ALL_PARS, MX_GET_PAR_VALUE (default), MX_GET_PAR_OPTIONS | | Examples: | | $mx_block->get_parameters( MX_GET_ALL_PARS ) | - returns an array with all parameters :: array('par_name1' => $par1_value, 'par_name2' => $par2_value, ...) | | $mx_block->get_parameters( 'parameter_name' ) | - returns value for 'parameter_name' | | $mx_block->get_parameters( 'parameter_name', MX_GET_PAR_OPTIONS ) | - returns options for 'parameter_name', eg bbcodes etc | | | Module Settings using additional db tables | ------------------ | More advanced modules need additional settings, intended for ALL module blocks. | For example, a image album module needs a defined pics folder and other modules may use global settings | NOTE: Block specific parameters should never use additional (non portal) db tables, since such data is NOT included in the portal cache engine and therefore speed will be affected. | | Example: | | Data should be managed in an axtra module adminCP panel | Db tables to be used should be defined in the includes/mx_module_constants.php file | Data should be accessed using the standard $db api. | \********************************************************************************/ if( !defined('IN_PORTAL') ) { die("Hacking attempt !!!"); } // // Load POST/GET vars // - When php.ini is set with Register Globals Off (highly recommended due to security), you need to declare all GET/POST vars // - The $mx_request_vars api is documented in includes/mx_functions.php. // $test_get_var = $mx_request_vars->request('test', MX_TYPE_INT, 1); // In this example the GET var is validated for integer and set to '1' as default (if no GET var is given) // Load main module configs (using an additional db tables) // Consider if this is really needed for the module, since it requeres one additinal db query per page block instance // $sql = "SELECT * FROM " . STARTKIT_CONFIG_TABLE; if ( !$result = $db->sql_query( $sql ) ) { message_die( CRITICAL_ERROR, "Could not query config information in kb_config", "", __LINE__, __FILE__, $sql ); } else { $mx_module_config = array(); while ( $results = $db->sql_fetchrow( $result ) ) { $config_name = $results['config_name']; $config_value = $results['config_value']; $mx_module_configs[$config_name] = $config_value; } } // // Load module block parameters // - be careful not to use too common variable names - to avoid conflicts with other blocks // // If possible, do this instead // // $mx_startkit_pars['test_string'] = $mx_block->get_parameters( 'startkit_test_string' ); // $mx_startkit_pars['test_number'] = $mx_block->get_parameters( 'startkit_test_number' ); // $mx_par_test_string = $mx_block->get_parameters( 'startkit_test_string' ); $mx_par_test_number = $mx_block->get_parameters( 'startkit_test_number' ); // // Load module constants and functions // include_once($mx_root_path . $mx_block->module_root_path . "includes/mx_module_constants.$phpEx"); // Will load additional module lang keys, definitions, copyrights and theme data include_once($mx_root_path . $mx_block->module_root_path . "includes/mx_module_functions.$phpEx"); // Will load additional module functions (be sure to prefix with 'mx_' to avoid function conflicts) // // Load module functions // $mx_startkit = new mx_startkit; // // Start output of Block // $template->set_filenames( array( 'body' => 'kb_index_body.tpl' )); // // Block Body // - not much to do in this simple block // /* ... */ // // Use a module function // $mx_manipulated_test_number = $mx_startkit->double($mx_par_test_number); // // Pass Block data to template // $template->assign_vars( array( 'L_STARTKIT_INFO' => $lang['Startkit_info'], 'L_TEST_STRING' => $lang['Test_string'], 'L_TEST_NUMBER' => $lang['Test_number'], 'L_TEST_NUMBER' => $lang['Test_config1'], 'L_TEST_NUMBER' => $lang['Test_config2'], 'L_TEST_GET_PAR' => $lang['Test_get_par'], 'TEST_STRING' => $mx_par_test_string, 'TEST_NUMBER' => $mx_par_test_number, 'MANIPULATED_TEST_NUMBER' => $mx_manipulated_test_number, 'TEST_CONFIG1' => $mx_module_configs['startkit_config1'], 'TEST_CONFIG2' => $mx_module_configs['startkit_config2'], 'TEST_GET_PAR' => $par_test_get_par )); // // Generate Block // $template->pparse( 'body' ); ?> |
|
From: Jon O. <jon...@us...> - 2005-10-22 12:40:47
|
Update of /cvsroot/mxbb/mx_dev_startkit/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4328/includes Added Files: startkit_constants.php startkit_functions.php Log Message: adding this module --- NEW FILE: startkit_constants.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: startkit_constants.php,v 1.1 2005/10/22 12:40:33 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. */ // ---------------------------------------------------------------------START // This file defines specific constants for the module // ------------------------------------------------------------------------- define( 'STARTKIT_CONFIG_TABLE', $mx_table_prefix . 'dev_startkit_config' ); // ********************************************************************** // Read theme definition // ********************************************************************** if ( file_exists( $module_root_path . "templates/" . $theme['template_name'] . "/images" ) ) { // ---------- $current_template_images = $module_root_path . "templates/" . $theme['template_name'] . "/images" ; // ---------- } else { // ---------- $current_template_images = $module_root_path . "templates/" . "subSilver" . "/images" ; // ---------- } $images['startkit_image'] = $current_template_images . "/dev_startkit.gif"; // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $mx_root_path . $mx_block->module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); $link_language = 'lang_english'; } else { include( $mx_root_path . $mx_block->module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); $link_language = 'lang_' . $board_config['default_lang']; } // // Module Copyrights // $mxbb_footer_addup[] = 'mxBB Dev Startkit Module'; // ---------- $phpbb_module_version = "1.0"; $phpbb_module_author = "mxBB Team"; ?> --- NEW FILE: startkit_functions.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: startkit_functions.php,v 1.1 2005/10/22 12:40:33 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. */ // // Module functions class // Do not define module functions outside this class!! // class mx_startkit { // // Public Methods // /********************************************************************************\ | Double \********************************************************************************/ function double($number = 0) { $new_number = 2 * $number; return $new_number; } } ?> |