punbb/admin_index.php
author Dan
Thu, 12 Jul 2007 01:04:01 -0400
changeset 2 a8a21e1c7afa
parent 0 f9ffdbd96607
permissions -rw-r--r--
Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     1
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     2
/***********************************************************************
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     3
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     4
  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     5
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     6
  This file is part of PunBB.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     7
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     8
  PunBB is free software; you can redistribute it and/or modify it
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
     9
  under the terms of the GNU General Public License as published
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    10
  by the Free Software Foundation; either version 2 of the License,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    11
  or (at your option) any later version.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    12
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    13
  PunBB is distributed in the hope that it will be useful, but
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    14
  WITHOUT ANY WARRANTY; without even the implied warranty of
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    15
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    16
  GNU General Public License for more details.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    17
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    18
  You should have received a copy of the GNU General Public License
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    19
  along with this program; if not, write to the Free Software
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    20
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    21
  MA  02111-1307  USA
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    22
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    23
************************************************************************/
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    24
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    25
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    26
// Tell header.php to use the admin template
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    27
define('PUN_ADMIN_CONSOLE', 1);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    28
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    29
//define('PUN_ROOT', './');
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    30
//require PUN_ROOT.'include/common.php';
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    31
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    32
global $pun_db, $pun_user, $pun_config, $lang_common;
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    33
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    34
require PUN_ROOT.'include/common_admin.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    35
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    36
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    37
if ($pun_user['g_id'] < PUN_MOD)
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    38
	message($lang_common['No permission']);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    39
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    40
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    41
$action = isset($_GET['action']) ? $_GET['action'] : null;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    42
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    43
// Check for upgrade
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    44
if ($action == 'check_upgrade')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    45
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    46
	if (!ini_get('allow_url_fopen'))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    47
		message('Unable to check for upgrade since \'allow_url_fopen\' is disabled on this system.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    48
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    49
	$fp = @fopen('http://www.punbb.org/latest_version', 'r');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    50
	$latest_version = trim(@fread($fp, 16));
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    51
	@fclose($fp);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    52
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    53
	if ($latest_version == '')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    54
		message('Check for upgrade failed for unknown reasons.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    55
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    56
	$cur_version = str_replace(array('.', 'dev', 'beta', ' '), '', strtolower($pun_config['o_cur_version']));
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    57
	$cur_version = (strlen($cur_version) == 2) ? intval($cur_version) * 10 : intval($cur_version);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    58
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    59
	$latest_version = str_replace('.', '', strtolower($latest_version));
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    60
	$latest_version = (strlen($latest_version) == 2) ? intval($latest_version) * 10 : intval($latest_version);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    61
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    62
	if ($cur_version >= $latest_version)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    63
		message('You are running the latest version of PunBB.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    64
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    65
		message('A new version of PunBB has been released. You can download the latest version at <a href="http://www.punbb.org/">PunBB.org</a>.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    66
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    67
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    68
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    69
// Show phpinfo() output
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    70
else if ($action == 'phpinfo' && $pun_user['g_id'] == PUN_ADMIN)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    71
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    72
	// Is phpinfo() a disabled function?
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    73
	if (strpos(strtolower((string)@ini_get('disable_functions')), 'phpinfo') !== false)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    74
		message('The PHP function phpinfo() has been disabled on this server.');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    75
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    76
	phpinfo();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    77
	exit;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    78
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    79
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    80
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    81
// Get the server load averages (if possible)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    82
if (@file_exists('/proc/loadavg') && is_readable('/proc/loadavg'))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    83
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    84
	// We use @ just in case
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    85
	$fh = @fopen('/proc/loadavg', 'r');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    86
	$load_averages = @fread($fh, 64);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    87
	@fclose($fh);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    88
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    89
	$load_averages = @explode(' ', $load_averages);
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    90
	$server_load = isset($load_averages[2]) ? $load_averages[0].' '.$load_averages[1].' '.$load_averages[2] : 'Not available';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    91
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    92
else if (!in_array(PHP_OS, array('WINNT', 'WIN32')) && preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/i', @exec('uptime'), $load_averages))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    93
	$server_load = $load_averages[1].' '.$load_averages[2].' '.$load_averages[3];
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    94
else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    95
	$server_load = 'Not available';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    96
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    97
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
    98
// Get number of current visitors
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
    99
$result = $pun_db->query('SELECT COUNT(user_id) FROM '.$pun_db->prefix.'online WHERE idle=0') or error('Unable to fetch online count', __FILE__, __LINE__, $pun_db->error());
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   100
$num_online = $pun_db->result($result);
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   101
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   102
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   103
// Get the database system version
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   104
switch ($db_type)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   105
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   106
	case 'sqlite':
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   107
		$db_version = 'SQLite '.sqlite_libversion();
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   108
		break;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   109
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   110
	default:
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   111
		$result = $pun_db->query('SELECT VERSION()') or error('Unable to fetch version info', __FILE__, __LINE__, $pun_db->error());
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   112
		$db_version = $pun_db->result($result);
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   113
		break;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   114
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   115
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   116
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   117
// Collect some additional info about MySQL
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   118
if ($db_type == 'mysql' || $db_type == 'mysqli')
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   119
{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   120
	$db_version = 'MySQL '.$db_version;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   121
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   122
	// Calculate total db size/row count
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   123
	$result = $pun_db->query('SHOW TABLE STATUS FROM `'.$db_name.'`') or error('Unable to fetch table status', __FILE__, __LINE__, $pun_db->error());
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   124
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   125
	$total_records = $total_size = 0;
2
a8a21e1c7afa Let's just say that the API loads. While a decent part of PunBB works, we've still got a LONG way to go, mainly with form validation and security. At this point, Punano is NOT secure as far as privileges and user levels go.
Dan
parents: 0
diff changeset
   126
	while ($status = $pun_db->fetch_assoc($result))
0
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   127
	{
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   128
		$total_records += $status['Rows'];
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   129
		$total_size += $status['Data_length'] + $status['Index_length'];
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   130
	}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   131
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   132
	$total_size = $total_size / 1024;
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   133
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   134
	if ($total_size > 1024)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   135
		$total_size = round($total_size / 1024, 2).' MB';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   136
	else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   137
		$total_size = round($total_size, 2).' KB';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   138
}
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   139
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   140
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   141
// See if MMCache or PHPA is loaded
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   142
if (function_exists('mmcache'))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   143
	$php_accelerator = '<a href="http://turck-mmcache.sourceforge.net/">Turck MMCache</a>';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   144
else if (isset($_PHPA))
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   145
	$php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   146
else
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   147
	$php_accelerator = 'N/A';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   148
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   149
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   150
$page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / Admin';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   151
require PUN_ROOT.'header.php';
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   152
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   153
generate_admin_menu('index');
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   154
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   155
?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   156
	<div class="block">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   157
		<h2>Forum administration</h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   158
		<div id="adintro" class="box">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   159
			<div class="inbox">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   160
				<p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   161
					Welcome to the PunBB administration control panel. From here you can control vital aspects of the forum. Depending on whether you are an administrator or a moderator you can<br /><br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   162
					&nbsp;- organize categories and forums.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   163
					&nbsp;- set forum-wide options and preferences.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   164
					&nbsp;- control permissions for users and guests.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   165
					&nbsp;- view IP statistics for users.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   166
					&nbsp;- ban users.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   167
					&nbsp;- censor words.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   168
					&nbsp;- set up user ranks.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   169
					&nbsp;- prune old posts.<br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   170
					&nbsp;- handle post reports.
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   171
				</p>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   172
			</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   173
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   174
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   175
		<h2 class="block2"><span>Statistics</span></h2>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   176
		<div id="adstats" class="box">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   177
			<div class="inbox">
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   178
				<dl>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   179
					<dt>PunBB version</dt>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   180
					<dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   181
						PunBB <?php echo $pun_config['o_cur_version'] ?> - <a href="admin_index.php?action=check_upgrade">Check for upgrade</a><br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   182
						&copy; Copyright 2002, 2003, 2004, 2005 Rickard Andersson
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   183
					</dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   184
					<dt>Server load</dt>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   185
					<dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   186
						<?php echo $server_load ?> (<?php echo $num_online ?> users online)
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   187
					</dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   188
<?php if ($pun_user['g_id'] == PUN_ADMIN): ?>					<dt>Environment</dt>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   189
					<dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   190
						Operating system: <?php echo PHP_OS ?><br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   191
						PHP: <?php echo phpversion() ?> - <a href="admin_index.php?action=phpinfo">Show info</a><br />
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   192
						Accelerator: <?php echo $php_accelerator."\n" ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   193
					</dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   194
					<dt>Database</dt>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   195
					<dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   196
						<?php echo $db_version."\n" ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   197
<?php if (isset($total_records) && isset($total_size)): ?>						<br />Rows: <?php echo $total_records."\n" ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   198
						<br />Size: <?php echo $total_size."\n" ?>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   199
<?php endif; endif; ?>					</dd>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   200
				</dl>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   201
			</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   202
		</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   203
	</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   204
	<div class="clearer"></div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   205
</div>
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   206
<?php
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   207
f9ffdbd96607 Initial population
Dan
parents:
diff changeset
   208
require PUN_ROOT.'footer.php';