diff options
author | James Atkinson <thefinn@users.sourceforge.net> | 2001-07-23 19:22:27 +0000 |
---|---|---|
committer | James Atkinson <thefinn@users.sourceforge.net> | 2001-07-23 19:22:27 +0000 |
commit | ce582a0037b4d544a33dd4ce8905ea5c113ddc62 (patch) | |
tree | 1b2f0209d23844ebc31e0e51e98f8cb853c0ab88 /phpBB/admin/admin_index.php | |
parent | 298ab8e71530afe3e06f071d04dd7757d4f35c9d (diff) | |
download | forums-ce582a0037b4d544a33dd4ce8905ea5c113ddc62.tar forums-ce582a0037b4d544a33dd4ce8905ea5c113ddc62.tar.gz forums-ce582a0037b4d544a33dd4ce8905ea5c113ddc62.tar.bz2 forums-ce582a0037b4d544a33dd4ce8905ea5c113ddc62.tar.xz forums-ce582a0037b4d544a33dd4ce8905ea5c113ddc62.zip |
Almost done, just gotta figure out how to get the database size
git-svn-id: file:///svn/phpbb/trunk@736 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_index.php')
-rw-r--r-- | phpBB/admin/admin_index.php | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/phpBB/admin/admin_index.php b/phpBB/admin/admin_index.php index d84a6742f3..791a115bb0 100644 --- a/phpBB/admin/admin_index.php +++ b/phpBB/admin/admin_index.php @@ -73,6 +73,24 @@ $posts_per_day = sprintf("%.2f", $total_posts / $boarddays); $topics_per_day = sprintf("%.2f", $total_topics / $boarddays); $users_per_day = sprintf("%.2f", $total_users / $boarddays); +$avatar_dir_size = 0; + +if ($avatar_dir = opendir($phpbb_root_path . $board_config['avatar_path'])) +{ + while($file = readdir($avatar_dir)) + { + if($file != "." && $file != "..") + { + $avatar_dir_size += filesize($file); + } + } + closedir($openDir); +} +if($avatar_dir_size > 0) +{ + $avatar_dir_size /= 1024; +} + if($posts_per_day > $total_posts) { $posts_per_day = $total_posts; @@ -95,7 +113,8 @@ $template->assign_vars(array("NUMBER_OF_POSTS" => $total_posts, "STARTDATE" => $start_date, "POSTS_PER_DAY" => $posts_per_day, "TOPICS_PER_DAY" => $topics_per_day, - "USERS_PER_DAY" => $users_per_day)); + "USERS_PER_DAY" => $users_per_day, + "AVATAR_DIR_SIZE" => $avatar_dir_size)); // // End forum statistics // @@ -214,8 +233,11 @@ if($online_count) $count++; $ip_address = decode_ip($onlinerow[$i]['session_ip']); - $host_name = gethostbyaddr($ip_address); - $ip_address = $ip_address . " ($host_name)"; +// +// This resolves the users IP to a host name, but it REALLY slows the page down +// +// $host_name = gethostbyaddr($ip_address); +// $ip_address = $ip_address . " ($host_name)"; if(empty($username)) { |