|
From: Jon O. <jon...@us...> - 2007-09-09 20:54:40
|
Update of /cvsroot/mxbb/mx_sitestats In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6139 Modified Files: adminstats.php counter.php fastestusers.php mostintopics.php sitestaff.php topposters.php topposters_tiny.php topstarters.php toptopics.php Log Message: for 2.9.x Index: topstarters.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topstarters.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** topstarters.php 29 Jun 2006 19:08:04 -0000 1.6 --- topstarters.php 9 Sep 2007 20:53:41 -0000 1.7 *************** *** 78,82 **** 'PERCENTAGE' => $percent_array['percentage'], 'BAR' => $percent_array['bar_percent'], ! 'URL' => append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'TOPICS' => $user_data[$i]['num_topics'] ) ); --- 78,82 ---- 'PERCENTAGE' => $percent_array['percentage'], 'BAR' => $percent_array['bar_percent'], ! 'URL' => mx_append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'TOPICS' => $user_data[$i]['num_topics'] ) ); Index: adminstats.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/adminstats.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** adminstats.php 29 Jun 2006 19:08:03 -0000 1.5 --- adminstats.php 9 Sep 2007 20:53:41 -0000 1.6 *************** *** 73,77 **** $total_topics = $ss_phpbb->get_db_stat( 'topiccount' ); ! $start_date = create_date( $board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone'] ); $boarddays = max( 1, round( ( time() - $board_config['board_startdate'] ) / 86400 ) ); --- 73,77 ---- $total_topics = $ss_phpbb->get_db_stat( 'topiccount' ); ! $start_date = phpBB2::create_date( $board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone'] ); $boarddays = max( 1, round( ( time() - $board_config['board_startdate'] ) / 86400 ) ); *************** *** 264,268 **** if ( ( intval( $row[$i]['config_value'] ) > 0 ) && ( $row[$i]['config_name'] == 'record_online_date' ) ) { ! $most_users_date = create_date( $board_config['default_dateformat'], intval( $row[$i]['config_value'] ), $board_config['board_timezone'] ); } else if ( ( intval( $row[$i]['config_value'] ) > 0 ) && ( $row[$i]['config_name'] == 'record_online_users' ) ) --- 264,268 ---- if ( ( intval( $row[$i]['config_value'] ) > 0 ) && ( $row[$i]['config_name'] == 'record_online_date' ) ) { ! $most_users_date = phpBB2::create_date( $board_config['default_dateformat'], intval( $row[$i]['config_value'] ), $board_config['board_timezone'] ); } else if ( ( intval( $row[$i]['config_value'] ) > 0 ) && ( $row[$i]['config_name'] == 'record_online_users' ) ) *************** *** 299,306 **** $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, --- 299,306 ---- $dbsize, $avatar_dir_size, ! phpBB2::create_date( $board_config['default_dateformat'], $newest_user_date, $board_config['board_timezone'] ), ! sprintf( '<a href="' . mx_append_sid( PHPBB_URL . 'profile.' . $phpEx . '?mode=viewprofile&' . POST_USERS_URL . '=' . $newest_uid ) . '">' . $newest_user . '</a>' ), $most_users_date, $most_users, Index: topposters_tiny.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topposters_tiny.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** topposters_tiny.php 29 Jun 2006 19:08:04 -0000 1.5 --- topposters_tiny.php 9 Sep 2007 20:53:41 -0000 1.6 *************** *** 66,70 **** 'CLASS' => ( !( $i + 1 % 2 ) ) ? $theme['td_class2'] : $theme['td_class1'], 'USERNAME' => $user_data[$i]['username'], ! 'URL' => append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'POSTS' => $user_data[$i]['user_posts'] ) ); --- 66,70 ---- 'CLASS' => ( !( $i + 1 % 2 ) ) ? $theme['td_class2'] : $theme['td_class1'], 'USERNAME' => $user_data[$i]['username'], ! 'URL' => mx_append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'POSTS' => $user_data[$i]['user_posts'] ) ); Index: topposters.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topposters.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** topposters.php 29 Jun 2006 19:08:04 -0000 1.5 --- topposters.php 9 Sep 2007 20:53:41 -0000 1.6 *************** *** 75,79 **** 'PERCENTAGE' => $percent_array['percentage'], 'BAR' => $percent_array['bar_percent'], ! 'URL' => append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'POSTS' => $user_data[$i]['user_posts'] ) ); --- 75,79 ---- 'PERCENTAGE' => $percent_array['percentage'], 'BAR' => $percent_array['bar_percent'], ! 'URL' => mx_append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'POSTS' => $user_data[$i]['user_posts'] ) ); Index: sitestaff.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/sitestaff.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sitestaff.php 29 Jun 2006 19:08:04 -0000 1.5 --- sitestaff.php 9 Sep 2007 20:53:41 -0000 1.6 *************** *** 63,67 **** { $forum_id = $row['forum_id']; ! $staff2[$row['user_id']][$row['forum_id']] = 'ø <a href="' . append_sid( PHPBB_URL . "viewforum.$phpEx?f=$forum_id" ) . '" class="genmed">' . $row['forum_name'] . '</a><br />'; } --- 63,67 ---- { $forum_id = $row['forum_id']; ! $staff2[$row['user_id']][$row['forum_id']] = 'ø <a href="' . mx_append_sid( PHPBB_URL . "viewforum.$phpEx?f=$forum_id" ) . '" class="genmed">' . $row['forum_name'] . '</a><br />'; } *************** *** 132,141 **** } $row = $db->sql_fetchrow( $result ); ! $last_post = ( isset( $row['post_time'] ) ) ? '<a href="' . append_sid( PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . "=$row[post_id]#$row[post_id]" ) . '" class="gensmall">' . create_date( $board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone'] ) . '</a>' : $lang['None']; ! $mailto = ( $board_config['board_email_form'] ) ? append_sid( PHPBB_URL . "profile.$phpEx?mode=email&" . POST_USERS_URL . '=' . $staff['user_id'] ) : 'mailto:' . $staff['user_email']; $mail = ( $staff['user_email'] ) ? '<a href="' . $mailto . '"><img src="' . PHPBB_URL . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>' : ''; ! $pmto = append_sid( PHPBB_URL . "privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$staff[user_id]" ); $pm = '<a href="' . $pmto . '"><img src="' . PHPBB_URL . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>'; --- 132,141 ---- } $row = $db->sql_fetchrow( $result ); ! $last_post = ( isset( $row['post_time'] ) ) ? '<a href="' . mx_append_sid( PHPBB_URL . "viewtopic.$phpEx?" . POST_POST_URL . "=$row[post_id]#$row[post_id]" ) . '" class="gensmall">' . phpBB2::create_date( $board_config['default_dateformat'], $row['post_time'], $board_config['board_timezone'] ) . '</a>' : $lang['None']; ! $mailto = ( $board_config['board_email_form'] ) ? mx_append_sid( PHPBB_URL . "profile.$phpEx?mode=email&" . POST_USERS_URL . '=' . $staff['user_id'] ) : 'mailto:' . $staff['user_email']; $mail = ( $staff['user_email'] ) ? '<a href="' . $mailto . '"><img src="' . PHPBB_URL . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>' : ''; ! $pmto = mx_append_sid( PHPBB_URL . "privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$staff[user_id]" ); $pm = '<a href="' . $pmto . '"><img src="' . PHPBB_URL . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>'; *************** *** 186,194 **** 'RANK' => $rank, 'RANK_IMAGE' => $rank_image, ! 'U_NAME' => append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$staff[user_id]" ), 'NAME' => $staff[username], 'LEVEL' => $level, 'FORUMS' => $forums, ! 'JOINED' => create_date( $board_config['default_dateformat'], $staff['user_regdate'], $board_config['board_timezone'] ), 'PERIOD' => sprintf( $lang['SiteStats_Staff_Period'], $memberdays ), 'POSTS' => $staff['user_posts'], --- 186,194 ---- 'RANK' => $rank, 'RANK_IMAGE' => $rank_image, ! 'U_NAME' => mx_append_sid( PHPBB_URL . "profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$staff[user_id]" ), 'NAME' => $staff[username], 'LEVEL' => $level, 'FORUMS' => $forums, ! 'JOINED' => phpBB2::create_date( $board_config['default_dateformat'], $staff['user_regdate'], $board_config['board_timezone'] ), 'PERIOD' => sprintf( $lang['SiteStats_Staff_Period'], $memberdays ), 'POSTS' => $staff['user_posts'], Index: fastestusers.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/fastestusers.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fastestusers.php 29 Jun 2006 19:08:04 -0000 1.6 --- fastestusers.php 9 Sep 2007 20:53:41 -0000 1.7 *************** *** 78,82 **** 'PERCENTAGE' => number_format( $user_data[$i]['rate'], 2 ), 'BAR' => round( $user_data[$i]['rate'] * $cst ), ! 'URL' => append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'RATE' => round( $user_data[$i]['rate'], 2 ), 'TIME' => $user_data[$i]['time_on_forum'] ) --- 78,82 ---- 'PERCENTAGE' => number_format( $user_data[$i]['rate'], 2 ), 'BAR' => round( $user_data[$i]['rate'] * $cst ), ! 'URL' => mx_append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u=' . $user_data[$i]['user_id'] ), 'RATE' => round( $user_data[$i]['rate'], 2 ), 'TIME' => $user_data[$i]['time_on_forum'] ) Index: mostintopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/mostintopics.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mostintopics.php 29 Jun 2006 19:08:04 -0000 1.5 --- mostintopics.php 9 Sep 2007 20:53:41 -0000 1.6 *************** *** 73,77 **** 'TITLE' => $topic_data[$i]['topic_title'], 'RATE' => $topic_data[$i]['k'], ! 'URL' => append_sid( PHPBB_URL . "viewtopic.$phpEx?t=" . $topic_data[$i]['topic_id'] ) ) ); } --- 73,77 ---- 'TITLE' => $topic_data[$i]['topic_title'], 'RATE' => $topic_data[$i]['k'], ! 'URL' => mx_append_sid( PHPBB_URL . "viewtopic.$phpEx?t=" . $topic_data[$i]['topic_id'] ) ) ); } *************** *** 104,108 **** 'TITLE' => $topic_data[$i]['topic_title'], 'RATE' => $topic_data[$i]['k'], ! 'URL' => append_sid( PHPBB_URL . "viewtopic.$phpEx?t=" . $topic_data[$i]['topic_id'] ) ) ); } --- 104,108 ---- 'TITLE' => $topic_data[$i]['topic_title'], 'RATE' => $topic_data[$i]['k'], ! 'URL' => mx_append_sid( PHPBB_URL . "viewtopic.$phpEx?t=" . $topic_data[$i]['topic_id'] ) ) ); } Index: counter.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/counter.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** counter.php 29 Jun 2006 19:08:04 -0000 1.4 --- counter.php 9 Sep 2007 20:53:41 -0000 1.5 *************** *** 76,80 **** else { ! $u_more_stats = append_sid( PORTAL_URL . "index.$phpEx?page=" . $sitestats_config['more_stats_page'] ); $img_more_stats = $module_root_path . 'images/icon_stat.gif'; $template->assign_block_vars( 'more_stats_sw', array() ); --- 76,80 ---- else { ! $u_more_stats = mx_append_sid( PORTAL_URL . "index.$phpEx?page=" . $sitestats_config['more_stats_page'] ); $img_more_stats = $module_root_path . 'images/icon_stat.gif'; $template->assign_block_vars( 'more_stats_sw', array() ); Index: toptopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/toptopics.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** toptopics.php 29 Jun 2006 19:08:04 -0000 1.5 --- toptopics.php 9 Sep 2007 20:53:41 -0000 1.6 *************** *** 77,81 **** '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'] ) ) ); } --- 77,81 ---- 'TITLE' => $topic_data[$i]['topic_title'], 'VIEWS' => $topic_data[$i]['topic_views'], ! 'URL' => mx_append_sid( PHPBB_URL . 'viewtopic.php?t=' . $topic_data[$i]['topic_id'] ) ) ); } *************** *** 105,109 **** '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'] ) ) ); } --- 105,109 ---- 'TITLE' => $topic_data[$i]['topic_title'], 'REPLIES' => $topic_data[$i]['topic_replies'], ! 'URL' => mx_append_sid( PHPBB_URL . 'viewtopic.php?t=' . $topic_data[$i]['topic_id'] ) ) ); } |