<?php
    
// stats.php
    
include("includes/slapper_stats.php");
    
import_request_variables("GP""v_");
?>
<html>
<head><title>PHP Pageslapper - Stats for http://bogomip.net/</title></head>
<body>
<?php
    
// make sure we don't have any stats waiting to be processed
    
process_stats();
    
    switch(
$v_mode) {
    case 
"alldays":
        
hitlist();
        break;
    case 
"5days":
        
hitlist(5);
        break;
    case 
"useragents":
        
useragents();
        break;
    case 
"mostleast":
        
mostleast();
        break;
    case 
"visit_today":
        
visit_today();
        break;
    case 
"welcome":
        
welcome();
        break;
    default:
        print(
"<center>");
        
visit_today();
        print(
"<hr/>");
        
mostleast();
        print(
"<hr/>");
        
hitlist(3);
        print(
"<hr/>");
        
useragents();
        print(
"</center>\n");
        break;
    }
    
    
mysql_close($sql);
?>
<center>
    <font size="-1">PHP Pageslapper v0.1 by <a href="http://bogomip.net/">Jacob Cord</a>,
    &copy;2004</font>
</center>

</body>
</html>