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-05-26 21:54:21
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x/modules/mx_textblocks Modified Files: mx_textblock_bbcode.php mx_textblock_html.php mx_textblock_multi.php Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 Index: mx_textblock_html.php =================================================================== RCS file: /cvsroot/mxbb/core27x/modules/mx_textblocks/mx_textblock_html.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_textblock_html.php 6 May 2005 06:48:08 -0000 1.1 --- mx_textblock_html.php 26 May 2005 21:54:09 -0000 1.2 *************** *** 11,18 **** ***************************************************************************/ ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; ! $message = $block_config[$block_id][Html]['parameter_value']; // --- 11,33 ---- ***************************************************************************/ ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! if( !defined('IN_PORTAL') ) ! { ! die("Hacking attempt"); ! } ! ! ! $block_config = read_block_config($block_id); ! ! $title = $block_config[$block_id]['block_title']; ! $message = $block_config[$block_id]['Html']['parameter_value']; ! ! $message = str_replace("\n", "\n<br />\n", $message); // *************** *** 20,24 **** // $template->set_filenames(array( ! "body_block" => "mx_textblock_html.tpl") ); --- 35,39 ---- // $template->set_filenames(array( ! 'body_block' => 'mx_textblock_html.tpl') ); *************** *** 31,36 **** if ( $is_auth_ary[auth_edit] ) { ! $s_hidden_fields = '<input type="hidden" name="id" value="' . $block_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edithtml" />'; --- 46,51 ---- if ( $is_auth_ary[auth_edit] ) { ! $s_hidden_fields = '<input type="hidden" name="block_id" value="' . $block_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="portalpage" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edithtml" />'; *************** *** 56,61 **** ); ! $template->pparse("body_block"); ! ?> --- 71,76 ---- ); ! $template->pparse('body_block'); ! ?> \ No newline at end of file Index: mx_textblock_multi.php =================================================================== RCS file: /cvsroot/mxbb/core27x/modules/mx_textblocks/mx_textblock_multi.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_textblock_multi.php 6 May 2005 06:48:08 -0000 1.1 --- mx_textblock_multi.php 26 May 2005 21:54:09 -0000 1.2 *************** *** 1,35 **** <?php ! /*************************************************************************** ! mx_block_html_floating.php ! * ------------------- ! * email : ban...@gm... ! * ! * ! ***************************************************************************/ ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; ! $message = $block_config[$block_id][Text]['parameter_value']; ! $block_style = $block_config[$block_id][block_style]['parameter_value']; ! $text_style = $block_config[$block_id][text_style]['parameter_value']; ! $title_style = $block_config[$block_id][title_style]['parameter_value']; ! $show_title = $block_config[$block_id][show_title]['parameter_value']; // ********************************************************************** ! // Read language definition // ********************************************************************** ! ! if ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ) ) { ! include( $module_root_path . 'language/lang_english/lang_main.'.$phpEx ); ! } else { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ); ! } // Block Pages/toc ! if ( isset($HTTP_POST_VARS['page_num']) || isset($HTTP_GET_VARS['page_num']) ) { $page_num = ( isset($HTTP_POST_VARS['page_num']) ) ? $HTTP_POST_VARS['page_num'] : $HTTP_GET_VARS['page_num']; --- 1,57 ---- <?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$ ! */ ! /** ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! */ ! if( !defined('IN_PORTAL') ) ! { ! die("Hacking attempt"); ! } ! ! $block_config = read_block_config($block_id); ! $title = $block_config[$block_id]['block_title']; ! ! $message = $block_config[$block_id]['Text']['parameter_value']; ! ! $block_style = $block_config[$block_id]['block_style']['parameter_value']; ! $text_style = $block_config[$block_id]['text_style']['parameter_value']; ! $title_style = $block_config[$block_id]['title_style']['parameter_value']; ! $show_title = $block_config[$block_id]['show_title']['parameter_value']; ! ! $allow_bbcode = $board_config['allow_bbcode'] ? true : false; ! $allow_html = $board_config['allow_html'] ? true : false; ! $allow_smilies = $board_config['allow_smilies'] ? true : false; // ********************************************************************** ! // Read language definition // ********************************************************************** ! if( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { ! include($module_root_path . 'language/lang_english/lang_main.' . $phpEx); ! } else { ! include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! } + // // Block Pages/toc ! // ! if( isset($HTTP_POST_VARS['page_num']) || isset($HTTP_GET_VARS['page_num']) ) { $page_num = ( isset($HTTP_POST_VARS['page_num']) ) ? $HTTP_POST_VARS['page_num'] : $HTTP_GET_VARS['page_num']; *************** *** 38,42 **** else { ! $page_num = 0; } --- 60,64 ---- else { ! $page_num = 0; } *************** *** 44,51 **** $message = trim($art_pages[$page_num]); $message = str_replace('[toc]', '', $message); // End Pages/TOC ! $bbcode_uid = $block_config[$block_id][Text]['bbcode_uid']; ! $message = mx_decode( $message, $bbcode_uid ) ; // --- 66,83 ---- $message = trim($art_pages[$page_num]); $message = str_replace('[toc]', '', $message); + // // End Pages/TOC + // ! if( !$allow_html ) ! { ! $message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message); ! } ! ! if( $allow_bbcode ) ! { ! $bbcode_uid = $block_config[$block_id]['Text']['bbcode_uid']; ! $message = mx_decode($message, $bbcode_uid, $allow_smilies, $allow_bbcode); ! } // *************** *** 53,57 **** // $template->set_filenames(array( ! "body_block" => "mx_textblock_multi.tpl") ); --- 85,89 ---- // $template->set_filenames(array( ! 'body_block' => 'mx_textblock_multi.tpl') ); *************** *** 64,69 **** if ( $is_auth_ary[auth_edit] ) { ! $s_hidden_fields = '<input type="hidden" name="id" value="' . $block_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edit" />'; --- 96,101 ---- if ( $is_auth_ary[auth_edit] ) { ! $s_hidden_fields = '<input type="hidden" name="block_id" value="' . $block_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="portalpage" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edit" />'; *************** *** 92,217 **** }; ! $block_style = (($block_style=='') || ($block_style=='FALSE')) ? '' : 'forumline'; ! $text_style = (($text_style=='') || ($text_style=='none')) ? 'genmed' : $text_style; $template->assign_vars(array( ! 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), ! 'L_TITLE' => ( $show_title=='TRUE' ? '' : ( !empty( $lang[$title] ) ? $lang[$title] : $title ) ), ! 'S_ACTION' => $edit_url, ! 'U_TEXT' => $message, ! 'EDIT_IMG' => $edit_img, ! 'BLOCK_ID' => $block_id, ! 'BLOCK_STYLE' => $block_style, ! 'TEXT_STYLE' => $text_style, ! 'TITLE_STYLE' => $block_style, ! 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields, ! 'L_TOC' => $lang['Toc_title'], ! 'L_GOTO_PAGE' => $lang['Goto_page'] ! )); ! // ! //article pages table of contents // ! if ( count($art_pages) > 1 ) { $template->assign_block_vars('switch_toc', array()); ! $i = 0; ! while($i < count($art_pages)) ! { $page_number = $i + 1; - - $art_split = explode('[toc]', $art_pages[$i]); - $article_toc = $art_split[0]; - // $article_body = $art_split[1]; ! // Fix up the toc title ! if ( !$board_config['allow_html'] ) ! { ! $article_toc = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $article_toc); ! } ! // ! // Parse message ! // ! // $bbcode_uid = $row['bbcode_uid']; ! // $article_toc = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $article_toc); ! $article_toc = preg_replace("/\[(\S+)\]/e", "", $article_toc); ! // $txt = preg_replace("/<a href=\"(.*)\">(.*)<\/a>/i", "\\2 (\\1)", $txt); ! $article_toc = make_clickable($article_toc); ! // ! // Parse smilies ! // ! if ( $board_config['allow_smilies'] ) ! { ! $article_toc = mx_smilies_pass($article_toc); ! } ! // ! // Replace naughty words ! // ! if ( count($orig_word) ) ! { ! $article_toc = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $article_toc . '<'), 1, -1)); ! } ! // Replace newlines (we use this rather than nl2br because ! // till recently it wasn't XHTML compliant) ! // $article_toc = str_replace("\n", "\n<br />\n", $article_toc); ! $page_toc = $art_pages[$i]; if( $page_num != $i ) { ! $temp_url = append_sid("index.php?page=$page_id&mode=article&page_num=$page_number"); $page_link = '<a href="' . $temp_url . '" class="nav">' . $page_number . ' - ' . $article_toc . '</a>'; } else { ! $page_link = $page_number . ' - ' . $article_toc ; } ! if( $i < count($art_pages) - 1 ) { ! $page_link .= '<br />'; } $template->assign_block_vars('switch_toc.pages', array( ! 'TOC_ITEM' => $page_link) ); ! $i++; } ! } ! // ! //article pages // ! if ( count($art_pages) > 1 ) { $template->assign_block_vars('switch_pages', array()); ! $i = 0; ! while($i < count($art_pages)) ! { $page_number = $i + 1; if( $page_num != $i ) { ! $temp_url = append_sid("index.php?page=$page_id&mode=article&page_num=$page_number"); ! $page_link = '<a href="' . $temp_url . '" class="nav">' . $page_number . '</a>'; } else { ! $page_link = $page_number; } ! if( $i < count($art_pages) - 1 ) { ! $page_link .= ', '; } $template->assign_block_vars('switch_pages.pages', array( ! 'PAGE_LINK' => $page_link) ); ! $i++; } ! } ! $template->pparse("body_block"); ! ! ?> --- 124,267 ---- }; ! $block_style = ( ( $block_style == '' ) || ( $block_style == 'FALSE' ) ) ? '' : 'forumline'; ! $text_style = ( ( $text_style == '' ) || ( $text_style == 'none' ) ) ? 'genmed' : $text_style; $template->assign_vars(array( ! 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), ! 'L_TITLE' => ( $show_title=='TRUE' ? '' : ( !empty( $lang[$title] ) ? $lang[$title] : $title ) ), ! 'S_ACTION' => $edit_url, ! 'U_TEXT' => $message, ! 'EDIT_IMG' => $edit_img, ! 'MOVE_L_IMG' => $move_l_img, ! 'MOVE_R_IMG' => $move_r_img, ! 'MOVE_U_IMG' => $move_u_img, ! 'MOVE_D_IMG' => $move_d_img, ! 'CACHE_IMG' => $cache_img, ! 'DELETE_IMG' => $delete_img, ! 'BLOCK_ID' => $block_id, ! 'BLOCK_STYLE' => $block_style, ! 'TEXT_STYLE' => $text_style, ! 'TITLE_STYLE' => $block_style, ! 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields, ! 'L_TOC' => $lang['Toc_title'], ! 'L_GOTO_PAGE' => $lang['Goto_page'] ! )); ! ! $xtra_dynamic = isset($HTTP_GET_VARS['dynamic_block']) ? '&dynamic_block=' . $HTTP_GET_VARS['dynamic_block'] : ''; ! // ! // Formatting the TOC // ! if( count($art_pages) > 1 ) { $template->assign_block_vars('switch_toc', array()); ! $i = 0; ! ! while( $i < count($art_pages) ) ! { $page_number = $i + 1; ! $art_split = explode('[toc]', $art_pages[$i]); ! $article_toc = $art_split[0]; ! // $article_body = $art_split[1]; ! // ! // Fix up the toc title ! // ! if( !$allow_html ) ! { ! $article_toc = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $article_toc); ! } ! ! // ! // Parse message ! // ! $article_toc = preg_replace("/\[(\S+)\]/e", "", $article_toc); ! $article_toc = make_clickable($article_toc); ! ! // ! // Parse smilies ! // ! if( $allow_smilies ) ! { ! $article_toc = mx_smilies_pass($article_toc); ! } ! ! // ! // Replace naughty words ! // ! if( count($orig_word) ) ! { ! $article_toc = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $article_toc . '<'), 1, -1)); ! } ! ! // ! // Replace newlines (we use this rather than nl2br because ! // till recently it wasn't XHTML compliant) ! // $article_toc = str_replace("\n", "\n<br />\n", $article_toc); ! // $page_toc = $art_pages[$i]; if( $page_num != $i ) { ! $temp_url = append_sid(PORTAL_URL . "index.php?page=$page_id&mode=pagination&page_num=$page_number"); $page_link = '<a href="' . $temp_url . '" class="nav">' . $page_number . ' - ' . $article_toc . '</a>'; } else { ! $page_link = $page_number . ' - ' . $article_toc; } ! if( $i < count($art_pages) - 1 ) { ! $page_link .= '<br />'; } + $template->assign_block_vars('switch_toc.pages', array( ! 'TOC_ITEM' => $page_link) ); ! ! $i++; } ! } ! // ! // Formatting the TOC navigation/pagination // ! if( count($art_pages) > 1 ) { $template->assign_block_vars('switch_pages', array()); ! $i = 0; ! ! while( $i < count($art_pages) ) ! { $page_number = $i + 1; + if( $page_num != $i ) { ! $temp_url = append_sid(PORTAL_URL . "index.php?page=$page_id&mode=pagination&page_num=$page_number" . $xtra_dynamic); ! $page_link = '<a href="' . $temp_url . '" class="nav">' . $page_number . '</a>'; } else { ! $page_link = $page_number; } ! if( $i < count($art_pages) - 1 ) { ! $page_link .= ', '; } + $template->assign_block_vars('switch_pages.pages', array( ! 'PAGE_LINK' => $page_link) ); ! ! $i++; } ! } ! $template->pparse('body_block'); ! ! ?> \ No newline at end of file Index: mx_textblock_bbcode.php =================================================================== RCS file: /cvsroot/mxbb/core27x/modules/mx_textblocks/mx_textblock_bbcode.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_textblock_bbcode.php 6 May 2005 06:48:08 -0000 1.1 --- mx_textblock_bbcode.php 26 May 2005 21:54:09 -0000 1.2 *************** *** 10,13 **** --- 10,25 ---- * ***************************************************************************/ + /** + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + + if( !defined('IN_PORTAL') ) + { + die("Hacking attempt"); + } + // // Read block Configuration *************** *** 16,29 **** $block_config = read_block_config($block_id); ! $title = $block_config[$block_id]['block_title']; $message = $block_config[$block_id][Text]['parameter_value']; ! $bbcode_uid = $block_config[$block_id][Text]['bbcode_uid']; ! $message = mx_decode( $message, $bbcode_uid ) ; // // Start output of page // $template->set_filenames(array( "body_block" => "mx_textblock_bbcode.tpl") --- 28,53 ---- $block_config = read_block_config($block_id); ! $title = $block_config[$block_id]['block_title']; $message = $block_config[$block_id][Text]['parameter_value']; ! $bbcode_on = true; ! $html_on = false; ! $smilies_on = true; ! ! if( !$html_on ) ! { ! $message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message); ! } ! if( $bbcode_on ) ! { ! $bbcode_uid = $block_config[$block_id][Text]['bbcode_uid']; ! $message = mx_decode($message, $bbcode_uid, $smilies_on, $bbcode_on); ! } // // Start output of page // + $template->set_filenames(array( "body_block" => "mx_textblock_bbcode.tpl") *************** *** 33,41 **** $is_auth_ary = block_auth(AUTH_EDIT, $block_id , $userdata, $block_config[$block_id][auth_edit], $block_config[$block_id][auth_edit_group] ); ! if ( $is_auth_ary[auth_edit] ) { ! $s_hidden_fields = '<input type="hidden" name="id" value="' . $block_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edit" />'; $edit_url = append_sid( $module_root_path . "admin/mx_textblock_edit.php" ); --- 57,66 ---- $is_auth_ary = block_auth(AUTH_EDIT, $block_id , $userdata, $block_config[$block_id][auth_edit], $block_config[$block_id][auth_edit_group] ); ! if ( $is_auth_ary['auth_edit'] ) { ! $s_hidden_fields = '<input type="hidden" name="block_id" value="' . $block_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="portalpage" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edit" />'; + $s_hidden_fields .= '<input type="hidden" name="block_mode" value="bbcode" />'; $edit_url = append_sid( $module_root_path . "admin/mx_textblock_edit.php" ); *************** *** 60,64 **** )); ! $template->pparse("body_block"); ! ?> --- 85,89 ---- )); ! $template->pparse('body_block'); ! ?> \ No newline at end of file |
Update of /cvsroot/mxbb/core27x/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x/install Modified Files: mx_install.php Removed Files: mx_upgrade_changes_between_2.7.3_and_2.7.5.htm mx_upgrade_changes_between_2.7.5-pl4_and_2.7.6.htm mx_upgrade_changes_between_2.7.5_and_2.7.5-pl4.htm Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 --- mx_upgrade_changes_between_2.7.3_and_2.7.5.htm DELETED --- --- mx_upgrade_changes_between_2.7.5_and_2.7.5-pl4.htm DELETED --- --- mx_upgrade_changes_between_2.7.5-pl4_and_2.7.6.htm DELETED --- Index: mx_install.php =================================================================== RCS file: /cvsroot/mxbb/core27x/install/mx_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_install.php 6 May 2005 06:47:59 -0000 1.1 --- mx_install.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 48,52 **** // $mx_portal_name = 'mxBB-Portal'; ! $mx_portal_version = '2.7.6'; // --- 48,52 ---- // $mx_portal_name = 'mxBB-Portal'; ! $mx_portal_version = '2.7.7'; // *************** *** 357,361 **** include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new Template($mx_root_path . 'install/templates'); page_header_install($lang['Welcome_install'], $lang['Choose_lang_explain']); $template->set_filenames(array('language' => 'mx_install_language.tpl')); --- 357,361 ---- include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new template($mx_root_path . 'install/templates'); page_header_install($lang['Welcome_install'], $lang['Choose_lang_explain']); $template->set_filenames(array('language' => 'mx_install_language.tpl')); *************** *** 473,477 **** include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new Template($mx_root_path . 'install/templates'); page_header_install($lang['Welcome_install'], $instruction_text); $template->set_filenames(array('button' => 'mx_install_button.tpl')); --- 473,477 ---- include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new template($mx_root_path . 'install/templates'); page_header_install($lang['Welcome_install'], $instruction_text); $template->set_filenames(array('button' => 'mx_install_button.tpl')); *************** *** 621,625 **** include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new Template($mx_root_path . 'install/templates'); page_header_install($install_title, $message); $template->set_filenames(array('button' => 'mx_install_button.tpl')); --- 621,625 ---- include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new template($mx_root_path . 'install/templates'); page_header_install($install_title, $message); $template->set_filenames(array('button' => 'mx_install_button.tpl')); *************** *** 644,648 **** // include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new Template($mx_root_path . 'install/templates'); --- 644,648 ---- // include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new template($mx_root_path . 'install/templates'); *************** *** 1040,1044 **** { include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new Template($mx_root_path . 'install/templates'); page_header_install($lang['Installation_error'], $message); } --- 1040,1044 ---- { include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new template($mx_root_path . 'install/templates'); page_header_install($lang['Installation_error'], $message); } *************** *** 1417,1421 **** // include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new Template($mx_root_path . 'install/templates'); page_header_install('phpInfo()'); $template->set_filenames(array('phpinfo' => 'mx_install_phpinfo.tpl')); --- 1417,1421 ---- // include($mx_root_path . "install/includes/template.$phpEx"); ! $template = new template($mx_root_path . 'install/templates'); page_header_install('phpInfo()'); $template->set_filenames(array('phpinfo' => 'mx_install_phpinfo.tpl')); |
|
From: Jon O. <jon...@us...> - 2005-05-26 21:54:19
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x/modules/mx_textblocks/templates/subSilver Modified Files: mx_textblock_edit.tpl Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 Index: mx_textblock_edit.tpl =================================================================== RCS file: /cvsroot/mxbb/core27x/modules/mx_textblocks/templates/subSilver/mx_textblock_edit.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_textblock_edit.tpl 6 May 2005 06:48:10 -0000 1.1 --- mx_textblock_edit.tpl 26 May 2005 21:54:09 -0000 1.2 *************** *** 15,27 **** var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); ! var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); ! var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); ! var is_mac = (clientPC.indexOf("mac")!=-1); ! ! // Helpline texts b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; --- 15,27 ---- var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); ! var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); + var is_moz = 0; ! var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); ! var is_mac = (clientPC.indexOf("mac")!=-1); ! // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; *************** *** 42,46 **** imageTag = false; ! // Shows the help texts in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); --- 42,46 ---- imageTag = false; ! // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); *************** *** 78,86 **** if (document.post.Text.value.length < 2) { ! formErrors = "{L_EMPTY_BLOCK_INFO}"; ! } ! ! if (document.post.block_title.value.length < 2) { ! formErrors = "{L_EMPTY_BLOCK_TITLE}"; } --- 78,82 ---- if (document.post.Text.value.length < 2) { ! formErrors = "{L_EMPTY_MESSAGE}"; } *************** *** 97,133 **** function emoticon(text) { text = ' ' + text + ' '; ! if (document.post.Text.createTextRange && document.post.Text.caretPos) { ! var caretPos = document.post.Text.caretPos; ! caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; ! document.post.Text.focus(); } else { ! document.post.Text.value += text; ! document.post.Text.focus(); } } function bbfontstyle(bbopen, bbclose) { if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { ! document.post.Text.value += bbopen + bbclose; ! document.post.Text.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; ! document.post.Text.focus(); return; ! } else { ! document.post.Text.value += bbopen + bbclose; ! document.post.Text.focus(); return; } ! storeCaret(document.post.Text); } function bbstyle(bbnumber) { donotinsert = false; theSelection = false; --- 93,140 ---- function emoticon(text) { + var txtarea = document.post.Text; text = ' ' + text + ' '; ! if (txtarea.createTextRange && txtarea.caretPos) { ! var caretPos = txtarea.caretPos; ! caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; ! txtarea.focus(); } else { ! txtarea.value += text; ! txtarea.focus(); } } function bbfontstyle(bbopen, bbclose) { + var txtarea = document.post.Text; + if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { ! txtarea.value += bbopen + bbclose; ! txtarea.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; ! txtarea.focus(); return; ! } ! else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) ! { ! mozWrap(txtarea, bbopen, bbclose); return; } ! else ! { ! txtarea.value += bbopen + bbclose; ! txtarea.focus(); ! } ! storeCaret(txtarea); } function bbstyle(bbnumber) { + var txtarea = document.post.Text; + txtarea.focus(); donotinsert = false; theSelection = false; *************** *** 137,157 **** while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; ! document.post.Text.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D ! document.post.Text.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) theSelection = document.selection.createRange().text; // Get text selection ! ! if (theSelection) { ! // Add tags around selection ! document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; ! document.post.Text.focus(); ! theSelection = ''; return; } --- 144,170 ---- while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; ! txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D ! txtarea.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) + { theSelection = document.selection.createRange().text; // Get text selection ! if (theSelection) { ! // Add tags around selection ! document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; ! txtarea.focus(); ! theSelection = ''; ! return; ! } ! } ! else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) ! { ! mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); return; } *************** *** 168,182 **** while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; ! document.post.Text.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } ! document.post.Text.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another ! document.post.Text.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state --- 181,195 ---- while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; ! txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } ! txtarea.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another ! txtarea.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state *************** *** 185,196 **** // Open tag ! document.post.Text.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); ! document.post.Text.focus(); return; } ! storeCaret(document.post.Text); } --- 198,225 ---- // Open tag ! txtarea.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); ! txtarea.focus(); return; } ! storeCaret(txtarea); ! } ! ! // From http://www.massless.org/mozedit/ ! function mozWrap(txtarea, open, close) ! { ! var selLength = txtarea.textLength; ! var selStart = txtarea.selectionStart; ! var selEnd = txtarea.selectionEnd; ! if (selEnd == 1 || selEnd == 2) ! selEnd = selLength; ! ! var s1 = (txtarea.value).substring(0,selStart); ! var s2 = (txtarea.value).substring(selStart, selEnd) ! var s3 = (txtarea.value).substring(selEnd, selLength); ! txtarea.value = s1 + open + s2 + close + s3; ! return; } *************** *** 204,207 **** --- 233,253 ---- </script> + <!-- BEGIN tinyMCE --> + <script language="javascript" type="text/javascript" src="../../tinymce/jscripts/tiny_mce/tiny_mce.js"></script> + <script language="javascript" type="text/javascript"> + tinyMCE.init({ + mode : "textareas", + theme : "advanced", + theme_advanced_toolbar_location : "top", + plugins : "table", + theme_advanced_buttons3_add_before : "tablecontrols, separator" + }); + </script> + <!-- END tinyMCE --> + + <h1>{L_TITLE}</h1> + + <p>{L_EXPLAIN}</p> + <form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> *************** *** 214,217 **** --- 260,264 ---- <th class="thHead" colspan="2" height="25"><b>{L_POST_A}</b></th> </tr> + <!-- <tr> <td class="row1" width="22%"><span class="gen"><b>{L_BLOCK_TITLE}</b></span></td> *************** *** 220,223 **** --- 267,295 ---- </span> </td> </tr> + --> + <tr> + <td class="row1" width="30%"><span class="gen"><b>{L_BLOCK_TITLE}</b></span></td> + <td class="row2"><input type="text" size="65" name="block_title" value="{E_BLOCK_TITLE}" class="post" /></td> + </tr> + <!-- + <tr> + <td class="row1" width="30%"><span class="gen">{L_BLOCK_DESC}</span></td> + <td class="row2"><input type="text" size="65" name="block_desc" value="{E_BLOCK_DESC}" class="post" /></td> + </tr> + + <tr> + <td class="row1" width="30%"><span class="gen">{L_SHOW_TITLE}</span><br /><span class="gensmall">{L_SHOW_TITLE_EXPLAIN}</span></td> + <td class="row2"><input type="radio" name="show_title" value="1" {S_SHOW_TITLE_YES} /> <span class="gen">{L_YES}</span> <input type="radio" name="show_title" value="0" {S_SHOW_TITLE_NO} /> <span class="gen">{L_NO}</span></td> + </tr> + <tr> + <td class="row1" width="30%"><span class="gen">{L_SHOW_STATS}</span></td> + <td class="row2"><input type="radio" name="show_stats" value="1" {S_SHOW_STATS_YES} /> <span class="gen">{L_YES} </span><input type="radio" name="show_stats" value="0" {S_SHOW_STATS_NO} /> <span class="gen">{L_NO}</span></td> + </tr> + + <tr> + <td class="row1" width="30%"><span class="gen">{L_SHOW_BLOCK}</span></td> + <td class="row2"><input type="radio" name="show_block" value="1" {S_SHOW_BLOCK_YES} /> <span class="gen">{L_YES} </span><input type="radio" name="show_block" value="0" {S_SHOW_BLOCK_NO} /> <span class="gen">{L_NO}</span></td> + </tr> + --> <tr> <td class="row1" valign="top"> *************** *** 249,255 **** </table> </td> ! <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> <table width="450" border="0" cellspacing="0" cellpadding="2"> ! <!-- BEGIN switch_bbcodes --> <tr align="center" valign="middle"> <td><span class="genmed"> --- 321,327 ---- </table> </td> ! <td class="row2" valign="top"><span class="gen"> <table width="450" border="0" cellspacing="0" cellpadding="2"> ! <!-- BEGIN switch_bbcodes --> <tr align="center" valign="middle"> <td><span class="genmed"> *************** *** 323,327 **** <tr> <td colspan="9"><span class="gen"> ! <textarea name="{BLOCK_TEXT_NAME}" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{BLOCK_INFO}</textarea> </span></td> </tr> --- 395,399 ---- <tr> <td colspan="9"><span class="gen"> ! <textarea name="{BLOCK_TEXT_NAME}" rows="40" cols="35" wrap="virtual" style="width:550px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{BLOCK_INFO}</textarea> </span></td> </tr> *************** *** 333,336 **** --- 405,432 ---- <td class="row2"><span class="gen"> </span> <table cellspacing="0" cellpadding="1" border="0"> + <!-- BEGIN switch_allow_bbcode --> + <tr> + <td class="row2" width="50%"><span class="genmed">{L_ALLOW_BBCODE}</span></td> + <td class="row2" width="50%"><input type="radio" name="allow_bbcode" value="TRUE" {S_ALLOW_BBCODE_YES} /> <span class="gensmall">{L_YES}</span> <input type="radio" name="allow_bbcode" value="FALSE" {S_ALLOW_BBCODE_NO} /> <span class="gensmall">{L_NO}</span></td> + </tr> + <!-- END switch_allow_bbcode --> + <!-- BEGIN switch_allow_html --> + <tr> + <td class="row2" width="50%"><span class="genmed">{L_ALLOW_HTML}</span></td> + <td class="row2" width="50%"><input type="radio" name="allow_html" value="TRUE" {S_ALLOW_HTML_YES} /> <span class="gensmall">{L_YES}</span> <input type="radio" name="allow_html" value="FALSE" {S_ALLOW_HTML_NO} /> <span class="gensmall">{L_NO}</span></td> + </tr> + <!-- END switch_allow_html --> + <!-- BEGIN switch_html_tags --> + <tr> + <td class="row2" width="30%"><span class="genmed">{L_HTML_TAGS}</span></td> + <td class="row2"><input type="text" size="35" name="html_tags" value="{S_HTML_TAGS}" class="post" /></td> + </tr> + <!-- END switch_html_tags --> + <!-- BEGIN switch_allow_smilies --> + <tr> + <td class="row2" width="50%"><span class="genmed">{L_ALLOW_SMILIES}</span></td> + <td class="row2" width="50%"><input type="radio" name="allow_smilies" value="TRUE" {S_ALLOW_SMILIES_YES} /> <span class="gensmall">{L_YES}</span> <input type="radio" name="allow_smilies" value="FALSE" {S_ALLOW_SMILIES_NO} /> <span class="gensmall">{L_NO}</span></td> + </tr> + <!-- END switch_allow_smilies --> <!-- BEGIN switch_block_style --> <tr> *************** *** 351,360 **** </tr> <!-- END switch_title_style --> - <!-- BEGIN switch_show_title --> - <tr> - <td class="row2" width="50%"><span class="genmed">{L_SHOW_TITLE}</span><br /><span class="gensmall">{L_SHOW_TITLE_EXPLAIN}</span></td> - <td class="row2" width="50%"><input type="radio" name="show_title" value="TRUE" {S_SHOW_TITLE_YES} /> <span class="gensmall">{L_YES}</span> <input type="radio" name="show_title" value="FALSE" {S_SHOW_TITLE_NO} /> <span class="gensmall">{L_NO}</span></td> - </tr> - <!-- END switch_show_title --> </table> </td> --- 447,450 ---- |
|
From: Jon O. <jon...@us...> - 2005-05-26 21:54:18
|
Update of /cvsroot/mxbb/core27x/install/schemas In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x/install/schemas Modified Files: mysql_schema_install.sql postgres_schema_install.sql Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 Index: postgres_schema_install.sql =================================================================== RCS file: /cvsroot/mxbb/core27x/install/schemas/postgres_schema_install.sql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** postgres_schema_install.sql 6 May 2005 06:47:59 -0000 1.1 --- postgres_schema_install.sql 26 May 2005 21:54:09 -0000 1.2 *************** *** 77,82 **** INSERT INTO mx_table_block_system_parameter VALUES (3, 53, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 54, 'TRUE', ''); ! INSERT INTO mx_table_block_system_parameter VALUES (4, 15, 'This is a demo bbcode textblock!\r\n\r\n- featuring bbcode, html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); ! INSERT INTO mx_table_block_system_parameter VALUES (5, 16, 'This is a demo html textblock!\r\n\r\n- featuring html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (6, 36, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (6, 13, '0', NULL); --- 77,82 ---- INSERT INTO mx_table_block_system_parameter VALUES (3, 53, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 54, 'TRUE', ''); ! INSERT INTO mx_table_block_system_parameter VALUES (4, 15, 'This is a demo bbcode textblock!\r\n\r\n- featuring bbcode & html (if enabled for phpbb) and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); ! INSERT INTO mx_table_block_system_parameter VALUES (5, 16, 'This is a demo html/wysiwyg textblock!\r\n\r\n- featuring html (or wysiwyg if addon pack is installed) and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (6, 36, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (6, 13, '0', NULL); *************** *** 194,199 **** INSERT INTO mx_table_function VALUES (18, 10, 'Who is Online', 'Who is Online', 'mx_online.php', NULL); INSERT INTO mx_table_function VALUES (19, 10, 'Multiple Horizontal Blocks', 'Block that can arrange other blocks in a horizontal line.', 'mx_multiple_blocks.php', ''); ! INSERT INTO mx_table_function VALUES (20, 20, 'TextBlock_BBcode', 'TextBlock_BBcode', 'mx_textblock_bbcode.php', 'modules/mx_textblocks/admin/admin_edit.php'); ! INSERT INTO mx_table_function VALUES (21, 20, 'TextBlock_Html', 'TextBlock_Html', 'mx_textblock_html.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (22, 20, 'TextBlock_Multi', 'Textblock for bbcode and html with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (30, 30, 'Post Last Message', 'Post Last Message', 'mx_last_msg.php', NULL); --- 194,199 ---- INSERT INTO mx_table_function VALUES (18, 10, 'Who is Online', 'Who is Online', 'mx_online.php', NULL); INSERT INTO mx_table_function VALUES (19, 10, 'Multiple Horizontal Blocks', 'Block that can arrange other blocks in a horizontal line.', 'mx_multiple_blocks.php', ''); ! INSERT INTO mx_table_function VALUES (20, 20, 'TextBlock_BBcode', 'Textblock featuring BBCodes and html (if allowed by phpBB config)', 'mx_textblock_bbcode.php', 'modules/mx_textblocks/admin/admin_edit.php'); ! INSERT INTO mx_table_function VALUES (21, 20, 'TextBlock_Html', 'Textblock featuring html (or wysiwyg interface if addon pack is installed)', 'mx_textblock_html.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (22, 20, 'TextBlock_Multi', 'Textblock for bbcode and html with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (30, 30, 'Post Last Message', 'Post Last Message', 'mx_last_msg.php', NULL); Index: mysql_schema_install.sql =================================================================== RCS file: /cvsroot/mxbb/core27x/install/schemas/mysql_schema_install.sql,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mysql_schema_install.sql 6 May 2005 06:47:59 -0000 1.1 --- mysql_schema_install.sql 26 May 2005 21:54:09 -0000 1.2 *************** *** 1,4 **** # ! # mxBB-Portal - MySQL Schema - version 2.7.5 # # $Id$ --- 1,4 ---- # ! # mxBB-Portal - MySQL Schema - version 2.7.7 # # $Id$ *************** *** 77,82 **** INSERT INTO mx_table_block_system_parameter VALUES (3, 53, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 54, 'TRUE', ''); ! INSERT INTO mx_table_block_system_parameter VALUES (4, 15, 'This is a demo bbcode textblock!\r\n\r\n- featuring bbcode, html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); ! INSERT INTO mx_table_block_system_parameter VALUES (5, 16, 'This is a demo html textblock!\r\n\r\n- featuring html and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (6, 36, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (6, 13, '0', NULL); --- 77,82 ---- INSERT INTO mx_table_block_system_parameter VALUES (3, 53, 'TRUE', ''); INSERT INTO mx_table_block_system_parameter VALUES (3, 54, 'TRUE', ''); ! INSERT INTO mx_table_block_system_parameter VALUES (4, 15, 'This is a demo bbcode textblock!\r\n\r\n- featuring bbcode & html (if enabled for phpbb) and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); ! INSERT INTO mx_table_block_system_parameter VALUES (5, 16, 'This is a demo html/wysiwyg textblock!\r\n\r\n- featuring html (or wysiwyg if addon pack is installed) and permissions (view and edit permissions for users and PRIVATE groups).', '10bec5b560'); INSERT INTO mx_table_block_system_parameter VALUES (6, 36, '', NULL); INSERT INTO mx_table_block_system_parameter VALUES (6, 13, '0', NULL); *************** *** 194,199 **** INSERT INTO mx_table_function VALUES (18, 10, 'Who is Online', 'Who is Online', 'mx_online.php', NULL); INSERT INTO mx_table_function VALUES (19, 10, 'Multiple Horizontal Blocks', 'Block that can arrange other blocks in a horizontal line.', 'mx_multiple_blocks.php', ''); ! INSERT INTO mx_table_function VALUES (20, 20, 'TextBlock_BBcode', 'TextBlock_BBcode', 'mx_textblock_bbcode.php', 'modules/mx_textblocks/admin/admin_edit.php'); ! INSERT INTO mx_table_function VALUES (21, 20, 'TextBlock_Html', 'TextBlock_Html', 'mx_textblock_html.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (22, 20, 'TextBlock_Multi', 'Textblock for bbcode and html with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (30, 30, 'Post Last Message', 'Post Last Message', 'mx_last_msg.php', NULL); --- 194,199 ---- INSERT INTO mx_table_function VALUES (18, 10, 'Who is Online', 'Who is Online', 'mx_online.php', NULL); INSERT INTO mx_table_function VALUES (19, 10, 'Multiple Horizontal Blocks', 'Block that can arrange other blocks in a horizontal line.', 'mx_multiple_blocks.php', ''); ! INSERT INTO mx_table_function VALUES (20, 20, 'TextBlock_BBcode', 'Textblock featuring BBCodes and html (if allowed by phpBB config)', 'mx_textblock_bbcode.php', 'modules/mx_textblocks/admin/admin_edit.php'); ! INSERT INTO mx_table_function VALUES (21, 20, 'TextBlock_Html', 'Textblock featuring html (or wysiwyg interface if addon pack is installed)', 'mx_textblock_html.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (22, 20, 'TextBlock_Multi', 'Textblock for bbcode and html with parameters', 'mx_textblock_multi.php', 'modules/mx_textblocks/admin/admin_edit.php'); INSERT INTO mx_table_function VALUES (30, 30, 'Post Last Message', 'Post Last Message', 'mx_last_msg.php', NULL); |
|
From: Jon O. <jon...@us...> - 2005-05-26 21:54:18
|
Update of /cvsroot/mxbb/core27x/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x/templates/subSilver Modified Files: mx_login.tpl overall_header.tpl Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 Index: mx_login.tpl =================================================================== RCS file: /cvsroot/mxbb/core27x/templates/subSilver/mx_login.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_login.tpl 6 May 2005 06:48:21 -0000 1.1 --- mx_login.tpl 26 May 2005 21:54:10 -0000 1.2 *************** *** 1,17 **** ! <form action="{S_LOGIN_ACTION}" method="post"> ! <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline" > ! <tr> ! <th class="thHead" align="left" > {L_TITLE} </th> ! </tr> ! <tr> ! <td class="row1" valign="middle" height="28"><span class="gensmall"> ! {L_USERNAME}:<br /><input class="post" type="text" name="username" size="10" /><br /> ! {L_PASSWORD}:<br /><input class="post" type="password" name="password" size="10" /><br /> ! <input class="text" type="checkbox" name="autologin" value="ON" /> {L_AUTO_LOGIN}<br /> ! <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /> ! </td> ! </tr> </table> - </form> <br clear="all" /> \ No newline at end of file --- 1,19 ---- ! <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> ! <tr> ! <th class="thHead" align="left" > {L_TITLE} </th> ! </tr> ! <tr> ! <td class="row1" valign="middle" height="28"><span class="gensmall"> ! <form action="{S_LOGIN_ACTION}" method="post"> ! {L_USERNAME}:<br /><input class="post" type="text" name="username" size="10" /><br /> ! {L_PASSWORD}:<br /><input class="post" type="password" name="password" size="10" /><br /> ! <input type="checkbox" class="post" name="autologin" value="ON" /> {L_AUTO_LOGIN}<br /> ! <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span> ! </form> ! </td> ! </tr> </table> <br clear="all" /> + + \ No newline at end of file Index: overall_header.tpl =================================================================== RCS file: /cvsroot/mxbb/core27x/templates/subSilver/overall_header.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** overall_header.tpl 6 May 2005 06:48:21 -0000 1.1 --- overall_header.tpl 26 May 2005 21:54:10 -0000 1.2 *************** *** 222,226 **** if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { ! window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> --- 222,226 ---- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { ! window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400'); } //--> *************** *** 228,253 **** <!-- END switch_enable_pm_popup --> - <script language="javascript" type="text/javascript"> - <!-- - function newImage(arg) { - if (document.images) { - rslt = new Image(); - rslt.src = arg; - return rslt; - } - } - - function changeImages() { - if (document.images ) { - for (var i=0; i<changeImages.arguments.length; i+=2) { - document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; - } - } - } - - // --> - </script> - <!-- End Preload Script --> - </head> <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" /> --- 228,231 ---- |
|
From: Jon O. <jon...@us...> - 2005-05-26 21:54:18
|
Update of /cvsroot/mxbb/core27x In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x Modified Files: index.php mx_forum.php mx_menu_nav.php mx_multiple_blocks.php mx_online.php mx_poll.php Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 Index: mx_poll.php =================================================================== RCS file: /cvsroot/mxbb/core27x/mx_poll.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_poll.php 6 May 2005 06:47:57 -0000 1.1 --- mx_poll.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 146,150 **** // Does this topic contain a poll? // ! //if ( !empty($forum_topic_data['topic_vote']) ) { $s_hidden_fields = ''; --- 146,150 ---- // Does this topic contain a poll? // ! if ( !empty($topic_id) ) { $s_hidden_fields = ''; Index: mx_menu_nav.php =================================================================== RCS file: /cvsroot/mxbb/core27x/mx_menu_nav.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_menu_nav.php 6 May 2005 06:47:57 -0000 1.1 --- mx_menu_nav.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 14,17 **** --- 14,19 ---- ***************************************************************************/ + $mx_root_path = './'; + $block_config = read_block_config($block_id); $title = $block_config[$block_id]['block_title']; *************** *** 24,29 **** else { - // Modded by Jaime - Allow Fold/Unfold Category select - $sql1 = "SELECT cat_id FROM " . MENU_CAT_TABLE . " --- 26,29 ---- *************** *** 37,41 **** $menu_cat_show = $db->sql_fetchrowset($result_show); - for($catrow_count = 0; $catrow_count < count($menu_cat_show); $catrow_count++) { --- 37,40 ---- *************** *** 45,51 **** } - // End of modded by Jaime - Allow Fold/Unfold Category select - - if ( !empty($HTTP_POST_VARS['out']) || !empty($HTTP_GET_VARS['out']) ) { --- 44,47 ---- *************** *** 56,61 **** $show = preg_replace( "/^,/" , "" , $show ); } - - $show_opt = explode(",", $show); --- 52,55 ---- *************** *** 69,73 **** } - $template->set_filenames(array( "body" => 'mx_menu_nav.tpl') --- 63,66 ---- *************** *** 81,84 **** --- 74,78 ---- $s_hidden_fields = '<input type="hidden" name="block_id" value="' . $block_id . '" />'; $s_hidden_fields .= '<input type="hidden" name="portalpage" value="' . $page_id. '" />'; + $s_hidden_fields .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />'; $edit_url = $mx_root_path . "admin/admin_mx_menu.$phpEx?sid=" . $userdata['session_id']; *************** *** 101,213 **** )); ! $sql = "SELECT cat_id, cat_title, cat_desc, bbcode_uid ! FROM " . MENU_CAT_TABLE . " WHERE block_id = $block_id ORDER BY cat_order, cat_id "; ! if ( !($result_cat = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain menu navigation configuration', '', __LINE__, __FILE__, $sql); } ! $menu_cat_config = $db->sql_fetchrowset($result_cat); ! for($catrow_count = 0; $catrow_count < count($menu_cat_config); $catrow_count++) ! { ! $cat_title = $menu_cat_config[$catrow_count]['cat_title']; ! $cat_id = $menu_cat_config[$catrow_count]['cat_id']; ! $cat = ( !empty($lang[$cat_title]) ? $lang[$cat_title] : $cat_title); ! ! $bbcode_uid = $menu_cat_config[$catrow_count]['bbcode_uid']; ! $cat = mx_decode($cat, $bbcode_uid); ! // $cat_icon = ( !empty($menu_nav_config[$row_count]['menu_icon']) ? '<img src="' . PORTAL_URL . 'images/' . $menu_nav_config[$row_count]['menu_icon'] . '" /> ' : '' ); ! if ( in_array($cat_id, $show_opt) ) { ! $cat_desc = ''; ! $cat_icon = '<img border="0" src="' . PORTAL_URL . TEMPLATE_ROOT_PATH . 'images/minus.gif" /> '; ! $cat_url = append_sid(PORTAL_URL . 'index.'. $phpEx.'?page=' . $page_id. '&show=' . $show . '&out='. $cat_id); } ! else { ! if ( !empty($show) ) { ! $show_lst = $show . "," . $cat_id; } else { ! $show_lst = $cat_id; } ! $cat_desc = $menu_cat_config[$catrow_count]['cat_desc']; ! $cat_desc = mx_decode($cat_desc, $bbcode_uid); ! $cat_icon = '<img border="0" src="' . PORTAL_URL . TEMPLATE_ROOT_PATH . 'images/plus.gif" /> '; ! $cat_url = append_sid(PORTAL_URL . 'index.'. $phpEx.'?page=' . $page_id. '&show=' .$show_lst); } ! ! $template->assign_block_vars("catrow", array( ! "CATEGORY" => $cat, ! "U_URL" => append_sid(PORTAL_URL . 'index.'.$phpEx.'?block_id=' .$block_id), ! "U_CAT_ICON" => $cat_icon, ! "U_URL_SHOW" => $cat_url, ! "DESCRIPTION" => $cat_desc) ! ); ! ! // Modded by Jaime - Allow page select if ( in_array($cat_id, $show_opt) ) { - $sql = "SELECT menu_id, cat_id, menu_name, menu_desc, menu_links, block_id, function_id, page_id, - auth_view, auth_view_group, link_target, menu_order, bbcode_uid, menu_icon - FROM " . MENU_NAV_TABLE . " WHERE cat_id = " . $cat_id . " ORDER BY menu_order, menu_id "; - // End of modded by Jaime - Allow page select - - if ( !($result = $db->sql_query($sql)) ) - { - mx_message_die(GENERAL_ERROR, 'Could not obtain menu navigation configuration', '', __LINE__, __FILE__, $sql); - } - - $is_auth_ary = array(); - - $menu_nav_config = $db->sql_fetchrowset($result); - - for($row_count = 0; $row_count < count($menu_nav_config); $row_count++) - { - $menu_id = $menu_nav_config[$row_count]['menu_id']; - - // - // Find if user is allowed for view - // - - // mx_message_die(GENERAL_MESSAGE, $menu_nav_config[$row_count]['auth_view_group']); - - $is_auth_ary = menu_auth(AUTH_VIEW, $menu_id , $userdata, $menu_nav_config[$row_count], $menu_nav_config[$row_count]['auth_view_group']); - if ( $is_auth_ary['auth_view'] ) - { - $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; ! $action = $menu_nav_config[$row_count]['menu_name']; $action = ( !empty( $lang[$action] ) ? $lang[$action] : $action); ! $desc = $menu_nav_config[$row_count]['menu_desc']; $desc = ( !empty( $lang[$desc] ) ? $lang[$desc] : $desc); ! $bbcode_uid = $menu_nav_config[$row_count]['bbcode_uid']; ! $action = mx_decode($action, $bbcode_uid); ! $menu_icon = ( !empty($menu_nav_config[$row_count]['menu_icon']) ? '<img src="' . PORTAL_URL . TEMPLATE_ROOT_PATH .'images/' . $menu_nav_config[$row_count]['menu_icon'] . '" alt="' . $desc . '" /> ' : '' ); ! // Modded by Jaime - Allow select page ! if ( $menu_nav_config[$row_count]['page_id'] != 0) { ! $menu_link = append_sid('index.php?page=' . $menu_nav_config[$row_count]['page_id']); } ! // End modded by Jaime ! else if ( $menu_nav_config[$row_count]['function_id'] == 0 ) { ! $menu_link = append_sid($menu_nav_config[$row_count]['menu_links']); } ! else if ( $menu_nav_config[$row_count]['block_id'] != 0 ) { ! $menu_link = append_sid('index.php?block=' . $menu_nav_config[$row_count]['block_id']); } else --- 95,201 ---- )); ! $sql = "SELECT * ! FROM " . MENU_CAT_TABLE . " cat, ! " . MENU_NAV_TABLE . " nav ! WHERE cat.block_id = '" . $block_id . "' ! AND cat.cat_id = nav.cat_id ! ORDER BY cat.cat_order, nav.menu_order"; ! if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain menu navigation configuration', '', __LINE__, __FILE__, $sql); } ! $mx_nav_data = $db->sql_fetchrowset($result); ! $num_of_menus = count($mx_nav_data); ! $cat_id = 0; ! $num_of_cats = 0; ! for( $menu_count = 0; $menu_count < $num_of_menus; $menu_count++ ) ! { ! $menu_id = $mx_nav_data[$menu_count]['menu_id']; ! // ! // Find if user is allowed for view ! // ! $is_auth_ary = menu_auth(AUTH_VIEW, $menu_id, $userdata, $mx_nav_data[$menu_count], $mx_nav_data[$menu_count]['auth_view_group']); ! ! if ( !$is_auth_ary['auth_view'] ) { ! continue; } ! ! // New category ?? ! if ( $cat_id != $mx_nav_data[$menu_count]['cat_id'] ) { ! $num_of_cats++; ! ! $cat_title = $mx_nav_data[$menu_count]['cat_title']; ! $cat_id = $mx_nav_data[$menu_count]['cat_id']; ! $cat = ( !empty($lang[$cat_title]) ? $lang[$cat_title] : $cat_title); ! ! $bbcode_uid = $mx_nav_data[$menu_count]['bbcode_uid']; ! //$cat = mx_decode($cat, $bbcode_uid); ! ! if ( in_array($cat_id, $show_opt) ) { ! $cat_desc = ''; ! $cat_icon = '<img border="0" src="' . PORTAL_URL . TEMPLATE_ROOT_PATH . 'images/minus.gif" /> '; ! $cat_url = append_sid(PORTAL_URL . 'index.' . $phpEx . '?page=' . $page_id . '&show=' . $show . '&out=' . $cat_id); } else { ! if ( !empty($show) ) ! { ! $show_lst = $show . "," . $cat_id; ! } ! else ! { ! $show_lst = $cat_id; ! } ! ! $cat_desc = $mx_nav_data[$menu_count]['cat_desc']; ! //$cat_desc = mx_decode($cat_desc, $bbcode_uid); ! $cat_icon = '<img border="0" src="' . PORTAL_URL . TEMPLATE_ROOT_PATH . 'images/plus.gif" /> '; ! $cat_url = append_sid(PORTAL_URL . 'index.' . $phpEx . '?page=' . $page_id . '&show=' . $show_lst); } ! $template->assign_block_vars("catrow", array( ! "CATEGORY" => $cat, ! "U_URL" => append_sid(PORTAL_URL . 'index.'.$phpEx.'?block_id=' .$block_id), ! "U_CAT_ICON" => $cat_icon, ! "U_URL_SHOW" => $cat_url, ! "DESCRIPTION" => $cat_desc) ! ); } ! ! // Modded by Jaime - Allow page select if ( in_array($cat_id, $show_opt) ) { $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; ! $action = $mx_nav_data[$menu_count]['menu_name']; $action = ( !empty( $lang[$action] ) ? $lang[$action] : $action); ! $desc = $mx_nav_data[$menu_count]['menu_desc']; $desc = ( !empty( $lang[$desc] ) ? $lang[$desc] : $desc); ! $bbcode_uid = $mx_nav_data[$menu_count]['bbcode_uid']; ! //$action = mx_decode($action, $bbcode_uid); ! $menu_icon = ( !empty($mx_nav_data[$menu_count]['menu_icon']) ? '<img src="' . PORTAL_URL . TEMPLATE_ROOT_PATH .'images/' . $mx_nav_data[$menu_count]['menu_icon'] . '" alt="' . $desc . '" /> ' : '' ); ! if ( $mx_nav_data[$menu_count]['page_id'] != 0) { ! $menu_link = append_sid('index.php?page=' . $mx_nav_data[$menu_count]['page_id']); } ! else if ( $mx_nav_data[$menu_count]['function_id'] == 0 ) { ! $menu_link = append_sid($mx_nav_data[$menu_count]['menu_links']); } ! else if ( $mx_nav_data[$menu_count]['block_id'] != 0 ) { ! $menu_link = append_sid('index.php?block=' . $mx_nav_data[$menu_count]['block_id']); } else *************** *** 216,220 **** FROM " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " modu ! WHERE fnc.function_id = " . $menu_nav_config[$row_count]['function_id'] . " AND fnc.module_id = modu.module_id"; --- 204,208 ---- FROM " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " modu ! WHERE fnc.function_id = " . $mx_nav_data[$menu_count]['function_id'] . " AND fnc.module_id = modu.module_id"; *************** *** 225,233 **** $row = $db->sql_fetchrow($result); - $menu_link = append_sid($row['module_path'] . $row['function_file']); } ! $link_target = ($menu_nav_config[$row_count]['link_target'] == 0) ? '' : '_blank'; $template->assign_block_vars("catrow.modulerow", array( --- 213,220 ---- $row = $db->sql_fetchrow($result); $menu_link = append_sid($row['module_path'] . $row['function_file']); } ! $link_target = ($mx_nav_data[$menu_count]['link_target'] == 0) ? '' : '_blank'; $template->assign_block_vars("catrow.modulerow", array( *************** *** 240,245 **** "U_MENU_ICON" => $menu_icon) ); - } - } } } --- 227,230 ---- Index: mx_online.php =================================================================== RCS file: /cvsroot/mxbb/core27x/mx_online.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_online.php 6 May 2005 06:47:57 -0000 1.1 --- mx_online.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 24,28 **** } - // ================================================================================ // The following code is backported from includes/page_header.php (phpBB 2.0.13) --- 24,27 ---- *************** *** 39,203 **** $l_online_users = ''; ! //if (defined('SHOW_ONLINE')) ! { ! ! ! $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip ! FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s ! WHERE u.user_id = s.session_user_id ! AND s.session_time >= ".( time() - 300 ) . " ! ORDER BY u.username ASC, s.session_ip ASC"; ! if( !($result = $db->sql_query($sql)) ) ! { ! message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql); ! } ! $userlist_ary = array(); ! $userlist_visible = array(); ! $prev_user_id = 0; ! $prev_user_ip = $prev_session_ip = ''; ! while( $row = $db->sql_fetchrow($result) ) { ! // User is logged in and therefor not a guest ! if ( $row['session_logged_in'] ) { ! // Skip multiple sessions for one user ! if ( $row['user_id'] != $prev_user_id ) { ! $style_color = ''; ! if ( $row['user_level'] == ADMIN ) ! { ! $row['username'] = '<b>' . $row['username'] . '</b>'; ! $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; ! } ! else if ( $row['user_level'] == MOD ) ! { ! $row['username'] = '<b>' . $row['username'] . '</b>'; ! $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; ! } ! ! if ( $row['user_allow_viewonline'] ) ! { ! $user_online_link = '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>'; ! $logged_visible_online++; ! } ! else ! { ! $user_online_link = '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>'; ! $logged_hidden_online++; ! } ! ! if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) ! { ! $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link; ! } } ! ! $prev_user_id = $row['user_id']; ! } ! else ! { ! // Skip multiple sessions for one user ! if ( $row['session_ip'] != $prev_session_ip ) { ! $guests_online++; } } ! $prev_session_ip = $row['session_ip']; } ! $db->sql_freeresult($result); ! ! if ( empty($online_userlist) ) { ! $online_userlist = $lang['None']; } ! $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist; ! ! $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online; ! if ( $total_online_users > $board_config['record_online_users']) ! { ! $board_config['record_online_users'] = $total_online_users; ! $board_config['record_online_date'] = time(); ! $sql = "UPDATE " . CONFIG_TABLE . " ! SET config_value = '$total_online_users' ! WHERE config_name = 'record_online_users'"; ! if ( !$db->sql_query($sql) ) ! { ! message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql); ! } ! $sql = "UPDATE " . CONFIG_TABLE . " ! SET config_value = '" . $board_config['record_online_date'] . "' ! WHERE config_name = 'record_online_date'"; ! if ( !$db->sql_query($sql) ) ! { ! message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql); ! } ! } ! if ( $total_online_users == 0 ) ! { ! $l_t_user_s = $lang['Online_users_zero_total']; ! } ! else if ( $total_online_users == 1 ) ! { ! $l_t_user_s = $lang['Online_user_total']; ! } ! else { ! $l_t_user_s = $lang['Online_users_total']; } ! if ( $logged_visible_online == 0 ) ! { ! $l_r_user_s = $lang['Reg_users_zero_total']; ! } ! else if ( $logged_visible_online == 1 ) ! { ! $l_r_user_s = $lang['Reg_user_total']; ! } ! else { ! $l_r_user_s = $lang['Reg_users_total']; } ! if ( $logged_hidden_online == 0 ) ! { ! $l_h_user_s = $lang['Hidden_users_zero_total']; ! } ! else if ( $logged_hidden_online == 1 ) ! { ! $l_h_user_s = $lang['Hidden_user_total']; ! } ! else ! { ! $l_h_user_s = $lang['Hidden_users_total']; ! } ! if ( $guests_online == 0 ) ! { ! $l_g_user_s = $lang['Guest_users_zero_total']; ! } ! else if ( $guests_online == 1 ) ! { ! $l_g_user_s = $lang['Guest_user_total']; ! } ! else ! { ! $l_g_user_s = $lang['Guest_users_total']; ! } ! $l_online_users = sprintf($l_t_user_s, $total_online_users); ! $l_online_users .= sprintf($l_r_user_s, $logged_visible_online); ! $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online); ! $l_online_users .= sprintf($l_g_user_s, $guests_online); } // ================================================================================ // The following code is backported from index.php (phpBB 2.0.13) --- 38,194 ---- $l_online_users = ''; ! $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip ! FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s ! WHERE u.user_id = s.session_user_id ! AND s.session_time >= ".( time() - 300 ) . " ! ORDER BY u.username ASC, s.session_ip ASC"; ! if( !($result = $db->sql_query($sql)) ) ! { ! message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql); ! } ! $userlist_ary = array(); ! $userlist_visible = array(); ! $prev_user_id = 0; ! $prev_user_ip = $prev_session_ip = ''; ! while( $row = $db->sql_fetchrow($result) ) ! { ! // User is logged in and therefor not a guest ! if ( $row['session_logged_in'] ) { ! // Skip multiple sessions for one user ! if ( $row['user_id'] != $prev_user_id ) { ! $style_color = ''; ! if ( $row['user_level'] == ADMIN ) { ! $row['username'] = '<b>' . $row['username'] . '</b>'; ! $style_color = 'style="color:#' . $theme['fontcolor3'] . '"'; } ! else if ( $row['user_level'] == MOD ) { ! $row['username'] = '<b>' . $row['username'] . '</b>'; ! $style_color = 'style="color:#' . $theme['fontcolor2'] . '"'; ! } ! if ( $row['user_allow_viewonline'] ) ! { ! $user_online_link = '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>'; ! $logged_visible_online++; ! } ! else ! { ! $user_online_link = '<a href="' . append_sid(PHPBB_URL."profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>'; ! $logged_hidden_online++; ! } ! if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN ) ! { ! $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link; } } ! $prev_user_id = $row['user_id']; } ! else { ! // Skip multiple sessions for one user ! if ( $row['session_ip'] != $prev_session_ip ) ! { ! $guests_online++; ! } } ! $prev_session_ip = $row['session_ip']; ! } ! $db->sql_freeresult($result); ! if ( empty($online_userlist) ) ! { ! $online_userlist = $lang['None']; ! } ! $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' ' . $online_userlist; ! $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online; ! if ( $total_online_users > $board_config['record_online_users']) ! { ! $board_config['record_online_users'] = $total_online_users; ! $board_config['record_online_date'] = time(); ! $sql = "UPDATE " . CONFIG_TABLE . " ! SET config_value = '$total_online_users' ! WHERE config_name = 'record_online_users'"; ! if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql); } ! $sql = "UPDATE " . CONFIG_TABLE . " ! SET config_value = '" . $board_config['record_online_date'] . "' ! WHERE config_name = 'record_online_date'"; ! if ( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql); } + } ! if ( $total_online_users == 0 ) ! { ! $l_t_user_s = $lang['Online_users_zero_total']; ! } ! else if ( $total_online_users == 1 ) ! { ! $l_t_user_s = $lang['Online_user_total']; ! } ! else ! { ! $l_t_user_s = $lang['Online_users_total']; ! } ! if ( $logged_visible_online == 0 ) ! { ! $l_r_user_s = $lang['Reg_users_zero_total']; ! } ! else if ( $logged_visible_online == 1 ) ! { ! $l_r_user_s = $lang['Reg_user_total']; ! } ! else ! { ! $l_r_user_s = $lang['Reg_users_total']; ! } ! if ( $logged_hidden_online == 0 ) ! { ! $l_h_user_s = $lang['Hidden_users_zero_total']; ! } ! else if ( $logged_hidden_online == 1 ) ! { ! $l_h_user_s = $lang['Hidden_user_total']; ! } ! else ! { ! $l_h_user_s = $lang['Hidden_users_total']; ! } ! ! if ( $guests_online == 0 ) ! { ! $l_g_user_s = $lang['Guest_users_zero_total']; ! } ! else if ( $guests_online == 1 ) ! { ! $l_g_user_s = $lang['Guest_user_total']; ! } ! else ! { ! $l_g_user_s = $lang['Guest_users_total']; } + $l_online_users = sprintf($l_t_user_s, $total_online_users); + $l_online_users .= sprintf($l_r_user_s, $logged_visible_online); + $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online); + $l_online_users .= sprintf($l_g_user_s, $guests_online); + // ================================================================================ // The following code is backported from index.php (phpBB 2.0.13) Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core27x/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 6 May 2005 06:47:57 -0000 1.1 --- index.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 34,152 **** // // // ! $cache_dir = $mx_root_path . 'cache/'; - if ( $HTTP_SESSION_VARS['cache_read'] != TRUE && file_exists($cache_dir . 'block_config.xml') ) - { - include_once($mx_root_path . "cache/mx_cache.php"); // file of easy_parser class - read_cache_config(); - } // ! // End session management // ! $view_page = FALSE; // ! // Load default header // - $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); - - $page_row = get_info(PAGE_TABLE, "page_id", $page_id); - $page_title .= $page_row['page_name']; include($mx_root_path . 'includes/page_header.'.$phpEx); ! $is_auth_ary = array(); ! $is_auth_ary = page_auth(AUTH_VIEW, $userdata, $page_row['auth_view'], $page_row['auth_view_group'] ); ! ! if ( ! $is_auth_ary['auth_view'] ) ! { ! $message = empty($lang['Page_Not_Authorised']) ? "Sorry, but you don't have privilege to access this page." : $lang['Page_Not_Authorised']; ! mx_message_die(GENERAL_MESSAGE, $message, "", __LINE__, __FILE__, ""); ! } ! ! if ( !empty($HTTP_SESSION_VARS['page_column_' . $page_id]) ) ! { ! $column_rows = $HTTP_SESSION_VARS['page_column_' . $page_id]; ! $total_column = count($HTTP_SESSION_VARS['page_column_' . $page_id]); ! } ! else { ! $sql = "SELECT col.column_id, col.column_title, col.column_order, col.column_size ! FROM " . COLUMN_TABLE . " col ! WHERE page_id = $page_id ! ORDER BY column_order"; ! if( !$q_column = $db->sql_query($sql) ) ! { ! mx_message_die(GENERAL_ERROR, "Could not query column list", "", __LINE__, __FILE__, $sql); ! } ! ! if( $total_column = $db->sql_numrows($q_column) ) ! { ! $column_rows = $db->sql_fetchrowset($q_column); ! } ! $HTTP_SESSION_VARS['page_column_' . $page_id] = $column_rows; } ! ! if ( !empty($HTTP_SESSION_VARS['page_block_' . $page_id]) ) { ! $block_rows = $HTTP_SESSION_VARS['page_block_' . $page_id]; ! $total_block = count( $HTTP_SESSION_VARS['page_block_' . $page_id] ); } - else - { - $sql = "SELECT blk.block_id, blk.auth_view_group, blk.auth_edit_group, bct.column_id, module_path, function_file, auth_view - FROM " . COLUMN_BLOCK_TABLE . " bct, - " . BLOCK_TABLE . " blk, - " . FUNCTION_TABLE . " fnc, - " . MODULE_TABLE . " modu - WHERE blk.function_id = fnc.function_id - AND blk.block_id = bct.block_id - AND fnc.module_id = modu.module_id - ORDER BY column_id, block_order"; - // AND bct.column_id = " . $column_rows[$column]['column_id'] . " - if( !$q_modules = $db->sql_query($sql) ) - { - mx_message_die(GENERAL_ERROR, "Could not query modules information", "", __LINE__, __FILE__, $sql); - } ! if( $total_block = $db->sql_numrows($q_modules) ) ! { ! $block_rows = $db->sql_fetchrowset($q_modules); ! $HTTP_SESSION_VARS['page_block_' . $page_id] = $block_rows; ! } ! } ECHO '<table border="0" cellspacing="4" cellpadding="0" width="100%"><tr valign="top">'; ! for($column = 0; $column < $total_column; $column++) { ! $block_size = $column_rows[$column]['column_size']; ECHO '<td width="' . $block_size . '" >'; ! for($block = 0; $block < $total_block; $block++) { ! if ( $column_rows[$column]['column_id'] == $block_rows[$block]['column_id'] ) { // // Find which blocks are visible for this user // ! $block_id = $block_rows[$block]['block_id']; ! $block_row = get_info(BLOCK_TABLE, "block_id", $block_id); ! ! $is_auth_ary = array(); ! $is_auth_ary = block_auth(AUTH_VIEW, $block_id, $userdata, $block_rows[$block], $block_row['auth_view_group']); ! if ( $is_auth_ary['auth_view'] ) { ! $template = new Template($template->root, $board_config, $db); ! ! $module_root_path = $block_rows[$block]['module_path']; ! $block_file = $block_rows[$block]['function_file']; include( $module_root_path . $block_file ); } --- 34,107 ---- // + // End session management // + $view_page = FALSE; + // ! // Page selector ! // ! $page_id = $mx_request_vars->request('page', MX_TYPE_INT, 1); // ! // Load page and block classes // + $portal_config['mx_use_cache'] = 1; + $mx_page = new mx_page(); + $mx_page->init( $page_id ); ! $mx_block = new mx_block(); // ! // ...and define some basic vars // + $page_title .= $mx_page->info['page_name']; + $page_icon = $mx_page->info['page_icon']; + $page_ov_header = $mx_page->info['page_header']; include($mx_root_path . 'includes/page_header.'.$phpEx); ! // ! // Page auth ! // ! if ( !$mx_page->auth_view && $userdata['session_logged_in'] ) { ! $message = empty( $lang['Page_Not_Authorised'] ) ? "Sorry, but you don't have privilege to access this page." : $lang['Page_Not_Authorised']; ! mx_message_die(GENERAL_MESSAGE, $message, '', __LINE__, __FILE__, ''); } ! elseif ( !$mx_page->auth_view && !$userdata['session_logged_in'] ) { ! mx_redirect( append_sid( $mx_root_path . "login.$phpEx?redirect=" . mx_this_url(), true ) ); } ! // ! // Output ! // ECHO '<table border="0" cellspacing="4" cellpadding="0" width="100%"><tr valign="top">'; ! for( $column = 0; $column < $mx_page->total_column; $column++ ) { ! $block_size = $mx_page->columns[$column]['column_size']; ECHO '<td width="' . $block_size . '" >'; ! for( $block = 0; $block < $mx_page->total_block; $block++ ) { ! if ( $mx_page->columns[$column]['column_id'] == $mx_page->blocks[$block]['column_id'] ) { // // Find which blocks are visible for this user // ! $block_id = $mx_page->blocks[$block]['block_id']; ! $mx_block->init( $block_id ); ! if ( $mx_block->auth_view ) { ! $template = new mx_Template($template->root, $board_config, $db); + $module_root_path = $mx_block->module_root_path; + $block_file = $mx_block->block_file; + include( $module_root_path . $block_file ); } Index: mx_multiple_blocks.php =================================================================== RCS file: /cvsroot/mxbb/core27x/mx_multiple_blocks.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_multiple_blocks.php 6 May 2005 06:47:57 -0000 1.1 --- mx_multiple_blocks.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 36,39 **** --- 36,41 ---- echo '<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>'; + $mx_split_block = new mx_block(); + for ($cell=0;$cell<$nested_block_count;$cell++) { $inner_block_id=$block_ids[$cell]; *************** *** 44,47 **** --- 46,50 ---- echo '<td width="'.$inner_block_size.'" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td>'; + /* // get the necessary info about this block $sql = "SELECT blk.block_id, module_path, function_file, auth_view *************** *** 57,64 **** } $block_row = $db->sql_fetchrow($block_result); ! $module_root_path=$block_row['module_path']; ! $block_file=$block_row['function_file']; ! $auth_view=$row['auth_view']; // check visibility (code from index.php) $is_auth_ary = array(); --- 60,89 ---- } $block_row = $db->sql_fetchrow($block_result); ! */ ! // $module_root_path=$block_row['module_path']; ! // $block_file=$block_row['function_file']; ! // $auth_view=$row['auth_view']; ! ! $block_id = $inner_block_id; ! $mx_split_block->init( $inner_block_id ); ! $block_size='100%'; ! ! if ( $mx_split_block->auth_view ) ! { ! $template = new mx_Template($template->root, $board_config, $db); ! ! $module_root_path = $mx_split_block->module_root_path; ! $block_file = $mx_split_block->block_file; ! ! include( $module_root_path . $block_file ); ! ! // output additional space between blocks if it is not the last block ! if ($cell<$nested_block_count-1) { ! echo '</td><td width="'.$block_space.'">'; ! echo '<img src="templates/spacer.gif" width="'.$block_space.'">'; ! } ! } + /* // check visibility (code from index.php) $is_auth_ary = array(); *************** *** 71,77 **** $block_id=$inner_block_id; $block_size='100%'; - // echo $module_root_path.$block_file; ! $template = new Template( $template->root, $board_config, $db); include($module_root_path . $block_file ); --- 96,101 ---- $block_id=$inner_block_id; $block_size='100%'; ! $template = new mx_Template( $template->root, $board_config, $db); include($module_root_path . $block_file ); *************** *** 82,85 **** --- 106,110 ---- } } + */ // finish the inner placement table for a single block echo '</td></tr></table></td>'; Index: mx_forum.php =================================================================== RCS file: /cvsroot/mxbb/core27x/mx_forum.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_forum.php 6 May 2005 06:47:57 -0000 1.1 --- mx_forum.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 81,84 **** --- 81,85 ---- // removing them // + /* $total_posts = get_db_stat('postcount'); $total_users = get_db_stat('usercount'); *************** *** 87,90 **** --- 88,92 ---- $newest_uid = $newest_userdata['user_id']; + if( $total_posts == 0 ) { *************** *** 112,116 **** $l_total_user_s = $lang['Registered_users_total']; } ! // --- 114,118 ---- $l_total_user_s = $lang['Registered_users_total']; } ! */ // *************** *** 264,270 **** $template->assign_vars(array( 'BLOCK_SIZE' => $block_size, ! 'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), ! 'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), ! 'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'), 'FORUM_IMG' => $images['forum'], --- 266,272 ---- $template->assign_vars(array( 'BLOCK_SIZE' => $block_size, ! //'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts), ! //'TOTAL_USERS' => sprintf($l_total_user_s, $total_users), ! //'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'), 'FORUM_IMG' => $images['forum'], |
|
From: Jon O. <jon...@us...> - 2005-05-26 21:54:16
|
Update of /cvsroot/mxbb/core27x/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x/includes Modified Files: mx_constants.php mx_functions.php template.php Added Files: mx_auth.php mx_cache.php mx_functions_phpbb.php Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 --- NEW FILE: mx_auth.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_auth.php,v 1.1 2005/05/26 21:54:08 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. */ /** * Included functions in this file: * - block_auth * - page_auth * - menu_auth * - get_auth_forum * - mx_auth_group * - mx_get_groups */ /********************************************************************************\ | $type's accepted (pre-pend with AUTH_): | VIEW, READ, POST, REPLY, EDIT, DELETE, STICKY, ANNOUNCE, VOTE, POLLCREATE | | Possible options ($type/module_id combinations): | | * If you include a type and module_id then a specific lookup will be done and | the single result returned | | * If you set type to AUTH_ALL and specify a module_id an array of all auth types | will be returned | | * If you provide a module_id a specific lookup on that module will be done | | * If you set module_id to AUTH_LIST_ALL and specify a type an array listing the | results for all modules will be returned | | * If you set module_id to AUTH_LIST_ALL and type to AUTH_ALL a multidimensional | array containing the auth permissions for all types and all modules for that | user is returned | | All results are returned as associative arrays, even when a single auth type is | specified. | | If available you can send an array (either one or two dimensional) containing the | module auth levels, this will prevent the auth function having to do its own | lookup \********************************************************************************/ function block_auth($type, $module_id, $userdata, $f_access = '', $f_access_group = '') { global $db, $lang; switch( $type ) { // case AUTH_ALL: // $a_sql = 'a.auth_view, a.auth_edit, a.auth_delete'; // $a_sql_groups = 'a.auth_view_group, a.auth_edit_group, a.auth_delete_group'; // $auth_fields = array('auth_view', 'auth_edit', 'auth_delete'); // $auth_fields_groups = array('auth_view_group', 'auth_edit_group', 'auth_delete_group'); // break; case AUTH_VIEW: $a_sql = 'a.auth_view'; $a_sql_groups = 'a.auth_view_group'; $auth_fields = array('auth_view'); $auth_fields_groups = array('auth_view_group'); break; case AUTH_EDIT: $a_sql = 'a.auth_edit'; $a_sql_groups = 'a.auth_edit_group'; $auth_fields = array('auth_edit'); $auth_fields_groups = array('auth_edit_group'); break; case AUTH_DELETE: $a_sql = 'a.auth_delete'; $a_sql_groups = 'a.auth_delete_group'; $auth_fields = array('auth_delete'); $auth_fields_groups = array('auth_delete_group'); break; default: break; } if( $module_id == 0 ) { if( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) { $auth_user[$auth_fields[0]] = 1; $auth_user[$auth_fields[0] . '_type'] = $lang['Auth_Moderators']; } else { $auth_user[$auth_fields[0]] = 0; $auth_user[$auth_fields[0] . '_type'] = $lang['Auth_Moderators']; } return $auth_user; } $is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user = array(); for( $i = 0; $i < count($auth_fields); $i++ ) { $key = $auth_fields[$i]; $key_groups = $auth_fields_groups[$i]; // // If the user is logged on and the module type is either ALL or REG then the user has access // // If the type if ACL, MOD or ADMIN then we need to see if the user has specific permissions // to do whatever it is they want to do ... to do this we pull relevant information for the // user (and any groups they belong to) // // Now we compare the users access level against the modules. We assume here that a moderator // and admin automatically have access to an ACL module, similarly we assume admins meet an // auth requirement of MOD // $value = $f_access[$key]; // $value_groups = $f_access_group[$key_groups]; $value_groups = $f_access_group; switch( $value ) { case AUTH_ALL: $auth_user[$key] = TRUE; $auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_REG: $auth_user[$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; break; case AUTH_ANONYMOUS: $auth_user[$key] = ( ! $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_ACL: // PRIVATE $auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($value_groups) || $is_admin : 0; $auth_user[$key . '_type'] = $lang['Auth_Users_granted_access']; break; case AUTH_MOD: $auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($f_access_group['auth_moderator_group']) || $is_admin : 0; $auth_user[$key . '_type'] = $lang['Auth_Moderators']; break; case AUTH_ADMIN: $auth_user[$key] = $is_admin; $auth_user[$key . '_type'] = $lang['Auth_Administrators']; break; default: $auth_user[$key] = 0; break; } } // // Is user a moderator? $auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($f_access_group['auth_moderator_group']) || $is_admin : 0; return $auth_user; } /********************************************************************************\ | \********************************************************************************/ function page_auth($type, $userdata, $f_access = '', $f_access_group = '') { global $db, $lang; $a_sql = 'a.auth_view'; $a_sql_groups = 'a.auth_view_group'; $auth_fields = array('auth_view'); $auth_fields_groups = array('auth_view_group'); $is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user = array(); for( $i = 0; $i < count($auth_fields); $i++ ) { $key = $auth_fields[$i]; $key_groups = $auth_fields_groups[$i]; $value = $f_access[$key]; // $value_groups = $f_access_group[$key_groups]; $value_groups = $f_access_group; switch( $value ) { case AUTH_ALL: $auth_user[$key] = TRUE; $auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_REG: $auth_user[$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; break; case AUTH_ANONYMOUS: $auth_user[$key] = ( ! $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_ACL: // PRIVATE $auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($value_groups) || $is_admin : 0; $auth_user[$key . '_type'] = $lang['Auth_Users_granted_access']; break; case AUTH_MOD: $auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($f_access_group['auth_moderator_group']) || $is_admin : 0; $auth_user[$key . '_type'] = $lang['Auth_Moderators']; break; case AUTH_ADMIN: $auth_user[$key] = $is_admin; $auth_user[$key . '_type'] = $lang['Auth_Administrators']; break; default: $auth_user[$key] = 0; break; } } // // Is user a moderator? $auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($f_access_group['auth_moderator_group']) || $is_admin : 0; return $auth_user; } /********************************************************************************\ | \********************************************************************************/ function menu_auth($type, $menu_id, $userdata, $f_access = '', $f_access_group = '') { global $db, $lang; switch( $type ) { case AUTH_ALL: $a_sql = 'a.auth_view'; $auth_fields = array('auth_view'); break; case AUTH_VIEW: $a_sql = 'a.auth_view'; $auth_fields = array('auth_view'); break; default: break; } // // If f_access has been passed, or auth is needed to return an array of menus // then we need to pull the auth information on the given menu (or all menus) // $is_admin = ( $userdata['user_level'] == ADMIN && $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user = array(); for( $i = 0; $i < count($auth_fields); $i++ ) { $key = $auth_fields[$i]; // // If the user is logged on and the menu type is either ALL or REG then the user has access // // If the type if ACL, MOD or ADMIN then we need to see if the user has specific permissions // to do whatever it is they want to do ... to do this we pull relevant information for the // user (and any groups they belong to) // // Now we compare the users access level against the menus. We assume here that a moderator // and admin automatically have access to an ACL menu, similarly we assume admins meet an // auth requirement of MOD // $value = $f_access[$key]; switch( $value ) { case AUTH_ALL: $auth_user[$key] = TRUE; $auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_REG: $auth_user[$key] = ( $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user[$key . '_type'] = $lang['Auth_Registered_Users']; break; case AUTH_ANONYMOUS: $auth_user[$key] = ( ! $userdata['session_logged_in'] ) ? TRUE : 0; $auth_user[$key . '_type'] = $lang['Auth_Anonymous_users']; break; case AUTH_ACL: $auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($f_access_group) || $is_admin : 0; $auth_user[$key . '_type'] = $lang['Auth_Users_granted_access']; break; case AUTH_MOD: $auth_user[$key] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($f_access_group) || $is_admin : 0; $auth_user[$key . '_type'] = $lang['Auth_Moderators']; break; case AUTH_ADMIN: $auth_user[$key] = $is_admin; $auth_user[$key . '_type'] = $lang['Auth_Administrators']; break; default: $auth_user[$key] = 0; break; } } // // Is user a moderator? // $auth_user['auth_mod'] = ( $userdata['session_logged_in'] ) ? mx_is_group_member($f_access_group) || $is_admin : 0; return $auth_user; } /********************************************************************************\ | New optimized get_auth_forum | Credits to Markus_Petrux :-) \********************************************************************************/ function get_auth_forum($mode = 'phpbb') { global $userdata, $mx_root_path, $phpEx; // // Try to reuse auth_view query result. // $userdata_key = 'mx_get_auth_' . $mode . $userdata['user_id']; if( !empty($userdata[$userdata_key]) ) { $auth_data_sql = $userdata[$userdata_key]; return $auth_data_sql; } // // Now, this tries to optimize DB access involved in auth(), // passing AUTH_LIST_ALL will load info for all forums at once. // if( $mode == 'kb' ) { include_once($mx_root_path . 'modules/mx_kb/includes/functions_kb_auth.' . $phpEx); $auth_func = 'kb_auth'; } else { $auth_func = 'auth'; } $is_auth_ary = $auth_func(AUTH_VIEW, AUTH_LIST_ALL, $userdata); // // Loop through the list of forums to retrieve the ids for // those with AUTH_VIEW allowed. // $auth_data_sql = ''; foreach( $is_auth_ary as $fid => $is_auth_row ) { if( $is_auth_row['auth_view'] ) { $auth_data_sql .= ( $auth_data_sql != '' ) ? ', ' . $fid : $fid; } } if( empty($auth_data_sql) ) { $auth_data_sql = -1; } $userdata[$userdata_key] = $auth_data_sql; return $auth_data_sql; } /********************************************************************************\ | Validates if user belongs to group included in group_ids list | Also, adds all usergroups to userdata array \********************************************************************************/ function mx_is_group_member($group_ids = '', $group_mod_mode = false) { global $userdata, $db; if( empty($group_ids) ) { return false; } // // Try to reuse group_id results. // $userdata_key = 'mx_usergroups' . ( $group_mod_mode ? '_mod' : '' ) . $userdata['user_id']; if( empty($userdata[$userdata_key]) ) { if( $group_mod_mode ) // Get the groups the user is moderator of. { $sql = "SELECT group_id FROM " . GROUPS_TABLE . " WHERE group_moderator = '" . $userdata['user_id'] . "' AND group_single_user = 0"; } else // Get the groups the user is member of. { $sql = "SELECT group_id FROM " . USER_GROUP_TABLE . " WHERE user_id = '" . $userdata['user_id'] . "' AND user_pending = 0"; } if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, "Could not query group rights information"); } $userdata[$userdata_key] = $db->sql_fetchrowset($result); } $group_ids_array = explode(',', $group_ids); for( $i = 0; $i < count($userdata[$userdata_key]); $i++ ) { if( in_array($userdata[$userdata_key][$i]['group_id'], $group_ids_array) ) { return true; } } return false; } /********************************************************************************\ | \********************************************************************************/ function mx_get_groups($sel_id, $field_entry = 'auth_view_group') { global $db, $lang; $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " WHERE group_single_user <> " . TRUE . " ORDER BY group_name"; if( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Couldn't get list of groups", '', __LINE__, __FILE__, $sql); } $grouplist = '<select name="'.$field_entry.'">'; $grouplist .= '<option value="0">' . $lang['Select_group'] . '</option>'; while( $row = $db->sql_fetchrow($result) ) { $selected = ( $sel_id == $row['group_id'] ? ' selected="selected"' : '' ); $grouplist .= '<option value="' .$row['group_id'] . '"' . $selected . '>' . $row['group_name'] . '</option>'; } $grouplist .= '</select>'; return $grouplist; } ?> Index: template.php =================================================================== RCS file: /cvsroot/mxbb/core27x/includes/template.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** template.php 6 May 2005 06:47:58 -0000 1.1 --- template.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 22,213 **** */ - /** - * Template class. By Nathan Codding of the phpBB group. - * The interface was originally inspired by PHPLib templates, - * and the template file formats are quite similar. - */ - - class Template - { - var $classname = "Template"; - // variable that holds all the data we'll be substituting into - // the compiled templates. - // ... - // This will end up being a multi-dimensional array like this: - // $this->_tpldata[block.][iteration#][child.][iteration#][child2.][iteration#][variablename] == value - // if it's a root-level variable, it'll be like this: - // $this->_tpldata[.][0][varname] == value - var $_tpldata = array(); - // Hash of filenames for each template handle. - var $files = array(); - // Root template directory. - var $root = ""; - // this will hash handle names to the compiled code for that handle. - var $compiled_code = array(); - // This will hold the uncompiled code for that handle. - var $uncompiled_code = array(); - - /** - * Constructor. Simply sets the root dir. - */ - function Template( $root = "." ) - { - $this->set_rootdir( $root ); - } - - /** - * Destroys this template object. Should be called when you're done with it, in order - * to clear out the template data so you can load/parse a new template set. - */ - function destroy() - { - $this->_tpldata = array(); - } - - /** - * Sets the template root directory for this Template object. - */ - function set_rootdir( $dir ) - { - if ( !is_dir( $dir ) ) - { - return false; - } - - $this->root = $dir; - return true; - } - - /** - * Sets the template filenames for handles. $filename_array - * should be a hash of handle => filename pairs. - */ - function set_filenames( $filename_array ) - { - if ( !is_array( $filename_array ) ) - { - return false; - } - - reset( $filename_array ); - while ( list( $handle, $filename ) = each( $filename_array ) ) - { - $this->files[$handle] = $this->make_filename( $filename ); - } - - return true; - } - - /** - * Load the file for the handle, compile the file, - * and run the compiled code. This will print out - * the results of executing the template. - */ - function pparse( $handle ) - { - if ( !$this->loadfile( $handle ) ) - { - die( "Template->pparse(): Couldn't load template file for handle $handle" ); - } - // actually compile the template now. - if ( !isset( $this->compiled_code[$handle] ) || empty( $this->compiled_code[$handle] ) ) - { - // Actually compile the code now. - $this->compiled_code[$handle] = $this->compile( $this->uncompiled_code[$handle] ); - } - // Run the compiled code. - eval( $this->compiled_code[$handle] ); - return true; - } - - /** - * Inserts the uncompiled code for $handle as the - * value of $varname in the root-level. This can be used - * to effectively include a template in the middle of another - * template. - * Note that all desired assignments to the variables in $handle should be done - * BEFORE calling this function. - */ - function assign_var_from_handle( $varname, $handle ) - { - if ( !$this->loadfile( $handle ) ) - { - die( "Template->assign_var_from_handle(): Couldn't load template file for handle $handle" ); - } - // Compile it, with the "no echo statements" option on. - $_str = ""; - $code = $this->compile( $this->uncompiled_code[$handle], true, '_str' ); - // evaluate the variable assignment. - eval( $code ); - // assign the value of the generated variable to the given varname. - $this->assign_var( $varname, $_str ); ! return true; ! } ! ! /** ! * Block-level variable assignment. Adds a new block iteration with the given ! * variable assignments. Note that this should only be called once per block ! * iteration. ! */ ! function assign_block_vars( $blockname, $vararray ) ! { ! if ( strstr( $blockname, '.' ) ) ! { ! // Nested block. ! $blocks = explode( '.', $blockname ); ! $blockcount = sizeof( $blocks ) - 1; ! $str = '$this->_tpldata'; ! for ( $i = 0; $i < $blockcount; $i++ ) ! { ! $str .= '[\'' . $blocks[$i] . '.\']'; ! eval( '$lastiteration = sizeof(' . $str . ') - 1;' ); ! $str .= '[' . $lastiteration . ']'; ! } ! // Now we add the block that we're actually assigning to. ! // We're adding a new iteration to this block with the given ! // variable assignments. ! $str .= '[\'' . $blocks[$blockcount] . '.\'][] = $vararray;'; ! // Now we evaluate this assignment we've built up. ! eval( $str ); ! } ! else ! { ! // Top-level block. ! // Add a new iteration to this block with the variable assignments ! // we were given. ! $this->_tpldata[$blockname . '.'][] = $vararray; ! } ! ! return true; ! } ! ! /** ! * Root-level variable assignment. Adds to current assignments, overriding ! * any existing variable assignment with the same name. ! */ ! function assign_vars( $vararray ) ! { ! reset ( $vararray ); ! while ( list( $key, $val ) = each( $vararray ) ) ! { ! $this->_tpldata['.'][0][$key] = $val; ! } - return true; - } /** ! * Root-level variable assignment. Adds to current assignments, overriding ! * any existing variable assignment with the same name. */ ! function assign_var( $varname, $varval ) { ! $this->_tpldata['.'][0][$varname] = $varval; ! ! return true; } /** * Generates a full path+filename for the given filename, which can either * be an absolute name, or a name relative to the rootdir for this Template --- 22,46 ---- */ ! // ! // Including phpBB version of the Template class ! // ! include_once($phpbb_root_path . "includes/template.$phpEx"); + class mx_Template extends Template + { /** ! * Constructor. Simply calling parent construtor. ! * This is required. Reason is constructors have different method names. */ ! function mx_Template( $root = "." ) { ! parent::Template($root); } /** + * This make_filename implementation overrides parent method. + * * Generates a full path+filename for the given filename, which can either * be an absolute name, or a name relative to the rootdir for this Template *************** *** 285,500 **** } ! /** ! * If not already done, load the file for the given handle and populate ! * the uncompiled_code[] hash with its code. Do not compile. ! */ ! function loadfile( $handle ) ! { ! // If the file for this handle is already loaded and compiled, do nothing. ! if ( isset( $this->uncompiled_code[$handle] ) && !empty( $this->uncompiled_code[$handle] ) ) ! { ! return true; ! } ! // If we don't have a file assigned to this handle, die. ! if ( !isset( $this->files[$handle] ) ) ! { ! die( "Template->loadfile(): No file specified for handle $handle" ); ! } ! ! $filename = $this->files[$handle]; ! ! $str = implode( "", @file( $filename ) ); ! if ( empty( $str ) ) ! { ! die( "Template->loadfile(): File $filename for handle $handle is empty" ); ! } ! ! $this->uncompiled_code[$handle] = $str; ! ! return true; ! } ! ! /** ! * Compiles the given string of code, and returns ! * the result in a string. ! * If "do_not_echo" is true, the returned code will not be directly ! * executable, but can be used as part of a variable assignment ! * for use in assign_code_from_handle(). ! */ ! function compile( $code, $do_not_echo = false, $retvar = '' ) ! { ! // replace \ with \\ and then ' with \'. ! $code = str_replace( '\\', '\\\\', $code ); ! $code = str_replace( '\'', '\\\'', $code ); ! // change template varrefs into PHP varrefs ! // This one will handle varrefs WITH namespaces ! $varrefs = array(); ! preg_match_all( '#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs ); ! $varcount = sizeof( $varrefs[1] ); ! for ( $i = 0; $i < $varcount; $i++ ) ! { ! $namespace = $varrefs[1][$i]; ! $varname = $varrefs[3][$i]; ! $new = $this->generate_block_varref( $namespace, $varname ); ! ! $code = str_replace( $varrefs[0][$i], $new, $code ); ! } ! // This will handle the remaining root-level varrefs ! $code = preg_replace( '#\{([a-z0-9\-_]*?)\}#is', '\' . ( ( isset($this->_tpldata[\'.\'][0][\'\1\']) ) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\' ) . \'', $code ); ! // Break it up into lines. ! $code_lines = explode( "\n", $code ); ! ! $block_nesting_level = 0; ! $block_names = array(); ! $block_names[0] = "."; ! // Second: prepend echo ', append ' . "\n"; to each line. ! $line_count = sizeof( $code_lines ); ! for ( $i = 0; $i < $line_count; $i++ ) ! { ! $code_lines[$i] = chop( $code_lines[$i] ); ! if ( preg_match( '#<!-- BEGIN (.*?) -->#', $code_lines[$i], $m ) ) ! { ! $n[0] = $m[0]; ! $n[1] = $m[1]; ! // Added: dougk_ff7-Keeps templates from bombing if begin is on the same line as end.. I think. :) ! if ( preg_match( '#<!-- END (.*?) -->#', $code_lines[$i], $n ) ) ! { ! $block_nesting_level++; ! $block_names[$block_nesting_level] = $m[1]; ! if ( $block_nesting_level < 2 ) ! { ! // Block is not nested. ! $code_lines[$i] = '$_' . $n[1] . '_count = ( isset($this->_tpldata[\'' . $n[1] . '.\']) ) ? sizeof($this->_tpldata[\'' . $n[1] . '.\']) : 0;'; ! $code_lines[$i] .= "\n" . 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)'; ! $code_lines[$i] .= "\n" . '{'; ! } ! else ! { ! // This block is nested. ! // Generate a namespace string for this block. ! $namespace = implode( '.', $block_names ); ! // strip leading period from root level.. ! $namespace = substr( $namespace, 2 ); ! // Get a reference to the data array for this block that depends on the ! // current indices of all parent blocks. ! $varref = $this->generate_block_data_ref( $namespace, false ); ! // Create the for loop code to iterate over this block. ! $code_lines[$i] = '$_' . $n[1] . '_count = ( isset(' . $varref . ') ) ? sizeof(' . $varref . ') : 0;'; ! $code_lines[$i] .= "\n" . 'for ($_' . $n[1] . '_i = 0; $_' . $n[1] . '_i < $_' . $n[1] . '_count; $_' . $n[1] . '_i++)'; ! $code_lines[$i] .= "\n" . '{'; ! } ! // We have the end of a block. ! unset( $block_names[$block_nesting_level] ); ! $block_nesting_level--; ! $code_lines[$i] .= '} // END ' . $n[1]; ! $m[0] = $n[0]; ! $m[1] = $n[1]; ! } ! else ! { ! // We have the start of a block. ! $block_nesting_level++; ! $block_names[$block_nesting_level] = $m[1]; ! if ( $block_nesting_level < 2 ) ! { ! // Block is not nested. ! $code_lines[$i] = '$_' . $m[1] . '_count = ( isset($this->_tpldata[\'' . $m[1] . '.\']) ) ? sizeof($this->_tpldata[\'' . $m[1] . '.\']) : 0;'; ! $code_lines[$i] .= "\n" . 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)'; ! $code_lines[$i] .= "\n" . '{'; ! } ! else ! { ! // This block is nested. ! // Generate a namespace string for this block. ! $namespace = implode( '.', $block_names ); ! // strip leading period from root level.. ! $namespace = substr( $namespace, 2 ); ! // Get a reference to the data array for this block that depends on the ! // current indices of all parent blocks. ! $varref = $this->generate_block_data_ref( $namespace, false ); ! // Create the for loop code to iterate over this block. ! $code_lines[$i] = '$_' . $m[1] . '_count = ( isset(' . $varref . ') ) ? sizeof(' . $varref . ') : 0;'; ! $code_lines[$i] .= "\n" . 'for ($_' . $m[1] . '_i = 0; $_' . $m[1] . '_i < $_' . $m[1] . '_count; $_' . $m[1] . '_i++)'; ! $code_lines[$i] .= "\n" . '{'; ! } ! } ! } ! else if ( preg_match( '#<!-- END (.*?) -->#', $code_lines[$i], $m ) ) ! { ! // We have the end of a block. ! unset( $block_names[$block_nesting_level] ); ! $block_nesting_level--; ! $code_lines[$i] = '} // END ' . $m[1]; ! } ! else ! { ! // We have an ordinary line of code. ! if ( !$do_not_echo ) ! { ! $code_lines[$i] = 'echo \'' . $code_lines[$i] . '\' . "\\n";'; ! } ! else ! { ! $code_lines[$i] = '$' . $retvar . '.= \'' . $code_lines[$i] . '\' . "\\n";'; ! } ! } ! } ! // Bring it back into a single string of lines of code. ! $code = implode( "\n", $code_lines ); ! return $code ; ! } ! ! /** ! * Generates a reference to the given variable inside the given (possibly nested) ! * block namespace. This is a string of the form: ! * ' . $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['varname'] . ' ! * It's ready to be inserted into an "echo" line in one of the templates. ! * NOTE: expects a trailing "." on the namespace. ! */ ! function generate_block_varref( $namespace, $varname ) ! { ! // Strip the trailing period. ! $namespace = substr( $namespace, 0, strlen( $namespace ) - 1 ); ! // Get a reference to the data block for this namespace. ! $varref = $this->generate_block_data_ref( $namespace, true ); ! // Prepend the necessary code to stick this in an echo line. ! // Append the variable reference. ! $varref .= '[\'' . $varname . '\']'; ! ! $varref = '\' . ( ( isset(' . $varref . ') ) ? ' . $varref . ' : \'\' ) . \''; ! ! return $varref; ! } ! ! /** ! * Generates a reference to the array of data values for the given ! * (possibly nested) block namespace. This is a string of the form: ! * $this->_tpldata['parent'][$_parent_i]['$child1'][$_child1_i]['$child2'][$_child2_i]...['$childN'] ! * ! * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above. ! * NOTE: does not expect a trailing "." on the blockname. ! */ ! function generate_block_data_ref( $blockname, $include_last_iterator ) ! { ! // Get an array of the blocks involved. ! $blocks = explode( ".", $blockname ); ! $blockcount = sizeof( $blocks ) - 1; ! $varref = '$this->_tpldata'; ! // Build up the string with everything but the last child. ! for ( $i = 0; $i < $blockcount; $i++ ) ! { ! $varref .= '[\'' . $blocks[$i] . '.\'][$_' . $blocks[$i] . '_i]'; ! } ! // Add the block reference for the last child. ! $varref .= '[\'' . $blocks[$blockcount] . '.\']'; ! // Add the iterator for the last child if requried. ! if ( $include_last_iterator ) ! { ! $varref .= '[$_' . $blocks[$blockcount] . '_i]'; ! } ! ! return $varref; ! } ! } ?> \ No newline at end of file --- 118,122 ---- } ! } // class mx_Template ?> \ No newline at end of file --- NEW FILE: mx_cache.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_cache.php,v 1.1 2005/05/26 21:54:08 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_cache // // // Following flags are options for the $type parameter in method _read() // define('MX_ALL_DATA' , -1); // Flag - write all data define('MX_BLOCK' , 0); // Block read mode define('MX_PAGE' , 1); // Page read mode define('MX_QUERY_DB' , true); // Flag - to force db query define('MX_CACHE_DEBUG' , false); // echo lots of debug info // // Additional notes: // // // This class IS instatiated in common.php ;-) // // Usage examples: // // The block and pages config data is either retrieved from its cache file od db queried (adminCP switch), or db query is forced using flag 'MX_QUERY_DB' // $block_config = $mx_cache->read( MX_BLOCK, $block_id, [MX_QUERY_DB] ); // Optional flag 'MX_QUERY_DB' to force db query // $page_config = $mx_cache->read( MX_PAGE, $page_id, [MX_QUERY_DB] ); // Optional flag 'MX_QUERY_DB' to force db query // $mx_cache->update( MX_ALL_DATA ); // Updates all cache // $mx_cache->update( MX_BLOCK, [$block_id] ); // Optional parameter $block_id to update only specific cache fle // $mx_cache->update( MX_PAGE, [$page_id] ); // Optional parameter $page_id to update only specific cache file class mx_cache { // ------------------------------ // Private Methods // // // Read cache function _read_config( $id, $sub_id, $type, $cache ) { global $portal_config, $mx_root_path; $cache_dir = $mx_root_path . 'cache/'; switch ( $type ) { case MX_BLOCK: $cache_file = $cache_dir . "block_" . $id . ".xml"; $block_config = ''; if ( file_exists( $cache_file ) && !empty($id) && $cache == true && $sub_id == 0 && $portal_config['mx_use_cache'] == 1 ) { if ( MX_CACHE_DEBUG ) { echo('using block cache'); } $block_config = $this->_cache2data( $id, $cache_file ); } else { if ( MX_CACHE_DEBUG ) { echo('using block db'); } $block_config = $this->_get_block_config( $id, $sub_id ); } return $block_config; break; case MX_PAGE: $cache_file = $cache_dir . "page_" . $id . ".xml"; $pages_config = ''; if ( file_exists( $cache_file ) && !empty($id) && $cache == true && $portal_config['mx_use_cache'] == 1 ) { if ( MX_CACHE_DEBUG ) { echo('using page cache'); } $pages_config = $this->_cache2data( $id, $cache_file ); } else { if ( MX_CACHE_DEBUG ) { echo('using page db'); } $pages_config = $this->_get_page_config( $id ); } return $pages_config; break; } } // Write cache function _write_config( $type, $id, $action ) { global $portal_config, $mx_root_path, $lang; $cache_dir = $mx_root_path . 'cache/'; @mkdir($cache_dir, 0777); @chmod($cache_dir, 0777); $cache_file = $cache_dir . ( $type == MX_BLOCK ? "block_" : "page_" ) . ( $action == 'single' ? $id . ".xml" : '' ); if ( !is_writable($cache_dir) ) { mx_message_die(GENERAL_MESSAGE, $lang['Cache_dir_write_protect'], ''); exit; } switch ( $type ) { case MX_BLOCK: switch ( $action ) { case 'all': if ( MX_CACHE_DEBUG ) { echo('writing all block cache'); } $block_config = $this->_get_block_config( '', 0 ); $this->_data2cache( $block_config, $cache_file, $action, $type ); break; case 'single': if ( MX_CACHE_DEBUG ) { echo('writing id block cache'); } $block_config = $this->_get_block_config( $id, 0 ); $this->_data2cache( $block_config[$id], $cache_file, $action, $type ); break; } break; case MX_PAGE: switch ( $action ) { case 'all': if ( MX_CACHE_DEBUG ) { echo('writing all page cache'); } $pages_config = $this->_get_page_config( ); $this->_data2cache( $pages_config, $cache_file, $action, $type ); break; case 'single': if ( MX_CACHE_DEBUG ) { echo('writing id page cache'); } $pages_config = $this->_get_page_config( $id ); $this->_data2cache( $pages_config, $cache_file, $action, $type ); break; } break; } } // -------------------------------------------------------------------WRITE CACHE // write cache from db query (or data) function _data2cache($data, $xml_file, $action, $type ) { global $db; switch ( $action ) { case 'all': if ( empty($data) || empty($xml_file) ) { return; } foreach ($data as $key => $value) { $OUTPUT = serialize($value); if ( $type == MX_PAGE ) { $fp = fopen($xml_file . $value['page_info']['page_id'] . $xml_file_type . ".xml","w"); // open file with Write permission } else { $fp = fopen($xml_file . $value['block_id'] . $xml_file_type . ".xml","w"); // open file with Write permission } fputs($fp, $OUTPUT); fclose($fp); } break; case 'single': if ( empty($data) || empty($xml_file) ) { return; } $OUTPUT = serialize($data); $fp = fopen($xml_file,"w"); // open file with Write permission fputs($fp, $OUTPUT); fclose($fp); break; } } // -------------------------------------------------------------------READ CACHE // read xml file to array function _cache2data( $id = '', $cache_file = '' ) { if ( empty($cache_file) ) { return; } $data = array(); if ( (@phpversion() < '4.3.0' ) ) { $data[$id] = unserialize(implode('',file($cache_file))); } else { $data[$id] = unserialize(file_get_contents($cache_file)); } return $data; } // -------------------------------------------------------------------GET DATA // Read the variable block configuration function _get_block_config( $id = '', $sub_id = 0 ) { global $db; $block_config = array(); // If this block doesn't have any parameters, we need this additional query :( $sql_block = !empty($id) ? " AND block_id = " . $id : ''; // Generate block parameter data $sql = "SELECT blk.*, mdl.module_path, fnc.function_file, fnc.function_admin FROM " . BLOCK_TABLE . " blk, " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " mdl WHERE blk.function_id = fnc.function_id AND fnc.module_id = mdl.module_id"; $sql .= $sql_block; $sql .= " ORDER BY block_id"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Could not obtain block data information', '', __LINE__, __FILE__, $sql ); } while ( $row = $db->sql_fetchrow( $result ) ) { $block_row = array( "block_id" => $row['block_id'], "block_title" => $row['block_title'], "block_desc" => $row['block_desc'], "auth_view" => $row['auth_view'], "auth_view_group" => $row['auth_view_group'], "auth_edit" => $row['auth_edit'], "auth_edit_group" => $row['auth_edit_group'], // "auth_moderator_group" => $row['auth_moderator_group'], // "show_block" => $row['show_block'], // "show_title" => $row['show_title'], // "show_stats" => $row['show_stats'], // "block_time" => $row['block_time'], // "block_editor_id" => $row['block_editor_id'], "module_root_path" => $row['module_path'], "block_file" => $row['function_file'], "block_edit_file" => $row['function_admin'] ); $block_config[$row['block_id']] = $block_row; } $sql_block = !empty( $block_id ) ? " AND sys.block_id = " . $id : ''; // Generate block parameter data $sql = "SELECT blk.*, sys.parameter_id, par.parameter_name, sys.parameter_value, sys.bbcode_uid, mdl.module_path, fnc.function_file, fnc.function_admin FROM " . BLOCK_SYSTEM_PARAMETER_TABLE . " sys, " . PARAMETER_TABLE . " par, " . BLOCK_TABLE . " blk, " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " mdl WHERE sys.parameter_id = par.parameter_id AND sys.block_id = blk.block_id AND blk.function_id = fnc.function_id AND fnc.module_id = mdl.module_id"; $sql .= $sql_block; $sql .= " ORDER BY sys.block_id, sys.parameter_id"; if ( !( $result = $db->sql_query( $sql ) ) ) { mx_message_die( GENERAL_ERROR, 'Could not obtain block data information', '', __LINE__, __FILE__, $sql ); } $block_id = 0; while ( $row = $db->sql_fetchrow( $result ) ) { $next_block = ( $block_id != $row['block_id'] ) ? true : false; $block_id = $row['block_id']; $block_row = array( "block_id" => $row['block_id'], "block_title" => $row['block_title'], "block_desc" => $row['block_desc'], "column_id" => $row['column_id'], "auth_view" => $row['auth_view'], "auth_view_group" => $row['auth_view_group'], "auth_edit" => $row['auth_edit'], "auth_edit_group" => $row['auth_edit_group'], // "auth_moderator_group" => $row['auth_moderator_group'], // "show_block" => $row['show_block'], // "show_title" => $row['show_title'], // "show_stats" => $row['show_stats'], // "block_time" => $row['block_time'], // "block_editor_id" => $row['block_editor_id'], "module_root_path" => $row['module_path'], "block_file" => $row['function_file'], "block_edit_file" => $row['function_admin'] ); $param_row = array( "parameter_id" => $row['parameter_id'], "parameter_name" => $row['parameter_name'], "parameter_value" => $row['parameter_value'], "bbcode_uid" => $row['bbcode_uid'] ); if ( $next_block ) { $block_config[$block_id] = $block_row; } $block_config[$block_id][$param_row['parameter_name']] = $param_row; } return $block_config; } function _get_page_config( $id = '' ) { global $db, $HTTP_SESSION_VARS; $sql_page = !empty($id) ? " AND col.page_id = '" . $id . "'" : ""; // Get page_blocks data $sql = "SELECT col.page_id, pag.page_name, pag.page_icon, pag.page_header, pag.auth_view AS pag_auth_view, pag.auth_view_group AS pag_auth_view_group, bct.column_id, col.column_title, col.column_order, col.column_size, blk.block_id, mdl.module_path, fnc.function_file, fnc.function_admin FROM " . COLUMN_BLOCK_TABLE . " bct, " . BLOCK_TABLE . " blk, " . FUNCTION_TABLE . " fnc, " . MODULE_TABLE . " mdl, " . PAGE_TABLE . " pag, " . COLUMN_TABLE . " col WHERE blk.function_id = fnc.function_id AND pag.page_id = col.page_id AND blk.block_id = bct.block_id AND fnc.module_id = mdl.module_id AND bct.column_id = col.column_id "; $sql .= $sql_page; $sql .= " ORDER BY col.page_id, column_id, column_order, block_order"; if ( !$result = $db->sql_query( $sql ) ) { mx_message_die( GENERAL_ERROR, "Could not query page information", "", __LINE__, __FILE__, $sql ); } $pages_config = array(); $page_id = 0; while ( $row = $db->sql_fetchrow( $result ) ) { $next_page = ( $page_id != $row['page_id'] ) ? true : false; $next_column = ( $column_id != $row['column_id'] ) ? true : false; $page_id = $row['page_id']; $column_id = $row['column_id']; $page_row = array( "page_id" => $row['page_id'], "page_name" => $row['page_name'], "page_icon" => $row['page_icon'], "page_header" => $row['page_header'], "page_auth_view" => $row['pag_auth_view'], "page_auth_view_group" => $row['pag_auth_view_group'] ); $column_row = array( "column_id" => $row['column_id'], "column_title" => $row['column_title'], "column_order" => $row['column_order'], "column_size" => $row['column_size'] ); $block_row = array( "block_id" => $row['block_id'], "column_id" => $row['column_id'], "module_root_path" => $row['module_path'], "function_file" => $row['function_file'], "function_admin" => $row['function_admin'] ); if ( $next_page ) { $temp_row = array(); $temp_row = array( 'page_info' => $page_row ); } if ( $next_column ) { $temp_row['columns'][] = $column_row; } $temp_row['blocks'][] = $block_row; // Compose the pages config array $pages_config[$page_id] = $temp_row; }; return $pages_config; } function _update_cache( ) { global $db, $HTTP_SESSION_VARS, $mx_root_path, $phpbb_root_path, $phpEx, $mx_use_cache, $portal_config; // $portal_cache_time = time(); // $sql = "UPDATE ".PORTAL_TABLE." // SET portal_recached = '$portal_cache_time' // WHERE portal_id = 1"; // if ( !( $result = $db->sql_query( $sql, BEGIN_TRANSACTION ) ) ) // { // mx_message_die( GENERAL_ERROR, "Could not update portal cache time.", "", __LINE__, __FILE__, $sql ); // } } // ------------------------------ // Public Methods // // $block_config = $mx_cache->read( MX_BLOCK, $block_id, [MX_QUERY_DB] ); // Optional flag 'MX_QUERY_DB' to force db query // $page_config = $mx_cache->read( MX_PAGE, $page_id, [MX_QUERY_DB] ); // Optional flag 'MX_QUERY_DB' to force db query // $mx_cache->update( MX_ALL_DATA ); // Updates all cache // $mx_cache->update( MX_BLOCK, [$block_id] ); // Optional parameter $block_id to update only specific cache fle // $mx_cache->update( MX_PAGE, [$page_id] ); // Optional parameter $page_id to update only specific cache file function read( $id = '', $type = MX_BLOCK, $force_query = false ) { if ( is_array( $id ) ) { $id = $id['id']; $sub_id = $id['sub_id']; } else { $sub_id = 0; } if ( $id > 0 ) { return $this->_read_config( $id, $sub_id, $type, !$force_query ); } else { die('invalid cache read call - no id'); } } // TYPE: MX_ALL_DATA, MX_PAGE, MX_BLOCK function update( $type = MX_ALL_DATA, $id = '' ) { if ( $type == MX_ALL_DATA || empty($id) ) { $this->_write_config( MX_BLOCK, '', 'all' ); $this->_write_config( MX_PAGE, '', 'all' ); } else if ( $id > 0 ) { $this->_write_config( $type, $id, 'single' ); } else { die('invalid cache write call - no id'); } $this->_update_cache( ); } } // class mx_cache // -------------------------------------------------------------------------------- // Class: mx_block // // // Usage examples: // class mx_block { // // Implementation Conventions: // Properties and methods prefixed with underscore are intented to be private. ;-) // // ------------------------------ // Vars // var $block_config = array(); var $block_id = ''; var $block_title = ''; var $block_desc = ''; // var $show_block = true; var $show_title = true; // var $show_stats = true; var $auth_view = ''; var $auth_view_group = ''; var $auth_edit = ''; var $auth_edit_group = ''; // var $block_time = ''; // var $editor_id = ''; var $module_root_path = ''; var $block_file = ''; var $block_edit_file = ''; // var $dynamic_block_id = ''; // var $is_dynamic = false; // var $total_subs = ''; // var $sub_block_ids = ''; // var $sub_block_sizes = ''; // var $sub_inner_space = ''; // var $is_sub = false; // ------------------------------ // Properties // // none in this class. // ------------------------------ // Constructor // // ------------------------------ // Private Methods // function _set_all( $block_id, $unset = false ) { global $userdata; $this->block_id = $this->block_config[$block_id]['block_id']; $this->block_title = $this->block_config[$block_id]['block_title']; $this->block_desc = $this->block_config[$block_id]['block_desc']; // $this->show_block = $this->block_config[$block_id]['show_block'] == '1'; // $this->show_title = $this->block_config[$block_id]['show_title'] == '1'; // $this->show_stats = $this->block_config[$block_id]['show_stats'] == '1'; $mx_is_auth_ary = array(); $mx_is_auth_ary = block_auth( AUTH_VIEW, $block_id, $userdata, $this->block_config[$block_id]['auth_view'], $this->block_config[$block_id]['auth_view_group'] ); $this->auth_view = $unset ? false : $mx_is_auth_ary['auth_view']; $mx_is_auth_ary = array(); $mx_is_auth_ary = block_auth( AUTH_EDIT, $block_id, $userdata, $this->block_config[$block_id]['auth_edit'], $this->block_config[$block_id]['auth_edit_group'] ); $this->auth_edit = $unset ? false : $mx_is_auth_ary['auth_edit']; $this->auth_mod = $unset ? false : $mx_is_auth_ary['auth_mod']; // $this->block_time = $this->block_config[$block_id]['block_time']; // $this->editor_id = $this->block_config[$block_id]['block_editor_id']; $this->module_root_path = $this->block_config[$block_id]['module_root_path']; $this->block_file = $this->block_config[$block_id]['block_file']; $this->block_edit_file = $this->block_config[$block_id]['block_edit_file']; // $this->is_dynamic = $unset ? false : $this->_is_dynamic( $block_id ); // $this->is_sub = $unset ? false : $this->_is_sub( $block_id ); } // ------------------------------ // Public Methods // function init( $block_id ) { global $mx_cache; $this->block_config = $mx_cache->read( $block_id, MX_BLOCK ); $this->_set_all( $block_id ); } } // class mx_block // -------------------------------------------------------------------------------- // Class: mx_block // // // Usage examples: // class mx_page { // // Implementation Conventions: // Properties and methods prefixed with underscore are intented to be private. ;-) // // ------------------------------ // Vars // var $page_config = array(); var $info = array(); var $columns = array(); var $blocks = array(); var $total_column = ''; var $total_block = ''; var $auth_view = ''; var $auth_view_group = ''; // ------------------------------ // Properties // // none in this class. // ------------------------------ // Constructor // // ------------------------------ // Private Methods // function _set_all( $page_id ) { global $userdata, $mx_root_path, $HTTP_GET_VARS; $this->info = $this->page_config[$page_id]['page_info']; $mx_is_auth_ary = array(); $mx_is_auth_ary = page_auth( AUTH_VIEW, $userdata, $this->info['page_auth_view'], $this->info['page_auth_view_group'] ); $this->auth_view = $mx_is_auth_ary['auth_view']; $this->columns = $this->page_config[$page_id]['columns']; $this->total_column = count($this->columns); $this->blocks = $this->page_config[$page_id]['blocks']; $this->total_block = count($this->blocks); } // ------------------------------ // Public Methods // function init( $page_id ) { global $mx_cache; $this->page_config = $mx_cache->read( $page_id, MX_PAGE ); $this->_set_all( $page_id ); } function drop( $page_id ) { global $mx_cache; $this->page_config = ''; } } // class mx_page // // ------------------------------------------------------------------------------------------------------------- // For compatibility with old block calls // function read_block_config( $block_id, $cache = true ) { global $mx_cache, $mx_block, $mx_split_block, $block_config; if ( !empty( $mx_block->block_config[$block_id] )) { return $mx_block->block_config; } if ( !empty( $mx_split_block->block_config[$block_id] ) ) { return $mx_split_block->block_config; } return $mx_cache->read( $block_id, MX_BLOCK, !$cache ); } function update_session_cache( $block_id = '' ) { global $mx_cache; $mx_cache->update( MX_BLOCK, $block_id ); } ?> Index: mx_constants.php =================================================================== RCS file: /cvsroot/mxbb/core27x/includes/mx_constants.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_constants.php 6 May 2005 06:47:58 -0000 1.1 --- mx_constants.php 26 May 2005 21:54:08 -0000 1.2 *************** *** 29,33 **** define('PAGE_FORUM' , -20); define('PAGE_ADS' , -21); - define('PAGE_CALENDAR' , -22); define('PAGE_WELCOME' , -23); define('PAGE_LAST_MSG' , -24); --- 29,32 ---- *************** *** 35,43 **** define('PAGE_POLL' , -26); define('PAGE_URL' , -27); - define('PAGE_WEATHER' , -28); define('PAGE_NEWS' , -37); define('PAGE_MENU_NAV' , -29); - define('PAGE_ADS_POST' , -30); - define('PAGE_ALBUM' , -39); define('PAGE_MENU_ADMIN', -31); --- 34,39 ---- *************** *** 47,51 **** define('PAGE_ADS_ADMIN' , -35); define('PAGE_ANNOUNCEMENT', -36); - define('PAGE_WEATHER_EDIT', -38); define('PAGE_ANNOUNCEMENT_ADMIN' , -35); --- 43,46 ---- *************** *** 54,66 **** - define('ADS_TABLE', $mx_table_prefix.'block_ads'); - define('WELCOME_TABLE', $mx_table_prefix.'welcome_msg'); - define('WEB_LINKS_TABLE', $mx_table_prefix.'links'); define('PORTAL_TABLE', $mx_table_prefix.'portal'); - define('WEATHER_TABLE', $mx_table_prefix.'weather'); define('MENU_NAV_TABLE', $mx_table_prefix.'menu_nav'); define('MENU_CAT_TABLE', $mx_table_prefix.'menu_categories'); - define('CALENDAR_TABLE', $mx_table_prefix.'calendar'); - define('CALENDAR_CAT_TABLE', $mx_table_prefix.'calendar_categories'); define('MODULE_TABLE', $mx_table_prefix.'module'); --- 49,55 ---- *************** *** 77,90 **** define('BLOCK_USER_PARAMETER_TABLE', $mx_table_prefix.'block_user_parameter'); - - define('CONFIG_WEATHER_TABLE', $mx_table_prefix.'config_weather'); - define('CONFIG_WEATHER_DET_TABLE', $mx_table_prefix.'config_weather_det'); - - - define('DOWNLOAD_LICENSE_TABLE' , $mx_table_prefix.'download_license'); - define('DOWNLOAD_CATEGORIES_TABLE', $mx_table_prefix.'download_cat'); - define('DOWNLOAD_FILES_TABLE' , $mx_table_prefix.'download_files'); - define('DOWNLOAD_VOTES_TABLE' , $mx_table_prefix.'download_votes'); - define('AUTH_ANONYMOUS', 99); --- 66,69 ---- --- NEW FILE: mx_functions_phpbb.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_functions_phpbb.php,v 1.1 2005/05/26 21:54:08 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. */ /** * Included functions in this file: (validated for phpbb 2.0.10) * - mx_smilies_pass (from bbcode.php) * - mx_generate_smilies (from functions_post.php) * - mx_decode * - mx_init_userprefs (from functions.php) * - mx_setup_style (from functions.php) * - mx_message_die (from functions.php) * - mx_block_message (a message_die kind of function for blocks) * - mx_redirect (from functions.php) * - mx_generate_pagination (from functions.php) */ // // Hacking smilies_pass from phpbb/includes/bbcode.php // function mx_smilies_pass($message) { global $board_config; $smilies_path = $board_config['smilies_path']; $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; $message = smilies_pass($message); $board_config['smilies_path'] = $smilies_path; return $message; } // // Hacking generate_smilies from phpbb/includes/functions_post.php // function mx_generate_smilies($mode, $page_id) { global $board_config, $template, $phpEx; $smilies_path = $board_config['smilies_path']; $board_config['smilies_path'] = PHPBB_URL . $board_config['smilies_path']; generate_smilies($mode, $page_id); $board_config['smilies_path'] = $smilies_path; $template->assign_vars(array( 'U_MORE_SMILIES' => append_sid(PHPBB_URL . "posting.$phpEx?mode=smilies")) ); } // // Convert the bbcode to html // function mx_decode($bbtext, $bbcode_uid) { $mytext = stripslashes($bbtext); $mytext = bbencode_second_pass($mytext, $bbcode_uid); $mytext = mx_smilies_pass($mytext); $mytext = str_replace("\n", "\n<br />\n", $mytext); $mytext = make_clickable($mytext); return $mytext; } // // Initialise user settings on page load function mx_init_userprefs($userdata) { global $board_config, $theme, $images; global $template, $lang, $phpEx, $phpbb_root_path, $mx_root_path; global $nav_links; if ( $userdata['user_id'] != ANONYMOUS ) { if ( !empty($userdata['user_lang'])) { $board_config['default_lang'] = $userdata['user_lang']; } if ( !empty($userdata['user_dateformat']) ) { $board_config['default_dateformat'] = $userdata['user_dateformat']; } if ( isset($userdata['user_timezone']) ) { $board_config['board_timezone'] = $userdata['user_timezone']; } } if ( !file_exists($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { $board_config['default_lang'] = 'english'; } if ( file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); } if ( file_exists($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); } if ( defined('IN_ADMIN') ) { if( !file_exists($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx) || !file_exists($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx) ) { $board_config['default_lang'] = 'english'; } include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); include($mx_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); } // // Set up style // if ( !$board_config['override_user_style'] ) { if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_style'] > 0 ) { if ( $theme = mx_setup_style($userdata['user_style']) ) { return; } } } $theme = mx_setup_style($board_config['default_style']); // // Mozilla navigation bar // Default items that should be valid on all pages. // Defined here to correctly assign the Language Variables // and be able to change the variables within code. // $nav_links['top'] = array ( 'url' => append_sid($phpbb_root_path . 'index.' . $phpEx), 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) ); $nav_links['search'] = array ( 'url' => append_sid($phpbb_root_path . 'search.' . $phpEx), 'title' => $lang['Search'] ); $nav_links['help'] = array ( 'url' => append_sid($phpbb_root_path . 'faq.' . $phpEx), 'title' => $lang['FAQ'] ); $nav_links['author'] = array ( 'url' => append_sid($phpbb_root_path . 'memberlist.' . $phpEx), 'title' => $lang['Memberlist'] ); return; } function mx_setup_style($style, $only_template = false) { global $db, $board_config, $template, $images, $phpbb_root_path, $mx_root_path; $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id = $style"; if ( !($result = $db->sql_query($sql)) ) { $style = 1; $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id = $style"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(CRITICAL_ERROR, 'Could not query database for theme info'); } } if ( !($row = $db->sql_fetchrow($result)) ) { mx_message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]"); } $template_path = 'templates/' ; $template_name = $row['template_name'] ; // MX FIX for uninstalled themes ... use subSilver instead if ( !file_exists($mx_root_path . $template_path . $template_name . '/mx_login.tpl') ) { $template_path = 'templates/'; $template_name = 'subSilver'; $style = 1; $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id = $style"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(CRITICAL_ERROR, 'Could not query database for theme info'); } if ( !($row = $db->sql_fetchrow($result)) ) { mx_message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]"); } $template = new mx_Template($mx_root_path . $template_path . $template_name); } else { $template = new mx_Template($mx_root_path . $template_path . $template_name); } if ( $only_template ) { return $row; } // // call when only_template is false. // define('TEMPLATE_ROOT_PATH', $template_path . $template_name . '/'); if ( $template ) { $current_template_path = $template_path . $template_name; @include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg'); if ( !defined('TEMPLATE_CONFIG') ) { mx_message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__); } $img_lang = ( file_exists($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang']) ) ? $board_config['default_lang'] : 'english'; while( list($key, $value) = @each($images) ) { if ( !is_array($value) ) { $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); } } } return $row; } // // This is general replacement for die(), allows templated // output in users (or default) language, etc. // // $msg_code can be one of these constants: // // GENERAL_MESSAGE : Use for any simple text message, eg. results // of an operation, authorisation failures, etc. // // GENERAL ERROR : Use for any error which occurs _AFTER_ the // common.php include and session code, ie. most errors in // pages/functions // // CRITICAL_MESSAGE : Used when basic config data is available but // a session may not exist, eg. banned users // // CRITICAL_ERROR : Used when config da... [truncated message content] |
|
From: Jon O. <jon...@us...> - 2005-05-22 21:31:09
|
Update of /cvsroot/mxbb/core27x In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1842/core27x Modified Files: common.php Log Message: test Index: common.php =================================================================== RCS file: /cvsroot/mxbb/core27x/common.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** common.php 6 May 2005 06:47:57 -0000 1.1 --- common.php 22 May 2005 21:31:00 -0000 1.2 *************** *** 208,211 **** --- 208,214 ---- include_once($mx_root_path . 'includes/mx_constants.'.$phpEx); include_once($mx_root_path . 'includes/mx_functions.'.$phpEx); + include_once($mx_root_path . 'includes/mx_functions_phpbb.' . $phpEx); + include_once($mx_root_path . 'includes/mx_auth.' . $phpEx); + include_once($mx_root_path . 'includes/mx_cache.' . $phpEx); $portal_config = get_info( PORTAL_TABLE, 'portal_id', 1 ); *************** *** 222,225 **** --- 225,233 ---- // + // instatiate the mx_cache class + // + $mx_cache = new mx_cache(); + + // // Mozilla navigation bar // Default items that should be valid on all pages. *************** *** 270,274 **** if( !($result = $db->sql_query($sql)) ) { ! message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); } --- 278,282 ---- if( !($result = $db->sql_query($sql)) ) { ! mx_message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql); } *************** *** 317,321 **** if ( file_exists('install') || file_exists('contrib') ) { ! message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted'); } --- 325,329 ---- if ( file_exists('install') || file_exists('contrib') ) { ! mx_message_die(GENERAL_MESSAGE, 'Please ensure both the install/ and contrib/ directories are deleted'); } *************** *** 325,329 **** if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") ) { ! message_die(GENERAL_MESSAGE, 'Board_disable', 'Information'); } --- 333,337 ---- if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") ) { ! mx_message_die(GENERAL_MESSAGE, 'Board_disable', 'Information'); } |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:30
|
Update of /cvsroot/mxbb/core27x/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/templates/subSilver Added Files: index.htm mx_announce.tpl mx_forum.tpl mx_google.tpl mx_install.tpl mx_language.tpl mx_login.tpl mx_menu_nav.tpl mx_online.tpl mx_poll_ballot.tpl mx_poll_result.tpl mx_theme.tpl overall_footer.tpl overall_header.tpl overall_noheader.tpl Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_poll_ballot.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left"> {L_TITLE} </th> </tr> <tr> <td class="row1"><br clear="all" /> <form method="POST" action="{S_POLL_ACTION}"> <table cellspacing="0" cellpadding="4" border="0" align="center"> <tr> <td align="center"><span class="gen"><a href="{U_URL}">{POLL_QUESTION}</a></span></td> </tr> <tr> <td align="center"> <table cellspacing="0" cellpadding="2" border="0"> <!-- BEGIN poll_option --> <tr> <td><input type="radio" name="{poll_option.VOTE_ID}" value="{poll_option.POLL_OPTION_ID}" /> </td> <td><span class="gen">{poll_option.POLL_OPTION_CAPTION}</span></td> </tr> <!-- END poll_option --> </table> </td> </tr> <tr> <td align="center"> <input type="submit" name="submit" value="{L_SUBMIT_VOTE}" class="liteoption" /> </td> </tr> <tr> <td align="center"><span class="gensmall"><b><a href="{U_VIEW_RESULTS}" class="gensmall">{L_VIEW_RESULTS}</a></b></span></td> </tr> </table>{S_HIDDEN_FIELDS} </form> </td> </tr> </table> <br clear="all" /> --- NEW FILE: mx_forum.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th colspan="2" class="thCornerL" nowrap="nowrap"> {L_FORUM} </th> <th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th> <th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th> <th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th> </tr> <!-- BEGIN catrow --> <tr> <td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td> <td class="rowpic" colspan="3" align="right"> </td> </tr> <!-- BEGIN forumrow --> <tr> <td class="row1" align="center" valign="middle" height="50"><img src="{U_PHPBB_ROOT_PATH}{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> <td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br /> </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /> </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td> <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td> <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td> <td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td> </tr> <!-- END forumrow --> <!-- END catrow --> </table> <table width="{BLOCK_SIZE}" cellspacing="0" border="0" align="center" cellpadding="2"> <tr> <td align="left"><span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td> <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table> <br clear="all" /> <table cellspacing="3" border="0" align="center" cellpadding="0"> <tr> <td width="20" align="center"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/folder_new.gif" alt="{L_NEW_POSTS}"/></td> <td><span class="gensmall">{L_NEW_POSTS}</span></td> <td> </td> <td width="20" align="center"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td> <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td> <td> </td> <td width="20" align="center"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td> <td><span class="gensmall">{L_FORUM_LOCKED}</span></td> </tr> </table> <br clear="all" /> --- NEW FILE: mx_online.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left" colspan="2"> {L_WHO_IS_ONLINE} </th> </tr> <tr> <td class="row1" align="center" valign="middle" rowspan="2"><a href="{U_VIEWONLINE}" class="cattitle"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" border="0" /></a></td> <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span> </td> </tr> <tr> <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td> </tr> </table> <br clear="all" /> --- NEW FILE: mx_language.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left" > {L_TITLE} </th> </tr> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="genmed"> <b>{L_SUBTITLE}</b> </span></td> </tr> <!-- BEGIN switch_is_admin --> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> {switch_is_admin.L_CHANGE_NOW} </span></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> <form method="post" action="{ACTION_URL}"> {switch_is_admin.LANG_SELECT} <br /> <input type="submit" class="mainoption" name="change_default_lang" value="{L_CHANGE_NOW}" /> </form> </span></td> </tr> <!-- END switch_is_admin --> <!-- BEGIN switch_is_user --> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> {switch_is_user.L_CHANGE_NOW} </span></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> <form method="post" action="{ACTION_URL}"> {switch_is_user.LANG_SELECT} <br /> <input type="submit" class="mainoption" name="change_user_lang" value="{L_CHANGE_NOW}" /> </form> </span></td> </tr> <!-- END switch_is_user --> </table> <br clear="all" /> --- NEW FILE: mx_login.tpl --- <form action="{S_LOGIN_ACTION}" method="post"> <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline" > <tr> <th class="thHead" align="left" > {L_TITLE} </th> </tr> <tr> <td class="row1" valign="middle" height="28"><span class="gensmall"> {L_USERNAME}:<br /><input class="post" type="text" name="username" size="10" /><br /> {L_PASSWORD}:<br /><input class="post" type="password" name="password" size="10" /><br /> <input class="text" type="checkbox" name="autologin" value="ON" /> {L_AUTO_LOGIN}<br /> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /> </td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: mx_theme.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left" > {L_TITLE} </th> </tr> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="genmed"> <b>{L_SUBTITLE}</b> </span></td> </tr> <!-- BEGIN switch_is_admin --> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> {switch_is_admin.L_CHANGE_NOW} </span></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> <form method="post" action="{ACTION_URL}"> {switch_is_admin.STYLE_SELECT} <br /> <input type="submit" class="mainoption" name="change_default_theme" value="{L_CHANGE_NOW}" /> </form> </span></td> </tr> <!-- END switch_is_admin --> <!-- BEGIN switch_is_user --> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> {switch_is_user.L_CHANGE_NOW} </span></td> </tr> <tr> <td class="row1" align="center" valign="middle" height="28"><span class="gensmall"> <form method="post" action="{ACTION_URL}"> {switch_is_user.STYLE_SELECT} <br /> <input type="submit" class="mainoption" name="change_user_theme" value="{L_CHANGE_NOW}" /> </form> </span></td> </tr> <!-- END switch_is_user --> </table> <br clear="all" /> --- NEW FILE: mx_menu_nav.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline" > <tr> <form action="{S_ACTION}" method="post" > <!-- BEGIN switch_not_admin --> <th class="thHead" align="left" colspan="2"> {L_TITLE} </th> <!-- END switch_not_admin --> <!-- BEGIN switch_admin --> <th class="thCornerL" align="left" > {L_TITLE} </th> <th class="thCornerR" align="right" > {EDIT_IMG} </th> <!-- END switch_admin --> {S_HIDDEN_FORM_FIELDS} </form> </tr> <!-- BEGIN catrow --> <tr> <td class="row2" align="left" colspan="2"><span class="genmed"><a href="{catrow.U_URL_SHOW}" class="nav" border="0">{catrow.U_CAT_ICON}</a> <b>{catrow.CATEGORY}</b></span></td> </tr> <tr> <td class="row1" valign="center" colspan="2"><span class="genmed">{catrow.DESCRIPTION}</span></td> </tr> <!-- BEGIN modulerow --> <tr> <td class="row1" valign="center" colspan="2">{catrow.modulerow.U_MENU_ICON}<span class="genmed"><a href="{catrow.modulerow.U_MENU_MODULE}" target="{catrow.modulerow.U_LINK_TARGET}" class="genmed" alt="{catrow.modulerow.MENU_DESC}" title="{catrow.modulerow.MENU_DESC}">{catrow.modulerow.MENU_NAME}</a></span></td> </tr> <!-- END modulerow --> <!-- END catrow --> </table> <br clear="all" /> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: overall_header.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}"> <meta http-equiv="Content-Style-Type" content="text/css"> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <!-- link rel="stylesheet" href="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } /* This is the outline round the main forum tables */ .forumline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR2} solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: {T_TR_COLOR1}; } td.row2 { background-color: {T_TR_COLOR2}; } td.row3 { background-color: {T_TR_COLOR3}; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: {T_TD_COLOR2}; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS3}); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; background-color: {T_BODY_LINK}; height: 25px; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS2}); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS1}); background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { font-size: {T_FONTSIZE3}px; border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; } /* General text */ .gen { font-size : {T_FONTSIZE3}px; } .genmed { font-size : {T_FONTSIZE2}px; } .gensmall { font-size : {T_FONTSIZE1}px; } .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} a.cattitle { text-decoration: none; color : {T_BODY_LINK}; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; } a.forumlink { text-decoration: none; color : {T_BODY_LINK}; } a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};} a.nav { text-decoration: none; color : {T_BODY_LINK}; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; } a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; } a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};} /* Location, number of posts, post date etc */ .postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; } /* The content of the posts (body of text) */ .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px} a.postlink:link { text-decoration: none; color : {T_BODY_LINK} } a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}} /* Quote & Code blocks */ .code { font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2}; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;} a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;} a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;} /* Form elements */ form { margin-bottom:0px; } input,textarea, select { color : {T_BODY_TEXT}; font: normal {T_FONTSIZE2}px {T_FONTFACE1}; border-color : {T_BODY_TEXT}; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : {T_TD_COLOR2}; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : {T_TR_COLOR1}; color : {T_BODY_TEXT}; font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1}; } /* The main submit button option */ input.mainoption { background-color : {T_TD_COLOR1}; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : {T_TD_COLOR1}; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: {T_TR_COLOR2}; border-style: none; } .mxlink { background-color: {T_BODY_BGCOLOR}; border-style: none; font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}formIE.css"); --> </style> <!-- BEGIN switch_enable_pm_popup --> <script language="javascript" type="text/javascript"> <!-- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> <!-- END switch_enable_pm_popup --> <script language="javascript" type="text/javascript"> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images ) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } // --> </script> <!-- End Preload Script --> </head> <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" /> <a name="top"></a> <table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> <tr> <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td align="center" valign="middle"><a href="{U_INDEX}"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/logo_mx-system.gif" border="0" alt="{L_INDEX}" vspace="1"/></a></td> </tr> <tr> <td align="center" width="100%" valign="middle"> <table cellspacing="6" cellpadding="2" border="0"> <tr> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_INDEX}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_home.gif" border="0" alt="{L_HOME}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_INDEX_FORUM}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_forum.gif" border="0" alt="{L_FORUM}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PROFILE}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_profile.gif" border="0" alt="{L_PROFILE}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_FAQ}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}/images/nav_help.gif" border="0" alt="{L_FAQ}" hspace="3" /></a></span></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_SEARCH}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_search.gif" border="0" alt="{L_SEARCH}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_members.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_email.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" /></a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></span></td> <!-- BEGIN switch_user_logged_out --> <td height="15" align="center" valign="top" nowrap><a href="{U_REGISTER}" class="mainmenu"><img src="{U_PORTAL_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/nav_register.gif" border="0" alt="{L_REGISTER}" hspace="3" /></a></span></td> <!-- END switch_user_logged_out --> </td> </tr> <tr> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_INDEX}" class="mainmenu">{L_HOME}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_INDEX_FORUM}" class="mainmenu">{L_FORUM}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_PRIVATEMSGS}" class="mainmenu">{L_PRIVATEMSGS}</a></span></td> <td height="15" align="center" valign="top" nowrap><span class="mainmenu"><a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT} </span></td> <!-- BEGIN switch_user_logged_out --> <td height="15" align="center" valign="top" nowrap><a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></span></td> <!-- END switch_user_logged_out --> </td> </table> </td> </tr> </td> </tr> </table> <!-- BEGIN switch_view --> <table width="{BLOCK_SIZE}" cellspacing="0" cellpadding="2" border="0" align="top"> <tr> <td align="left" valign="bottom"><span class="gensmall">{CURRENT_TIME}</span></td> </tr> <tr> <td align="left" valign="bottom"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td> </tr> </table> <!-- END switch_view --> <!-- BEGIN portal_top_links_off --> <!-- /* <!-- END portal_top_links_off --> <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center"> <tr> <td align="left" valign="bottom"><span class="gensmall"> <!-- BEGIN switch_user_logged_in --> {LAST_VISIT_DATE}<br /> <!-- END switch_user_logged_in --> {CURRENT_TIME}<br /></span></td> <td align="right" valign="bottom" class="gensmall"> <!-- BEGIN switch_user_logged_in --> <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br /> <!-- END switch_user_logged_in --> <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td> </tr> </table> <!-- BEGIN portal_top_links_off --> */ --> <br clear="all" /> <!-- END portal_top_links_off --> --- NEW FILE: mx_install.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>{L_INSTALLATION}</title> <!--link rel="stylesheet" href="../templates/subSilver/subSilver.css" type="text/css"--> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(http://localhost/mx/forum/templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(http://localhost/mx/forum/templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(http://localhost/mx/forum/templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } .mxlink { background-color: #E5E5E5; border-style: none; font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("../templates/subSilver/formIE.css"); --> </style> </head> <body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5584AA"> <table width="100%" border="0" cellspacing="0" cellpadding="10" align="center"> <tr> <td class="bodyline" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="../templates/subSilver/images/logo_mx-system.gif" border="0" alt="Forum Home" vspace="1" /></td> <td align="center" width="100%" valign="middle"><span class="maintitle">{L_INSTALLATION}</span></td> </tr> </table></td> </tr> <tr> <td colspan="2"><table width="90%" border="0" align="center" cellspacing="0" cellpadding="0"> <tr> <td><span class="gen">{L_INSTRUCTION_TEXT}</span></td> </tr> </table></td> </tr> <tr> <td width="100%"><table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> <form action="{S_FORM_ACTION}" name="install_form" method="post"> <!-- BEGIN switch_stage_one_install --> <tr> <th colspan="2">{L_INITIAL_CONFIGURATION}</th> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DBMS}: </span></td> <td class="row2">{S_DBMS_SELECT}</td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_UPGRADE}:</span></td> <td class="row2">{S_UPGRADE_SELECT}</td> </tr> <tr> <th colspan="2">{L_DATABASE_CONFIGURATION}</th> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_HOST}: </span></td> <td class="row2"><input type="text" name="dbhost" value="{DB_HOST}" /><span class="gen">{HOST_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_NAME}: </span></td> <td class="row2"><input type="text" name="dbname" value="{DB_NAME}" /><span class="gen">{DATABASE_NAME_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_USER}: </span></td> <td class="row2"><input type="text" name="dbuser" value="{DB_USER}" /><span class="gen">{DATABASE_USERNAME_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_PASSWORD}: </span></td> <td class="row2"><input type="password" name="dbpasswd" /><span class="gen">{DATABASE_PASSWORD_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_MX_DB_PREFIX}: </span></td> <td class="row2"><input type="text" name="mx_prefix" value="{MX_DB_PREFIX}" /><span class="gen">{MX_DB_PREFIX_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_DB_PREFIX}: </span></td> <td class="row2"><input type="text" name="prefix" value="{DB_PREFIX}" /><span class="gen">{DB_PREFIX_VALIDATE}</span></td> </tr> <tr> <th colspan="2">{L_PORTAL_CONFIGURATION}</th> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_PHPBB_PATH}: </span><br /><span class="gensmall">{L_PATH_EXPLAIN}</span></td> <td class="row2"><input type="text" size="100" name="phpbb_path" value="{PHPBB_PATH}" /><br /><span class="gen">{PHPBB_PATH_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_PORTAL_URL}: </span><br /><span class="gensmall">{L_PORTAL_URL_EXPLAIN}</span></td> <td class="row2"><input type="text" size="100" name="portal_url" value="{PORTAL_URL}" /><br /><span class="gen">{PORTAL_URL_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_PHPBB_URL}: </span><br /><span class="gensmall">{L_URL_EXPLAIN}</span></td> <td class="row2"><input type="text" size="100" name="phpbb_url" value="{PHPBB_URL}" /><br /><span class="gen">{PHPBB_URL_VALIDATE}</span></td> </tr> <!-- END switch_stage_one_install --> <!-- BEGIN switch_error_install --> <tr> <th colspan="2">{L_ERROR_TITLE}</th> </tr> <!-- BEGIN error_install --> <tr> <td class="row1" align="center" colspan="2"><span class="gen" style="color:red;">{switch_error_install.error_install.ERROR}</span></td> </tr> <!-- END error_install --> <!-- END switch_error_install --> <!-- BEGIN switch_ftp_file --> <tr> <th colspan="2">{L_FTP_INFO}</th> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_FTP_PATH}</span></td> <td class="row2"><input type="text" name="ftp_dir"></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_FTP_USER}</span></td> <td class="row2"><input type="text" name="ftp_user"></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_FTP_PASS}</span></td> <td class="row2"><input type="password" name="ftp_pass"></td> </tr> <!-- END switch_ftp_file --> <!-- BEGIN switch_ftp_option --> <tr> <th colspan="2">{L_CHOOSE_FTP}</th> </tr> <tr> <td class="row1" align="right" width="50%"><span class="gen">{L_ATTEMPT_FTP}</span></td> <td class="row2"><input type="radio" name="send_file" value="2"></td> </tr> <tr> <td class="row1" align="right" width="50%"><span class="gen">{L_SEND_FILE}</span></td> <td class="row2"><input type="radio" name="send_file" value="1"></td> </tr> <!-- END switch_ftp_option --> <!-- BEGIN switch_validate --> <tr> <th colspan="2">{L_TEMPLATELANGUAGE}</th> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_TEMPLATE_VALIDATE}: </span></td> <td class="row2"><span class="gen">{TEMPLATE_VALIDATE}</span></td> </tr> <tr> <td class="row1" align="right"><span class="gen">{L_LANGUAGE_VALIDATE}: </span></td> <td class="row2"><span class="gen">{LANGUAGE_VALIDATE}</span></td> </tr> <tr> <td class="catbottom" align="center" colspan="2"> {S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /> </form> <form action="{S_FORM_ACTION}" name="reset_form" method="post"> {S_HIDDEN_FIELDS_START}<input class="mainoption" type="submit" value="{L_SUBMIT_START}" /> </form> <form action="{S_FORM_ACTION}" name="install_form" method="post"> <input type="hidden" name="dbhost" value="{DB_HOST}" /> <input type="hidden" name="dbname" value="{DB_NAME}" /> <input type="hidden" name="dbuser" value="{DB_USER}" /> <input type="hidden" name="dbpasswd" value="{DB_PASSWD}"/> <input type="hidden" name="mx_prefix" value="{MX_DB_PREFIX}" /> <input type="hidden" name="prefix" value="{DB_PREFIX}" /> <input type="hidden" name="phpbb_path" value="{PHPBB_PATH}" /> <input type="hidden" name="portal_url" value="{PORTAL_URL}" /> <input type="hidden" name="phpbb_url" value="{PHPBB_URL}" /> {S_HIDDEN_FIELDS_INSTALL}<input class="mainoption" type="submit" value="{L_SUBMIT_INSTALL}" /> </form> </td> </tr> <!-- END switch_validate --> <!-- BEGIN switch_common_install --> <tr> <td class="catbottom" align="center" colspan="2">{S_HIDDEN_FIELDS}<input class="mainoption" type="submit" value="{L_SUBMIT}" /></td> </tr> <!-- END switch_common_install --> <!-- BEGIN switch_upgrade_install --> <tr> <td class="catbottom" align="center" colspan="2">{L_UPGRADE_INST}</td> </tr> <tr> <td class="catbottom" align="center" colspan="2"><input type="submit" name="upgrade_now" value="{L_UPGRADE_SUBMIT}" /></td> </tr> <!-- END switch_upgrade_install --> </form></table></td> </tr> <tr> <td> For further installation information, consult the main <a href="http://www.mx-system.com/forum/viewtopic.php?t=1224">installation documentation!</a></td> </tr> </table></td> </tr> </table> </body> </html> --- NEW FILE: mx_google.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left" colspan="2"> {L_TITLE} </th> </tr> <tr> <td class="row1" align="center" valign="middle" height="28"> <!-- Champ de recherche Google --> <center> <FORM method=GET action="http://www.google.com/search"> <A HREF="http://www.google.com" target="_blank"> <IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google" align="absmiddle"></A> <INPUT TYPE=text name=q size=25 maxlength=255 value=""> <INPUT TYPE=hidden name=hl value=en> <INPUT type=submit class="mainoption" name=btnG VALUE="{L_SEARCH}"> </FORM> </center> <!-- Google --> </td> </tr> </table> <br clear="all" /> --- NEW FILE: overall_noheader.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="{S_CONTENT_DIRECTION}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}"> <meta http-equiv="Content-Style-Type" content="text/css"> {META} {NAV_LINKS} <title>{SITENAME} :: {PAGE_TITLE}</title> <!-- link rel="stylesheet" href="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; } /* This is the outline round the main forum tables */ .forumline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR2} solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: {T_TR_COLOR1}; } td.row2 { background-color: {T_TR_COLOR2}; } td.row3 { background-color: {T_TR_COLOR3}; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: {T_TD_COLOR2}; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS3}); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; background-color: {T_BODY_LINK}; height: 25px; background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS2}); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url({U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/{T_TH_CLASS1}); background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; } th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { font-size: {T_FONTSIZE3}px; border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1}; text-decoration: none; line-height : 120%; color : {T_BODY_TEXT}; } /* General text */ .gen { font-size : {T_FONTSIZE3}px; } .genmed { font-size : {T_FONTSIZE2}px; } .gensmall { font-size : {T_FONTSIZE1}px; } .gen,.genmed,.gensmall { color : {T_BODY_TEXT}; } a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} } a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; } a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} a.cattitle { text-decoration: none; color : {T_BODY_LINK}; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; } a.forumlink { text-decoration: none; color : {T_BODY_LINK}; } a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};} a.nav { text-decoration: none; color : {T_BODY_LINK}; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; } a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; } a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};} /* Location, number of posts, post date etc */ .postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; } /* The content of the posts (body of text) */ .postbody { font-size : {T_FONTSIZE3}px; line-height: 18px} a.postlink:link { text-decoration: none; color : {T_BODY_LINK} } a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; } a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}} /* Quote & Code blocks */ .code { font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2}; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%; background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;} a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;} a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;} /* Form elements */ form { margin-bottom:0px; } input,textarea, select { color : {T_BODY_TEXT}; font: normal {T_FONTSIZE2}px {T_FONTFACE1}; border-color : {T_BODY_TEXT}; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : {T_TD_COLOR2}; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : {T_TR_COLOR1}; color : {T_BODY_TEXT}; font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1}; } /* The main submit button option */ input.mainoption { background-color : {T_TD_COLOR1}; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : {T_TD_COLOR1}; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: {T_TR_COLOR2}; border-style: none; } .mxlink { background-color: {T_BODY_BGCOLOR}; border-style: none; font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}} /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}formIE.css"); --> </style> <!-- BEGIN switch_enable_pm_popup --> <script language="Javascript" type="text/javascript"> <!-- if ( {PRIVATE_MESSAGE_NEW_FLAG} ) { window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> <!-- END switch_enable_pm_popup --> <SCRIPT type=text/javascript> <!-- function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images ) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } // --> </SCRIPT> <!-- End Preload Script --> </head> <body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" /> <a name="top"></a> --- NEW FILE: overall_footer.tpl --- <div align="center"><span class="copyright"><br />{ADMIN_LINK}<br /> <!-- We request you retain the full copyright notice below including the link to www.phpbb.com. This not only gives respect to the large amount of time given freely by the developers but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good reason) retain the full copyright we request you at least leave in place the Powered by phpBB line, with phpBB linked to www.phpbb.com. If you refuse to include even this then support on our forums may be affected. The phpBB Group : 2002 // --> Powered by <a href="http://www.mx-system.com/" target="_mx-system" class="copyright">MX-System</a> © 2001, 2005 & <a href="http://www.phpbb.com/" target="_phpbb" class="copyright">phpBB</a> © 2001, 2005 phpBB Group<br />{TRANSLATION_INFO}</span></div> </td> </tr> </table> <!-- This displays generation info at the bottom of the page --> {EXECUTION_STATS} </body> </html> --- NEW FILE: mx_announce.tpl --- <!-- BEGIN postrow --> <table width="{BLOCK_SIZE}" border="0" cellpadding="4" cellspacing="0" class="forumline"> <tr> <th class="thHead" align="left"> {postrow.TITLE} </th> </tr> <tr> <td class="row1" colspan="3"> <table cellSpacing="0" cellPadding="4" width="100%" border="0"> <tbody> <tr> <td class="row1"><A href="{postrow.U_URL}"> <img alt="{postrow.TITLE}" hspace="5" src="{postrow.IMAGE}" align="right" vspace="5" border="1"></a> <a href="{postrow.U_URL}"><b>{postrow.TITLE}</b></a><br><font size=-1><span class="postbody">{postrow.MESSAGE}</span></font></td></tr></tbody></table> </td> </tr> <tr> <td class="row1" width="100%" valign="top" colspan="3"> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td class="row2" align="center" valign="middle"><span class="gensmall">{postrow.L_AUTHOR} <a href="{U_PHPBB_ROOT_PATH}profile.php?mode=viewprofile&u={postrow.POSTER_ID}">{postrow.POSTER_NAME}</a></span></td> <td class="row2" align="center" valign="middle"><span class="gensmall">{postrow.L_POSTED} <br /> {postrow.FIRST_POST_TIME}</span></td> <td class="row2" align="center" valign="middle"><span class="postdetails">{postrow.L_REPLIES} <br /> {postrow.REPLIES}</span></td> <td class="row2" align="center" valign="middle"><span class="postdetails">{postrow.L_VIEWS} <br /> {postrow.VIEWS}</span></td> <td class="row2" align="center" valign="middle"><span class="postdetails">{postrow.L_LASTPOST} <br /> {postrow.LAST_POST_TIME}{postrow.LAST_POST_AUTHOR} {postrow.LAST_POST_IMG}</span></td> </tr> </table></td> </tr> </table> <br clear="all" /> <!-- END postrow --> --- NEW FILE: mx_poll_result.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thHead" align="left"> {L_TITLE} </th> </tr> <tr> <td class="row1"><br clear="all" /> <table cellspacing="0" cellpadding="4" border="0" align="center"> <tr> <td align="center"><span class="gen"><b>{POLL_QUESTION}</b></span></td> </tr> <tr> <td align="center"> <table cellspacing="0" cellpadding="2" border="0"> <!-- BEGIN poll_option --> <tr> <td><span class="gen">{poll_option.POLL_OPTION_CAPTION}</span></td> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/vote_lcap.gif" width="4" alt="" height="12" /></td> <td><img src="{U_PHPBB_ROOT_PATH}{poll_option.POLL_OPTION_IMG}" width="{poll_option.POLL_OPTION_IMG_WIDTH}" height="12" alt="{poll_option.POLL_OPTION_PERCENT}" /></td> <td><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}images/vote_rcap.gif" width="4" alt="" height="12" /></td> </tr> </table> </td> </tr> <tr> <td align="center"><span class="gensmall"> {poll_option.POLL_OPTION_PERCENT} [{poll_option.POLL_OPTION_RESULT}]</span></td> </tr> <!-- END poll_option --> </table> </td> </tr> <tr> <td align="center"><span class="gen"><b>{L_TOTAL_VOTES} : {TOTAL_VOTES}</b></span></td> </tr> </table> <br clear="all" /> </td> </tr> </table> <br clear="all" /> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:24
|
Update of /cvsroot/mxbb/core27x/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/language/lang_english Added Files: index.htm lang_admin.php lang_main.php lang_meta.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: lang_meta.php --- <?php /*************************************************************************** * lang_meta.php [English] * ------------------- * copyright : (C) 2003-2005 mxBB Portal * email : su...@mx... * * $Id: lang_meta.php,v 1.1 2005/05/06 06:48:06 jonohlsson Exp $ * * Rev. hist : * ****************************************************************************/ // // This file contains lang entries related to META tags. // // // First level of all language codes are based on the ISO-639 standard // as pointed by the RFC3066 "Tags for the Identification of Languages", // which is referenced by the HTML 4.01 Specification. // // More information can be found here: // http://www.w3.org/TR/html401/struct/dirlang.html#h-8.1.1 // ftp://ftp.rfc-editor.org/in-notes/rfc3066.txt // http://www.loc.gov/standards/iso639-2/langhome.html // // Note: There might be some mistakes in second level codes. // Apologies in advance for any mistake here. Feel free to contact // us if you believe anything must be changed here. Thanks // $lang['mx_meta']['langcode']['ab'] = "Abkhazian"; $lang['mx_meta']['langcode']['aa'] = "Afar"; $lang['mx_meta']['langcode']['af'] = "Afrikaans"; $lang['mx_meta']['langcode']['ak'] = "Akan"; $lang['mx_meta']['langcode']['sq'] = "Albanian"; $lang['mx_meta']['langcode']['am'] = "Amharic"; $lang['mx_meta']['langcode']['ar'] = "Arabic"; $lang['mx_meta']['langcode']['ar-ae'] = "Arabic (Arab Emirates)"; $lang['mx_meta']['langcode']['ar-bh'] = "Arabic (Bahrein)"; $lang['mx_meta']['langcode']['ar-eg'] = "Arabic (Egypt)"; $lang['mx_meta']['langcode']['ar-iq'] = "Arabic (Iraq)"; $lang['mx_meta']['langcode']['ar-jo'] = "Arabic (Jordania)"; $lang['mx_meta']['langcode']['ar-kw'] = "Arabic (Kuwait)"; $lang['mx_meta']['langcode']['ar-lb'] = "Arabic (Libanon)"; $lang['mx_meta']['langcode']['ar-ly'] = "Arabic (Lybia)"; $lang['mx_meta']['langcode']['ar-ma'] = "Arabic (Morocco)"; $lang['mx_meta']['langcode']['ar-om'] = "Arabic (Oman)"; $lang['mx_meta']['langcode']['ar-qa'] = "Arabic (Qtar)"; $lang['mx_meta']['langcode']['ar-sa'] = "Arabic (Saudi Arabia)"; $lang['mx_meta']['langcode']['ar-sy'] = "Arabic (Syria)"; $lang['mx_meta']['langcode']['ar-tn'] = "Arabic (Tunisia)"; $lang['mx_meta']['langcode']['ar-ye'] = "Arabic (Yemen)"; $lang['mx_meta']['langcode']['an'] = "Aragonese"; $lang['mx_meta']['langcode']['hy'] = "Armenian"; $lang['mx_meta']['langcode']['as'] = "Assamese"; $lang['mx_meta']['langcode']['av'] = "Avaric"; $lang['mx_meta']['langcode']['ae'] = "Avestan"; $lang['mx_meta']['langcode']['ay'] = "Aymara"; $lang['mx_meta']['langcode']['az'] = "Azerbaijani"; $lang['mx_meta']['langcode']['bm'] = "Bambara"; $lang['mx_meta']['langcode']['ba'] = "Bashkir"; $lang['mx_meta']['langcode']['eu'] = "Basque"; $lang['mx_meta']['langcode']['be'] = "Belarusian"; $lang['mx_meta']['langcode']['bn'] = "Bengali"; $lang['mx_meta']['langcode']['bh'] = "Bihari"; $lang['mx_meta']['langcode']['bi'] = "Bislama"; $lang['mx_meta']['langcode']['bs'] = "Bosnian"; $lang['mx_meta']['langcode']['br'] = "Breton"; $lang['mx_meta']['langcode']['bg'] = "Bulgarian"; $lang['mx_meta']['langcode']['my'] = "Burmese"; $lang['mx_meta']['langcode']['ca'] = "Catalan"; $lang['mx_meta']['langcode']['ch'] = "Chamorro"; $lang['mx_meta']['langcode']['ce'] = "Chechen"; $lang['mx_meta']['langcode']['zh'] = "Chinese"; $lang['mx_meta']['langcode']['zh-hk'] = "Chinese (Hong-Kong)"; $lang['mx_meta']['langcode']['zh-cn'] = "Chinese (PRC)"; $lang['mx_meta']['langcode']['zh-sg'] = "Chinese (Singapour)"; $lang['mx_meta']['langcode']['zh-tw'] = "Chinese (Taiwan)"; $lang['mx_meta']['langcode']['cu'] = "Church Slavonic"; $lang['mx_meta']['langcode']['cv'] = "Chuvash"; $lang['mx_meta']['langcode']['kw'] = "Cornish"; $lang['mx_meta']['langcode']['co'] = "Corsican"; $lang['mx_meta']['langcode']['cr'] = "Cree"; $lang['mx_meta']['langcode']['hr'] = "Croatian"; $lang['mx_meta']['langcode']['cs'] = "Czech"; $lang['mx_meta']['langcode']['da'] = "Danish"; $lang['mx_meta']['langcode']['dv'] = "Divehi"; $lang['mx_meta']['langcode']['nl'] = "Dutch"; $lang['mx_meta']['langcode']['nl-be'] = "Dutch (Belgian)"; $lang['mx_meta']['langcode']['dz'] = "Dzongkha"; $lang['mx_meta']['langcode']['en'] = "English"; $lang['mx_meta']['langcode']['en-au'] = "English (Australia)"; $lang['mx_meta']['langcode']['en-bz'] = "English (Belize)"; $lang['mx_meta']['langcode']['en-ca'] = "English (Canada)"; $lang['mx_meta']['langcode']['en-ie'] = "English (Ireland)"; $lang['mx_meta']['langcode']['en-jm'] = "English (Jamaican)"; $lang['mx_meta']['langcode']['en-gb'] = "English (Great Britain)"; $lang['mx_meta']['langcode']['en-nz'] = "English (New Zeland)"; $lang['mx_meta']['langcode']['en-za'] = "English (South Africa)"; $lang['mx_meta']['langcode']['eo'] = "Esperanto"; $lang['mx_meta']['langcode']['et'] = "Estonian"; $lang['mx_meta']['langcode']['ee'] = "Ewe"; $lang['mx_meta']['langcode']['fo'] = "Faroese"; $lang['mx_meta']['langcode']['fj'] = "Fijian"; $lang['mx_meta']['langcode']['fi'] = "Finnish"; $lang['mx_meta']['langcode']['fr'] = "French"; $lang['mx_meta']['langcode']['fr-be'] = "French (Belgian)"; $lang['mx_meta']['langcode']['fr-ca'] = "French (Canada)"; $lang['mx_meta']['langcode']['fr-lu'] = "French (Luxembourg)"; $lang['mx_meta']['langcode']['fr-ch'] = "French (Switzerland)"; $lang['mx_meta']['langcode']['fy'] = "Frisian"; $lang['mx_meta']['langcode']['ff'] = "Fulah"; $lang['mx_meta']['langcode']['gl'] = "Gallegan"; $lang['mx_meta']['langcode']['lg'] = "Ganda"; $lang['mx_meta']['langcode']['ka'] = "Georgian"; $lang['mx_meta']['langcode']['de'] = "German"; $lang['mx_meta']['langcode']['de-li'] = "German (Liechtenstein)"; $lang['mx_meta']['langcode']['de-lu'] = "German (Luxembourg)"; $lang['mx_meta']['langcode']['de-ch'] = "German (Switzerland)"; $lang['mx_meta']['langcode']['gn'] = "Guarani"; $lang['mx_meta']['langcode']['gu'] = "Gujarati"; $lang['mx_meta']['langcode']['ht'] = "Haitian"; $lang['mx_meta']['langcode']['ha'] = "Hausa"; $lang['mx_meta']['langcode']['he'] = "Hebrew"; $lang['mx_meta']['langcode']['hz'] = "Herero"; $lang['mx_meta']['langcode']['hi'] = "Hindi"; $lang['mx_meta']['langcode']['ho'] = "Hiri Motu"; $lang['mx_meta']['langcode']['hu'] = "Hungarian"; $lang['mx_meta']['langcode']['is'] = "Icelandic"; $lang['mx_meta']['langcode']['io'] = "Ido"; $lang['mx_meta']['langcode']['ig'] = "Igbo"; $lang['mx_meta']['langcode']['id'] = "Indonesian"; $lang['mx_meta']['langcode']['ie'] = "Interlingue"; $lang['mx_meta']['langcode']['iu'] = "Inuktitut"; $lang['mx_meta']['langcode']['ik'] = "Inupiaq"; $lang['mx_meta']['langcode']['ga'] = "Irish"; $lang['mx_meta']['langcode']['it'] = "Italian"; $lang['mx_meta']['langcode']['it-ch'] = "Italian (Switzerland)"; $lang['mx_meta']['langcode']['ja'] = "Japanese"; $lang['mx_meta']['langcode']['jv'] = "Javanese"; $lang['mx_meta']['langcode']['kl'] = "Kalaallisut"; $lang['mx_meta']['langcode']['kn'] = "Kannada"; $lang['mx_meta']['langcode']['kr'] = "Kanuri"; $lang['mx_meta']['langcode']['ks'] = "Kashmiri"; $lang['mx_meta']['langcode']['kk'] = "Kazakh"; $lang['mx_meta']['langcode']['km'] = "Khmer"; $lang['mx_meta']['langcode']['ki'] = "Kikuyu"; $lang['mx_meta']['langcode']['rw'] = "Kinyarwanda"; $lang['mx_meta']['langcode']['ky'] = "Kirghiz"; $lang['mx_meta']['langcode']['kv'] = "Komi"; $lang['mx_meta']['langcode']['kg'] = "Kongo"; $lang['mx_meta']['langcode']['ko'] = "Korean"; $lang['mx_meta']['langcode']['ku'] = "Kurdish"; $lang['mx_meta']['langcode']['kj'] = "Kwanyama"; $lang['mx_meta']['langcode']['lo'] = "Lao"; $lang['mx_meta']['langcode']['la'] = "Latin"; $lang['mx_meta']['langcode']['lv'] = "Latvian"; $lang['mx_meta']['langcode']['li'] = "Limburgish"; $lang['mx_meta']['langcode']['ln'] = "Lingala"; $lang['mx_meta']['langcode']['lt'] = "Lithuanian"; $lang['mx_meta']['langcode']['lu'] = "Luba-Katanga"; $lang['mx_meta']['langcode']['lb'] = "Luxembourgish"; $lang['mx_meta']['langcode']['mk'] = "Macedonian"; $lang['mx_meta']['langcode']['mg'] = "Malagasy"; $lang['mx_meta']['langcode']['ms'] = "Malay"; $lang['mx_meta']['langcode']['ml'] = "Malayalam"; $lang['mx_meta']['langcode']['mt'] = "Maltese"; $lang['mx_meta']['langcode']['gv'] = "Manx"; $lang['mx_meta']['langcode']['mi'] = "Maori"; $lang['mx_meta']['langcode']['mr'] = "Marathi"; $lang['mx_meta']['langcode']['mh'] = "Marshallese"; $lang['mx_meta']['langcode']['el'] = "Modern Greek"; $lang['mx_meta']['langcode']['mo'] = "Moldavian"; $lang['mx_meta']['langcode']['mn'] = "Mongolian"; $lang['mx_meta']['langcode']['na'] = "Nauru"; $lang['mx_meta']['langcode']['nv'] = "Navajo"; $lang['mx_meta']['langcode']['nd'] = "Ndebele, North"; $lang['mx_meta']['langcode']['ng'] = "Ndonga"; $lang['mx_meta']['langcode']['ne'] = "Nepali"; $lang['mx_meta']['langcode']['nb'] = "Norwegian"; $lang['mx_meta']['langcode']['nn'] = "Norwegian Nynorsk"; $lang['mx_meta']['langcode']['ny'] = "Nyanja"; $lang['mx_meta']['langcode']['oc'] = "Occitan"; $lang['mx_meta']['langcode']['oj'] = "Ojibwa"; $lang['mx_meta']['langcode']['or'] = "Oriya"; $lang['mx_meta']['langcode']['om'] = "Oromo"; $lang['mx_meta']['langcode']['os'] = "Ossetian"; $lang['mx_meta']['langcode']['pi'] = "Pali"; $lang['mx_meta']['langcode']['pa'] = "Panjabi"; $lang['mx_meta']['langcode']['fa'] = "Persian"; $lang['mx_meta']['langcode']['pl'] = "Polish"; $lang['mx_meta']['langcode']['pt'] = "Portuguese"; $lang['mx_meta']['langcode']['pt-br'] = "Portuguese (Brazil)"; $lang['mx_meta']['langcode']['ps'] = "Pushto"; $lang['mx_meta']['langcode']['qu'] = "Quechua"; $lang['mx_meta']['langcode']['rm'] = "Raeto-Romance"; $lang['mx_meta']['langcode']['ro'] = "Romanian"; $lang['mx_meta']['langcode']['ro-mo'] = "Romanian (Moldavia)"; $lang['mx_meta']['langcode']['rn'] = "Rundi"; $lang['mx_meta']['langcode']['ru'] = "Russian"; $lang['mx_meta']['langcode']['ru-mo'] = "Russian (Moldavia)"; $lang['mx_meta']['langcode']['sm'] = "Samoan"; $lang['mx_meta']['langcode']['sg'] = "Sango"; $lang['mx_meta']['langcode']['sa'] = "Sanskrit"; $lang['mx_meta']['langcode']['sc'] = "Sardinian"; $lang['mx_meta']['langcode']['gd'] = "Scottish Gaelic"; $lang['mx_meta']['langcode']['sr'] = "Serbian"; $lang['mx_meta']['langcode']['sn'] = "Shona"; $lang['mx_meta']['langcode']['ii'] = "Sichuan Yi"; $lang['mx_meta']['langcode']['sd'] = "Sindhi"; $lang['mx_meta']['langcode']['si'] = "Sinhalese"; $lang['mx_meta']['langcode']['sk'] = "Slovak"; $lang['mx_meta']['langcode']['sl'] = "Slovenian"; $lang['mx_meta']['langcode']['so'] = "Somali"; $lang['mx_meta']['langcode']['st'] = "Sotho"; $lang['mx_meta']['langcode']['nr'] = "South Ndebele"; $lang['mx_meta']['langcode']['es'] = "Spanish"; $lang['mx_meta']['langcode']['es-ar'] = "Spanish (Argentina)"; $lang['mx_meta']['langcode']['es-bo'] = "Spanish (Bolivia)"; $lang['mx_meta']['langcode']['es-cl'] = "Spanish (Chile)"; $lang['mx_meta']['langcode']['es-co'] = "Spanish (Colombia)"; $lang['mx_meta']['langcode']['es-cr'] = "Spanish (Costa Rica)"; $lang['mx_meta']['langcode']['es-sv'] = "Spanish (El Salvador)"; $lang['mx_meta']['langcode']['es-ec'] = "Spanish (Ecuador)"; $lang['mx_meta']['langcode']['es-gt'] = "Spanish (Guatemala)"; $lang['mx_meta']['langcode']['es-hn'] = "Spanish (Honduras)"; $lang['mx_meta']['langcode']['es-mx'] = "Spanish (Mexico)"; $lang['mx_meta']['langcode']['es-ni'] = "Spanish (Nicaragua)"; $lang['mx_meta']['langcode']['es-pa'] = "Spanish (Panama)"; $lang['mx_meta']['langcode']['es-py'] = "Spanish (Paraguay)"; $lang['mx_meta']['langcode']['es-pr'] = "Spanish (Puerto Rico)"; $lang['mx_meta']['langcode']['es-pe'] = "Spanish (Peru)"; $lang['mx_meta']['langcode']['es-tt'] = "Spanish (Trinidad)"; $lang['mx_meta']['langcode']['es-uy'] = "Spanish (Uruguay)"; $lang['mx_meta']['langcode']['es-ve'] = "Spanish (Venezuela)"; $lang['mx_meta']['langcode']['su'] = "Sundanese"; $lang['mx_meta']['langcode']['sw'] = "Swahili"; $lang['mx_meta']['langcode']['ss'] = "Swati"; $lang['mx_meta']['langcode']['sv'] = "Swedish"; $lang['mx_meta']['langcode']['sv-fi'] = "Swedish (Finland)"; $lang['mx_meta']['langcode']['tl'] = "Tagalog"; $lang['mx_meta']['langcode']['ty'] = "Tahitian"; $lang['mx_meta']['langcode']['tg'] = "Tajik"; $lang['mx_meta']['langcode']['ta'] = "Tamil"; $lang['mx_meta']['langcode']['tt'] = "Tatar"; $lang['mx_meta']['langcode']['te'] = "Telugu"; $lang['mx_meta']['langcode']['th'] = "Thai"; $lang['mx_meta']['langcode']['bo'] = "Tibetan"; $lang['mx_meta']['langcode']['ti'] = "Tigrinya"; $lang['mx_meta']['langcode']['to'] = "Tonga"; $lang['mx_meta']['langcode']['ts'] = "Tsonga"; $lang['mx_meta']['langcode']['tn'] = "Tswana"; $lang['mx_meta']['langcode']['tr'] = "Turkish"; $lang['mx_meta']['langcode']['tk'] = "Turkmen"; $lang['mx_meta']['langcode']['tw'] = "Twi"; $lang['mx_meta']['langcode']['uk'] = "Ukrainian"; $lang['mx_meta']['langcode']['ur'] = "Urdu"; $lang['mx_meta']['langcode']['ug'] = "Uyghur"; $lang['mx_meta']['langcode']['uz'] = "Uzbek"; $lang['mx_meta']['langcode']['ve'] = "Venda"; $lang['mx_meta']['langcode']['vi'] = "Vietnamese"; $lang['mx_meta']['langcode']['vo'] = "Volapük"; $lang['mx_meta']['langcode']['wa'] = "Walloon"; $lang['mx_meta']['langcode']['cy'] = "Welsh"; $lang['mx_meta']['langcode']['wo'] = "Wolof"; $lang['mx_meta']['langcode']['xh'] = "Xhosa"; $lang['mx_meta']['langcode']['yi'] = "Yiddish"; $lang['mx_meta']['langcode']['yo'] = "Yoruba"; $lang['mx_meta']['langcode']['za'] = "Zhuang"; $lang['mx_meta']['langcode']['zu'] = "Zulu"; // // Other related META tag entries follow... // $lang['mx_meta']['rating']['general'] = "General"; $lang['mx_meta']['rating']['14 years'] = "14 years"; $lang['mx_meta']['rating']['restricted']= "Restricted"; $lang['mx_meta']['rating']['mature'] = "Mature"; $lang['mx_meta']['index']['index'] = "Index"; $lang['mx_meta']['index']['noindex'] = "No index"; $lang['mx_meta']['follow']['follow'] = "Follow"; $lang['mx_meta']['follow']['nofollow'] = "No follow"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * lang_admin.php [English] * ------------------- * copyright : (C) 2003 Mx System * email : su...@mx... * * $Id: lang_admin.php,v 1.1 2005/05/06 06:48:06 jonohlsson Exp $ * * Rev. hist : Created by MarcMoris (su...@mx...), reedited by Haplo (jon...@ho...) ****************************************************************************/ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); // // Configuration // $lang['Portal_admin'] = "Portal Administration"; $lang['Portal_admin_explain'] = "Use this form to customize your portal"; $lang['Portal_General_Config'] = "Portal Configuration"; $lang['Portal_General_settings'] = "General Settings"; $lang['Portal_General_config_info'] = "General Portal Config Info "; $lang['Portal_General_config_info_explain'] = "Posted setup info from the config.php file (no edit)"; $lang['Portal_Name'] = "Portal Name:"; $lang['Portal_PHPBB_Url'] = "URL to the PHPBB installation:"; $lang['Portal_Url'] = "URL to the Mx Portal:"; $lang['Portal_Config_updated'] = "Portal Configuration Updated Successfully"; $lang['Click_return_portal_config'] = "Click %sHere%s to return to the Portal Configuration"; // // Menu Management // $lang['Menu_admin'] = "Menu Administration"; $lang['Menu_admin_explain'] = "Use this form to customize your menu"; $lang['Menu_edit_delete_explain'] = "Use this form to customize your menu"; $lang['Menu_settings'] = "Menu Information"; $lang['Menu_delete'] = "Delete a Menu"; $lang['Menu_delete_explain'] = "Use this form to delete (and/or move) a category and its subelement(s)"; $lang['Edit_menu'] = "Edit a menu"; $lang['Update'] = "Update"; $lang['Create_menu'] = "Add new menu"; $lang['Create_category'] = "Add new category"; $lang['Menu_Config_updated'] = "Menu Configuration Updated Successfully"; $lang['Menus_updated'] = "Menu and Category information updated successfully"; $lang['Click_return_menuadmin'] = "Click %sHere%s to return to Menu Administration"; $lang['Menu_name'] = "Menu Name"; $lang['Menu_icon'] = "Menu Icon"; $lang['Menu_desc'] = "Description "; $lang['Edit'] = "Edit"; $lang['Delete'] = "Delete"; $lang['Move_up'] = "Move up"; $lang['Move_down'] = "Move down"; $lang['Resync'] = "Resync"; $lang['Click_return_admin_index'] = "Click %sHere%s to return to Index Administration"; // // Module Management // $lang['Module'] = "Module"; $lang['Module_admin'] = "Module Administration"; $lang['Module_admin_explain'] = "Use this form to customize modules"; $lang['Column_delete'] = "Delete a Column"; $lang['Module_delete'] = "Delete a Module"; $lang['Module_delete_explain'] = "Use this form to delete a Module (or function)"; $lang['Edit_module'] = "Edit a module"; $lang['Create_module'] = "Add new Module"; $lang['Module_Config_updated'] = "Module Configuration Updated Successfully"; $lang['Module_updated'] = "Module information updated successfully"; $lang['Click_return_module_admin'] = "Click %sHere%s to return to Module Administration"; $lang['Column_name'] = "Column Name"; $lang['Module_name'] = "Module Name"; $lang['Module_desc'] = "Description"; $lang['Module_path'] = "Path"; $lang['Create_column'] = "Add new column"; $lang['Column'] = "Column"; $lang['Edit_Column'] = "Edit a Column"; $lang['Edit_Column_explain'] = "Use this form to modify a column"; $lang['Column_Size'] = "Size of the column"; // // These are displayed in the drop down boxes for advanced // mode Module auth, try and keep them short! // $lang['Menu_Navigation'] = "Navigation Menu"; $lang['Modules'] = "Modules"; $lang['Portal_index'] = "Portal Index"; $lang['Poll_Display'] = "Which Poll do you want to display?"; $lang['Meta_admin'] = "Meta Tag Administration"; $lang['Mega_admin_explain'] = "Use this form to customize your Meta tags"; $lang['Meta_Title'] = "Title"; $lang['Meta_Author'] = "Author"; $lang['Meta_Copyright'] = "Copyright"; $lang['Meta_Keywords'] = "Keywords"; $lang['Meta_Keywords_explain'] = "(comma seperated list)"; $lang['Meta_Description'] = "Description"; $lang['Meta_Language'] = "Language Code"; $lang['Meta_Rating'] = "Rating"; $lang['Meta_Robots'] = "Robots"; $lang['Meta_Pragma'] = "Pragma no-cache"; $lang['Meta_Bookmark_icon'] = "Bookmark Icon"; $lang['Meta_Bookmark_explain'] = "(relative location)"; $lang['Meta_HTITLE'] = "Extra Header Settings"; $lang['Meta_data_updated'] = "Meta data file (mx_meta.inc) has been updated!<br />Click %sHERE%s to return to Meta Tags Administration."; $lang['Meta_data_ioerror'] = "Unable to open mx_meta.inc. Make sure the file is writable (chmod 777)."; $lang['Create_block'] = "Create new Block"; $lang['Block_delete'] = "Delete a Block"; $lang['Block_delete_explain'] = "Use this form to delete a Block (or column)"; $lang['Block'] = "Block"; $lang['Block_title'] = "Title"; $lang['Block_desc'] = "Description"; $lang['Add_Block'] = "Add Block"; $lang['Auth_Block'] = "Permissions"; $lang['AUTH_ALL'] = "ALL"; $lang['AUTH_REG'] = "REG"; $lang['AUTH_PRIVATE'] = "PRIVATE"; $lang['AUTH_MOD'] = "MOD"; $lang['AUTH_ADMIN'] = "ADMIN"; $lang['AUTH_ANONYMOUS'] = "ANONYMOUS"; $lang['Function'] = "Function"; $lang['Settings'] = "Settings"; $lang['Save_Settings'] = "Save Settings"; $lang['announce_nbr_display'] = "Number of Messages to display (max)"; $lang['announce_nbr_days'] = "Number of Days to display Messages"; $lang['announce_img'] = "Announcement image"; $lang['announce_img_sticky'] = "Sticky image"; $lang['announce_img_normal'] = "Normal Message image"; $lang['announce_img_global'] = "Global Announcement image"; $lang['announce_display'] = "Display in this module the announcement "; $lang['announce_display_sticky'] = "Display in this module the sticky "; $lang['announce_display_normal'] = "Display in this module the message "; $lang['announce_display_global'] = "Display in this module the global annoncement "; $lang['announce_forum'] = "Source Forums<br /> You may do multiple selections<br />* If none is selected, all authorized forums vill be visible"; $lang['poll_forum'] = "Source Forums<br /> You may do multiple selections<br />* If none is selected, all authorized forums vill be visible"; $lang['Function_admin'] = "Function Administration"; $lang['Function_admin_explain'] = "Each module have one or more functions. Use this form to edit, add, or delete a function"; $lang['Function_name'] = "Function Name"; $lang['Function_desc'] = "Description"; $lang['Function_file'] = "File ( Script ) "; $lang['Create_function'] = "Add new Function"; $lang['Parameter_name'] = "Name "; $lang['Parameter_desc'] = "Description"; $lang['Parameter_type'] = "Type"; $lang['Parameter_default'] = "Default value"; $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...and 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 doc 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. Only intended for module writers..."; $lang['Not_Specified'] = "Not Specified"; $lang['Page'] = "Page"; $lang['Add_Page'] = "Add new page"; $lang['Block_admin'] = "Block Administration"; $lang['Block_admin_explain'] = "Use this form to add, delete and change the settings for each block."; $lang['Module_include_admin'] = "Include this module in Admin Menu Navigation"; $lang['Translation_Tools'] = "Translation Tools"; $lang['Create_parameter'] = "Add new Parameter"; $lang['Parameter_admin'] = "Parameter Administration"; $lang['Parameter_admin_explain'] = "List all parameters for this function"; $lang['Parameter_id'] = "Id"; $lang['Parameter_function'] = "Function"; $lang['Preview_portal'] = "Preview Portal"; $lang['Page_admin'] = "Page Administration"; $lang['Page_Config_updated'] = "Page Configuration Updated Successfully"; $lang['Page_updated'] = "Page and Column information updated successfully"; $lang['Click_return_page_admin'] = "Click %sHere%s to return to Page Administration"; $lang['Module_delete_db'] = "Now the module is uninstalled from the portal, but the specific module db tables still exist. Do you also want to permanently delete any related module tables. Warning: you will then lose all data. This should never be done if you plan to upgrade or reinstall the module."; $lang['Click_module_delete_db_yes'] = "Click %sHere%s to permanently delete all module tables from db"; // // Install Process // $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"; $lang['Choose_lang_explain'] = "Please, use the form below to select the language you wish to use thoughtout the installation panels."; $lang['Choose_lang'] = "Choose Language"; $lang['Language'] = "Language"; $lang['Phpbb_path'] = "phpBB relative path"; $lang['Phpbb_path_explain'] = "Relative path to phpBB, eg phpBB/ or ../phpBB/<br />Note the slashes '/', they are important!"; $lang['Phpbb_url'] = "Full phpBB URL"; $lang['Phpbb_url_explain'] = "Full phpBB URL, eg<br />http://www.example.com/phpBB/"; $lang['Portal_url'] = "Full Portal URL"; $lang['Portal_url_explain'] = "Full Portal URL, eg<br />http://www.example.com/"; $lang['Database_settings'] = "Database Settings"; $lang['dbms'] = "Database Type"; $lang['DB_Host'] = "Database Server Hostname/DSN"; $lang['DB_Name'] = "Your Database Name"; $lang['DB_Username'] = "Database Username"; $lang['DB_Password'] = "Database Password"; $lang['Table_Prefix'] = "phpBB Prefix in DB"; $lang['MX_Table_Prefix'] = "mxBB-Portal Prefix in DB"; $lang['Start_Install'] = "Start mxBB Installation"; $lang['Start_Upgrade'] = "Yes, I already did a backup and wish to upgrade my mxBB-Portal now."; $lang['Portal_intalled'] = "mxBB-Portal has been installed !"; $lang['Portal_upgraded'] = "mxBB-Portal has been upgraded !"; $lang['Unwriteable_config'] = "Your mxBB config file (config.php) is un-writeable at present.<br /><br />A copy of the config file will be downloaded to you when you click the button below. You should upload this file to your mxBB root directory: %s <br /><br />Once this is done, please %sREFRESH%s this window to proceed with the next installation step.<br /><br />Thank you for choosing mxBB-Portal.<br />"; $lang['Send_file'] = "Just send the file to me and I'll FTP it manually"; $lang['phpBB_nfnd_retry'] = "Sorry, we could not find your phpBB installation. Please, press the %sBACK%s button of your browser and retry."; $lang['Installation_error'] = "An error has occurred during installation"; $lang['Debug_Information'] = "DEBUG INFORMATION"; $lang['Install_phpbb_not_found'] = "Sorry, we cound not find any phpBB board installed on this server.<br />Please, install phpBB BEFORE installing mxBB-Portal.<br />\n<br />\n"; $lang['Install_phpbb_db_failed'] = "Sorry, we could not connect to the phpBB database.<br />Please, check your phpBB is correctly installed, up and running BEFORE installing mxBB-Portal.<br />\n<br />\n"; $lang['Install_phpbb_unsupported'] = "Unfortunately, the phpBB board installed on this server is not supported by mxBB-Portal.<br />Please, check the release notes for installation requirements.<br />\n<br />\n"; $lang['Install_noscript_warning'] = "Sorry, this installation requires a JavaScript enabled browser. It might not work on your browser."; $lang['Upgrade_are_you_sure'] = "This upgrade procedure will make modifications to your database. Are you sure you wish to proceed?"; $lang['Writing_config'] = "Writing config.php file"; $lang['Processing_schema'] = "Processing SQL Schema '%s'"; $lang['Portal_intalling'] = "Installing mxBB-Portal version %s"; $lang['Portal_upgrading'] = "Upgrading mxBB-Portal version %s"; $lang['Install_warning'] = "There was 1 warning updating the database"; $lang['Install_warnings'] = "There were %d warnings updating the database"; $lang['Subscribe_mxBB_News_now'] = "We recommend that you subscribe to the %smxBB-News Mailing List%s to receive information about important news and release announcements.<br /> <br />%sSubscribe to mxBB-News, now!%s"; $lang['Portal_install_done'][0] = "At this point your basic installation is complete."; $lang['Portal_install_done'][1] = "Please, delete the /install and /contrib folders BEFORE proceeding!!!"; $lang['Portal_install_done'][2] = "Remember to make backups as often as possible ;-)"; $lang['Portal_install_done'][3] = "Press the button below and use your Administrator username and password to login to the system."; $lang['Portal_install_done'][4] = "Please be sure to check the Portal Configurations and make any required changes."; $lang['Thanks_for_choosing'] = "Thank you for choosing mxBB-Portal."; $lang['Critical_Error'] = "CRITICAL ERROR"; $lang['Error_loading_config'] = "Sorry, could not load mxBB-Portal config.php"; $lang['Error_database_down'] = "Sorry, could not connect to database."; // // New for v. 2.704 // $lang['Page_Id'] = "Page ID"; $lang['Page_icon'] = "Page Icon <br /> - to be used in the adminCP only, eg. icon_home.gif (default)"; $lang['Page_header'] = "Page header file <br /> - i.e. overall_header.php (default), overall_noheader.php (no header) or user custom header file."; $lang['Auth_Page'] = "Permissions"; $lang['Cache_dir_write_protect'] = "Your cache directory is write-protected, MX is unable to generate the cache file. Remember to CHMOD the /cache/ directory to 777."; $lang['Cache_generate'] = "Your cache files have been generated"; $lang['Cache_submit'] = "generate the cache file?"; $lang['Cache_explain'] = "With this option you can generate xml files (cache files) with the portal configuration. These files allow to reduce the number of database queries and improve the portal performance. For the moment this option is not automatic, therefore you must re-generate the cache file after each modification of your portal configuration, otherwise the modifications will not be active."; // // New for v. 2.705 // $lang['install_phpbbdir_notgiven'] = 'You must specify a relative path to your existing phpbb installation.'; $lang['install_phpbbdir_missing'] = 'The given phpbb relative path does not exist.'; $lang['install_pathes_equal'] = 'The phpbb path and the MX-System path are equal. You need to install MX-System into a different directory than phpbb.'; // // New for v. 2.706 // $lang['MX_Portal'] = 'MX-Portal'; $lang['MX_Modules'] = 'MX-Modules'; $lang['Phpbb'] = 'phpBB'; // // New for v. 2.706 // $lang['Top_phpbb_links'] = "Show phpbb header links <br /> - new/unread posts etc on the portal front page"; $lang['Auth_Page_group'] = "-> PRIVATE Group"; // New for v. 2.71 $lang['Error_no_db_install'] = "Error: The file db_install.php doesn't exist. Please verify this and try again..."; $lang['Error_no_db_uninstall'] = "Error: The file db_uninstall.php doesn't 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 doesn't 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 module instead."; $lang['Menu_links'] = "Menu URL <br /> - link to external page"; $lang['Menu_page'] = "Menu Page (default/standard) <br /> - link to internal portal page <br /> NOTE: Pages are created using Page Administration."; $lang['Menu_block'] = "Menu Block (dev only) <br /> - link to mx specific block"; $lang['Menu_function'] = "Menu Function (dev only) <br /> - link to mx specific function"; $lang['Menu_action_title'] = "<b>Menu Action:</b> <br /><i>(Chose one of the 4 options below.)</i> "; $lang['Menu_action_adv'] = "<b>Advanced Menu Actions:</b> <br /><i>(Use carefully - intended for developers only):</i>"; $lang['Menu_permissions_title'] = "<b>VIEW/EDIT PERMISSIONS:</b>"; $lang['Link_target'] = "Link Target:"; $lang['Portal_version'] = "Mx Portal version:"; $lang['PHPBB_info'] = "PHPBB info"; $lang['PHPBB_version'] = "PHPBB version:"; $lang['PHPBB_script_path'] = "PHPBB script_path:"; $lang['PHPBB_server_name'] = "PHPBB domain (server_name):"; // New for v. 2.7.3 $lang['Return_to_page'] = "Return to Portal Page"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_main.php [English] * ------------------- * copyright : (C) 2003 Mx System * email : su...@mx... * * $Id: lang_main.php,v 1.1 2005/05/06 06:48:06 jonohlsson Exp $ * * Rev. hist : Created by MarcMoris (su...@mx...), reedited by Haplo (jon...@ho...) ****************************************************************************/ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); // Menu_nav.php $lang['Home Page'] = "Portal Home"; $lang['Announcements'] = "Announcements"; $lang['Forum'] = "Forum"; $lang['Main Menu'] = "Main Menu"; $lang['Module Statistics'] = "Statistics"; $lang['Send a Private message'] = "Send Private message"; $lang['Edit your Profile'] = "Edit Your Profile"; $lang['Portal_lang'] = "Language CP"; $lang['SELECTGUILANG'] = "Select Language:"; $lang['Change'] = "Change now"; $lang['Change_default_style'] = "Set Board Default Style"; $lang['Change_user_style'] = "Set Your Style"; $lang['Change_default_lang'] = "Set Board Default Language"; $lang['Change_user_lang'] = "Set Your Language"; $lang['Block_Title'] = "Title"; $lang['Block_Info'] = "Information"; $lang['Theme'] = "Theme/Style CP"; $lang['SelectTheme'] = "Select Theme/Style:"; $lang['Surveys/Polls'] = "Surveys/Polls"; $lang['Already_voted'] = "You have already voted"; $lang['Click_view_voted'] = "Click %sHere%s to view the results"; $lang['Annonce_sent'] = "The announcement has been sent"; $lang['Annonce_Deleted'] = "The announcement has been deleted"; $lang['Block_Config_updated'] = "Block Configuration updated successfully"; $lang['Block_Edit'] = "Edit Block Configuration"; // // New for v. 2.704 // $lang['Page_Not_Authorised'] = "Sorry, but you don't have privilege to access this page."; // // New for v. 2.705 // $lang['Execution_Stats'] = "Page generated %s queries - Generation time: %s seconds"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:23
|
Update of /cvsroot/mxbb/core27x/modules/mx_last_msg In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_last_msg Added Files: LastMessage.pak functions.php index.htm mx_install_readme.htm mx_last_msg.php version_history.txt Log Message: Initital core 2.7.x commit :-) --- NEW FILE: functions.php --- <?php /*************************************************************************** * functions.php * ------------------- * begin : May, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: functions.php,v 1.1 2005/05/06 06:48:06 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. * ***************************************************************************/ function read_last_msg_config() { global $db; $sql = "SELECT last_msg_number , last_msg_display_date , last_msg_display_forum , last_msg_length , last_msg_target , last_msg_align FROM " . CONFIG_LAST_MSG_TABLE ; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not obtain module configuration', '', __LINE__, __FILE__, $sql); } $module_config = $db->sql_fetchrow($result); return $module_config; } ?> --- NEW FILE: LastMessage.pak --- module=+:50=+:Last Message=+:modules/mx_last_msg/=+:Last Message Module=+:0 function=+:50=+:170=+:Last Message=+:Last Message=+:mx_last_msg.php=+: parameter=+:170=+:17=+:Last_Msg_Number_Title=+:Number=+:15=+: parameter=+:170=+:18=+:Last_Msg_Display_Date=+:Boolean=+:TRUE=+: parameter=+:170=+:19=+:Last_Msg_Title_Length=+:Number=+:30=+: parameter=+:170=+:20=+:Last_Msg_Target=+:Values=+:_blank=+: option=+:6=+:20=+:_blank=+:New Window option=+:7=+:20=+:_self=+:Current Window parameter=+:170=+:21=+:Last_Msg_Align=+:Values=+:left=+: option=+:3=+:21=+:left=+:left option=+:4=+:21=+:right=+:right option=+:5=+:21=+:center=+:center parameter=+:170=+:22=+:Last_Msg_Display_Forum=+:Boolean=+:TRUE=+: parameter=+:170=+:37=+:Last_Msg_forum=+:Function=+:=+:get_list_multiple("{parameter_id}[]", FORUMS_TABLE, 'forum_id', 'forum_name', "{parameter_value}", TRUE) parameter=+:170=+:39=+:Last_Msg_Display_Author=+:Boolean=+:FALSE=+: parameter=+:170=+:40=+:Last_Msg_Display_Icon_View=+:Boolean=+:FALSE=+: parameter=+:170=+:54=+:Last_Msg_Display_Last_Author=+:Boolean=+:TRUE=+: block=+:16=+:Last Message=+:=+:170=+:0=+:0=+:0 --- NEW FILE: mx_last_msg.php --- <?php /*************************************************************************** * mx_last_msg.php * ------------------- * begin : April, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_last_msg.php,v 1.1 2005/05/06 06:48:06 jonohlsson Exp $ * ***************************************************************************/ $block_config = read_block_config( $block_id ); $title = $block_config[$block_id]['block_title']; $block_size = ( !empty( $block_size ) ? $block_size : '100%' ); if ( $view_page ) { $template->set_filenames(array( "body_last_msg" => "mx_last_msg_view.tpl")); } else { $template->set_filenames(array( "body_last_msg" => "mx_last_msg.tpl")); } // // Read block Configuration // $PostNumber = $block_config[$block_id][Last_Msg_Number_Title]['parameter_value']; $display_date = $block_config[$block_id][Last_Msg_Display_Date]['parameter_value']; $nb_characteres = $block_config[$block_id][Last_Msg_Title_Length]['parameter_value']; $target = $block_config[$block_id][Last_Msg_Target]['parameter_value']; $align = $block_config[$block_id][Last_Msg_Align]['parameter_value']; $display_forum = $block_config[$block_id][Last_Msg_Display_Forum]['parameter_value']; $forum_lst_msg = $block_config[$block_id][Last_Msg_forum]['parameter_value']; if ( empty( $PostNumber ) ) $PostNumber = 5; $display_author = $block_config[$block_id][Last_Msg_Display_Author]['parameter_value']; $display_last_author = $block_config[$block_id][Last_Msg_Display_Last_Author]['parameter_value']; $display_icon_view = $block_config[$block_id][Last_Msg_Display_Icon_View]['parameter_value']; // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.'.$phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ); } // // Authorization SQL // $auth_data_sql_msg = get_auth_forum(); if ( empty( $forum_lst_msg ) ) { $forum_lst_msg = $auth_data_sql_msg; } // Added for 2.705 if ( empty( $forum_lst_msg ) ) { $forum_lst_msg = -1; } $start = ( isset($HTTP_GET_VARS['lmsg_start']) ) ? intval($HTTP_GET_VARS['lmsg_start']) : 0; $start_prev = ( $start == 0 ) ? 0 : $start - $PostNumber; $start_next = $start + $PostNumber; if ( $view_page ) { $url_next = append_sid( PORTAL_URL . 'index.php' . '?lmsg_start=' . $start_next . '&block_id=' . $block_id ); $url_prev = append_sid( PORTAL_URL . 'index.php' . '?lmsg_start=' . $start_prev . '&block_id=' . $block_id ); } else { $url_next = mx_url( 'lmsg_start' , $start_next ); // append_sid( $URL_INDEX . ( ( strpos($URL_INDEX, '?') != false ) ? '&' : '?' ) . 'lmsg_start=' . $start_next ); $url_prev = mx_url( 'lmsg_start' , $start_prev ); // append_sid( $URL_INDEX . ( ( strpos($URL_INDEX, '?') != false ) ? '&' : '?' ) . 'lmsg_start=' . $start_prev ); } $template->assign_vars(array( // 'L_TITLE' => ( !empty( $lang['Latest_Post'] ) ? $lang['Latest_Post'] : 'Last Message' ), 'L_TITLE' => ( !empty( $title ) ? $title : 'Last Message' ), 'U_TARGET' => $target, 'U_ALIGN' => $align, 'BLOCK_SIZE' => $block_size, 'U_URL' => append_sid( PORTAL_URL . 'index.php' . '?block_id=' . $block_id ), 'U_URL_NEXT' => $url_next, 'U_URL_PREV' => $url_prev, 'U_PHPBB_ROOT_PATH' => PHPBB_URL, 'U_PORTAL_ROOT_PATH' => PORTAL_URL, 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, 'L_MSG_PREV' => $lang['Previous'], 'L_MSG_NEXT' => $lang['Next'] )); $GetType = "topics"; // posts ou topics // $private = "USER"; $timediff = 0; // Différence de temps entre le serveur et l'heure du forum en heures, en clair si votre forum est reglé sur GMT et que vous habitez en France il suffit de mettre 0 pour qu'il se regle sur le fuseau français (a verfifier selon les cas)(GMT+1) // if ( $private == "USER") { // $private1 = " AND f.auth_view < 1"; // } //elseif ( $private == "PRIVATE") { // $private1 = " AND f.auth_view < 2"; // } //elseif ( $private == "MODO") { // $private1 = " AND f.auth_view <3"; // } //elseif ( $private == "ADMIN") { // $private1 = " AND f.auth_view <5"; // } //else { // $private =""; // } $sql = "SELECT t.topic_title, p.topic_id, t.topic_last_post_id, p.post_time, f.forum_name, f.forum_id, u.username, u.user_id, p.post_username, u2.username as user2, u2.user_id as id2 FROM ". TOPICS_TABLE ." AS t, ". FORUMS_TABLE ." AS f, ". POSTS_TABLE ." AS p, ". USERS_TABLE . " AS u, ". USERS_TABLE . " AS u2 WHERE f.forum_id = t.forum_id AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id AND p.poster_id = u2.user_id AND t.topic_moved_id = 0 AND f.forum_id in ( $forum_lst_msg ) AND f.forum_id in ( $auth_data_sql_msg ) ORDER BY t.topic_last_post_id DESC LIMIT $start, $PostNumber"; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not query topics list', '', __LINE__, __FILE__, $sql); } $postrow = $db->sql_fetchrowset($result); for($row_count = 0; $row_count < count($postrow); $row_count++) { $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; $message = $postrow[$row_count]['topic_title']; $url = append_sid( PHPBB_URL . 'viewtopic.php?t='.$postrow[$row_count]['topic_id'].'#'.$postrow[$row_count]['topic_last_post_id']); if( $postrow[$row_count]['topic_status'] == TOPIC_MOVED ) { $topic_type = $lang['Topic_Moved'] . ' '; $topic_id = $postrow[$row_count]['topic_moved_id']; $folder_image = $images['folder']; $folder_alt = $lang['Topics_Moved']; $newest_post_img = ''; } else { if( $postrow[$row_count]['topic_type'] == POST_ANNOUNCE ) { $folder = $images['folder_announce']; $folder_new = $images['folder_announce_new']; } else if( $postrow[$row_count]['topic_type'] == POST_STICKY ) { $folder = $images['folder_sticky']; $folder_new = $images['folder_sticky_new']; } else if( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) { $folder = $images['folder_locked']; $folder_new = $images['folder_locked_new']; } else { if($replies >= $board_config['hot_threshold']) { $folder = $images['folder_hot']; $folder_new = $images['folder_hot_new']; } else { $folder = $images['folder']; $folder_new = $images['folder_new']; } } $newest_post_img = ''; if( $userdata['session_logged_in'] ) { $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_t"]) : array(); $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . "_f"]) : array(); if( $postrow[$row_count]['post_time'] > $userdata['user_lastvisit'] ) { if( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { $unread_topics = true; if( !empty($tracking_topics[$postrow[$row_count]['topic_id']]) ) { if( $tracking_topics[$postrow[$row_count]['topic_id']] >= $postrow[$row_count]['post_time'] ) { $unread_topics = false; } } if( !empty($tracking_forums[$postrow[$row_count]['topic_id']]) ) { if( $tracking_forums[$postrow[$row_count]['topic_id']] >= $postrow[$row_count]['post_time'] ) { $unread_topics = false; } } if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all']) ) { if( $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f_all'] >= $postrow[$row_count]['post_time'] ) { $unread_topics = false; } } if( $unread_topics ) { $folder_image = $folder_new; $folder_alt = $lang['New_posts']; $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } else { $folder_image = $folder; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } else { $folder_image = $folder_new; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['New_posts']; $newest_post_img = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=newest") . '"><img src="' . $images['icon_newest_reply'] . '" alt="' . $lang['View_newest_post'] . '" title="' . $lang['View_newest_post'] . '" border="0" /></a> '; } } else { $folder_image = $folder; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } else { $folder_image = $folder; $folder_alt = ( $postrow[$row_count]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; $newest_post_img = ''; } } IF ( $display_author == "TRUE" ) { $topic_author = ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['user_id']) . '">' : ''; $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? $postrow[$row_count]['username'] : ( ( $postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] : $lang['Guest'] ); $topic_author .= ( $postrow[$row_count]['user_id'] != ANONYMOUS ) ? '</a>' : ''; } else { $topic_author = ''; } if ( $display_last_author == "TRUE" ) { $last_post_author = ( $postrow[$row_count]['id2'] == ANONYMOUS ) ? ( ($postrow[$row_count]['post_username'] != '' ) ? $postrow[$row_count]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : '<a href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $postrow[$row_count]['id2']) . '">' . $postrow[$row_count]['user2'] . '</a>'; } else { $last_post_author = ''; } if( strlen($message ) > $nb_characteres ) { $message = substr( $message, 0, $nb_characteres); $position_espace = strrpos($message, " "); $message = substr($message, 0, $position_espace); $message .= "..."; } if ( $display_date == "TRUE" ) { $message_date = create_date($board_config['default_dateformat'], $postrow[$row_count]['post_time'],$board_config['board_timezone']); } else { $message_date = ''; } if ( $display_forum == "TRUE" ) { $forum_name = $postrow[$row_count]['forum_name']; $forum_url = append_sid( PHPBB_URL . 'viewforum.php?f=' . $postrow[$row_count]['forum_id']); } else { $forum_name = ''; $forum_url = ''; } if ( $display_icon_view == "TRUE" ) { $last_post_url = '<a href="' . append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$row_count]['topic_last_post_id']) . '#' . $postrow[$row_count]['topic_last_post_id'] . '"><img src="' . PHPBB_URL. $images['icon_latest_reply'] . '" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" border="0" /></a>'; } else { $last_post_url = ''; } $template->assign_block_vars("msg_row", array( "ROW_COLOR" => "#" . $row_color, "ROW_CLASS" => $row_class, "LAST_MSG" => $message, "LAST_MSG_DATE" => $message_date, "FORUM_NAME" => $forum_name, "U_LAST_MSG" => $url, "U_FORUM" => $forum_url , 'LAST_POST_IMG' => $last_post_url, 'FOLDER_IMG' => $folder_image, 'TOPIC_AUTHOR' => $topic_author, 'LAST_POST_AUTHOR' => $last_post_author, 'L_TOPIC_FOLDER_ALT' => $folder_alt ) ); } $template->pparse("body_last_msg"); ?> --- NEW FILE: mx_install_readme.htm --- <html> <head> <title>Mx Portal installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(../../install/templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(../../install/templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(../../install/templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- if ( 0 ) { window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table> <tr> <td colspan="2"><span class="postbody"><a name="top"> <p><br /> <span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Core Module</span></span> <br /> - for Mx Portal v. 2.7 (or later) <br /> <br /> <span style="font-weight: bold">Description</span> <br /> This module is an addon module for the Mx Portal. More detailed release info is published (and updated) at <a href="http://www.mx-system.com">www.mx-system.com</a>.<br /> <br /> I. <a href="#install">Installation instructions</a> <br /> <br /> II. <a href="#themes">Additional styles</a> <br /> <br /> III. <a href="#languages">Additional languages</a> <br /> <br /> <a href="http://www.mx-system.com" target="_blank" class="postlink">DEMO </a> <br /> <br /> <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> DOWNLOAD </a> <br /> <br /><a name="install"> <br /> <span style="font-weight: bold">I. Installation Instructions</span> <br /> To install this module, follow these instructions. If you encounter any problems during install, visit the <a href="http://www.mx-system.com/forum/viewforum.php?f=20" target="_blank" class="postlink"> module support forum</a>. <br /> </p> <p>0) Consult the version_history.txt to learn about module version changes/updates. To install this module, follow these instructions. If you encounter any problems during install, visit the [url=http://www.mx-system.com/forum/viewforum.php?f=20] module support forum[/url].</p> <p>1) Override your old files, i.e. unzip the distributed files into your portal modules directory, /modules, and upload.</p> <p>2) Remove old module installation from MX.<br> In the AdminCP, browse to 'Module Management' and 'delete' any old module version. </p> <p><em>Note</em>: This will only remove the module from the MX system kernel. Module data itself (like actual downloads, weblinks, photos etc) will not be touch or deleted.</p> <p>3) Import new module to MX<br> In the AdminCP, browse to 'Module Management' and 'import' Module Pack for this module. Some warnings may be reported but this is generally nothing to worry about...but a symptom when upgrading.</p> <p>4) Now the module is installed, but to use it you need to add the module Block to a Portal Page. In the AdminCP, browse to 'Page Administration' and 'Add Block' to any portal page. Done!</p> <p><br /> <br /><a href="#top"> Back to Top<a> <br /> <br /><a name="themes"> <br /> <span style="font-weight: bold">II. Additional Styles</span> <br /> This module is compatible with any theme/style. All template files are located within modules/mx_modulename/templates. Note: You dont have to specify 'SubSilver' or any theme name, since all theme settings follow from the general portal/phpbb page header. <br /> <br /><a href="#top"> Back to Top<a> <br /> <br /> <a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> First check to see if your language is already translated. <br /> <br /> Translated languages are downloaded <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> here</a>. <br /> <br /> If exists, download and install in the modules/mx_modulename/language folder. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. <br /> <br /><a href="#top"> Back to Top<a> <br /> <br /> /Mx Team</span><span class="gensmall"></span></p> </td> </tr> </table> </body> </html> --- NEW FILE: version_history.txt --- ################################################################# ## ## Mx Portal 2.7 - Last Message Module v. 1.04 ## v. 1.04 - Redeclare auth() fix - Some files updated. No db updates. Reinstalling (importing) is not needed! v. 1.03 - Bugfixes: numerous - New/changed file(s): mx_last_msg.php LastMessage.pak mx_install_readme.htm - Delete old file(s): Last Message.pak mx_install - readme.htm v. 1.02 - Bugfix: show author/poster - Changed files: mx_last_msg.tpl v. 1.01 - New *.pak file, for automatic Block generation during install v. 1.0 - Numerous bugfixes ## /Mx Team ## ################################################################# --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
Update of /cvsroot/mxbb/core27x/templates/subSilver/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/templates/subSilver/images Added Files: banner_mx-system.gif icon_calendar.gif icon_dev.gif icon_dot.gif icon_download.gif icon_downloads.gif icon_forum.gif icon_help.gif icon_home.gif icon_info.gif icon_links.gif icon_members.gif icon_movie.gif icon_photo.gif icon_poll.gif icon_profile.gif icon_stat.gif icon_statistics.gif icon_theme.png icon_video.gif logo_mx-system.gif minus.gif msg_next.gif msg_prev.gif nav_announcement.gif nav_calendar.gif nav_develope.gif nav_download.gif nav_email.gif nav_email2.gif nav_explorer.gif nav_forum.gif nav_help.gif nav_home.gif nav_info.gif nav_login.gif nav_members.gif nav_musik.gif nav_news.gif nav_profile.gif nav_rate.gif nav_register.gif nav_search.gif nav_settings.gif nav_statistics.gif nav_theme.gif nav_theme2.gif nav_weblinks.gif plus.gif spacer.gif thumb_globe.gif thumb_news.gif Log Message: Initital core 2.7.x commit :-) --- NEW FILE: nav_register.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_develope.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_forum.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_calendar.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_theme.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_movie.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_musik.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_announcement.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: plus.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_download.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_home.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_search.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_download.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_email.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: msg_prev.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_theme2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: thumb_news.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_info.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_info.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_help.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_profile.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_help.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_settings.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_members.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_email2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_explorer.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_video.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_news.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_stat.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_links.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_theme.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_home.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_downloads.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_calendar.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: msg_next.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: minus.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: thumb_globe.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_profile.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_photo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_members.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_dev.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: banner_mx-system.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: spacer.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_weblinks.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_statistics.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_forum.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_statistics.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_poll.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_rate.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: logo_mx-system.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: nav_login.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: icon_dot.gif --- (This appears to be a binary file; contents omitted.) |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:23
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_textblocks/admin Added Files: admin_edit.php mx_textblock_edit.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: admin_edit.php --- <?php /*************************************************************************** * mx_block_edit.php * ------------------- * begin : December, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: admin_edit.php,v 1.1 2005/05/06 06:48:10 jonohlsson Exp $ * ***************************************************************************/ $no_page_header = TRUE; if( !empty($setmodules) ) { return; } define('IN_PORTAL', 1); $mx_root_path = '../../../'; // // Security and page header // require( $mx_root_path . 'admin/pagestart.php'); mx_message_die(GENERAL_MESSAGE, 'Sorry, but this block is NOT designed to be configured in the AdminCP <br /> - please use the EDIT feature in normal portal mode instead.'); include_once($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> --- NEW FILE: mx_textblock_edit.php --- <?php /*************************************************************************** * mx_textblocks_edit.php * ------------------- * begin : Monday, Mar 31, 2003 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: mx_textblock_edit.php,v 1.1 2005/05/06 06:48:10 jonohlsson Exp $ * ***************************************************************************/ define('IN_PORTAL', 1); $mx_root_path = '../../../'; $module_root_path = '../'; include_once($mx_root_path . 'extension.inc'); include_once($mx_root_path . 'common.'.$phpEx); include_once($phpbb_root_path . 'includes/functions_post.'.$phpEx); // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); mx_init_userprefs($userdata); // // End session management // // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.'.$phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ); } $page_id = isset($HTTP_POST_VARS['page']) ? $HTTP_POST_VARS['page'] : $page_id; $block_id = $HTTP_POST_VARS['id']; if ( empty( $block_id ) ) { $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; header($header_location . append_sid( PORTAL_URL . "index.$phpEx?page=" . $page_id, true)); exit; } $block_config = read_block_config( $block_id ); $is_auth_ary = array(); $is_auth_ary = block_auth(AUTH_EDIT, $block_id , $userdata, $block_config[$block_id][auth_edit], $block_config[$block_id][auth_edit_group] ); if ( !$is_auth_ary[auth_edit] ) { $user_id = ( isset($HTTP_GET_VARS[POST_USERS_URL]) ) ? '&' . POST_USERS_URL . '=' . $HTTP_GET_VARS[POST_USERS_URL] : ''; $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; header($header_location . append_sid( PORTAL_URL . "login.$phpEx?redirect=" . PORTAL_URL . "mx_block_edit.$phpEx?mode=$mode" . $user_id, true)); } $s_hidden_fields .= '<input type="hidden" name="id" value="' . $block_id . '" />'; $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $html_entities_match = array('#&#', '#<#', '#>#'); $html_entities_replace = array('&', '<', '>'); // // Parameters // $submit = ( isset($HTTP_POST_VARS['post'] ) ) ? TRUE : 0; $cancel = ( isset($HTTP_POST_VARS['cancel'] ) ) ? TRUE : 0; $preview = ( isset($HTTP_POST_VARS['preview']) ) ? TRUE : 0; $refresh = $preview || $submit_search; if ( !empty($HTTP_POST_VARS['mode']) || !empty($HTTP_GET_VARS['mode']) ) { $mode = ( !empty($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; } else { $mode = ''; } // // Cancel // if ( $cancel ) { $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; header($header_location . append_sid( PORTAL_URL . "index.$phpEx?page=" . $page_id, true)); exit; } $error = FALSE; // // Toggles // if ( !$board_config['allow_html'] ) { $html_on = 0; } else { // $html_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_html']) ) ? 0 : TRUE ) : $userdata['user_allowhtml']; $html_on = TRUE; } if ( !$board_config['allow_bbcode'] ) { $bbcode_on = 0; } else { // $bbcode_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_bbcode']) ) ? 0 : TRUE ) : $userdata['user_allowbbcode']; $bbcode_on = TRUE; } if ( !$board_config['allow_smilies'] ) { $smilies_on = 0; } else { $smilies_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_smilies']) ) ? 0 : TRUE ) : $userdata['user_allowsmile']; } $attach_sig = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['attach_sig']) ) ? TRUE : 0 ) : $userdata['user_attachsig']; $user_sig = ( $userdata['user_sig'] != '' && $board_config['allow_sig'] ) ? $userdata['user_sig'] : ""; // // Define all config data // // Main parameters $block_title_par = "block_title"; $block_info_par = ( $mode == 'edithtml' ) ? "Html" : "Text"; // Style parameters $block_style_par = "block_style"; $text_style_par = "text_style"; $title_style_par = "title_style"; $show_title_par = "show_title"; $text_style_options = array(); $text_style_options = array("none", "gen", "gensmall", "genmed", "genlarge", "postbody"); $new_vars = array(); $new_vars = array($block_info_par, $block_style_par, $text_style_par, $title_style_par, $show_title_par); $new = array(); // Extract info - main loop for($j = 0; $j < count($new_vars); $j++) { $new[$new_vars[$j]] = ( isset($HTTP_POST_VARS[$new_vars[$j]]) ) ? $HTTP_POST_VARS[$new_vars[$j]] : $block_config[$block_id][$new_vars[$j]]['parameter_value']; $parameter_id = $block_config[$block_id][$new_vars[$j]]['parameter_id']; if( $submit ) { if ( empty($new[$new_vars[$j]]) ) { $error = TRUE; $error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['Empty_title']; } else { if ( $new_vars[$j] == 'Text' ) { if ( $bbcode_on && $mode != 'edithtml' ) { $bbcode_uid = make_bbcode_uid(); } $new[$new_vars[$j]] = prepare_message($new[$new_vars[$j]], $html_on, $bbcode_on, $smilies_on, $bbcode_uid); } $sql = "UPDATE " . BLOCK_SYSTEM_PARAMETER_TABLE . " SET parameter_value = '" . str_replace("\'", "''", $new[$new_vars[$j]]) . "', bbcode_uid = '$bbcode_uid' WHERE block_id = $block_id AND parameter_id = $parameter_id"; if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) { mx_message_die(GENERAL_ERROR, "Could not update textblock information.", "", __LINE__, __FILE__, $sql); } } } } // if ($submit || 1==1) // { // message_die(GENERAL_MESSAGE, $message); // } // For title, cache and submit if( $submit ) { $new['block_title'] = ( isset($HTTP_POST_VARS['block_title']) ) ? $HTTP_POST_VARS['block_title'] : $block_config[$block_id]['block_title']; $sql = "UPDATE " . BLOCK_TABLE . " SET block_title = '" . str_replace("\'", "''", $new['block_title']) . "' WHERE block_id = $block_id"; if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) { mx_message_die(GENERAL_ERROR, "Could not update textblock information.", "", __LINE__, __FILE__, $sql); } read_block_config( $block_id, FALSE); // Update cache $cache_dir = $mx_root_path . 'cache/'; if ( file_exists( $cache_dir . "block_config.xml") ) { include($phpbb_root_path.'includes/sql_parse.'.$phpEx); include_once( $mx_root_path . "cache/mx_cache.php"); // file of easy_parser class write_cache_config(); } $template->assign_vars(array( 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid( PORTAL_URL . "index.$phpEx?page=" . $page_id) . '">') ); $msg = $lang['Block_Config_updated'] . '<br /><br />'. sprintf($lang['Click_return_index'], '<a href="' . append_sid( PORTAL_URL . "index.$phpEx?page=" . $page_id) . '">', '</a>'); mx_message_die(GENERAL_MESSAGE, $msg); } // Main parameters $block_title = ( isset($HTTP_POST_VARS[$block_title_par]) ) ? $HTTP_POST_VARS[$block_title_par] : $block_config[$block_id][$block_title_par] ; $block_info = $new[$block_info_par]; $bbcode_uid = $block_config[$block_id][$block_info_par]['bbcode_uid']; if ( $mode == 'edit') { $block_info = preg_replace("/\:(([a-z0-9]:)?)$bbcode_uid/si", '', $block_info); $block_info = str_replace('<br />', "\n", $block_info); $block_info = preg_replace('#</textarea>#si', '</textarea>', $block_info); } else { $block_info = str_replace('<br />', "\n", $block_info); $block_info = preg_replace('#</textarea>#si', '</textarea>', $block_info); } if ($preview) { $preview_title = trim(strip_tags(stripslashes($block_title))); $preview_info = trim($block_info) ; $preview_info = preg_replace('#<textarea>#si', '<textarea>', $preview_info); } // Style parameters $block_style_yes = ( $new[$block_style_par] == 'TRUE') ? "checked=\"checked\"" : ""; $block_style_no = ( !($new[$block_style_par] == 'TRUE')) ? "checked=\"checked\"" : ""; $text_style_list = '<select name="text_style">'; for($j = 0; $j < count($text_style_options); $j++) { if ( $new[$text_style_par] == $text_style_options[$j] ) { $status = "selected"; } else { $status = ''; } $text_style_list .= '<option value="' .$text_style_options[$j] . '" ' . $status . '>' . $text_style_options[$j] . '</option>'; } $text_style_list .= '</select>'; $text_style_yes = ( $new[$text_style_par] == 'TRUE') ? "checked=\"checked\"" : ""; $text_style_no = ( !($new[$text_style_par] == 'TRUE') ) ? "checked=\"checked\"" : ""; $title_style_yes = ( $new[$title_style_par] == 'TRUE') ? "checked=\"checked\"" : ""; $title_style_no = ( !($new[$title_style_par] == 'TRUE') ) ? "checked=\"checked\"" : ""; $show_title_yes = ( $new[$show_title_par] == 'TRUE') ? "checked=\"checked\"" : ""; $show_title_no = ( !($new[$show_title_par] == 'TRUE') ) ? "checked=\"checked\"" : ""; // // Start output, first preview, then errors then post form // $title = $block_config[$block_id]['block_title']; $page_title = $title; $template->assign_block_vars("switch_view", array()); include($mx_root_path . 'includes/page_header.'.$phpEx); //-------------------------------------------------------- // Previews Layout //-------------------------------------------------------- if ( $preview && !$error ) { $orig_word = array(); $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); if ( $bbcode_on && $mode != 'edithtml') { $bbcode_uid = make_bbcode_uid(); } // $preview_info = stripslashes(preg_replace($html_entities_match, $html_entities_replace, $preview_info)); $preview_info = stripslashes(prepare_message($preview_info, $html_on, $bbcode_on, $smilies_on, $bbcode_uid)); // // Finalise processing as per viewtopic // if ( !$html_on ) { if ( $user_sig != '' || !$userdata['user_allowhtml'] ) { $user_sig = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $user_sig); } } if ( $attach_sig && $user_sig != '' && $userdata['user_sig_bbcode_uid'] ) { $user_sig = bbencode_second_pass($user_sig, $userdata['user_sig_bbcode_uid']); } if ( $bbcode_on && $mode != 'edithtml') { $preview_info = bbencode_second_pass($preview_info, $bbcode_uid); } if ( count($orig_word) ) { $preview_title = preg_replace($orig_word, $replacement_word, $preview_title); $preview_info = preg_replace($orig_word, $replacement_word, $preview_info); } if ( $smilies_on && $mode != 'edithtml') { $preview_info = mx_smilies_pass($preview_info); } $preview_info = make_clickable($preview_info); $preview_info = str_replace("\n", '<br />', $preview_info); $s_hidden_fields .= '<input type="hidden" name="mode" value="' . $mode . '" />'; $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $template->set_filenames(array( "preview" => 'mx_textblock_preview.tpl') ); $template->assign_vars(array( 'BLOCK_TITLE' => $preview_title, 'BLOCK_INFO' => $preview_info, 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'L_BLOCK_TITLE' => $lang['Block_Title'], 'L_PREVIEW' => $lang['Preview'] )); $template->assign_var_from_handle('POST_PREVIEW_BOX', 'preview'); } //-------------------------------------------------------- // Default Layout //-------------------------------------------------------- $template->set_filenames(array( 'body' => 'mx_textblock_edit.tpl') ); // // Send smilies to template // if ($mode != 'edithtml') { mx_generate_smilies('inline', PAGE_INDEX); } if ( $mode == 'edit' ) { $POST_ACTION= $module_root_path . "admin/mx_textblock_edit.$phpEx?mode=edit"; } elseif ( $mode == 'edithtml' ) { $POST_ACTION= $module_root_path . "admin/mx_textblock_edit.$phpEx?mode=edithtml"; } else { $POST_ACTION= $module_root_path . "admin/mx_textblock_edit.$phpEx"; } if ( $mode != 'edithtml' ) { $template->assign_block_vars("switch_bbcodes", array()); } if ( !empty($new[$text_style_par]) ) { $template->assign_block_vars("switch_text_style", array()); } if ( !empty($new[$block_style_par]) ) { $template->assign_block_vars("switch_block_style", array()); } if ( !empty($new[$title_style_par]) ) { $template->assign_block_vars("switch_title_style", array()); } if ( !empty($new[$show_title_par]) ) { $template->assign_block_vars("switch_show_title", array()); } $template->assign_vars(array( 'BLOCK_TITLE' => $block_title, 'BLOCK_INFO' => $block_info, 'HTML_STATUS' => $html_status, 'SMILIES_STATUS' => $smilies_status, 'BLOCK_TEXT_NAME' => $block_info_par, 'L_BLOCK_STYLE' => $lang['Block_Style'], 'L_TEXT_STYLE' => $lang['Text_Style'], 'L_TITLE_STYLE' => $lang['Title_Style'], 'L_SHOW_TITLE' => $lang['Show_Title'], 'L_YES' => $lang['Yes'], 'L_NO' => $lang['No'], 'L_BLOCK_STYLE_EXPLAIN' => $lang['Block_Style_Explain'], 'L_TEXT_STYLE_EXPLAIN' => $lang['Text_Style_Explain'], 'L_TITLE_STYLE_EXPLAIN' => $lang['Title_Style_Explain'], 'L_SHOW_TITLE_EXPLAIN' => $lang['Show_Title_Explain'], 'L_BLOCK_TITLE' => $lang['Block_Title'], 'L_BLOCK_INFO' => $lang['Block_Info'], 'L_OPTIONS' => $lang['Options'], 'L_PREVIEW' => $lang['Preview'], 'L_SUBMIT' => $lang['Submit'], 'L_CANCEL' => $lang['Cancel'], 'L_DISABLE_HTML' => $lang['Disable_HTML_pm'], 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_pm'], 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_pm'], 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], 'L_EMPTY_MESSAGE' => $lang['Empty_message'], 'L_FONT_COLOR' => $lang['Font_color'], 'L_COLOR_DEFAULT' => $lang['color_default'], 'L_COLOR_DARK_RED' => $lang['color_dark_red'], 'L_COLOR_RED' => $lang['color_red'], 'L_COLOR_ORANGE' => $lang['color_orange'], 'L_COLOR_BROWN' => $lang['color_brown'], 'L_COLOR_YELLOW' => $lang['color_yellow'], 'L_COLOR_GREEN' => $lang['color_green'], 'L_COLOR_OLIVE' => $lang['color_olive'], 'L_COLOR_CYAN' => $lang['color_cyan'], 'L_COLOR_BLUE' => $lang['color_blue'], 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], 'L_COLOR_INDIGO' => $lang['color_indigo'], 'L_COLOR_VIOLET' => $lang['color_violet'], 'L_COLOR_WHITE' => $lang['color_white'], 'L_COLOR_BLACK' => $lang['color_black'], 'L_FONT_SIZE' => $lang['Font_size'], 'L_FONT_TINY' => $lang['font_tiny'], 'L_FONT_SMALL' => $lang['font_small'], 'L_FONT_NORMAL' => $lang['font_normal'], 'L_FONT_LARGE' => $lang['font_large'], 'L_FONT_HUGE' => $lang['font_huge'], 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], 'L_STYLES_TIP' => $lang['Styles_tip'], 'S_HTML_CHECKED' => ( !$html_on ) ? ' checked="checked"' : '', 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? ' checked="checked"' : '', 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? ' checked="checked"' : '', 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields, 'S_POST_ACTION' => append_sid("$POST_ACTION"), 'S_BLOCK_STYLE_YES' => $block_style_yes, 'S_BLOCK_STYLE_NO' => $block_style_no, 'S_TEXT_STYLE' => $text_style_list, 'S_TITLE_STYLE_YES' => $title_style_yes, 'S_TITLE_STYLE_NO' => $title_style_no, 'S_SHOW_TITLE_YES' => $show_title_yes, 'S_SHOW_TITLE_NO' => $show_title_no, //+ MX System 'U_PHPBB_ROOT_PATH' => PHPBB_URL //- MX System )); $template->pparse('body'); include($mx_root_path . 'includes/page_tail.'.$phpEx); ?> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:23
|
Update of /cvsroot/mxbb/core27x/modules/mx_statistics/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_statistics/templates Added Files: mx_statistics.tpl Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_statistics.tpl --- <table border="0" cellpadding="4" cellspacing="1" class="forumline" width="100%"> <tr> <td class="catHead" align="center" colspan="4"> <span class="cattitle">{L_ADMIN_STATISTICS}</span> </td> </tr> <tr> <th width="25%" class="thCornerL" align="center"><strong>{L_STATISTIC}</strong></td> <th width="25%" class="thTop" align="center"><strong>{L_VALUE}</strong></td> <th width="25%" class="thTop" align="center"><strong>{L_STATISTIC}</strong></td> <th width="25%" class="thCornerR" align="center"><strong>{L_VALUE}</strong></td> </tr> <!-- BEGIN adminrow --> <tr> <td class="row2" align="center"><span class="gen">{adminrow.STATISTIC}</span></td> <td class="row1" width="25%" align="center"><span class="gen">{adminrow.VALUE}</span></td> <td class="row2" align="center"><span class="gen">{adminrow.STATISTIC2}</span></td> <td class="row1" width="25%" align="center"><span class="gen">{adminrow.VALUE2}</span></td> </tr> <!-- END adminrow --> </table> <br /> <br /> <table border="0" cellpadding="4" cellspacing="1" class="forumline" width="100%"> <tr> <td class="catHead" align="center" colspan="5"> <span class="cattitle">{L_TOP_POSTERS}</span> </td> </tr> <tr> <th class="thCornerL" align="center"><strong>{L_RANK}</strong></th> <th class="thTop" align="center" width="10%"><strong>{L_USERNAME}</strong></th> <th class="thTop" align="center" width="10%"><strong>{L_POSTS}</strong></th> <th class="thTop" align="center" width="10%"><strong>{L_PERCENTAGE}</strong></th> <th class="thCornerR" align="center" width="50%"><strong>{L_GRAPH}</strong></th> </tr> <!-- BEGIN users --> <tr> <td class="{users.CLASS}" align="left" width="10%"><span class="gen">{users.RANK}</span></td> <td class="{users.CLASS}" align="left" width="10%"><span class="gen"><a href="{users.URL}">{users.USERNAME}</a></span></td> <td class="{users.CLASS}" align="center" width="10%"><span class="gen">{users.POSTS}</span></td> <td class="{users.CLASS}" align="center" width="10%"><span class="gen">{users.PERCENTAGE}%</span></td> <td class="{users.CLASS}" align="left" width="50%"> <table cellspacing="0" cellpadding="0" border="0" align="left"> <tr> <td align="right"><img src="{LEFT_GRAPH_IMAGE}" width="4" height="12" /></td> </tr> </table> <table cellspacing="0" cellpadding="0" border="0" align="left" width="{users.BAR}%"> <tr> <td><img src="{GRAPH_IMAGE}" width="100%" height="12" /></td> </tr> </table> <table cellspacing="0" cellpadding="0" border="0" align="left"> <tr> <td align="left"><img src="{RIGHT_GRAPH_IMAGE}" width="4" height="12" /></td> </tr> </table> </td> </tr> <!-- END users --> </table> <br /> <br /> <table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <td valign="top" width="50%"> <table border="0" cellpadding="4" cellspacing="1" class="forumline" width="100%"> <tr> <td class="catHead" align="center" colspan="3"><span class="cattitle">{L_MOST_VIEWED}</span></td> </tr> <tr> <th colspan="1" class="thCornerL" align="left"><strong>{L_RANK}</strong></th> <th class="thTop" align="center"><strong>{L_VIEWS}</strong></th> <th class="thCornerR" align="center"><strong>{L_TOPIC}</strong></th> <!-- BEGIN topicviews --> <tr> <td class="{topicviews.CLASS}" align="left" width="5%"><span class="gen">{topicviews.RANK}</span></td> <td class="{topicviews.CLASS}" align="center" width="20%"><span class="gen">{topicviews.VIEWS}</span></td> <td class="{topicviews.CLASS}" align="left"><span class="gen"><a href="{topicviews.URL}">{topicviews.TITLE}</a></span></td> </tr> <!-- END topicviews --> </table> </td> <td valign="top" width="50%"> <table border="0" cellpadding="4" cellspacing="1" class="forumline" width="100%"> <tr> <td class="catHead" align="center" colspan="3" height="28"> <span class="cattitle">{L_MOST_ACTIVE}</span> </td> </tr> <tr> <th colspan="1" class="thCornerL" align="left"><strong>{L_RANK}</strong></th> <th class="thTop" align="center"><strong>{L_REPLIES}</strong></th> <th class="thCornerR" align="center"><strong>{L_TOPIC}</strong></th> </tr> <!-- BEGIN topicreplies --> <tr> <td class="{topicreplies.CLASS}" align="left" width="5%"><span class="gen">{topicreplies.RANK}</span></td> <td class="{topicreplies.CLASS}" align="center" width="20%"><span class="gen">{topicreplies.REPLIES}</span></td> <td class="{topicreplies.CLASS}" align="left"><span class="gen"><a href="{topicreplies.URL}">{topicreplies.TITLE}</a></span></td> </tr> <!-- END topicreplies --> </table> </td> </tr> </table> <br /> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:23
|
Update of /cvsroot/mxbb/core27x/modules/mx_statistics/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_statistics/language/lang_english Added Files: index.htm lang_main.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * Mx_Statistics Module * lang_main.php [English] * ------------------- * copyright : (C) 2003 Mx System * email : su...@mx... * * $Id: lang_admin.php * Rev. hist : Created by MarcMoris (su...@mx...), * reedited by Haplo (jon...@ho...) * $Id: lang_main.php,v 1.1 2005/05/06 06:48:08 jonohlsson Exp $ * ****************************************************************************/ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); // Module // // English Language File // $lang['Statistics'] = "Statistics"; $lang['Rank'] = "Rank"; $lang['Percent'] = "Percent"; $lang['Graph'] = "Graph"; $lang['Uses'] = "Uses"; $lang['Board_Up_Days'] = "Board Up Days"; $lang['Latest_Reg_User'] = "Latest User Registered"; $lang['Latest_Reg_User_Date'] = "Latest User Registered Date"; $lang['Most_Ever_Online'] = "Most Users Ever Online"; $lang['Most_Ever_Online_Date'] = "Most Users Ever Online Date"; $lang['Admin_Stats'] = "Administrative Statistics"; $lang['Top_Posting_Users'] = "Top Posting Users"; $lang['Most_Active_Topics'] = "Most Active Topics"; $lang['Most_Viewed_Topics'] = "Most Viewed Topics"; $lang['Top_Smilies'] = "Top Used Smilies"; // // These Language Variables are only used if the Attachment Mod is installed // $lang['Disk_usage'] = "Disk Usage"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
Update of /cvsroot/mxbb/core27x/templates/subSilver/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/templates/subSilver/admin Added Files: admin_mx_meta.tpl admin_mx_phpinfo.tpl admin_mx_poll.tpl admin_mx_portal.tpl auth_mx_portal_body.tpl index.htm index_body.tpl index_frameset.tpl index_navigate.tpl mx_announcement_admin.tpl mx_auth_portal_body.tpl mx_block_admin_body.tpl mx_block_admin_column.tpl mx_block_delete_body.tpl mx_block_edit_body.tpl mx_block_setting_body.tpl mx_category_edit_body.tpl mx_function_edit_body.tpl mx_language_body.tpl mx_menu_admin_body.tpl mx_menu_delete_body.tpl mx_menu_edit_body.tpl mx_module_admin_body.tpl mx_module_edit_body.tpl mx_page_admin_body.tpl mx_page_admin_column.tpl mx_page_admin_edit.tpl mx_page_delete_body.tpl mx_page_edit_body.tpl mx_parameter_edit_body.tpl page_footer.tpl page_header.tpl Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_block_setting_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form action="{S_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="3">{BLOCK_TITLE}</th> </tr> <!-- BEGIN param_row --> <tr> <td class="row1">{param_row.PARAMETER_LABEL}<br />{param_row.PARAMETER_INFO}</td> <td class="row2">{param_row.PARAMETER_FIELD}</td> </tr> <!-- END param_row --> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> <br clear="all" /> --- NEW FILE: mx_menu_delete_body.tpl --- <h1>{L_MENU_DELETE}</h1> <p>{L_MENU_DELETE_EXPLAIN}</p> <form action="{S_MENU_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th colspan="2" class="thHead">{L_MENU_DELETE}</th> </tr> <tr> <td class="row1">{L_MENU_NAME}</td> <td class="row1"><span class="row1">{NAME}</span></td> </tr> <tr> <td class="row1">{L_MOVE_CONTENTS}</td> <td class="row1">{S_SELECT_TO}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> --- NEW FILE: admin_mx_meta.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">META TAGS</th> </tr> <tr> <td class="row1">{L_TITLE}</td> <td class="row2"><input type="text" name="title" value="{TITLE}" size="32" /></td> </tr> <tr> <td class="row1">{L_AUTHOR}</td> <td class="row2"><input type="text" name="author" value="{AUTHOR}" size="32" /></td> </tr> <tr> <td class="row1">{L_COPYRIGHT}</td> <td class="row2"><input type="text" name="copyright" value="{COPYRIGHT}" size="32" /></td> </tr> <tr> <td class="row1">{L_KEYWORDS}<br />{L_KEYWORDS_EXPLAIN}</td> <td class="row2"><input type="text" name="keywords" value="{KEYWORDS}" size="65" /></td> </tr> <tr> <td class="row1">{L_DESCRIPTION}</td> <td class="row2"><input type="text" name="description" value="{DESCRIPTION}" size="65" /></td> </tr> <tr> <td class="row1">{L_LANGUAGE}</td> <td class="row2">{LANGUAGE}</td> </tr> <tr> <td class="row1">{L_RATING}</td> <td class="row2">{RATING}</td> </tr> <tr> <td class="row1">{L_ROBOTS}</td> <td class="row2">{ROBOTS_INDEX} {ROBOTS_FOLLOW}</td> </tr> <tr> <td class="row1">{L_PRAGMA}</td> <td class="row2"> <input type="checkbox" name="pragma" value="1" {PRAGMA}/> </td> </tr> <tr> <td class="row1">{L_BOOKMARK}<br />{L_BOOKMARK_EXPLAIN}</td> <td class="row2"> <input type="text" name="icon" value="{ICON}" size="34" /> </td> </tr> </table> <br /> <br /> <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="2">{L_HTITLE}</th> </tr> <tr align="center"> <TD class="row2"> <textarea name="header" rows="6" cols="80">{HEADER}</textarea> </td> </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" /> </table></FORM> <br clear="all" /> --- NEW FILE: mx_category_edit_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.message.value.length < 2) { formErrors = "{L_EMPTY_MESSAGE}"; } if (document.post.subject.value.length < 2) { formErrors = "{L_EMPTY_SUBJECT}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { text = ' ' + text + ' '; if (document.post.message.createTextRange && document.post.message.caretPos) { var caretPos = document.post.message.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; document.post.message.focus(); } else { document.post.message.value += text; document.post.message.focus(); } } function bbfontstyle(bbopen, bbclose) { if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { document.post.message.value += bbopen + bbclose; document.post.message.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; document.post.message.focus(); return; } else { document.post.message.value += bbopen + bbclose; document.post.message.focus(); return; } storeCaret(document.post.message); } function bbstyle(bbnumber) { donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; document.post.message.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D document.post.message.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; document.post.message.focus(); theSelection = ''; return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; document.post.message.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } document.post.message.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another document.post.message.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag document.post.message.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); document.post.message.focus(); return; } storeCaret(document.post.message); } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <h1>{L_EDIT_CATEGORY}</h1> <p>{L_EDIT_CATEGORY_EXPLAIN}</p> <form action="{S_FORUM_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="3">{L_EDIT_CATEGORY}</th> </tr> <tr> <td class="row1"><b>{L_CATEGORY}</b></td> <td class="row2" colspan="2"><input type="text" size="25" name="cat_title" value="{CAT_TITLE}" /></td> </tr> <tr> <td class="row1" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td><span class="gen"><b>{L_DESCRIPTION}</b></span> </td> </tr> <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td> </tr> <!-- BEGIN smilies_row --> <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{U_PHPBB_ROOT_PATH}{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> <!-- END smilies_col --> </tr> <!-- END smilies_row --> <!-- BEGIN switch_smilies_extra --> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td> </tr> <!-- END switch_smilies_extra --> </table> </td> </tr> </table> </td> <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> <table width="450" border="0" cellspacing="0" cellpadding="2"> <tr align="center" valign="middle"> <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> <tr> <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option> <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option> <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option> <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option> <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option> <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option> <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option> <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option> <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option> <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option> <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option> <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option> </select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> <option value="12" selected class="genmed">{L_FONT_NORMAL}</option> <option value="18" class="genmed">{L_FONT_LARGE}</option> <option value="24" class="genmed">{L_FONT_HUGE}</option> </select> </span></td> <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> </table> </td> </tr> <tr> <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> <tr> <td colspan="9"><span class="gen"> <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{CAT_DESC}</textarea> </span></td> </tr> </table> </span></td> </tr> <tr> <td class="row1" colspan="2" align="center"><span class="gen">{S_SHOW_CAT} </span></td> </tr> <tr> <td class="catBottom" colspan="3" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: mx_language_body.tpl --- <h1>{L_TITLE}</h1> <P>{L_TEXT}</p> <form method="post" action="{S_ACTION}"> {SOURCE_SELECT} {LANGUAGE_SELECT_ORI} {LANGUAGE_SELECT_DEST} <input type="submit" class="mainoption" name="cangenow" value="{L_CHANGE_NOW}" /> </form> <br /> <form method="post" action="{S_ACTION}"><table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thCornerL">{L_CODE}</th> <th class="thTop">{L_TEXT_ORI}</th> <th class="thTop">{L_TEXT_DEST}</th> </tr> <!-- BEGIN language --> <tr> <td class="{language.ROW_CLASS}">{language.CODE}</td> <td class="{language.ROW_CLASS}"><TEXTAREA NAME="{language.CODE_ORI}" ROWS=2 COLS=60>{language.TEXT_ORI}</TEXTAREA></td> <td class="{language.ROW_CLASS}"><TEXTAREA NAME="{language.CODE_DEST}" ROWS=2 COLS=60>{language.TEXT_DEST}</TEXTAREA></td> </tr> <!-- END language --> <tr> <td class="catBottom" colspan="3" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </tr> </table></form> --- NEW FILE: mx_page_admin_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form method="post" action="{S_PAGE_ACTION}"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="6">{L_PAGE} {PAGELIST} <input type="submit" class="mainoption" name="cangenow" value="{L_CHANGE_NOW}" /> </th> </tr> </table> </form> <form method="post" action="{S_ACTION}"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="6">{L_TITLE}</th> </tr> <!-- BEGIN columnrow --> <tr> <td class="catLeft" ><span class="cattitle"><b><a href="{columnrow.U_VIEWCOLUMN}">{columnrow.COLUMN_DESC}</a></b></span></td> <td class="cat" align="center" valign="middle"><span class="gen"><a href="{columnrow.U_COLUMN_EDIT}">{L_EDIT}</a></span></td> <td class="cat" align="center" valign="middle"><span class="gen"><a href="{columnrow.U_COLUMN_EDIT}">{L_SETTING}</a></span></td> <td class="cat" align="center" valign="middle"><span class="gen"><a href="{columnrow.U_COLUMN_DELETE}">{L_DELETE}</a></span></td> <td class="cat" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{columnrow.U_COLUMN_MOVE_UP}">{L_MOVE_UP}</a> <a href="{columnrow.U_COLUMN_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> <td class="catRight" align="center" valign="middle"><span class="gen"> </span></td> </tr> <!-- BEGIN blockrow --> <tr> <td class="row2"><span class="gen">{columnrow.blockrow.BLOCK_NAME}</span><br /><span class="gensmall">{columnrow.blockrow.BLOCK_DESC}</span></td> <td class="row1" align="center" valign="middle"><span class="gen"><a href="{columnrow.blockrow.U_BLOCK_EDIT}">{L_EDIT}</a></span></td> <td class="row1" align="center" valign="middle"><span class="gen"><a href="{columnrow.blockrow.U_BLOCK_SETTING}">{columnrow.blockrow.L_SETTING}</a> </span></td> <td class="row2" align="center" valign="middle"><span class="gen"><a href="{columnrow.blockrow.U_BLOCK_DELETE}">{L_DELETE}</a></span></td> <td class="row1" align="center" valign="middle"><span class="gen"><a href="{columnrow.blockrow.U_BLOCK_MOVE_UP}">{L_MOVE_UP}</a> <a href="{columnrow.blockrow.U_BLOCK_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> <td class="row2" align="center" valign="middle"><span class="gen"><a href="{columnrow.blockrow.U_BLOCK_RESYNC}">{L_RESYNC}</a></span></td> </tr> <!-- END blockrow --> <tr> <td colspan="7" class="row2">{columnrow.LIST_BLOCK} {columnrow.S_HIDDEN_FIELDS}<input type="submit" class="liteoption" name="{columnrow.S_ADD_BLOCK_SUBMIT}" value="{L_CREATE_BLOCK}" /></td> </tr> <tr> <td colspan="7" height="1" class="spaceRow"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}spacer.gif" alt="" width="1" height="1" /></td> </tr> <!-- END columnrow --> <tr> <td colspan="7" class="catBottom"><input type="text" name="columnname" /> <input type="submit" class="liteoption" name="addcolumn" value="{L_CREATE_COLUMN}" /></td> </tr> <tr> <td colspan="7" class="catBottom"><input type="text" name="pagename" /> <input type="submit" class="liteoption" name="addpage" value="{L_CREATE_PAGE}" /></td> </tr> </table></form> --- NEW FILE: mx_function_edit_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form action="{S_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_TITLE}</th> </tr> <tr> <td class="row1">{L_MODULE}</td> <td class="row2">{MODULE_SELECT}</td> </tr> <tr> <td class="row1">{L_FUNCTION_NAME}</td> <td class="row2"><input type="text" size="45" name="function_name" value="{FUNCTION_NAME}" class="post" /></td> </tr> <tr> <tr> <td class="row1">{L_FUNCTION_DESC}</td> <td class="row2"><input type="text" size="45" name="function_desc" value="{FUNCTION_DESC}" class="post" /></td> </tr> <tr> <td class="row1">{L_FUNCTION_FILE}</td> <td class="row2"><input type="text" size="45" name="function_file" value="{FUNCTION_FILE}" class="post" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> <br /> <h1>{L_PARAMETER_TITLE}</h1> <P>{L_PARAMETER_TEXT}</p> <br /> <form method="post" action="{S_ACTION}"><table width="100%" cellspacing="1" cellpadding="5" border="0" align="center" class="forumline"> <tr> <th class="thTop">{L_PARAMETER_ID}</th> <th class="thTop">{L_PARAMETER_DESC}</th> <th class="thTop">{L_PARAMETER_TYPE}</th> <th class="thTop">{L_PARAMETER_DEFAULT}</th> <th colspan="2" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN parameter --> <tr> <td class="{parameter.ROW_CLASS}">{parameter.PARAMETER_ID}</td> <td class="{parameter.ROW_CLASS}">{parameter.PARAMETER_DESC}</td> <td class="{parameter.ROW_CLASS}">{parameter.PARAMETER_TYPE}</td> <td class="{parameter.ROW_CLASS}">{parameter.PARAMETER_DEFAULT}</td> <td class="{parameter.ROW_CLASS}"><a href="{parameter.U_EDIT}">{L_EDIT}</a></td> <td class="{parameter.ROW_CLASS}"><a href="{parameter.U_DELETE}">{L_DELETE}</a></td> </tr> <!-- END parameter --> <tr> <td class="catBottom" colspan="7" align="center">{S_HIDDEN_FIELDS_PARAM}<input type="submit" name="add_param" value="{L_ADD}" class="mainoption" /></td> </tr> </table></form> <br clear="all" /> --- NEW FILE: admin_mx_portal.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_CONFIG_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="3">{L_GENERAL_SETTINGS}</th> </tr> <tr> <td class="row1">{L_PORTAL_NAME}</td> <td class="row2"><input type="text" maxlength="150" size="30" name="portal_name" value="{PORTAL_NAME}" /></td> </tr> <tr> <td class="row1">{L_PORTAL_URL}</td> <td class="row2"><input type="text" maxlength="150" size="30" name="portal_url" value="{PORTAL_URL}" /></td> </tr> <tr> <td class="row1">{L_PORTAL_PHPBB_URL}</td> <td class="row2"><input type="text" maxlength="150" size="30" name="portal_phpbb_url" value="{PORTAL_PHPBB_URL}" /></td> </tr> <tr> <td class="row1">{L_TOP_PHPBB_LINKS}</td> <td class="row2"><input type="radio" name="top_phpbb_links" value="1" {S_TOP_PHPBB_LINKS_YES} /> {L_YES} <input type="radio" name="top_phpbb_links" value="0" {S_TOP_PHPBB_LINKS_NO} /> {L_NO}</td> </tr> <tr> <td class="catBottom" colspan="3" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </tr> <tr> <th class="thHead" colspan="3">{L_GENERAL_CONFIG_INFO}</th> </tr> <tr> <td class="row1">{L_PHPBB_RELATIVE_PATH}<br />{L_PHPBB_RELATIVE_PATH_EXPLAIN}</td> <td class="row2">{PHPBB_RELATIVE_PATH}</td> </tr> <tr> <td class="row1">{L_PORTAL_VERSION}</td> <td class="row2">{PORTAL_VERSION}</td> </tr> <tr> <th class="thHead" colspan="3">{L_PHPBB_INFO}</th> </tr> <tr> <td class="row1">{L_PHPBB_VERSION}</td> <td class="row2">{PHPBB_VERSION}</td> </tr> <tr> <td class="row1">{L_PHPBB_SERVER_NAME}</td> <td class="row2">{PHPBB_SERVER_NAME}</td> </tr> <tr> <td class="row1">{L_PHPBB_SCRIPT_PATH}</td> <td class="row2">{PHPBB_SCRIPT_PATH}</td> </tr> </table></form> <br clear="all" /> --- NEW FILE: mx_page_admin_column.tpl --- <h1>{L_EDIT_COLUMN}</h1> <p>{L_EDIT_COLUMN_EXPLAIN}</p> <form action="{S_FORUM_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_EDIT_COLUMN}</th> </tr> <tr> <td class="row1">{L_COLUMN}</td> <td class="row2"><input type="text" size="25" name="column_title" value="{COLUMN_TITLE}" /></td> </tr> <tr> <td class="row1">{L_COLUMN_SIZE}</td> <td class="row2"><input type="text" maxlength="5" size="5" name="column_size" value="{COLUMN_SIZE}" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: mx_module_admin_body.tpl --- <h1>{L_MODULE_TITLE}</h1> <P>{L_MODULE_TEXT}</p> <form method="post" action="{S_ACTION}"><table width="100%" cellspacing="1" cellpadding="4" border="0" align="center" class="forumline"> <tr> <th class="thCornerL">{L_CODE}</th> <th class="thTop">{L_MODULE_NAME}</th> <th class="thTop">{L_MODULE_DESC}</th> <th colspan="2" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN module --> <tr> <td class="{module.ROW_CLASS}">{module.CODE}</td> <td class="{module.ROW_CLASS}">{module.NAME}</td> <td class="{module.ROW_CLASS}">{module.DESC}</td> <td class="{module.ROW_CLASS}"><a href="{module.U_EDIT}">{L_EDIT}</a></td> <td class="{module.ROW_CLASS}"><a href="{module.U_DELETE}">{L_DELETE}</a></td> </tr> <!-- END module --> <tr> <td class="catBottom" colspan="5" align="center">{S_HIDDEN_FIELDS_MODULE}<input class="mainoption" type="submit" name="import_pack" value="{L_IMPORT_PACK}"> <input class="mainoption" type="submit" name="upgrade_module" value="{L_UPGRADE_PACK}"> <input type="submit" name="add" value="{L_ADD}" class="liteoption" /> <input class="liteoption" type="submit" name="export_pack" value="{L_EXPORT_PACK}"></td> </tr> </table></form> <br /> <h1>{L_FUNCTION_TITLE}</h1> <P>{L_FUNCTION_TEXT}</p> <br /> <form method="post" action="{S_ACTION}"><table width="100%" cellspacing="1" cellpadding="5" border="0" align="center" class="forumline"> <tr> <th class="thCornerL">{L_MODULE_NAME}</th> <th class="thTop">{L_CODE}</th> <th class="thTop">{L_FUNCTION_NAME}</th> <th class="thTop">{L_FUNCTION_DESC}</th> <th colspan="2" class="thCornerR">{L_ACTION}</th> </tr> <!-- BEGIN function --> <tr> <td class="{function.ROW_CLASS}">{function.MODULE}</td> <td class="{function.ROW_CLASS}">{function.CODE}</td> <td class="{function.ROW_CLASS}">{function.NAME}</td> <td class="{function.ROW_CLASS}">{function.DESC}</td> <td class="{function.ROW_CLASS}"><a href="{function.U_EDIT}">{L_EDIT}</a></td> <td class="{function.ROW_CLASS}"><a href="{function.U_DELETE}">{L_DELETE}</a></td> </tr> <!-- END function --> <tr> <td class="catBottom" colspan="6" align="center">{S_HIDDEN_FIELDS_FUNCTION}<input type="submit" name="add" value="{L_ADD_FUNCTION}" class="mainoption" /></td> </tr> </table></form> --- NEW FILE: mx_block_admin_column.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form action="{S_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_TITLE}</th> </tr> <tr> <td class="row1">{L_COLUMN}</td> <td class="row2"><input type="text" size="25" name="column_title" value="{COLUMN_TITLE}" /></td> </tr> <tr> <td class="row1">{L_COLUMN_SIZE}</td> <td class="row2"><input type="text" maxlength="5" size="5" name="column_size" value="{COLUMN_SIZE}" /></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: admin_mx_poll.tpl --- <h1>{L_ADMIN_POLL_TITLE}</h1> <p>{L_ADMIN_POLL_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="6">{L_POLL_SETTINGS}</th> </tr> <tr> <td class="row1" colspan="2">{L_POLL_DISPLAY}</td> <td class="row2" colspan="4">{POLL_SELECT}</td> </tr> <tr> <td class="catBottom" colspan="6" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </tr> </table></form> <br/> <br/> <br/> <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <th class="thCornerL" height="25" nowrap="nowrap"> {L_POLL_NO} </th> <th width="120" class="thTop" nowrap="nowrap"> {L_TOPIC} </th> <th class="thTop" nowrap="nowrap"> {L_POLL_QUESTION} </th> <th width="100" class="thTop" nowrap="nowrap"> {L_DATE} </th> <th class="thCornerR" nowrap="nowrap" colspan="2"> {L_ADMIN_POLL_ACTION} </th> </tr> <!-- BEGIN empty --> <tr> <td class="row1" align="center" valign="middle" height="25" colspan="6">{L_MSG_NO_POLL}</td> </tr> <!-- END empty --> <!-- BEGIN pollrow --> <tr> <td class="row1" align="center" valign="middle" height="25"><span class="gensmall">{pollrow.ID}</span></td> <td class="row2" align="center" valign="middle" height="25"><a href="{pollrow.U_VIEW_TOPIC}" target="_blank">{pollrow.TITLE_TOPIC}</a></td> <td class="row1" align="center" valign="middle" height="25"><span class="gensmall">{pollrow.TITLE_POLL}</span></td> <td class="row2" align="center" valign="middle" height="25"><span class="gensmall">{pollrow.POLL_DATE}</span></td> <td class="row1" align="center" valign="middle" width="60" height="25" nowrap="nowrap"><a href="admin_mx_poll.php?mode=view&id={pollrow.ID}" class="mainmenu">voir</a></td> <td class="row2" align="center" valign="middle" width="60" height="25" nowrap="nowrap"><a href="admin_mx_poll.php?mode=delete&id={pollrow.ID}&t_id={pollrow.T_ID}" class="mainmenu">Suppr</a></td> </tr> <!-- END pollrow --> </table> <!-- BEGIN details --> <br> <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thCornerL" height="25" nowrap="nowrap"> {L_POLL_OPT} </th> <th class="thCornerR" nowrap="nowrap" colspan="2"> {L_NBR_ANSWERS} </th> </tr> <!-- BEGIN answerrow --> <tr> <td class="row1" width="40%" align="center" valign="middle" height="25"><span class="gensmall">{details.answerrow.ID_OPTION} - {details.answerrow.OPTION}</span></td> <td class="row2" align="center" valign="middle" height="25"><span class="gensmall">{details.answerrow.NB_ANSWER}</span></td> </tr> <!-- END answerrow --> </table> <br> <table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thTop" height="25" nowrap="nowrap"> {L_POLL_USERS} </th> </tr> <tr> <td class="row1" align="left" valign="middle" height="25"><span class="gensmall"> {details.USERS_LIST}</span></td> </tr> </table> <!-- END details --> <br> <br clear="all" /> --- NEW FILE: mx_block_delete_body.tpl --- <h1>{L_BLOCK_DELETE}</h1> <p>{L_BLOCK_DELETE_EXPLAIN}</p> <form action="{S_MENU_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th colspan="2" class="thHead">{L_BLOCK_DELETE}</th> </tr> <tr> <td class="row1">{L_NAME}</td> <td class="row1"><span class="row1">{NAME}</span></td> </tr> <tr> <td class="row1">{L_MOVE_CONTENTS}</td> <td class="row1">{S_SELECT_TO}</td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> --- NEW FILE: auth_mx_portal_body.tpl --- <h1>{L_AUTH_TITLE}</h1> <p>{L_AUTH_EXPLAIN}</p> <h2>{PORTAL_NAME}</h2> <form method="post" action="{S_PORTALAUTH_ACTION}"> <table cellspacing="1" cellpadding="4" border="0" align="center" class="portalline"> <tr> <!-- BEGIN portal_auth_titles --> <th class="thTop">{portal_auth_titles.CELL_TITLE}</th> <!-- END portal_auth_titles --> </tr> <tr> <!-- BEGIN portal_auth_data --> <td class="row1" align="center">{portal_auth_data.S_AUTH_LEVELS_SELECT}</td> <!-- END portal_auth_data --> </tr> <tr> <td colspan="{S_COLUMN_SPAN}" align="center" class="row1"> <span class="gensmall">{U_SWITCH_MODE}</span></td> </tr> <tr> <td colspan="{S_COLUMN_SPAN}" class="catBottom" align="center">{S_HIDDEN_FIELDS} <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" name="reset" class="liteoption" /> </td> </tr> </table> </form> --- NEW FILE: mx_menu_edit_body.tpl --- <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline messages b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help messages in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.message.value.length < 2) { formErrors = "{L_EMPTY_MESSAGE}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { text = ' ' + text + ' '; if (document.post.message.createTextRange && document.post.message.caretPos) { var caretPos = document.post.message.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; document.post.message.focus(); } else { document.post.message.value += text; document.post.message.focus(); } } function bbfontstyle(bbopen, bbclose) { if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { document.post.message.value += bbopen + bbclose; document.post.message.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; document.post.message.focus(); return; } else { document.post.message.value += bbopen + bbclose; document.post.message.focus(); return; } storeCaret(document.post.message); } function bbstyle(bbnumber) { donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; document.post.message.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D document.post.message.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; document.post.message.focus(); theSelection = ''; return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; document.post.message.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } document.post.message.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another document.post.message.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag document.post.message.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); document.post.message.focus(); return; } storeCaret(document.post.message); } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <h1>{L_MENU_TITLE}</h1> <p>{L_MENU_EXPLAIN}</p> <form action="{S_MENU_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_MENU_SETTINGS}</th> </tr> <tr> <td class="row1"></td> <td class="row2"> <table > <tr align="center" valign="middle"> <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> <tr> <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option> <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option> <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option> <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option> <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option> <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option> <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option> <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option> <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option> <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option> <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option> <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option> </select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> <option value="12" selected class="genmed">{L_FONT_NORMAL}</option> <option value="18" class="genmed">{L_FONT_LARGE}</option> <option value="24" class="genmed">{L_FONT_HUGE}</option> </select> </span></td> <td nowrap align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> <tr> <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td class="row1">{L_MENU_NAME}</td> <td class="row2"><input type="text" size="45" name="menuname" value="{MENU_NAME}" class="post" /></td> </tr> <tr> <td class="row1">{L_MENU_ICON}</td> <td class="row2"><input type="text" size="45" name="menuicon" value="{MENU_ICON}" class="post" /></td> </tr> <tr> <td class="row1">{L_MENU_DESCRIPTION}</td> <td class="row2"><textarea rows="5" cols="45" wrap="virtual" name="message" class="post">{DESCRIPTION}</textarea></td> </tr> <tr> <td class="row1">{L_CATEGORY}</td> <td class="row2">{S_CAT_LIST}</td> </tr> <tr> <td class="row1">{L_LINK_TARGET}</td> <td class="row2">{S_LINK_TARGET_LIST}</td> </tr> <tr> <td class="row1" colspan="2">{L_MENU_ACTION_TITLE}</td> </tr> <tr> <td class="row1">{L_MENU_PAGE}</td> <td class="row2">{S_PAGE_LIST}</td> </tr> <tr> <td class="row1">{L_MENU_LINKS}</td> <td class="row2"><input type="text" size="45" name="menulinks" value="{LINKS}" class="post" /></td> </tr> <tr> <td class="row1" colspan="2">{L_MENU_ACTION_ADV}</td> </tr> <tr> <td class="row1">{L_MENU_BLOCK}</td> <td class="row2">{S_BLOCK_LIST}</td> </tr> <tr> <td class="row1">{L_MENU_FUNCTION}</td> <td class="row2">{S_FUNCTION_LIST}</td> </tr> <tr> <td class="row1" colspan="2">{L_MENU_PERMISSIONS_TITLE}</td> </tr> <tr> <td class="row1">{L_AUTH_TITLE}</td> <td class="row2"> <table cellspacing="1" cellpadding="4" border="0" class="portalline"> <tr> <!-- BEGIN module_auth_titles --> <th class="thTop">{module_auth_titles.CELL_TITLE}</th> <!-- END module_auth_titles --> </tr> <!-- BEGIN module_auth_data --> <tr> <td class="row1" align="center">{module_auth_data.S_AUTH_LEVELS_SELECT}</td> </tr> <tr> <th class="thTop">{module_auth_data.L_AUTH_GROUP_LEVELS_SELECT}</th> </tr> <tr> <td class="row1" align="center">{module_auth_data.S_AUTH_GROUP_LEVELS_SELECT}</td> </tr> <!-- END module_auth_data --> </table> </td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: mx_page_delete_body.tpl --- <h1>{L_PAGE_DELETE}</h1> <p>{L_PAGE_DELETE_EXPLAIN}</p> <form action="{S_PAGE_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th colspan="2" class="thHead">{L_PAGE_DELETE}</th> </tr> <tr> <td class="row1">{L_PAGE_NAME}</td> <td class="row1"><span class="row1">{NAME}</span></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> --- NEW FILE: mx_menu_admin_body.tpl --- <h1>{L_MENU_TITLE}</h1> <p>{L_MENU_EXPLAIN}</p> <form method="post" action="{S_MENU_ACTION}"><table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="7">{L_MENU_TITLE}</th> </tr> <!-- BEGIN catrow --> <tr> <td class="catLeft" ><span class="cattitle"><b><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a></b></span></td> <td class="cat" align="center" valign="middle"><span class="gen"><a href="{catrow.U_CAT_EDIT}">{L_EDIT}</a></span></td> <td class="cat" align="center" valign="middle"><span class="gen"><a href="{catrow.U_CAT_DELETE}">{L_DELETE}</a></span></td> <td class="cat" align="center" valign="middle" nowrap="nowrap"><span class="gen"><a href="{catrow.U_CAT_MOVE_UP}">{L_MOVE_UP}</a> <a href="{catrow.U_CAT_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> <td class="catRight" align="center" valign="middle"><span class="gen"> </span></td> </tr> <!-- BEGIN menurow --> <tr> <td class="row2"><span class="gen"><a href="{catrow.menurow.U_VIEWMENU}" target="_new">{catrow.menurow.MENU_NAME}</a></span><br /><span class="gensmall">{catrow.menurow.MENU_DESC}</span></td> <td class="row1" align="center" valign="middle"><span class="gen"><a href="{catrow.menurow.U_MENU_EDIT}">{L_EDIT}</a></span></td> <td class="row2" align="center" valign="middle"><span class="gen"><a href="{catrow.menurow.U_MENU_DELETE}">{L_DELETE}</a></span></td> <td class="row1" align="center" valign="middle"><span class="gen"><a href="{catrow.menurow.U_MENU_MOVE_UP}">{L_MOVE_UP}</a> <a href="{catrow.menurow.U_MENU_MOVE_DOWN}">{L_MOVE_DOWN}</a></span></td> <td class="row2" align="center" valign="middle"><span class="gen"><a href="{catrow.menurow.U_MENU_RESYNC}">{L_RESYNC}</a></span></td> </tr> <!-- END menurow --> <tr> <td colspan="7" class="row2"><input type="text" name="{catrow.S_ADD_MENU_NAME}" /> <input type="submit" class="liteoption" name="{catrow.S_ADD_MENU_SUBMIT}" value="{L_CREATE_MENU}" /></td> </tr> <tr> <td colspan="7" height="1" class="spaceRow"><img src="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}spacer.gif" alt="" width="1" height="1" /></td> </tr> <!-- END catrow --> <tr> <td colspan="7" class="catBottom"><input type="text" name="categoryname" /> {S_SHOW_CAT} <input type="submit" class="liteoption" name="addcategory" value="{L_CREATE_CATEGORY}" /></td> </tr> <tr> <td colspan="7" class="cat" align="center" valign="middle"><span class="gen"><a href="{U_RETURN}">{L_RETURN}</a></span></td> </tr> </table></form> --- NEW FILE: admin_mx_phpinfo.tpl --- <div style="text-align:center;">{PHPINFO}</div> --- NEW FILE: mx_auth_portal_body.tpl --- <h1>{L_AUTH_TITLE}</h1> <p>{L_AUTH_EXPLAIN}</p> <h2>{PORTAL_NAME}</h2> <form method="post" action="{S_PORTALAUTH_ACTION}"> <table cellspacing="1" cellpadding="4" border="0" align="center" class="portalline"> <tr> <!-- BEGIN portal_auth_titles --> <th class="thTop">{portal_auth_titles.CELL_TITLE}</th> <!-- END portal_auth_titles --> </tr> <tr> <!-- BEGIN portal_auth_data --> <td class="row1" align="center">{portal_auth_data.S_AUTH_LEVELS_SELECT}</td> <!-- END portal_auth_data --> </tr> <tr> <td colspan="{S_COLUMN_SPAN}" align="center" class="row1"> <span class="gensmall">{U_SWITCH_MODE}</span></td> </tr> <tr> <td colspan="{S_COLUMN_SPAN}" class="catBottom" align="center">{S_HIDDEN_FIELDS} <input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" name="reset" class="liteoption" /> </td> </tr> </table> </form> --- NEW FILE: mx_announcement_admin.tpl --- <h1>{L_CONFIGURATION_TITLE}</h1> <p>{L_CONFIGURATION_EXPLAIN}</p> <form action="{S_CONFIG_ACTION}" method="post"> <table width="100%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline"> <tr> <th class="thHead" colspan="3">{L_ANNOUNCE_SETTINGS}</th> </tr> <tr> <td class="row1">{L_ANNOUNCE_NBR_DISPLAY}</td> <td class="row2"><input type="text" maxlength="10" size="5" name="announce_nbr_display" value="{ANNOUNCE_NBR_DISPLAY}" /></td> </tr> <tr> <td class="row1">{L_ANNOUNCE_NBR_DAYS}</td> <td class="row2"><input type="text" maxlength="10" size="5" name="announce_nbr_days" value="{ANNOUNCE_NBR_DAYS}" /></td> </tr> <tr> <td class="row1">{L_ANNOUNCE_DISPLAY}</td> <td class="row1"> <input type="checkbox" name="announce_display" VALUE="1" {ANNOUNCE_DISPLAY}/> Announcement <input type="checkbox" name="announce_display_sticky" VALUE="1" {ANNOUNCE_DISPLAY_STICKY}/> Sticky <input type="checkbox" name="announce_display_normal" VALUE="1" {ANNOUNCE_DISPLAY_NORMAL}/> Normal </td> </tr> <tr> <td class="row1">{L_ANNOUNCE_IMG}</td> <td class="row2"><input type="text" maxlength="255" size="50" name="announce_img" value="{ANNOUNCE_IMG}" /></td> </tr> <tr> <td class="row1">{L_ANNOUNCE_IMG_STICKY}</td> <td class="row2"><input type="text" maxlength="255" size="50" name="announce_img_sticky" value="{ANNOUNCE_IMG_STICKY}" /></td> </tr> <tr> <td class="row1">{L_ANNOUNCE_IMG_NORMAL}</td> <td class="row2"><input type="text" maxlength="255" size="50" name="announce_img_normal" value="{ANNOUNCE_IMG_NORMAL}" /></td> </tr> <tr> <td class="catBottom" colspan="3" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" /> <input type="reset" value="{L_RESET}" class="liteoption" /> </tr> </table></form> <br clear="all" /> --- NEW FILE: mx_block_admin_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form method="post" action="{S_ACTION}"><table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="6">{L_MENU_TITLE}</th> </tr> <!-- BEGIN blockrow --> <tr> <td class="row2"><span class="gen">{blockrow.BLOCK_TITLE}</span><br /><span class="gensmall">{blockrow.BLOCK_DESC}</span></td> <td class="row1" align="center" valign="middle"><span class="gen"><a href="{blockrow.U_BLOCK_EDIT}">{L_EDIT}</a></span></td> <td class="row1" align="center" valign="middle"><span class="gen"><a href="{blockrow.U_BLOCK_SETTING}">{blockrow.L_SETTING}</a></span></td> <td class="row2" align="center" valign="middle"><span class="gen"><a href="{blockrow.U_BLOCK_DELETE}">{L_DELETE}</a></span></td> </tr> <!-- END blockrow --> <tr> <td colspan="7" class="row2"><input type="text" name="block_name" /> <input type="submit" class="liteoption" name="{S_ADD_BLOCK_SUBMIT}" value="{L_CREATE_BLOCK}" /></td> </tr> </table></form> --- NEW FILE: mx_module_edit_body.tpl --- <h1>{L_TITLE}</h1> <p>{L_EXPLAIN}</p> <form action="{S_ACTION}" method="post"> <table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr> <th class="thHead" colspan="2">{L_TITLE}</th> </tr> <tr> <td class="row1">{L_MODULE_NAME}</td> <td class="row2"><input type="text" size="45" name="module_name" value="{MODULE_NAME}" class="post" /></td> </tr> <tr> <td class="row1">{L_MODULE_DESC}</td> <td class="row2"><input type="text" size="45" name="module_desc" value="{MODULE_DESC}" class="post" /></td> </tr> <tr> <td class="row1">{L_MODULE_PATH}</td> <td class="row2"><input type="text" size="45" name="module_path" value="{MODULE_PATH}" class="post" /></td> </tr> <tr> <td class="row1">{L_MODULE_INCLUDE_ADMIN}</td> <td class="row2"><input type="checkbox" size="45" name="module_include_admin" value="1" {CHECK_OPT}/></td> </tr> <tr> <td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{S_SUBMIT_VALUE}" class="mainoption" /></td> </tr> </table> </form> <br clear="all" /> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: page_header.tpl --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> {META} <meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}" /> <!-- link rel="stylesheet" href="{U_PHPBB_ROOT_PATH}{TEMPLATE_ROOT_PATH}{T_HEAD_STYLESHEET}" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: {T_BODY_BGCOLOR}; scrollbar-face-color: {T_TR_COLOR2}; scrollbar-highlight-color: {T_TD_COLOR2}; scrollbar-shadow-color: {T_TR_COLOR2}; scrollbar-3dlight-color: {T_TR_COLOR3}; scrollbar-arrow-color: {T_BODY_LINK}; scrollbar-track-color: {T_TR_COLOR1}; scrollbar-darkshadow-color: {T_TH_COLOR1}; } /* General font families for common tags */ font,th,td,p { font-family: {T_FONTFACE1} } p, td { font-size : {T_FONTSIZE2}; color : {T_BODY_TEXT}; } a:link,a:active,a:visited { color : {T_BODY_LINK}; } a:hover { text-decoration: underline; color : {T_BODY_HLINK}; } hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;} h1,h2 { font-family: "Trebuchet MS", Verdana, Arial, Helvetica, s... [truncated message content] |
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/templates/subSilver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_textblocks/templates/subSilver Added Files: mx_textblock_bbcode.tpl mx_textblock_edit.tpl mx_textblock_html.tpl mx_textblock_multi.tpl mx_textblock_preview.tpl Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_textblock_html.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <form action="{S_ACTION}" method="post" > <!-- BEGIN switch_not_admin --> <th class="thHead" align="left" colspan="2"> {L_TITLE} </th> <!-- END switch_not_admin --> <!-- BEGIN switch_admin --> <th class="thCornerL" align="left" > {L_TITLE} </th> <th class="thCornerR" align="right" > {EDIT_IMG} </th> <!-- END switch_admin --> {S_HIDDEN_FORM_FIELDS} </form> </tr> <tr> <td class="row1" align="left" colspan="2"><span class="genmed">{U_TEXT}</span></td> </tr> </table> <br clear="all" /> --- NEW FILE: mx_textblock_edit.tpl --- <script language="JavaScript" type="text/javascript"> <!-- // bbCode control by // subBlue design // www.subBlue.com // Startup variables var imageTag = false; var theSelection = false; // Check for Browser & Platform for PC & IE specific bits // More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html var clientPC = navigator.userAgent.toLowerCase(); // Get client info var clientVer = parseInt(navigator.appVersion); // Get browser version var is_ie = ((clientPC.indexOf("msie") != -1) && (clientPC.indexOf("opera") == -1)); var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1)); var is_win = ((clientPC.indexOf("win")!=-1) || (clientPC.indexOf("16bit") != -1)); var is_mac = (clientPC.indexOf("mac")!=-1); // Helpline texts b_help = "{L_BBCODE_B_HELP}"; i_help = "{L_BBCODE_I_HELP}"; u_help = "{L_BBCODE_U_HELP}"; q_help = "{L_BBCODE_Q_HELP}"; c_help = "{L_BBCODE_C_HELP}"; l_help = "{L_BBCODE_L_HELP}"; o_help = "{L_BBCODE_O_HELP}"; p_help = "{L_BBCODE_P_HELP}"; w_help = "{L_BBCODE_W_HELP}"; a_help = "{L_BBCODE_A_HELP}"; s_help = "{L_BBCODE_S_HELP}"; f_help = "{L_BBCODE_F_HELP}"; // Define the bbCode tags bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]'); imageTag = false; // Shows the help texts in the helpline window function helpline(help) { document.post.helpbox.value = eval(help + "_help"); } // Replacement for arrayname.length property function getarraysize(thearray) { for (i = 0; i < thearray.length; i++) { if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) return i; } return thearray.length; } // Replacement for arrayname.push(value) not implemented in IE until version 5.5 // Appends element to the array function arraypush(thearray,value) { thearray[ getarraysize(thearray) ] = value; } // Replacement for arrayname.pop() not implemented in IE until version 5.5 // Removes and returns the last element of an array function arraypop(thearray) { thearraysize = getarraysize(thearray); retval = thearray[thearraysize - 1]; delete thearray[thearraysize - 1]; return retval; } function checkForm() { formErrors = false; if (document.post.Text.value.length < 2) { formErrors = "{L_EMPTY_BLOCK_INFO}"; } if (document.post.block_title.value.length < 2) { formErrors = "{L_EMPTY_BLOCK_TITLE}"; } if (formErrors) { alert(formErrors); return false; } else { bbstyle(-1); //formObj.preview.disabled = true; //formObj.submit.disabled = true; return true; } } function emoticon(text) { text = ' ' + text + ' '; if (document.post.Text.createTextRange && document.post.Text.caretPos) { var caretPos = document.post.Text.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; document.post.Text.focus(); } else { document.post.Text.value += text; document.post.Text.focus(); } } function bbfontstyle(bbopen, bbclose) { if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { document.post.Text.value += bbopen + bbclose; document.post.Text.focus(); return; } document.selection.createRange().text = bbopen + theSelection + bbclose; document.post.Text.focus(); return; } else { document.post.Text.value += bbopen + bbclose; document.post.Text.focus(); return; } storeCaret(document.post.Text); } function bbstyle(bbnumber) { donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { // Close all open tags & default button names while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; document.post.Text.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); } imageTag = false; // All tags are closed including image tags :D document.post.Text.focus(); return; } if ((clientVer >= 4) && is_ie && is_win) theSelection = document.selection.createRange().text; // Get text selection if (theSelection) { // Add tags around selection document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; document.post.Text.focus(); theSelection = ''; return; } // Find last occurance of an open tag the same as the one just clicked for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { // Close all open tags up to the one just clicked & default button names while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; document.post.Text.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value ="' + buttext.substr(0,(buttext.length - 1)) + '"'); imageTag = false; } document.post.Text.focus(); return; } else { // Open tags if (imageTag && (bbnumber != 14)) { // Close image tag before adding another document.post.Text.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; // Remove the close image tag from the list document.post.addbbcode14.value = "Img"; // Return button back to normal state imageTag = false; } // Open tag document.post.Text.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; // Check to stop additional tags after an unclosed image tag arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += "*"'); document.post.Text.focus(); return; } storeCaret(document.post.Text); } // Insert at Claret position. Code from // http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); } //--> </script> <form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)"> {POST_PREVIEW_BOX} {ERROR_BOX} <table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline"> <tr> <th class="thHead" colspan="2" height="25"><b>{L_POST_A}</b></th> </tr> <tr> <td class="row1" width="22%"><span class="gen"><b>{L_BLOCK_TITLE}</b></span></td> <td class="row2" width="78%"> <span class="gen"> <input type="text" name="block_title" size="45" maxlength="60" style="width:450px" tabindex="2" class="post" value="{BLOCK_TITLE}" /> </span> </td> </tr> <tr> <td class="row1" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <tr> <td><span class="gen"><b>{L_BLOCK_INFO}</b></span> </td> </tr> <tr> <td valign="middle" align="center"> <br /> <table width="100" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}" class="gensmall"><b>{L_EMOTICONS}</b></td> </tr> <!-- BEGIN smilies_row --> <tr align="center" valign="middle"> <!-- BEGIN smilies_col --> <td><a href="javascript:emoticon('{smilies_row.smilies_col.SMILEY_CODE}')"><img src="{smilies_row.smilies_col.SMILEY_IMG}" border="0" alt="{smilies_row.smilies_col.SMILEY_DESC}" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td> <!-- END smilies_col --> </tr> <!-- END smilies_row --> <!-- BEGIN switch_smilies_extra --> <tr align="center"> <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=300,resizable=yes,scrollbars=yes,WIDTH=250');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td> </tr> <!-- END switch_smilies_extra --> </table> </td> </tr> </table> </td> <td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> <table width="450" border="0" cellspacing="0" cellpadding="2"> <!-- BEGIN switch_bbcodes --> <tr align="center" valign="middle"> <td><span class="genmed"> <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onClick="bbstyle(14)" onMouseOver="helpline('p')" /> </span></td> <td><span class="genmed"> <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> </span></td> </tr> <tr> <td colspan="9"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><span class="genmed"> {L_FONT_COLOR}: <select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]')" onMouseOver="helpline('s')"> <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option> <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option> <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option> <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option> <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option> <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option> <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option> <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option> <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option> <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option> <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option> <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option> <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option> <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option> <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option> </select> {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')"> <option value="7" class="genmed">{L_FONT_TINY}</option> <option value="9" class="genmed">{L_FONT_SMALL}</option> <option value="12" selected class="genmed">{L_FONT_NORMAL}</option> <option value="18" class="genmed">{L_FONT_LARGE}</option> <option value="24" class="genmed">{L_FONT_HUGE}</option> </select> </span></td> <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td> </tr> </table> </td> </tr> <tr> <td colspan="9"> <span class="gensmall"> <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" /> </span></td> </tr> <!-- END switch_bbcodes --> <tr> <td colspan="9"><span class="gen"> <textarea name="{BLOCK_TEXT_NAME}" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{BLOCK_INFO}</textarea> </span></td> </tr> </table> </span></td> </tr> <tr> <td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td> <td class="row2"><span class="gen"> </span> <table cellspacing="0" cellpadding="1" border="0"> <!-- BEGIN switch_block_style --> <tr> <td class="row2" width="50%"><span class="genmed">{L_BLOCK_STYLE}</span><br /><span class="gensmall">{L_BLOCK_STYLE_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="block_style" value="TRUE" {S_BLOCK_STYLE_YES} /> <span class="gensmall">{L_YES}</span> <input type="radio" name="block_style" value="FALSE" {S_BLOCK_STYLE_NO} /> <span class="gensmall">{L_NO}</span></td> </tr> <!-- END switch_block_style --> <!-- BEGIN switch_text_style --> <tr> <td class="row2" width="50%"><span class="genmed">{L_TEXT_STYLE}</span><br /><span class="gensmall">{L_TEXT_STYLE_EXPLAIN}</span></td> <td class="row2" width="50%">{S_TEXT_STYLE} </td> </tr> <!-- END switch_text_style --> <!-- BEGIN switch_title_style --> <tr> <td class="row2" width="50%"><span class="genmed">{L_TITLE_STYLE}</span><br /><span class="gensmall">{L_TITLE_STYLE_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="title_style" value="TRUE" {S_TITLE_STYLE_YES} /> <span class="gensmall">{L_YES}</span> <input type="radio" name="title_style" value="FALSE" {S_TITLE_STYLE_NO} /> <span class="gensmall">{L_NO}</span></td> </tr> <!-- END switch_title_style --> <!-- BEGIN switch_show_title --> <tr> <td class="row2" width="50%"><span class="genmed">{L_SHOW_TITLE}</span><br /><span class="gensmall">{L_SHOW_TITLE_EXPLAIN}</span></td> <td class="row2" width="50%"><input type="radio" name="show_title" value="TRUE" {S_SHOW_TITLE_YES} /> <span class="gensmall">{L_YES}</span> <input type="radio" name="show_title" value="FALSE" {S_SHOW_TITLE_NO} /> <span class="gensmall">{L_NO}</span></td> </tr> <!-- END switch_show_title --> </table> </td> </tr> <!-- BEGIN switch_block_admin --> <tr> <td class="row1">{L_COLUMN}</td> <td class="row2"><select name="columnid">{S_COLUMN_LIST}</select></td> </tr> <!-- END switch_block_admin --> {POLLBOX} <tr> <td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td> </tr> </table> <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2"> <tr> <td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td> </tr> </table> </form> <table width="100%" cellspacing="2" border="0" align="center"> <tr> <td valign="top" align="right">{JUMPBOX}</td> </tr> </table> --- NEW FILE: mx_textblock_multi.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="{BLOCK_STYLE}"> <tr> <form action="{S_ACTION}" method="post" > <!-- BEGIN switch_not_admin_style --> <th class="thHead" align="left" colspan="2"> {L_TITLE} </th> <!-- END switch_not_admin_style --> <!-- BEGIN switch_not_admin_nostyle --> <td class="row1" align="left" colspan="2"><b>{L_TITLE}</b> </td> <!-- END switch_not_admin_nostyle --> <!-- BEGIN switch_admin_style --> <th class="thCornerL" align="left" > {L_TITLE} </th> <th class="thCornerR" align="right" > {EDIT_IMG} </th> <!-- END switch_admin_style --> <!-- BEGIN switch_admin_nostyle --> <td class="row1" align="left" ><b>{L_TITLE}</b> </td> <td class="row1" align="right" > {EDIT_IMG} </td> <!-- END switch_admin_nostyle --> {S_HIDDEN_FORM_FIELDS} </form> </tr> <!-- BEGIN switch_toc --> <tr> <td class="row1" align="left" colspan="2"><br /><span class="topictitle">{L_TOC}</span><br /><hr> <span class="nav"> <!-- BEGIN pages --> {switch_toc.pages.TOC_ITEM} <!-- END pages --> </span></td> </tr> <!-- END switch_toc --> <tr> <td class="row1" align="left" colspan="2"><span class="{TEXT_STYLE}">{U_TEXT}</span></td> </tr> <!-- BEGIN switch_pages --> <tr> <td class="row1" align="center" colspan="2"><span class="nav"><hr>{L_GOTO_PAGE} <!-- BEGIN pages --> {switch_pages.pages.PAGE_LINK} <!-- END pages --> </span></td> </tr> <!-- END switch_pages --> </table> <br clear="all" /> --- NEW FILE: mx_textblock_preview.tpl --- <table width="100%" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <th class="thCornerL" align="left" > {BLOCK_TITLE} </th> <th class="thCornerR" align="right" > </th> </tr> <tr> <td class="row1" align="left" colspan="2"><span class="genmed">{BLOCK_INFO}</span></td> </tr> </table> <br clear="all" /> --- NEW FILE: mx_textblock_bbcode.tpl --- <table width="{BLOCK_SIZE}" cellpadding="4" cellspacing="0" border="0" class="forumline"> <tr> <form action="{S_ACTION}" method="post" > <!-- BEGIN switch_not_admin --> <th class="thHead" align="left" colspan="2"> {L_TITLE} </th> <!-- END switch_not_admin --> <!-- BEGIN switch_admin --> <th class="thCornerL" align="left" > {L_TITLE} </th> <th class="thCornerR" align="right" > {EDIT_IMG} </th> <!-- END switch_admin --> {S_HIDDEN_FORM_FIELDS} </form> </tr> <tr> <td class="row1" align="left" colspan="2"><span class="genmed">{U_TEXT}</span></td> </tr> </table> <br clear="all" /> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:22
|
Update of /cvsroot/mxbb/core27x/modules/mx_statistics In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_statistics Added Files: index.htm mx_install_readme.htm mx_statistics.php statistics.pak version_history.txt Log Message: Initital core 2.7.x commit :-) --- NEW FILE: statistics.pak --- module=+:70=+:statistics=+:modules/mx_statistics/=+:Statistics Modules=+:0 function=+:70=+:190=+:statistics=+:Statistics Module=+:mx_statistics.php=+: block=+:41=+:Statistics=+:=+:190=+:0=+:0=+:0 --- NEW FILE: mx_install_readme.htm --- <html> <head> <title>Mx Portal installation - readme</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* The original subSilver Theme for phpBB version 2+ Created by subBlue design http://www.subBlue.com NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2 theme administration centre. When you have finalised your style you could cut the final CSS code and place it in an external file, deleting this section to save bandwidth. */ /* General page style. The scroll bar colours only visible in IE5.5+ */ body { background-color: #E5E5E5; scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #EFEFEF; scrollbar-darkshadow-color: #98AAB1; } /* General font families for common tags */ font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link,a:active,a:visited { color : #006699; } a:hover { text-decoration: underline; color : #DD6900; } hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ td.row1 { background-color: #EFEFEF; } td.row2 { background-color: #DEE3E7; } td.row3 { background-color: #D1D7DC; } /* This is for the table cell above the Topics, Post & Last posts on the index.php page By default this is the fading out gradiated silver background. However, you could replace this with a bitmap specific for each forum */ td.rowpic { background-color: #FFFFFF; background-image: url(../../install/templates/subSilver/images/cellpic2.jpg); background-repeat: repeat-y; } /* Header cells - the blue and silver gradient backgrounds */ th { color: #FFA34F; font-size: 11px; font-weight : bold; background-color: #006699; height: 25px; background-image: url(../../install/templates/subSilver/images/cellpic3.gif); } td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url(../../install/templates/subSilver/images/cellpic1.gif); background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px; } /* Setting additional nice inner borders for the main table cells. The names indicate which sides the border will be on. Don't worry if you don't understand this, just ignore it :-) */ td.cat,td.catHead,td.catBottom { height: 29px; border-width: 0px 0px 0px 0px; } th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR { font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right,td.spaceRow { background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; } th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; } th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; } th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ .maintitle { font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color : #000000; } /* General text */ .gen { font-size : 12px; } .genmed { font-size : 11px; } .gensmall { font-size : 10px; } .gen,.genmed,.gensmall { color : #000000; } a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; } a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ .mainmenu { font-size : 11px; color : #000000 } a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ .forumlink { font-weight: bold; font-size: 12px; color : #006699; } a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ .nav { font-weight: bold; font-size: 11px; color : #000000;} a.nav { text-decoration: none; color : #006699; } a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ .topictitle,h1,h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} /* Quote & Code blocks */ .code { font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; background-color: #FAFAFA; border: #D1D7DC; border-style: solid; border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input,textarea, select { color : #000000; font: normal 11px Verdana, Arial, Helvetica, sans-serif; border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { background-color : #FFFFFF; } input { text-indent : 2px; } /* The buttons used for bbCode styling in message post */ input.button { background-color : #EFEFEF; color : #000000; font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { background-color : #FAFAFA; font-weight : bold; } /* None-bold submit button */ input.liteoption { background-color : #FAFAFA; font-weight : normal; } /* This is the line in the posting page which shows the rollover help line. This is actually a text box, but if set to be the same colour as the background no one will know ;) */ .helpline { background-color: #DEE3E7; border-style: none; } /* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */ @import url("templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- if ( 0 ) { window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table> <tr> <td colspan="2"><span class="postbody"><a name="top"> <p><br /> <span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Core Module</span></span> <br /> - for Mx Portal v. 2.7 (or later) <br /> <br /> <span style="font-weight: bold">Description</span> <br /> This module is an addon module for the Mx Portal. More detailed release info is published (and updated) at <a href="http://www.mx-system.com">www.mx-system.com</a>.<br /> <br /> I. <a href="#install">Installation instructions</a> <br /> <br /> II. <a href="#themes">Additional styles</a> <br /> <br /> III. <a href="#languages">Additional languages</a> <br /> <br /> <a href="http://www.mx-system.com" target="_blank" class="postlink">DEMO </a> <br /> <br /> <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> DOWNLOAD </a> <br /> <br /><a name="install"> <br /> <span style="font-weight: bold">I. Installation Instructions</span> <br /> To install this module, follow these instructions. If you encounter any problems during install, visit the <a href="http://www.mx-system.com/forum/viewforum.php?f=20" target="_blank" class="postlink"> module support forum</a>. <br /> </p> <p>0) Consult the version_history.txt to learn about module version changes/updates. To install this module, follow these instructions. If you encounter any problems during install, visit the [url=http://www.mx-system.com/forum/viewforum.php?f=20] module support forum[/url].</p> <p>1) Override your old files, i.e. unzip the distributed files into your portal modules directory, /modules, and upload.</p> <p>2) Remove old module installation from MX.<br> In the AdminCP, browse to 'Module Management' and 'delete' any old module version. </p> <p><em>Note</em>: This will only remove the module from the MX system kernel. Module data itself (like actual downloads, weblinks, photos etc) will not be touch or deleted.</p> <p>3) Import new module to MX<br> In the AdminCP, browse to 'Module Management' and 'import' Module Pack for this module. Some warnings may be reported but this is generally nothing to worry about...but a symptom when upgrading.</p> <p>4) Now the module is installed, but to use it you need to add the module Block to a Portal Page. In the AdminCP, browse to 'Page Administration' and 'Add Block' to any portal page. Done!</p> <p><br /> <br /><a href="#top"> Back to Top<a> <br /> <br /><a name="themes"> <br /> <span style="font-weight: bold">II. Additional Styles</span> <br /> This module is compatible with any theme/style. All template files are located within modules/mx_modulename/templates. Note: You dont have to specify 'SubSilver' or any theme name, since all theme settings follow from the general portal/phpbb page header. <br /> <br /><a href="#top"> Back to Top<a> <br /> <br /> <a name="languages"> <br /> <span style="font-weight: bold">III. Additional Languages</span> <br /> First check to see if your language is already translated. <br /> <br /> Translated languages are downloaded <a href="http://www.mx-system.com/index.php?page=4&action=category&cat_id=5" target="_blank" class="postlink"> here</a>. <br /> <br /> If exists, download and install in the modules/mx_modulename/language folder. If not, duplicate (copy and paste) any included language file, rename to match your language, translate using any texteditor, save and upload. <br /> <br /><a href="#top"> Back to Top<a> <br /> <br /> /Mx Team</span><span class="gensmall"></span></p> </td> </tr> </table> </body> </html> --- NEW FILE: version_history.txt --- ################################################################# ## ## Mx Portal 2.7 - Statistics Module v. 1.04 ## v. 1.04 - Redeclare auth() fix - Some files updated. No db updates. Reinstalling (importing) is not needed! v. 1.03 - Bugfixes: BM13 - New/Updated file(s): mx_statistics.php mx_install_readme.htm - Delete old file(s): mx_install - readme.htm v. 1.02 - Various bugfixes - Changed files: *.pak file and mx_statistics.php v. 1.01 - New *.pak file, for automatic Block generation during install v. 1.0 - Numerous bugfixes ## ## /Mx Team ## ################################################################# --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: mx_statistics.php --- <?php /*************************************************************************** * statistics.php * ------------------- * begin : Tue February 26 2002 * copyright : (C) 2002 Nivisec.com * email : ad...@ni... * * $Id: mx_statistics.php,v 1.1 2005/05/06 06:48:07 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. * ***************************************************************************/ if ( !defined('IN_PORTAL') ) { define('IN_PORTAL', true); $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); // // End session management // $block = FALSE; } else { // // Read block Configuration // $block_config = read_block_config( $block_id ); $title = $block_config[$block_id]['block_title']; $block = TRUE; } // //Start user modifiable variables // $return_limit = 10; // //End user modifiable variables // $template->assign_block_vars("switch_view", array()); // // End session management // //Vote Images based on the theme path, (i.e. templates/CURRNT_THEME/ is already inserted) $vote_left = PHPBB_URL . TEMPLATE_ROOT_PATH . "/images/vote_lcap.gif"; $vote_right = PHPBB_URL . TEMPLATE_ROOT_PATH . "/images/vote_rcap.gif"; $vote_bar = PHPBB_URL . TEMPLATE_ROOT_PATH . "/images/voting_bar.gif"; if ( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx) ) { include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); } else { include($phpbb_root_path . 'language/lang_english/lang_admin.' . $phpEx); include($module_root_path . 'language/lang_english/lang_main.' . $phpEx); } // Do the math :) (i think this is the same method as in philip mayer's statistic's file) // Taken from Acyd Burn. function do_math($firstval, $value, $total, &$percentage, &$bar_percent) { $cst = ($firstval > 0) ? 90 / $firstval : 90; if ( $value != 0 ) { $percentage = ( $total ) ? round( min(100, ($value / $total) * 100)) : 0; } else { $percentage = 0; } $bar_percent = round($value * $cst); } $template->set_filenames(array( "body" => "mx_statistics.tpl") ); $template->assign_vars(array( "GRAPH_IMAGE" => $graph_image, "L_ADMIN_STATISTICS" => $lang['Admin_Stats'], "L_TOP_SMILIES" => $lang['Top_Smilies'], "L_MOST_ACTIVE" => $lang['Most_Active_Topics'], "L_MOST_VIEWED" => $lang['Most_Viewed_Topics'], "L_TOP_POSTERS" => $lang['Top_Posting_Users'], "L_USES" => $lang['Uses'], "L_RANK" => $lang['Rank'], "L_PERCENTAGE" => $lang['Percent'], "L_GRAPH" => $lang['Graph'], "L_REPLIES" => $lang['Replies'], "L_TOPIC" => $lang['Topic'], "L_VIEWS" => $lang['Views'], "L_USERNAME" => $lang['Username'], "L_POSTS" => $lang['Posts'], "L_STATISTIC" => $lang['Statistic'], "L_VALUE" => $lang['Value'], "L_IMAGE" => $lang['smiley_url'], "L_CODE" => $lang['smiley_code'], "PAGE_NAME" => $lang['Statistics']) ); // // Authorization SQL // $auth_data_sql_stats = get_auth_forum(); // // Getting voting bar info from template // if( !$board_config['override_user_style'] ) { if( $userdata['user_id'] != ANONYMOUS && isset($userdata['user_style']) ) { $style = $userdata['user_style']; if( !$theme ) $style = $board_config['default_style']; } else $style = $board_config['default_style']; } else $style = $board_config['default_style']; $sql = "SELECT * FROM " . THEMES_TABLE . " WHERE themes_id = $style"; if(!$result = $db->sql_query($sql)) { message_die(CRITICAL_ERROR, "Couldn't query database for theme info."); } if( !$row = $db->sql_fetchrow($result) ) { message_die(CRITICAL_ERROR, "Couldn't get theme data for themes_id=$style."); } $template->assign_vars(array( "LEFT_GRAPH_IMAGE" => $vote_left, "RIGHT_GRAPH_IMAGE" => $vote_right, "GRAPH_IMAGE" => $vote_bar) ); // // Top posters SQL // $sql = "SELECT user_id, username, user_posts FROM " . USERS_TABLE . " WHERE user_id <> " . ANONYMOUS . " AND user_posts > 0 ORDER BY user_posts DESC LIMIT " . $return_limit; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't retrieve users data", "", __LINE__, __FILE__, $sql); } $user_count = $db->sql_numrows($result); $user_data = $db->sql_fetchrowset($result); $percentage = 0; $bar_percent = 0; $firstcount = $user_data[0]['user_posts']; for ($i = 0; $i < $user_count; $i++) { do_math($firstcount, $user_data[$i]['user_posts'], get_db_stat('postcount'), $percentage, $bar_percent); $template->assign_block_vars("users", array( "RANK" => $i+1, "CLASS" => ( !($i+1 % 2) ) ? $theme['td_class2'] : $theme['td_class1'], "USERNAME" => $user_data[$i]['username'], "PERCENTAGE" => $percentage, "BAR" => $bar_percent, "URL" => append_sid( PHPBB_URL . "profile.php?mode=viewprofile&u=" . $user_data[$i]['user_id'] ), "POSTS" => $user_data[$i]['user_posts']) ); } // // Most active topics SQL // $sql = "SELECT topic_id, topic_title, topic_replies FROM " . TOPICS_TABLE ." WHERE forum_id IN ( $auth_data_sql_stats ) AND topic_status <> 2 AND topic_replies > 0 ORDER BY topic_replies DESC LIMIT " . $return_limit; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't retrieve topic data", "", __LINE__, __FILE__, $sql); } $topic_data = $db->sql_fetchrowset($result); for ($i = 0; $i < count($topic_data); $i++) { $template->assign_block_vars("topicreplies", array( "RANK" => $i+1, "CLASS" => ( !($i+1 % 2) ) ? $theme['td_class2'] : $theme['td_class1'], "TITLE" => $topic_data[$i]['topic_title'], "REPLIES" => $topic_data[$i]['topic_replies'], "URL" => append_sid( PHPBB_URL . "viewtopic.php?t=" . $topic_data[$i]['topic_id'])) ); } // // Most viewed topics SQL // $rank = 0; $sql = "SELECT topic_id, topic_title, topic_views FROM " . TOPICS_TABLE ." WHERE forum_id IN ( $auth_data_sql_stats ) AND topic_status <> 2 AND topic_views > 0 ORDER BY topic_views DESC LIMIT " . $return_limit; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't retrieve topic data", "", __LINE__, __FILE__, $sql); } $topic_data = $db->sql_fetchrowset($result); for ($i = 0; $i < count($topic_data); $i++) { $template->assign_block_vars("topicviews", array( "RANK" => $i+1, "CLASS" => ( !($i+1 % 2) ) ? $theme['td_class2'] : $theme['td_class1'], "TITLE" => $topic_data[$i]['topic_title'], "VIEWS" => $topic_data[$i]['topic_views'], "URL" => append_sid( PHPBB_URL . "viewtopic.php?t=" . $topic_data[$i]['topic_id'])) ); } // // Get forum statistics (taken from admin panel) // $total_posts = get_db_stat('postcount'); $total_users = get_db_stat('usercount'); $total_topics = get_db_stat('topiccount'); $start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; $posts_per_day = sprintf("%.2f", $total_posts / $boarddays); $topics_per_day = sprintf("%.2f", $total_topics / $boarddays); $users_per_day = sprintf("%.2f", $total_users / $boarddays); $avatar_dir_size = 0; if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path'])) { while( $file = @readdir($avatar_dir) ) { if( $file != "." && $file != ".." ) { $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file); } } @closedir($avatar_dir); // // This bit of code translates the avatar directory size into human readable format // Borrowed the code from the PHP.net annoted manual, origanally written by: // Jesse (je...@je...) // if($avatar_dir_size >= 1048576) { $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB"; } else if($avatar_dir_size >= 1024) { $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB"; } else { $avatar_dir_size = $avatar_dir_size . " Bytes"; } } else { // Couldn't open Avatar dir. $avatar_dir_size = $lang['Not_available']; } if($posts_per_day > $total_posts) { $posts_per_day = $total_posts; } if($topics_per_day > $total_topics) { $topics_per_day = $total_topics; } if($users_per_day > $total_users) { $users_per_day = $total_users; } // // DB size ... MySQL only // // This code is heavily influenced by a similar routine // in phpMyAdmin 2.2.0 // if( preg_match("/^mysql/", SQL_LAYER) ) { $sql = "SELECT VERSION() AS mysql_version"; if($result = $db->sql_query($sql)) { $row = $db->sql_fetchrow($result); $version = $row['mysql_version']; if( preg_match("/^(3\.23|4\.)/", $version) ) { $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname; $sql = "SHOW TABLE STATUS"; // FROM " . $db_name; if($result = $db->sql_query($sql)) { $tabledata_ary = $db->sql_fetchrowset($result); $dbsize = 0; for($i = 0; $i < count($tabledata_ary); $i++) { if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" ) { if( $table_prefix != "" ) { if( strstr($tabledata_ary[$i]['Name'], $table_prefix) ) { $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; } } else { $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length']; } } } if( $dbsize >= 1048576 ) { $dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 )); } else if( $dbsize >= 1024 ) { $dbsize = sprintf("%.2f KB", ( $dbsize / 1024 )); } else { $dbsize = sprintf("%.2f Bytes", $dbsize); } } // Else we couldn't get the table status. } else { $dbsize = $lang['Not_available']; } } else { $dbsize = $lang['Not_available']; } } else { $dbsize = $lang['Not_available']; } // //Newest user data // $newest_userdata = get_db_stat('newestuser'); $newest_user = $newest_userdata['username']; $newest_uid = $newest_userdata['user_id']; $sql = "SELECT user_regdate FROM " . USERS_TABLE . " WHERE user_id = " . $newest_userdata['user_id'] . " LIMIT 1"; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't retrieve users data", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $newest_user_date = $row['user_regdate']; // //Most Online data // $sql = "SELECT * FROM " . CONFIG_TABLE . " WHERE config_name = 'record_online_users' OR config_name = 'record_online_date'"; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Couldn't retrieve configuration data", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $most_users_date = ($row['config_value'] > 0) ? create_date($board_config['default_dateformat'], $row['config_value'], $board_config['board_timezone']) : $most_users_date = $lang['Not_available']; $row = $db->sql_fetchrow($result); $most_users = ($row['config_value'] > 0) ? $row['config_value'] : $lang['Not_available']; $statistic_array = array($lang['Number_posts'],$lang['Posts_per_day'],$lang['Number_topics'],$lang['Topics_per_day'],$lang['Number_users'],$lang['Users_per_day'],$lang['Board_started'],$lang['Board_Up_Days'],$lang['Database_size'],$lang['Avatar_dir_size'],$lang['Latest_Reg_User_Date'],$lang['Latest_Reg_User'],$lang['Most_Ever_Online_Date'],$lang['Most_Ever_Online'],$lang['Gzip_compression']); $value_array = array($total_posts, $posts_per_day, $total_topics, $topics_per_day, $total_users, $users_per_day, $start_date, sprintf('%.2f', $boarddays), $dbsize, $avatar_dir_size, create_date($board_config['default_dateformat'], $newest_user_date, $board_config['board_timezone']), sprintf('<a href="' . append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">' . $newest_user . '</a>'), $most_users_date, $most_users, ( $board_config['gzip_compress'] ) ? $lang['Enabled'] : $lang['Disabled']); for ($i = 0; $i < count($statistic_array); $i += 2) { $template->assign_block_vars("adminrow", array( "STATISTIC" => $statistic_array[$i], "VALUE" => $value_array[$i], "STATISTIC2" => (isset($statistic_array[$i+1])) ? $statistic_array[$i + 1] : "", "VALUE2" => (isset($value_array[$i+1])) ? $value_array[$i + 1] : "") ); } // // End forum statistics // // //Output the page // $page_title = $lang['Statistics']; if ( !$block ) { include($mx_root_path . 'includes/page_header.'.$phpEx); } $template->pparse("body"); if ( !$block ) { include($mx_root_path . 'includes/page_tail.'.$phpEx); } ?> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:22
|
Update of /cvsroot/mxbb/core27x/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/templates Added Files: index.htm spacer.gif Log Message: Initital core 2.7.x commit :-) --- NEW FILE: spacer.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:22
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_textblocks/language/lang_english Added Files: lang_main.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * lang_kb.php * ------------------- * begin : Sunday, Mar 31, 2003 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: lang_main.php,v 1.1 2005/05/06 06:48:10 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. * ***************************************************************************/ // Entries for Flexible Blocks $lang['Block_Style'] = "Block Border:"; $lang['Title_Style'] = "Title Header Style:"; $lang['Show_Title'] = "Show Title:"; $lang['Text_Style'] = "Text Style:"; $lang['Block_Style_Explain'] = "Show border around textblock:"; $lang['Title_Style_Explain'] = "Use css style for title row:"; $lang['Show_Title_Explain'] = ""; $lang['Text_Style_Explain'] = "Select default font size:"; $lang['block_ids'] = "Portal Blocks (>2):<br />- Select which blocks to show "; $lang['block_sizes'] = "Specify Block widths: <br /> - be sure to match the number of blocks to show<br />For example: '30%, *' for two blocks. "; $lang['space_between'] = "Space between blocks:"; $lang['yes'] = "Yes"; $lang['no'] = "No"; $lang['Toc_title'] = "Contents:"; $lang['Goto_page'] = "Goto page:"; ?> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:22
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_textblocks Added Files: TextBlocks.pak mx_textblock_bbcode.php mx_textblock_html.php mx_textblock_multi.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: mx_textblock_html.php --- <?php /*************************************************************************** * mx_block_html.php * ------------------- * begin : Octobre, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_textblock_html.php,v 1.1 2005/05/06 06:48:08 jonohlsson Exp $ * ***************************************************************************/ $block_config = read_block_config( $block_id ); $title = $block_config[$block_id]['block_title']; $message = $block_config[$block_id][Html]['parameter_value']; // // Start output of page // $template->set_filenames(array( "body_block" => "mx_textblock_html.tpl") ); $is_auth_ary = array(); $is_auth_ary = block_auth(AUTH_EDIT, $block_id , $userdata, $block_config[$block_id][auth_edit], $block_config[$block_id][auth_edit_group] ); //if( $userdata['user_level'] == ADMIN ) //{ if ( $is_auth_ary[auth_edit] ) { $s_hidden_fields = '<input type="hidden" name="id" value="' . $block_id . '" />'; $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edithtml" />'; $edit_url = append_sid( $module_root_path . "admin/mx_textblock_edit.php" ); $edit_img = '<input type="image" src="' . PHPBB_URL . $images['icon_edit'] . '" alt="' . $lang['Block_Edit'] . '" title="' . $lang['Block_Edit'] . '"></input>'; $template->assign_block_vars("switch_admin", array()); } else { $template->assign_block_vars("switch_not_admin", array()); }; $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), 'L_TITLE' => ( !empty( $lang[$title] ) ? $lang[$title] : $title ), 'S_ACTION' => $edit_url, 'U_URL' => append_sid( PORTAL_URL . 'index.'.$phpEx . '?block_id=' . $block_id), 'U_TEXT' => $message, 'EDIT_IMG' => $edit_img, 'BLOCK_ID' => $block_id, 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields) ); $template->pparse("body_block"); ?> --- NEW FILE: TextBlocks.pak --- module=+:20=+:Text Blocks=+:modules/mx_textblocks/=+:Textblocks module=+: function=+:20=+:20=+:TextBlock_BBcode=+:TextBlock_BBcode=+:mx_textblock_bbcode.php=+:modules/mx_textblock/admin/admin_mx_textblock_edit.php parameter=+:20=+:15=+:Text=+:BBText=+:Insert your text here=+: block=+:1=+:Welcome=+:=+:20=+:0=+:5=+:0 function=+:20=+:21=+:TextBlock_Html=+:TextBlock_Html=+:mx_textblock_html.php=+:modules/mx_textblock/admin/admin_mx_textblock_html_edit.php parameter=+:21=+:16=+:Html=+:Html=+:Entre your Html code here=+: function=+:20=+:22=+:TextBlock_Multi=+:Textblock for bbcode and html with parameters=+:mx_textblock_multi.php=+:modules/mx_textblock/admin/admin_mx_textblock_edit.php parameter=+:22=+:50=+:Text=+:BBText=+:Enter your block text here=+: parameter=+:22=+:51=+:Text_Style=+:Values=+:none=+: option=+:11=+:51=+:none=+:No text style option=+:12=+:51=+:gen=+:General text (gen) option=+:13=+:51=+:genmed=+:General text medium sized (genmed) option=+:14=+:51=+:gensmall=+:General text small sized (gensmall) option=+:15=+:51=+:postbody=+:Posting body (postbody) parameter=+:22=+:52=+:Block_Style=+:Boolean=+:TRUE=+: parameter=+:22=+:53=+:Title_Style=+:Boolean=+:TRUE=+: parameter=+:22=+:54=+:Show_Title=+:Boolean=+:TRUE=+: --- NEW FILE: mx_textblock_multi.php --- <?php /*************************************************************************** mx_block_html_floating.php * ------------------- * email : ban...@gm... * * ***************************************************************************/ $block_config = read_block_config( $block_id ); $title = $block_config[$block_id]['block_title']; $message = $block_config[$block_id][Text]['parameter_value']; $block_style = $block_config[$block_id][block_style]['parameter_value']; $text_style = $block_config[$block_id][text_style]['parameter_value']; $title_style = $block_config[$block_id][title_style]['parameter_value']; $show_title = $block_config[$block_id][show_title]['parameter_value']; // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.'.$phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx ); } // Block Pages/toc if ( isset($HTTP_POST_VARS['page_num']) || isset($HTTP_GET_VARS['page_num']) ) { $page_num = ( isset($HTTP_POST_VARS['page_num']) ) ? $HTTP_POST_VARS['page_num'] : $HTTP_GET_VARS['page_num']; $page_num = $page_num - 1; } else { $page_num = 0; } $art_pages = explode('[page]', $message); $message = trim($art_pages[$page_num]); $message = str_replace('[toc]', '', $message); // End Pages/TOC $bbcode_uid = $block_config[$block_id][Text]['bbcode_uid']; $message = mx_decode( $message, $bbcode_uid ) ; // // Start output of page // $template->set_filenames(array( "body_block" => "mx_textblock_multi.tpl") ); $is_auth_ary = array(); $is_auth_ary = block_auth(AUTH_EDIT, $block_id , $userdata, $block_config[$block_id][auth_edit], $block_config[$block_id][auth_edit_group] ); $title_style = (($title_style=='') || ($title_style=='FALSE')) ? 0 : 1; $show_title = (($show_title=='') || ($show_title=='FALSE')) ? 0 : 1; if ( $is_auth_ary[auth_edit] ) { $s_hidden_fields = '<input type="hidden" name="id" value="' . $block_id . '" />'; $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edit" />'; $edit_url = append_sid( $module_root_path . "admin/mx_textblock_edit.php" ); $edit_img = '<input type="image" src="' . PHPBB_URL . $images['icon_edit'] . '" alt="' . $lang['Block_Edit'] . '" title="' . $lang['Block_Edit'] . '"></input>'; if ( $title_style ) { $template->assign_block_vars("switch_admin_style", array()); } else { $template->assign_block_vars("switch_admin_nostyle", array()); } } else { if ( $title_style && $show_title) { $template->assign_block_vars("switch_not_admin_style", array()); } elseif ( !$title_style && $show_title) { $template->assign_block_vars("switch_not_admin_nostyle", array()); } }; $block_style = (($block_style=='') || ($block_style=='FALSE')) ? '' : 'forumline'; $text_style = (($text_style=='') || ($text_style=='none')) ? 'genmed' : $text_style; $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), 'L_TITLE' => ( $show_title=='TRUE' ? '' : ( !empty( $lang[$title] ) ? $lang[$title] : $title ) ), 'S_ACTION' => $edit_url, 'U_TEXT' => $message, 'EDIT_IMG' => $edit_img, 'BLOCK_ID' => $block_id, 'BLOCK_STYLE' => $block_style, 'TEXT_STYLE' => $text_style, 'TITLE_STYLE' => $block_style, 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields, 'L_TOC' => $lang['Toc_title'], 'L_GOTO_PAGE' => $lang['Goto_page'] )); // //article pages table of contents // if ( count($art_pages) > 1 ) { $template->assign_block_vars('switch_toc', array()); $i = 0; while($i < count($art_pages)) { $page_number = $i + 1; $art_split = explode('[toc]', $art_pages[$i]); $article_toc = $art_split[0]; // $article_body = $art_split[1]; // Fix up the toc title if ( !$board_config['allow_html'] ) { $article_toc = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $article_toc); } // // Parse message // // $bbcode_uid = $row['bbcode_uid']; // $article_toc = preg_replace('/\:[0-9a-z\:]+\]/si', ']', $article_toc); $article_toc = preg_replace("/\[(\S+)\]/e", "", $article_toc); // $txt = preg_replace("/<a href=\"(.*)\">(.*)<\/a>/i", "\\2 (\\1)", $txt); $article_toc = make_clickable($article_toc); // // Parse smilies // if ( $board_config['allow_smilies'] ) { $article_toc = mx_smilies_pass($article_toc); } // // Replace naughty words // if ( count($orig_word) ) { $article_toc = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $article_toc . '<'), 1, -1)); } // Replace newlines (we use this rather than nl2br because // till recently it wasn't XHTML compliant) // $article_toc = str_replace("\n", "\n<br />\n", $article_toc); $page_toc = $art_pages[$i]; if( $page_num != $i ) { $temp_url = append_sid("index.php?page=$page_id&mode=article&page_num=$page_number"); $page_link = '<a href="' . $temp_url . '" class="nav">' . $page_number . ' - ' . $article_toc . '</a>'; } else { $page_link = $page_number . ' - ' . $article_toc ; } if( $i < count($art_pages) - 1 ) { $page_link .= '<br />'; } $template->assign_block_vars('switch_toc.pages', array( 'TOC_ITEM' => $page_link) ); $i++; } } // //article pages // if ( count($art_pages) > 1 ) { $template->assign_block_vars('switch_pages', array()); $i = 0; while($i < count($art_pages)) { $page_number = $i + 1; if( $page_num != $i ) { $temp_url = append_sid("index.php?page=$page_id&mode=article&page_num=$page_number"); $page_link = '<a href="' . $temp_url . '" class="nav">' . $page_number . '</a>'; } else { $page_link = $page_number; } if( $i < count($art_pages) - 1 ) { $page_link .= ', '; } $template->assign_block_vars('switch_pages.pages', array( 'PAGE_LINK' => $page_link) ); $i++; } } $template->pparse("body_block"); ?> --- NEW FILE: mx_textblock_bbcode.php --- <?php /*************************************************************************** * mx_block.php * ------------------- * begin : Octobre, 2002 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: mx_textblock_bbcode.php,v 1.1 2005/05/06 06:48:08 jonohlsson Exp $ * ***************************************************************************/ // // Read block Configuration // $block_config = read_block_config($block_id); $title = $block_config[$block_id]['block_title']; $message = $block_config[$block_id][Text]['parameter_value']; $bbcode_uid = $block_config[$block_id][Text]['bbcode_uid']; $message = mx_decode( $message, $bbcode_uid ) ; // // Start output of page // $template->set_filenames(array( "body_block" => "mx_textblock_bbcode.tpl") ); $is_auth_ary = array(); $is_auth_ary = block_auth(AUTH_EDIT, $block_id , $userdata, $block_config[$block_id][auth_edit], $block_config[$block_id][auth_edit_group] ); if ( $is_auth_ary[auth_edit] ) { $s_hidden_fields = '<input type="hidden" name="id" value="' . $block_id . '" />'; $s_hidden_fields .= '<input type="hidden" name="page" value="' . $page_id. '" />'; $s_hidden_fields .= '<input type="hidden" name="mode" value="edit" />'; $edit_url = append_sid( $module_root_path . "admin/mx_textblock_edit.php" ); $edit_img = '<input type="image" src="' . PHPBB_URL . $images['icon_edit'] . '" alt="' . $lang['Block_Edit'] . '" title="' . $lang['Block_Edit'] . '"></input>'; $template->assign_block_vars("switch_admin", array()); } else { $template->assign_block_vars("switch_not_admin", array()); }; $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty( $block_size ) ? $block_size : '100%' ), 'L_TITLE' => ( !empty( $lang[$title] ) ? $lang[$title] : $title ), 'S_ACTION' => $edit_url, 'U_TEXT' => $message, 'EDIT_IMG' => $edit_img, 'BLOCK_ID' => $block_id, 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields )); $template->pparse("body_block"); ?> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:18
|
Update of /cvsroot/mxbb/core27x/modules/mx_statistics/language In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_statistics/language Added Files: index.htm Log Message: Initital core 2.7.x commit :-) --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:18
|
Update of /cvsroot/mxbb/core27x/modules/mx_last_msg/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_last_msg/admin Added Files: admin_mx_last_msg.php index.htm Log Message: Initital core 2.7.x commit :-) --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> --- NEW FILE: admin_mx_last_msg.php --- <?php /*************************************************************************** * admin_setting.php * ------------------- * begin : april, 2003 * copyright : (C) 2002 MX-System * email : su...@mx... * * $Id: admin_mx_last_msg.php,v 1.1 2005/05/06 06:48:06 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', 1); $mx_root_path = '../' ; global $db; if ( empty( $block_id ) ) { $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'Last Message' LIMIT 1"; if(!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not query Download module information", "", __LINE__, __FILE__, $sql); } $row = $db->sql_fetchrow($result); $block_id = $row[block_id]; } if( !empty($setmodules) ) { $module['Portal_Last_Message']['General_Module_Settings'] = "admin/admin_mx_block.php?mode=setting&block_id=$block_id"; return; } ?> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:17
|
Update of /cvsroot/mxbb/core27x/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules Added Files: index.htm Log Message: Initital core 2.7.x commit :-) --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |
|
From: Jon O. <jon...@us...> - 2005-05-06 06:48:16
|
Update of /cvsroot/mxbb/core27x/modules/mx_last_msg/language/lang_english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13016/modules/mx_last_msg/language/lang_english Added Files: index.htm lang_admin.php lang_main.php Log Message: Initital core 2.7.x commit :-) --- NEW FILE: lang_main.php --- <?php /*************************************************************************** * Mx_Last Message Post Module * lang_main.php [English] * ------------------- * copyright : (C) 2003 Mx System * email : su...@mx... * * $Id: lang_admin.php * Rev. hist : Created by MarcMoris (su...@mx...), * reedited by Haplo (jon...@ho...) * $Id: lang_main.php,v 1.1 2005/05/06 06:48:07 jonohlsson Exp $ * ****************************************************************************/ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); // Module $lang['Latest_Post'] = "Last Message Post"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: lang_admin.php --- <?php /*************************************************************************** * Mx_Last Message Post Module * lang_admin.php [English] * ------------------- * copyright : (C) 2003 Mx System * email : su...@mx... * * $Id: lang_admin.php * Rev. hist : Created by MarcMoris (su...@mx...), * reedited by Haplo (jon...@ho...) * $Id: lang_admin.php,v 1.1 2005/05/06 06:48:07 jonohlsson Exp $ * ****************************************************************************/ // // The format of this file is: // // ---> $lang["message"] = "text"; // // Specify your language character encoding... [optional] // // setlocale(LC_ALL, "en"); $lang['Last_Msg_forum'] = "Source Forums<br /> You may do multiple selections<br />* If none is selected, all authorized forums vill be visible"; $lang['Last_Msg_Display_Icon_View'] = "Display Icon for 'Go to last message'"; $lang['Last_Msg_Display_Last_Author'] = "Display Last Post"; $lang['Last_Msg_Display_Author'] = "Display Author Name"; $lang['Last_Msg_Settings'] = "Configuration for Last Message Post Module:"; $lang['Last_Msg_Settings'] = "Configuration for Last Message Post Module:"; $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']= ""; $lang['Last_Msg_Display_Forum'] = "Display Forum Name?"; $lang['Last_Msg_Align'] = "Title Align:" ; $lang['Last_Msg_Align_Left'] = "left"; $lang['Last_Msg_Align_Right'] = "right"; $lang['Last_Msg_Align_Center'] = "center"; $lang['Last_Msg_Target'] = "Target:"; $lang['Last_Msg_Target_1'] = "New Window"; $lang['Last_Msg_Target_2'] = "Current Window"; $lang['Config_updated'] = "Module Configuration successfully updated"; $lang['Click_return_config'] = "Click %sHere%s to return to Module Administration"; $lang['Click_return_admin_index'] = "Click %sHere%s to return to Index Administration"; // // That's all Folks! // ------------------------------------------------- ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |