|
From: OryNider <ory...@us...> - 2008-02-10 02:34:59
|
Update of /cvsroot/mxbb/mx_blogs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18506 Modified Files: db_install.php db_uninstall.php trackback.php weblog.php weblog_allentries.php weblog_blocked.php weblog_config.php weblog_contributors.php weblog_entry.php weblog_friends.php weblog_posting.php weblog_rss.php weblogs.php Log Message: Index: weblog_friends.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_friends.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** weblog_friends.php 8 Feb 2008 23:37:23 -0000 1.2 --- weblog_friends.php 10 Feb 2008 02:34:50 -0000 1.3 *************** *** 1,46 **** <?php ! /*************************************************************************** ! * weblog_friends.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ ! define('IN_PHPBB', true); ! define('IN_PORTAL', true); ! //$phpbb_root_path = './'; ! $mx_root_path = '../../'; ! $module_root_path = './'; ! //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.'.$phpEx); ! include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); ! // ! // Start session management ! // ! $userdata = session_pagestart($user_ip, PAGE_INDEX); ! init_userprefs($userdata); ! // ! // End session management ! // ! //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); ! include($module_root_path . 'includes/weblogs_constants.'.$phpEx); ! include($module_root_path . 'includes/weblogs_common.'.$phpEx); ! // // Start initial var setup // --- 1,58 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! @define('IN_PHPBB', true); ! @define('IN_PORTAL', true); + $mx_root_path = "../../"; + $module_root_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $player_size = ( isset($block_size) && !empty($block_size) ? $block_size - 15 : '300' ); ! ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = $player_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } ! ! include($module_root_path . 'includes/weblogs_common.'.$phpEx); ! require($phpbb_root_path . 'includes/bbcode.'.$phpEx); ! ! // // Start initial var setup // *************** *** 243,247 **** // Get this user's friends data // ! $sql = "SELECT f.friend_id, u.*, w.* FROM " . WEBLOG_FRIENDS_TABLE . " f, " . USERS_TABLE . " u, " . WEBLOGS_TABLE . " w WHERE f.owner_id = $user_id --- 255,259 ---- // Get this user's friends data // ! $sql = "SELECT f.friend_id, u.*, w.* FROM " . WEBLOG_FRIENDS_TABLE . " f, " . USERS_TABLE . " u, " . WEBLOGS_TABLE . " w WHERE f.owner_id = $user_id *************** *** 310,314 **** // $friend_entry_data['entry_text'] = htmlspecialchars($friend_entry_data['entry_text']); ! // BBCode if ( $friend_entry_data['enable_bbcode'] ) --- 322,326 ---- // $friend_entry_data['entry_text'] = htmlspecialchars($friend_entry_data['entry_text']); ! // BBCode if ( $friend_entry_data['enable_bbcode'] ) *************** *** 316,320 **** $friend_entry_data['entry_text'] = bbencode_second_pass($friend_entry_data['entry_text'], $friend_entry_data['bbcode_uid']); } ! // Smilies if ( $friend_entry_data['enable_smilies'] ) --- 328,332 ---- $friend_entry_data['entry_text'] = bbencode_second_pass($friend_entry_data['entry_text'], $friend_entry_data['bbcode_uid']); } ! // Smilies if ( $friend_entry_data['enable_smilies'] ) *************** *** 322,328 **** $friend_entry_data['entry_text'] = smilies_pass($friend_entry_data['entry_text']); } ! $friend_entry_data['entry_text'] = make_clickable($friend_entry_data['entry_text']); ! if ( !$weblog_config['censor_weblog'] ) { --- 334,340 ---- $friend_entry_data['entry_text'] = smilies_pass($friend_entry_data['entry_text']); } ! $friend_entry_data['entry_text'] = make_clickable($friend_entry_data['entry_text']); ! if ( !$weblog_config['censor_weblog'] ) { *************** *** 331,335 **** $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); ! // Censor text and title if (count($orig_word)) --- 343,347 ---- $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); ! // Censor text and title if (count($orig_word)) *************** *** 347,351 **** if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } --- 359,363 ---- if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } *************** *** 371,375 **** $action = ''; } ! $time = create_date($board_config['default_dateformat'], $friend_entry_data['entry_time'], $board_config['board_timezone']); --- 383,387 ---- $action = ''; } ! $time = create_date($board_config['default_dateformat'], $friend_entry_data['entry_time'], $board_config['board_timezone']); *************** *** 457,461 **** mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 469,473 ---- mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 476,480 **** mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 488,492 ---- mx_message_die(GENERAL_ERROR, "Couldn't get friend of information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 525,527 **** use_weblog_footer ($weblog_data, $template_dir); ! ?> \ No newline at end of file --- 537,539 ---- use_weblog_footer ($weblog_data, $template_dir); ! ?> Index: weblog_posting.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_posting.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** weblog_posting.php 31 Jan 2008 03:36:34 -0000 1.2 --- weblog_posting.php 10 Feb 2008 02:34:50 -0000 1.3 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_posting.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); Index: weblog_contributors.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_contributors.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** weblog_contributors.php 8 Feb 2008 23:37:22 -0000 1.3 --- weblog_contributors.php 10 Feb 2008 02:34:50 -0000 1.4 *************** *** 29,33 **** //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); --- 29,33 ---- //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); *************** *** 45,49 **** ! // // Start initial var setup // --- 45,49 ---- ! // // Start initial var setup // *************** *** 267,271 **** mx_message_die(GENERAL_ERROR, "Couldn't get contributors information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 267,271 ---- mx_message_die(GENERAL_ERROR, "Couldn't get contributors information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 309,311 **** use_weblog_footer ( $weblog_data, $template_dir); ! ?> \ No newline at end of file --- 309,311 ---- use_weblog_footer ( $weblog_data, $template_dir); ! ?> Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/db_uninstall.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_uninstall.php 8 Feb 2008 23:37:21 -0000 1.2 --- db_uninstall.php 10 Feb 2008 02:34:49 -0000 1.3 *************** *** 20,24 **** include($mx_root_path . 'extension.inc'); include($mx_root_path . 'common.'.$phpEx); ! // // Start session management --- 20,24 ---- include($mx_root_path . 'extension.inc'); include($mx_root_path . 'common.'.$phpEx); ! // // Start session management *************** *** 26,43 **** $userdata = session_pagestart($user_ip, PAGE_INDEX); mx_init_userprefs($userdata); ! if( !$userdata['session_logged_in'] ) ! { ! die("Hacking attempt(3)"); ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); } // // End session management // ! } --- 26,43 ---- $userdata = session_pagestart($user_ip, PAGE_INDEX); mx_init_userprefs($userdata); + + if( !$userdata['session_logged_in'] ) + { + die("Hacking attempt(3)"); + } ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); } // // End session management // ! } *************** *** 86,88 **** echo "</table><br />"; ! ?> \ No newline at end of file --- 86,88 ---- echo "</table><br />"; ! ?> Index: weblog_entry.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_entry.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** weblog_entry.php 8 Feb 2008 23:37:22 -0000 1.3 --- weblog_entry.php 10 Feb 2008 02:34:50 -0000 1.4 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_entry.php ! * ---------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); *************** *** 24,28 **** $mx_root_path = '../../'; $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); --- 14,18 ---- $mx_root_path = '../../'; $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); *************** *** 374,389 **** // Parse message and/or sig for BBCode if reqd // ! if ( $board_config['allow_bbcode'] ) ! { ! if ( $entry_data['bbcode_uid'] != '' ) ! { ! if (!function_exists('bbencode_second_pass')) { include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); } - - $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $entry_data['bbcode_uid']) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $entry_data['entry_text']); - } } --- 364,374 ---- // Parse message and/or sig for BBCode if reqd // ! if (($board_config['allow_bbcode']) && ($entry_data['bbcode_uid'])) ! { ! if (!function_exists('bbencode_second_pass')) { include_once($phpbb_root_path . 'includes/bbcode.' .$phpEx); } $message = ( $board_config['allow_bbcode'] ) ? bbencode_second_pass($message, $entry_data['bbcode_uid']) : preg_replace('/\:[0-9a-z\:]+\]/si', ']', $entry_data['entry_text']); } *************** *** 431,435 **** if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="' . $mx_root_path . 'modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } --- 416,420 ---- if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="' . $mx_root_path . 'modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } *************** *** 484,488 **** if ( $entry_data['entry_trackbacks'] >= 1 ) { ! $pagination = generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&tb=1&start=$start", $entry_data['entry_trackbacks'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $entry_data['entry_trackbacks'] / intval($weblog_entry_data['entries_perpage']) )); } --- 469,473 ---- if ( $entry_data['entry_trackbacks'] >= 1 ) { ! $pagination = mx_generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&tb=1&start=$start", $entry_data['entry_trackbacks'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $entry_data['entry_trackbacks'] / intval($weblog_entry_data['entries_perpage']) )); } *************** *** 490,494 **** else if ( $weblog_entry_data['entry_replies'] >= 1 ) { ! $pagination = generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&postdays=$post_days&postorder=$post_order", $weblog_entry_data['entry_replies'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $weblog_entry_data['entry_replies'] / intval($weblog_entry_data['entries_perpage']) )); } --- 475,479 ---- else if ( $weblog_entry_data['entry_replies'] >= 1 ) { ! $pagination = mx_generate_pagination($mx_root_path . "modules/mx_blogs/weblog_entry.$phpEx?" . POST_ENTRY_URL . "=$entry_id&postdays=$post_days&postorder=$post_order", $weblog_entry_data['entry_replies'], $weblog_entry_data['entries_perpage'], $start); $page_number = sprintf($lang['Page_of'], ( floor( $start / intval($weblog_entry_data['entries_perpage']) ) + 1 ), ceil( $weblog_entry_data['entry_replies'] / intval($weblog_entry_data['entries_perpage']) )); } *************** *** 859,868 **** { $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); ! if ($user_sig != '') { $user_sig = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); } ! $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); } --- 844,853 ---- { $post_subject = preg_replace($orig_word, $replacement_word, $post_subject); ! if ($user_sig != '') { $user_sig = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1)); } ! $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1)); } *************** *** 1050,1052 **** use_weblog_footer ( $weblog_entry_data, $template_dir ); ! ?> \ No newline at end of file --- 1035,1037 ---- use_weblog_footer ( $weblog_entry_data, $template_dir ); ! ?> Index: weblog_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_config.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** weblog_config.php 8 Feb 2008 23:37:22 -0000 1.4 --- weblog_config.php 10 Feb 2008 02:34:49 -0000 1.5 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog_config.php ! * ----------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ // --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ // *************** *** 24,28 **** // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) --- 14,18 ---- // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) *************** *** 141,145 **** mx_message_die(GENERAL_ERROR, "Couldn't get weblog template information.", "", __LINE__, __FILE__, $sql); } ! if ( !($row = $db->sql_fetchrow($result)) ) { --- 131,135 ---- mx_message_die(GENERAL_ERROR, "Couldn't get weblog template information.", "", __LINE__, __FILE__, $sql); } ! if ( !($row = $db->sql_fetchrow($result)) ) { *************** *** 206,210 **** $show_weblog_info = ( isset($HTTP_POST_VARS['show_weblog_info']) ) ? intval($HTTP_POST_VARS['show_weblog_info']) : 1; $show_shoutbox = ( isset($HTTP_POST_VARS['show_shoutbox']) ) ? intval($HTTP_POST_VARS['show_shoutbox']) : 1; ! $show_categorybox = ( isset($HTTP_POST_VARS['show_categorybox']) ) ? intval($HTTP_POST_VARS['show_categorybox']) : 1; $reply_in_popup = ( isset($HTTP_POST_VARS['reply_in_popup']) ) ? intval($HTTP_POST_VARS['reply_in_popup']) : 1; $shoutbox_desc = ( isset($HTTP_POST_VARS['shoutbox_desc']) ) ? intval($HTTP_POST_VARS['shoutbox_desc']) : 1; --- 196,200 ---- $show_weblog_info = ( isset($HTTP_POST_VARS['show_weblog_info']) ) ? intval($HTTP_POST_VARS['show_weblog_info']) : 1; $show_shoutbox = ( isset($HTTP_POST_VARS['show_shoutbox']) ) ? intval($HTTP_POST_VARS['show_shoutbox']) : 1; ! $show_categorybox = ( isset($HTTP_POST_VARS['show_categorybox']) ) ? intval($HTTP_POST_VARS['show_categorybox']) : 1; $reply_in_popup = ( isset($HTTP_POST_VARS['reply_in_popup']) ) ? intval($HTTP_POST_VARS['reply_in_popup']) : 1; $shoutbox_desc = ( isset($HTTP_POST_VARS['shoutbox_desc']) ) ? intval($HTTP_POST_VARS['shoutbox_desc']) : 1; *************** *** 623,627 **** $sql = "UPDATE " . WEBLOGS_TABLE . " SET template_id = $weblog_template, ! weblog_name = '" . str_replace("\'", "''", $weblog_name) . "', weblog_desc = '" . str_replace("\'", "''", $weblog_desc) . "', weblog_auth = $weblog_auth, --- 613,617 ---- $sql = "UPDATE " . WEBLOGS_TABLE . " SET template_id = $weblog_template, ! weblog_name = '" . str_replace("\'", "''", $weblog_name) . "', weblog_desc = '" . str_replace("\'", "''", $weblog_desc) . "', weblog_auth = $weblog_auth, *************** *** 981,985 **** 'SHOUTBOX_ASC' => ( !$weblog_data['weblog_shoutbox_desc'] ) ? ' checked="checked"' : '', 'PREVIEW_IMG' => $module_root_path . 'weblogs/templates/' . get_template_dir($template_data[0]['template_id']) . '/preview_img.gif', ! 'DELETE_NAME' => ( $weblog_data['deleted'] ) ? 'undelete' : 'delete', 'L_DELETE_WEBLOG' => ( $weblog_data['deleted'] ) ? $lang['Weblog_undelete'] : $lang['Weblog_delete'], --- 971,975 ---- 'SHOUTBOX_ASC' => ( !$weblog_data['weblog_shoutbox_desc'] ) ? ' checked="checked"' : '', 'PREVIEW_IMG' => $module_root_path . 'weblogs/templates/' . get_template_dir($template_data[0]['template_id']) . '/preview_img.gif', ! 'DELETE_NAME' => ( $weblog_data['deleted'] ) ? 'undelete' : 'delete', 'L_DELETE_WEBLOG' => ( $weblog_data['deleted'] ) ? $lang['Weblog_undelete'] : $lang['Weblog_delete'], *************** *** 1006,1008 **** //include($mx_root_path . 'includes/page_tail.'.$phpEx); ! ?> \ No newline at end of file --- 996,998 ---- //include($mx_root_path . 'includes/page_tail.'.$phpEx); ! ?> Index: weblog_blocked.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog_blocked.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** weblog_blocked.php 8 Feb 2008 23:37:21 -0000 1.2 --- weblog_blocked.php 10 Feb 2008 02:34:49 -0000 1.3 *************** *** 1,49 **** <?php ! /*************************************************************************** ! * weblog_blocked.php ! * ------------------------ ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ - /*************************************************************************** - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - ***************************************************************************/ ! define('IN_PHPBB', true); ! define('IN_PORTAL', true); ! //$phpbb_root_path = './'; ! $mx_root_path = '../../'; ! $module_root_path = './'; ! //include($phpbb_root_path . 'extension.inc'); ! //include($phpbb_root_path . 'common.'.$phpEx); ! //include($phpbb_root_path . 'includes/weblogs_common.'.$phpEx); ! //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($mx_root_path . 'common.'.$phpEx); ! // ! // Start session management ! // ! //$userdata = session_pagestart($user_ip, PAGE_INDEX); ! //init_userprefs($userdata); ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! include($mx_root_path . 'modules/mx_blogs/includes/weblogs_constants.'.$phpEx); include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); ! // // Start initial var setup // --- 1,55 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! @define('IN_PHPBB', true); ! @define('IN_PORTAL', true); ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } include($mx_root_path . 'modules/mx_blogs/includes/weblogs_common.'.$phpEx); ! // // Start initial var setup // *************** *** 278,282 **** mx_message_die(GENERAL_ERROR, "Couldn't get blocked user information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { --- 284,288 ---- mx_message_die(GENERAL_ERROR, "Couldn't get blocked user information.", "", __LINE__, __FILE__, $sql); } ! while ( $row = $db->sql_fetchrow($result) ) { *************** *** 319,321 **** use_weblog_footer ( $weblog_data, $template_dir); ! ?> \ No newline at end of file --- 325,327 ---- use_weblog_footer ( $weblog_data, $template_dir); ! ?> Index: weblogs.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblogs.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** weblogs.php 8 Feb 2008 23:37:23 -0000 1.5 --- weblogs.php 10 Feb 2008 02:34:50 -0000 1.6 *************** *** 1,12 **** <?php ! /*************************************************************************** ! * File : weblogs.php ! * Copyright :(C) 2005 Hyperion, mxBB Project Team ! * website : www.mxbb.net * ! * File ID : $Id$ ! * Last Modified : $Date$ * ! ***************************************************************************/ // --- 1,12 ---- <?php ! /** * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2002-2008 [Jon Ohlsson] MX-Publisher Project Team ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com * ! */ // *************** *** 14,18 **** // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) --- 14,18 ---- // //error_reporting( E_ALL ); ! @ini_set( 'display_errors', '1' ); if( !defined('IN_PORTAL') || !is_object($mx_block)) *************** *** 195,199 **** // Viewer of own weblog presumed to have maximum authentication... $sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " ! WHERE weblog_id = " . $userdata['user_weblog'] . " AND entry_deleted <> " . TRUE . " ORDER BY entry_time DESC LIMIT 1"; --- 195,199 ---- // Viewer of own weblog presumed to have maximum authentication... $sql = "SELECT * FROM " . WEBLOG_ENTRIES_TABLE . " ! WHERE weblog_id = " . $userdata['user_weblog'] . " AND entry_deleted <> " . TRUE . " ORDER BY entry_time DESC LIMIT 1"; *************** *** 211,215 **** if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } --- 211,215 ---- if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } *************** *** 225,229 **** if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) --- 225,229 ---- if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) *************** *** 452,456 **** 'L_LAST_SEEN' => $lang['Last_seen'], 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $count ) + 1 ), ceil( count($weblog_data) / $count )), ! 'PAGINATION' => generate_pagination($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list'] . "&count=$count&sort=$sort&order=$order", count($weblog_data), $count, $start)) ); --- 452,456 ---- 'L_LAST_SEEN' => $lang['Last_seen'], 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $count ) + 1 ), ceil( count($weblog_data) / $count )), ! 'PAGINATION' => mx_generate_pagination($mx_root_path . "index.$phpEx?page=" . $weblog_config['mx_weblog_list'] . "&count=$count&sort=$sort&order=$order", count($weblog_data), $count, $start)) ); *************** *** 535,539 **** if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } --- 535,539 ---- if ( $mood >= 0 ) ! { $mood = sprintf($lang['Mood:'], '<img src="modules/mx_blogs/images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']); } *************** *** 549,553 **** if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) --- 549,553 ---- if ( $currently > 0 ) { ! $action = sprintf($lang['Currently:'], '<img src="modules/mx_blogs/images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $last_entry_data['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $last_entry_data['currently_text']); } else if ( $last_entry_data['currently_text'] && $currently == -2 ) *************** *** 667,669 **** $template->pparse('bottom'); ! ?> \ No newline at end of file --- 667,669 ---- $template->pparse('bottom'); ! ?> Index: weblog.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/weblog.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** weblog.php 8 Feb 2008 23:37:21 -0000 1.4 --- weblog.php 10 Feb 2008 02:34:49 -0000 1.5 *************** *** 1,22 **** <?php ! /*************************************************************************** ! * weblog.php ! * ------------------- ! * begin : Monday, September 5, 2004 ! * copyright : (C) 2005 Hyperion ! * email : vi...@ho... ! * ! * $Id$ ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ define('IN_PHPBB', true); --- 1,12 ---- <?php ! /** ! * ! * @package MX-Publisher Module - mx_blogs ! * @version $Id$ ! * @copyright (c) 2005 Hyperion, vi...@ho... ! * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ! * @link http://www.mx-publisher.com ! * ! */ define('IN_PHPBB', true); *************** *** 32,36 **** { //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); } --- 22,26 ---- { //include($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); } *************** *** 130,134 **** $blocked_data[] = $row; } ! // // Start initial var setup // --- 120,124 ---- $blocked_data[] = $row; } ! // // Start initial var setup // *************** *** 560,568 **** if ( $weblog_config['birthday_mod'] == 1 ) { ! $this_year = create_date('Y', time(), $board_config['board_timezone']); $this_date = create_date('md', time(), $board_config['board_timezone']); ! if ( $weblog_ownerdata['user_birthday'] != 999999 ) ! { $poster_birthdate = realdate('md', $weblog_ownerdata['user_birthday']); if ( $weblog_config['birthday_zodiac_mod'] == 1 ) --- 550,558 ---- if ( $weblog_config['birthday_mod'] == 1 ) { ! $this_year = create_date('Y', time(), $board_config['board_timezone']); $this_date = create_date('md', time(), $board_config['board_timezone']); ! if ( $weblog_ownerdata['user_birthday'] != 999999 ) ! { $poster_birthdate = realdate('md', $weblog_ownerdata['user_birthday']); if ( $weblog_config['birthday_zodiac_mod'] == 1 ) *************** *** 747,751 **** if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } --- 737,741 ---- if ( $mood >= 0 ) ! { $mood = '<strong>[</strong> ' . sprintf($lang['Mood:'], '<img src="images/weblogs/' . $mood['mood_url'] . '" alt="' . $mood_data['mood_text'] . '" style="vertical-align: middle" border="0" />', $mood['mood_text']) . ' <strong>]</strong>'; } *************** *** 761,765 **** if ( $currently > 0 ) { ! $action = '<strong>[</strong> ' . sprintf($lang['Currently:'], '<img src="images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $entry_data[$i]['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $entry_data[$i]['currently_text']) . ' <strong>]</strong>'; } else if ( $entry_data[$i]['currently_text'] && $currently == -2 ) --- 751,755 ---- if ( $currently > 0 ) { ! $action = '<strong>[</strong> ' . sprintf($lang['Currently:'], '<img src="images/weblogs/' . $currently['action_url'] . '" alt="' . $currently['action_text'] . ' ' . $entry_data[$i]['currently_text'] . '" style="vertical-align: middle" border="0" />', $currently['action_text'] . ' ' . $entry_data[$i]['currently_text']) . ' <strong>]</strong>'; } else if ( $entry_data[$i]['currently_text'] && $currently == -2 ) *************** *** 771,775 **** $action = ''; } ! --- 761,765 ---- $action = ''; } ! *************** *** 785,789 **** ! $time = create_date($board_config['default_dateformat'], $entry_data[$i]['entry_time'], $board_config['board_timezone']); --- 775,779 ---- ! $time = create_date($board_config['default_dateformat'], $entry_data[$i]['entry_time'], $board_config['board_timezone']); *************** *** 828,832 **** $month = create_date("m", time(), $board_config['board_timezone']); } ! if ( !$year ) { --- 818,822 ---- $month = create_date("m", time(), $board_config['board_timezone']); } ! if ( !$year ) { *************** *** 938,945 **** for ( $i = 0; $i < count($category_data); $i++ ) { ! $template->assign_block_vars('switch_categorybox.categoryrow', array( 'CATEGORY' => $category_data[$i]) ); ! $template->assign_block_vars('categoryrow', array( 'CATEGORY' => $category_data[$i]) --- 928,935 ---- for ( $i = 0; $i < count($category_data); $i++ ) { ! $template->assign_block_vars('switch_categorybox.categoryrow', array( 'CATEGORY' => $category_data[$i]) ); ! $template->assign_block_vars('categoryrow', array( 'CATEGORY' => $category_data[$i]) *************** *** 1057,1063 **** // $message = str_replace("\n", "\n<br />\n", $message); ! $row_class = ( $i % 2 ) ? ' class="row2"' : ' class="row1"'; ! $template->assign_block_vars('switch_shoutbox.shoutrow', array( 'DELETE_SHOUT' => ( $weblog_data['weblog_id'] == $userdata['user_weblog'] ) ? '<div style="float: right; font-weight: bold">[ <a href="' . append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data['weblog_id'] . "&d=" . $shout_data[$i]['shout_id']) . '">X</a> ]</div>' : '', --- 1047,1053 ---- // $message = str_replace("\n", "\n<br />\n", $message); ! $row_class = ( $i % 2 ) ? ' class="row2"' : ' class="row1"'; ! $template->assign_block_vars('switch_shoutbox.shoutrow', array( 'DELETE_SHOUT' => ( $weblog_data['weblog_id'] == $userdata['user_weblog'] ) ? '<div style="float: right; font-weight: bold">[ <a href="' . append_sid("weblog.$phpEx?" . POST_WEBLOG_URL . "=" . $weblog_data['weblog_id'] . "&d=" . $shout_data[$i]['shout_id']) . '">X</a> ]</div>' : '', *************** *** 1134,1140 **** 'L_CONTRIBUTORS' => $lang['Contributors'], 'L_EDIT_CONTRIBUTORS' => $lang['Edit_contributors'], ! 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], ! 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], ! 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], 'L_NO_SHOUTS' => $lang['No_shouts'], 'L_NO_CATEGORY' => $lang['No_category'], --- 1124,1130 ---- 'L_CONTRIBUTORS' => $lang['Contributors'], 'L_EDIT_CONTRIBUTORS' => $lang['Edit_contributors'], ! 'L_DISABLE_HTML' => $lang['Disable_HTML_post'], ! 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_post'], ! 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_post'], 'L_NO_SHOUTS' => $lang['No_shouts'], 'L_NO_CATEGORY' => $lang['No_category'], *************** *** 1231,1247 **** if ( $weblog_config['gender_mod'] == 1 ) { ! if ( !empty($weblog_ownerdata['user_gender'])) ! { ! switch ($weblog_ownerdata['user_gender']) ! { case 1: $gender = $lang['Male']; ! break; case 2: $gender = $lang['Female']; ! break; default: $gender = $lang['No_gender_specify']; ! } } else --- 1221,1237 ---- if ( $weblog_config['gender_mod'] == 1 ) { ! if ( !empty($weblog_ownerdata['user_gender'])) ! { ! switch ($weblog_ownerdata['user_gender']) ! { case 1: $gender = $lang['Male']; ! break; case 2: $gender = $lang['Female']; ! break; default: $gender = $lang['No_gender_specify']; ! } } else *************** *** 1361,1365 **** 'S_CUSTOM_BLOCK' => ( $weblog_data['custom_block_title'] && $weblog_data['custom_block'] ) ? $weblog_data['custom_block'] : '') ); ! if ( !$weblog_data['weblog_advanced'] ) { --- 1351,1355 ---- 'S_CUSTOM_BLOCK' => ( $weblog_data['custom_block_title'] && $weblog_data['custom_block'] ) ? $weblog_data['custom_block'] : '') ); ! if ( !$weblog_data['weblog_advanced'] ) { *************** *** 1375,1377 **** use_weblog_footer ( $weblog_data, $template_dir, FALSE ); ! ?> \ No newline at end of file --- 1365,1367 ---- use_weblog_footer ( $weblog_data, $template_dir, FALSE ); ! ?> Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_blogs/db_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_install.php 8 Feb 2008 23:37:20 -0000 1.3 --- db_install.php 10 Feb 2008 02:34:49 -0000 1.4 *************** *** 1,330 **** ! <?php ! /*************************************************************************** ! * db_update.php ! * ------------------- ! * ! * copyright : ©2003 Freakin' Booty ;-P & Antony Bailey ! * project : http://sourceforge.net/projects/dbgenerator ! ! * Website : http://freakingbooty.no-ip.com/ & http://www.rapiddr3am.net ! * ! ***************************************************************************/ ! ! /*************************************************************************** ! * ! * This program is free software; you can redistribute it and/or modify ! * it under the terms of the GNU General Public License as published by ! * the Free Software Foundation; either version 2 of the License, or ! * (at your option) any later version. ! * ! ***************************************************************************/ ! ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; ! if ( !defined('IN_ADMIN') ) ! { ! include($mx_root_path . 'extension.inc'); ! include($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $userdata = session_pagestart($user_ip, PAGE_INDEX); ! mx_init_userprefs($userdata); ! ! if( !$userdata['session_logged_in'] ) ! { ! die("Hacking attempt(3)"); ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! die("Hacking attempt(4)"); ! } ! // ! // End session management ! // ! ! } ! ! if( $userdata['user_level'] != ADMIN ) ! { ! message_die(GENERAL_MESSAGE, 'You are not authorised to access this page'); ! } ! ! ! $page_title = 'Updating the database'; ! ! echo '<table width="100%" cellspacing="1" cellpadding="2" border="0" class="forumline">'; ! echo '<tr><th>Updating the database</th></tr><tr><td><span class="genmed"><ul type="circle">'; ! ! ! $sql = array(); ! $sql[] = "ALTER TABLE " . $table_prefix . "groups ADD group_allow_weblogs TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_allowadvweblog TINYINT(1) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_showfriends TINYINT(1) UNSIGNED NOT NULL DEFAULT '1'"; ! $sql[] = "ALTER TABLE " . $table_prefix . "users ADD user_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0'"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_actions ( ! action_id SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL, ! action_text VARCHAR(50) DEFAULT '', ! action_url VARCHAR(100) DEFAULT '', ! PRIMARY KEY (action_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_blocked ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! blocked_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, blocked_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_config ( ! config_name VARCHAR(255) NOT NULL DEFAULT '', ! config_value VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (config_name) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_contributors ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! user_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! PRIMARY KEY (weblog_id, user_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_entries ( ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_access TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! entry_subject VARCHAR(60) NOT NULL DEFAULT '', ! entry_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! entry_mood SMALLINT(5) NOT NULL DEFAULT '0', ! entry_currently SMALLINT(5) NOT NULL DEFAULT '0', ! currently_text VARCHAR(60) NOT NULL DEFAULT '', ! entry_time INT(11) NOT NULL DEFAULT '0', ! entry_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! memorable TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! no_replies TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! entry_replies MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_last_post_userid MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT' 0', ! entry_last_post_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! entry_trackbacks SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! entry_deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (entry_id), ! KEY (weblog_id), ! KEY (entry_last_post_userid), ! KEY (entry_last_post_id), ! KEY (entry_poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_friends ( ! owner_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! friend_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (owner_id, friend_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_mood_sets ( ! set_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! set_name VARCHAR (255) NOT NULL DEFAULT '', ! PRIMARY KEY (set_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_moods ( ! mood_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_text VARCHAR (255) NOT NULL DEFAULT '', ! mood_url VARCHAR (255) NOT NULL DEFAULT '', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! PRIMARY KEY (mood_id), ! KEY (mood_set) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_replies ( ! reply_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! poster_id MEDIUMINT(8) NOT NULL DEFAULT '0', ! post_time INT(11), ! post_username VARCHAR(25) NOT NULL DEFAULT '', ! post_subject VARCHAR (60) NOT NULL DEFAULT '', ! enable_bbcode TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_smilies TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! enable_html TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! enable_sig TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_text TEXT NOT NULL DEFAULT '', ! bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (reply_id), ! KEY (entry_id), ! KEY (poster_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_shoutbox ( ! shout_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_weblog MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! shout_text TEXT NOT NULL DEFAULT '', ! shout_poster MEDIUMINT(8) NOT NULL DEFAULT '0', ! shout_username VARCHAR(25) NOT NULL DEFAULT '', ! bbcode_uid VARCHAR (10) NOT NULL DEFAULT '', ! shout_time INT(11) NOT NULL DEFAULT '0', ! shout_www VARCHAR (100) NOT NULL DEFAULT '', ! PRIMARY KEY (shout_id), ! KEY (shout_weblog), ! KEY (shout_poster) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_templates ( ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! template_name VARCHAR(100) NOT NULL DEFAULT '', ! template_dir VARCHAR (100) NOT NULL DEFAULT '', ! template_private TINYINT(1) NOT NULL DEFAULT '0', ! PRIMARY KEY (template_id) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblog_trackbacks ( ! tb_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_entry MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! tb_blog VARCHAR (255) NOT NULL DEFAULT '', ! tb_time INT(11) NOT NULL DEFAULT '0', ! tb_excerpt VARCHAR(255) NOT NULL DEFAULT '', ! tb_url VARCHAR(255) NOT NULL DEFAULT '', ! tb_title VARCHAR(255) NOT NULL DEFAULT '', ! PRIMARY KEY (tb_id), ! KEY (tb_entry) ! )"; ! $sql[] = "CREATE TABLE " . $mx_table_prefix . "weblogs ( ! weblog_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! template_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0', ! weblog_name VARCHAR(60) NOT NULL DEFAULT '', ! weblog_desc VARCHAR(255) NOT NULL DEFAULT '', ! weblog_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! replies_auth TINYINT(4) UNSIGNED NOT NULL DEFAULT '0', ! weblog_entries MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! entries_perpage SMALLINT(5) UNSIGNED NOT NULL DEFAULT '5', ! post_reply_text VARCHAR(60) NOT NULL DEFAULT '', ! replies_text VARCHAR(60) NOT NULL DEFAULT '', ! weblog_create_date INT(11) NOT NULL DEFAULT '0', ! weblog_views MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! weblog_advanced TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_shoutbox_desc TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_profile_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_calendar TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_contact_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_weblog_info TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! show_shoutbox TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! reply_in_popup TINYINT(1) UNSIGNED NOT NULL DEFAULT '1', ! deleted TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_last_entry_id MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! mood_set MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0', ! custom_block TEXT NOT NULL DEFAULT '', ! custom_block_title VARCHAR (64) NOT NULL DEFAULT '', ! background_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! border_color VARCHAR(6) NOT NULL DEFAULT '', ! background_image VARCHAR(255) NOT NULL DEFAULT '', ! background_image_fixed TINYINT(1) NOT NULL DEFAULT '0', ! tile_bg VARCHAR(9) NOT NULL DEFAULT '', ! sb_face_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_highlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_shadow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_3dlight_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_arrow_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_track_color VARCHAR(6) NOT NULL DEFAULT '', ! sb_darkshadow_color VARCHAR(6) NOT NULL DEFAULT '', ! font SMALLINT(5) NOT NULL DEFAULT '0', ! font_color VARCHAR(6) NOT NULL DEFAULT '000000', ! font_size TINYINT(2) NOT NULL DEFAULT '0', ! normal_link_color VARCHAR(6) NOT NULL DEFAULT '', ! active_link_color VARCHAR(6) NOT NULL DEFAULT '', ! hover_link_color VARCHAR(6) NOT NULL DEFAULT '', ! visited_link_color VARCHAR(6) NOT NULL DEFAULT '', ! weblog_title_color VARCHAR(6) NOT NULL DEFAULT '', ! entry_title_color VARCHAR(6) NOT NULL DEFAULT '', ! date_time_color VARCHAR(6) NOT NULL DEFAULT '', ! block_title_color VARCHAR(6) NOT NULL DEFAULT '', ! block_bg_color VARCHAR(6) NOT NULL DEFAULT '', ! block_border_color VARCHAR(6) NOT NULL DEFAULT '', ! bg_ypos VARCHAR(6) NOT NULL DEFAULT '', ! bg_xpos VARCHAR(6) NOT NULL DEFAULT '', ! normal_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! active_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! hover_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! visited_link_underline TINYINT(1) UNSIGNED NOT NULL DEFAULT '0', ! weblog_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '16', ! entry_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '12', ! date_time_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! block_title_font_size TINYINT(2) UNSIGNED NOT NULL DEFAULT '14', ! cblock_bbcode_uid VARCHAR(10) NOT NULL DEFAULT '', ! PRIMARY KEY (weblog_id), ! KEY (template_id), ! KEY (weblog_last_entry_id), ! KEY (mood_set) ! )"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblog_entries ADD `category` VARCHAR( 60 ) NOT NULL DEFAULT ''"; ! ! $sql[] = "ALTER TABLE " . $mx_table_prefix . "weblogs ADD `show_categorybox` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 1"; ! ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (1, 'Eating', 'action_eat.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (2, 'Listening to', 'action_listen.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (3, 'Playing', 'action_play.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (4, 'Reading', 'action_read.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (5, 'Watching', 'action_watch.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_actions (action_id, action_text, action_url) VALUES (6, 'Working', 'action_work.gif')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('enable_mod', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('no_avatars_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_name', '%s\'s blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_desc', 'Welcome to my Blog')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sorttype', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_sortorder', 'desc')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('main_blogsperpage', 10)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('use_default_faceplates', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('condense_index', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('censor_weblog', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_reply_auth', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_entries_perpage', 5)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('require_auth', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_post_reply_text', '(Post your comment)')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('default_replies_text', '%s Comments')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('index_list_by_username', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('shoutbox_flood_delay', 15)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_width', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_height', 500)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('max_pic_size', 131072)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('pic_upload_enabled', 1)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_config_page', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_config (config_name, config_value) VALUES ('mx_weblog_list', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_mood_sets (set_id, set_name) VALUES (0, 'Default Set')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (1, 'Angelic', 'mood_angelic.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (2, 'Confused', 'mood_confused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (3, 'Cool', 'mood_cool.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (4, 'Silly', 'mood_silly.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (5, 'Very Sad', 'mood_verysad.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (6, 'Shocked', 'mood_shocked.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (7, 'Evil', 'mood_evil.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (8, 'In Love', 'mood_love.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods (mood_id, mood_text, mood_url, mood_set) VALUES (9, 'Amused', 'mood_amused.gif', 0)"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "weblog_moods ... [truncated message content] |