|
From: Jon O. <jon...@us...> - 2007-09-09 16:53:22
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11474/includes Added Files: .htaccess index.htm mx_functions_display.php phpbb3blocks_constants.php Log Message: Ok, massive update for 2.9.x. --- NEW FILE: .htaccess --- deny from all --- NEW FILE: mx_functions_display.php --- <?php /** * * @package mxBB Portal Module - mx_phpbb2blocks * @version $Id: mx_functions_display.php,v 1.1 2007/09/09 16:53:17 jonohlsson Exp $ * @copyright (c) 2002-2006 mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mxbb.net * */ /** * Display Forums */ function mx_display_forums($root_data = '', $display_moderators = true, $return_moderators = false) { global $db, $phpbb_auth, $mx_user, $template, $mx_request_vars; global $phpbb_root_path, $phpEx, $board_config; [...1127 lines suppressed...] } $avatar_img = ''; switch ($avatar_type) { case AVATAR_UPLOAD: $avatar_img = $phpbb_root_path . "download.$phpEx?avatar="; break; case AVATAR_GALLERY: $avatar_img = $phpbb_root_path . $board_config['avatar_gallery_path'] . '/'; break; } $avatar_img .= $avatar; return '<img src="' . $avatar_img . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="' . ((!empty($mx_user->lang[$alt])) ? $mx_user->lang[$alt] : $alt) . '" />'; } ?> --- 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: phpbb3blocks_constants.php --- <?php /** * * @package mxBB Portal Module - mx_phpbb2blocks * @version $Id: phpbb3blocks_constants.php,v 1.1 2007/09/09 16:53:17 jonohlsson Exp $ * @copyright (c) 2002-2006 mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mxbb.net * */ if ( PORTAL_BACKEND != 'phpbb3' ) { mx_message_die(GENERAL_MESSAGE, 'There are blocks on this page designed for mxBB with phpBB3 backend, thus not compatible with current setup.'); } // ------------------------------------------------------------------------- // Footer Copyrights // ------------------------------------------------------------------------- if (is_object($mx_page)) { // ------------------------------------------------------------------------- // Extend User Style with module lang and images // Usage: $mx_user->extend(LANG, IMAGES) // Switches: // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE // ------------------------------------------------------------------------- $mx_user->extend(MX_LANG_MAIN, MX_IMAGES); } // Forum/Topic states !defined('FORUM_CAT') ? define('FORUM_CAT', 0) : false; !defined('FORUM_POST') ? define('FORUM_POST', 1) : false; !defined('FORUM_LINK') ? define('FORUM_LINK', 2) : false; !defined('ITEM_UNLOCKED') ? define('ITEM_UNLOCKED', 0) : false; !defined('ITEM_LOCKED') ? define('ITEM_LOCKED', 1) : false; !defined('ITEM_MOVED') ? define('ITEM_MOVED', 2) : false; // Topic types !defined('POST_NORMAL') ? define('POST_NORMAL', 0) : false; !defined('POST_STICKY') ? define('POST_STICKY', 1) : false; !defined('POST_ANNOUNCE') ? define('POST_ANNOUNCE', 2) : false; !defined('POST_GLOBAL') ? define('POST_GLOBAL', 3) : false; ?> |