|
From: Jon O. <jon...@us...> - 2008-01-28 22:02:40
|
Update of /cvsroot/mxbb/mx_tinies In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20989 Modified Files: view_topics.php welcome.php Log Message: hmmm...i have no idea what i have done ;) Index: view_topics.php =================================================================== RCS file: /cvsroot/mxbb/mx_tinies/view_topics.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** view_topics.php 7 Jun 2007 20:14:40 -0000 1.1 --- view_topics.php 28 Jan 2008 22:02:35 -0000 1.2 *************** *** 43,47 **** $mx_root_path = "../../"; //include_once($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // --- 43,47 ---- $mx_root_path = "../../"; //include_once($mx_root_path . 'extension.inc'); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once($mx_root_path . 'common.'.$phpEx); // *************** *** 260,264 **** $post_url = append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id']) . '#' . $searchset[$i]['post_id']; ! $post_date = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $topic_title = $searchset[$i]['topic_title']; --- 260,264 ---- $post_url = append_sid(PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . '=' . $searchset[$i]['post_id']) . '#' . $searchset[$i]['post_id']; ! $post_date = phpBB2::create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $topic_title = $searchset[$i]['topic_title']; *************** *** 387,391 **** } } ! else if( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) { $folder_img .= '_new'; --- 387,391 ---- } } ! else if( $searchset[$i]['post_time'] > $userdata['user_lastvisit'] ) { $folder_img .= '_new'; *************** *** 393,397 **** $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_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; --- 393,397 ---- $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_alt = ( $searchset[$i]['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts']; *************** *** 416,422 **** $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; ! $first_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['topic_time'], $board_config['board_timezone']); ! $last_post_time = create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a target="_blank" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>'; --- 416,422 ---- $topic_author .= ( $searchset[$i]['user_id'] != ANONYMOUS ) ? '</a>' : ''; ! $first_post_time = phpBB2::create_date($board_config['default_dateformat'], $searchset[$i]['topic_time'], $board_config['board_timezone']); ! $last_post_time = phpBB2::create_date($board_config['default_dateformat'], $searchset[$i]['post_time'], $board_config['board_timezone']); $last_post_author = ( $searchset[$i]['id2'] == ANONYMOUS ) ? ( ($searchset[$i]['post_username2'] != '' ) ? $searchset[$i]['post_username2'] . ' ' : $lang['Guest'] . ' ' ) : '<a target="_blank" href="' . append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $searchset[$i]['id2']) . '">' . $searchset[$i]['user2'] . '</a>'; *************** *** 454,458 **** $template->assign_vars(array( 'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start), ! 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), 'L_AUTHOR' => $lang['Author'], --- 454,458 ---- $template->assign_vars(array( 'PAGINATION' => generate_pagination($base_url, $total_match_count, $per_page, $start), ! 'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / $per_page ) + 1 ), ceil( $total_match_count / $per_page )), 'L_AUTHOR' => $lang['Author'], *************** *** 463,468 **** 'L_VIEWS' => $lang['Views'], 'L_POSTS' => $lang['Posts'], ! 'L_LASTPOST' => $lang['Last_Post'], ! 'L_POSTED' => $lang['Posted'], 'L_SUBJECT' => $lang['Subject'], --- 463,468 ---- 'L_VIEWS' => $lang['Views'], 'L_POSTS' => $lang['Posts'], ! 'L_LASTPOST' => $lang['Last_Post'], ! 'L_POSTED' => $lang['Posted'], 'L_SUBJECT' => $lang['Subject'], Index: welcome.php =================================================================== RCS file: /cvsroot/mxbb/mx_tinies/welcome.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** welcome.php 7 Jun 2007 20:14:41 -0000 1.1 --- welcome.php 28 Jan 2008 22:02:35 -0000 1.2 *************** *** 23,29 **** if( !defined('IN_PORTAL')) { ! die('Hacking Attempt'); } ! // -------------------------------------------------------------------------------- // Block Initialization --- 23,29 ---- if( !defined('IN_PORTAL')) { ! die('Hacking Attempt'); } ! // -------------------------------------------------------------------------------- // Block Initialization *************** *** 116,120 **** if( $userdata['session_logged_in'] ) { ! $s_last_visit = create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']); if( $view_postcount ) --- 116,120 ---- if( $userdata['session_logged_in'] ) { ! $s_last_visit = phpBB2::create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']); if( $view_postcount ) *************** *** 239,243 **** 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), ! 'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])])) ); --- 239,243 ---- 'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit), ! 'CURRENT_TIME' => sprintf($lang['Current_time'], phpBB2::create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])), 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[number_format($board_config['board_timezone'])])) ); |