|
From: OryNider <ory...@us...> - 2008-01-31 03:32:02
|
Update of /cvsroot/mxbb/mx_blogs/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20965/includes Modified Files: Tag: core28x weblogs_common.php weblogs_constants.php Log Message: finished porting this module :) Index: weblogs_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/weblogs_common.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** weblogs_common.php 28 Jun 2007 18:04:21 -0000 1.2 --- weblogs_common.php 31 Jan 2008 03:31:55 -0000 1.2.2.1 *************** *** 19,53 **** * ***************************************************************************/ ! if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); } if ( !isset($mx_root_path)) { $mx_root_path = '../../../'; } - include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); - //include($phpbb_root_path . 'includes/functions_weblog.'.$phpEx); - include($mx_root_path . 'modules/mx_blogs/includes/functions_weblog.'.$phpEx); - //include($mx_root_path . 'includes/mx_functions.'.$phpEx); - // The Blog Mod version 0.2.5 - define('WEBLOGS_MOD_VERSION', '0.2.6'); - - // Weblog Constants (Constants used all over the place) - define('SORT_NEWEST_ENTRIES', 0); - define('SORT_WEBLOG_NAME', 1); - define('SORT_NUM_ENTRIES', 2); - define('SORT_WEBLOG_START_DATE', 3); - define('SORT_WEBLOG_VIEWS', 4); - define('SORT_WEBLOG_OWNER_NAME', 5); ! define('ACTION_DO_NOTHING', 0); ! define('ACTION_LOAD_TEMPLATE', 1); ! define('ACTION_SWITCH_MODE', 2); ! ! define('WEBLOG_AUTH_ALL', 0); ! define('WEBLOG_AUTH_REGISTERED', 1); ! define('WEBLOG_AUTH_FRIENDS', 2); ! define('WEBLOG_AUTH_OWNER', 3); // ********************************************************************** --- 19,35 ---- * ***************************************************************************/ ! ! if ( !defined('IN_PORTAL') ) { die("Hacking attempt"); } + if ( !isset($mx_root_path)) { $mx_root_path = '../../../'; } ! include_once($module_root_path . 'includes/weblogs_constants.'.$phpEx); ! include_once($module_root_path . 'includes/functions_weblog.'.$phpEx); // ********************************************************************** *************** *** 68,81 **** } - - - - - - - // include the weblog language file $use_lang = ( !file_exists($mx_root_path . 'modules/mx_blogs/language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; ! include($mx_root_path . 'modules/mx_blogs/language/lang_' . $use_lang . '/lang_weblog_main.' . $phpEx); // --- 50,66 ---- } // include the weblog language file $use_lang = ( !file_exists($mx_root_path . 'modules/mx_blogs/language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.'.$phpEx) ) ? 'english' : $board_config['default_lang']; ! ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.' . $phpEx ) ) ! { ! include_once( $module_root_path . 'language/lang_english/lang_weblog_main.' . $phpEx ); ! $link_language='lang_english'; ! } ! else ! { ! include_once( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_weblog_main.' . $phpEx ); ! $link_language='lang_' . $board_config['default_lang']; ! } // Index: weblogs_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/includes/weblogs_constants.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** weblogs_constants.php 7 Jun 2007 22:01:33 -0000 1.1 --- weblogs_constants.php 31 Jan 2008 03:31:55 -0000 1.1.2.1 *************** *** 1,7 **** <?php if (!isset($mx_table_prefix)) { ! $mx_table_prefix = 'mx_'; } define('POST_WEBLOG_URL', 'w'); define('POST_ENTRY_URL', 'e'); --- 1,12 ---- <?php + if (!isset($mx_table_prefix)) { ! $mx_table_prefix = 'mx_'; } + + // The Blog Mod version 0.2.5 + define('WEBLOGS_MOD_VERSION', '0.2.6'); + define('POST_WEBLOG_URL', 'w'); define('POST_ENTRY_URL', 'e'); *************** *** 20,23 **** --- 25,31 ---- define('WEBLOG_TRACKBACKS_TABLE', $mx_table_prefix.'weblog_trackbacks'); define('WEBLOGS_TABLE', $mx_table_prefix.'weblogs'); + + + // Weblog Constants (Constants used all over the place) define('SORT_NEWEST_ENTRIES', 0); define('SORT_WEBLOG_NAME', 1); |