- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
- <title>
- <?php
- // NJS 2006-06-14: Added support for multiple archives.
- print $GLOBALS["config_vars"]["general"]["repository_name"][$GLOBALS["config_vars"]["archivename"]];
- print ': Usage Statistics';
- ?>
- </title>
- <!-- Configure these URLs appropriately! -->
- <link rel="stylesheet" type="text/css" href="http://eprints.otago.ac.nz/eprints.css" title="screen stylesheet" media="screen" />
- <link rel="Top" href="http://eprints.otago.ac.nz/" />
- <link rel="Search" href="http://eprints.otago.ac.nz/perl/search" />
- <link rel="Help" href="http://eprints.otago.ac.nz/help" />
-
- </head>
- <body>
-
- <a id="top"></a>
-
- <!-- Insert page header stuff here. -->
-
- <h1>
- <?php
- // NJS 2006-06-14: Added support for multiple archives.
- print $GLOBALS["config_vars"]["general"]["repository_name"][$GLOBALS["config_vars"]["archivename"]];
- print ': Usage Statistics<br />';
- print '<span style="font-size:small;color:#cccccc;">[Last updated ' .
- $sql->getLastProc() . ']</span>';
- print '</h1>';
-
- // If we're displaying the global stats page, provide a list of all
- // the hosted repositories, BUT only if there is more than one.
- if ( ( $GLOBALS["config_vars"]["archivename"] == 'default' )
- and ( count( $GLOBALS["config_vars"]["general"]["repository_name"] ) > 1 ) )
- {
- print '<p>Note that these statistics are accumulated across <em>all</em> of
- the following repositories hosted on this server:</p>';
- print '<ul>';
- foreach ( $GLOBALS["config_vars"]["general"]["repository_name"] as $id => $name )
- {
- if ( $id != 'default' )
- print '<li><a href="'
- . $GLOBALS["config_vars"]["general"]["eprints_location"][$id]
- . '/es">' . $name . '</a></li>';
- }
- print '</ul>';
- print '</p>If you want usage statistics specific to only one of these
- repositories, please follow the appropriate link above.</p>';
-
- print '<hr />';
- }
- ?>
-
- <!-- Insert your blurb here. -->
-