--- wp-content/plugins/wp-statpress/statpress.php.orig	2008-12-11 12:26:08.000000000 +0100
+++ wp-content/plugins/wp-statpress/statpress.php	2008-12-11 12:54:00.000000000 +0100
@@ -66,6 +66,7 @@
 		update_option('statpress_collectloggeduser', $_POST['statpress_collectloggeduser']);
 		update_option('statpress_autodelete', $_POST['statpress_autodelete']);
 		update_option('statpress_daysinoverviewgraph', $_POST['statpress_daysinoverviewgraph']);
+		update_option('statpress_resultsinlastitems', $_POST['statpress_resultsinlastitems']);
 		update_option('statpress_mincap', $_POST['statpress_mincap']);
 		update_option('statpress_donotcollectspider', $_POST['statpress_donotcollectspider']);
 		
@@ -97,6 +98,18 @@
 	<option value="30" <?php if(get_option('statpress_daysinoverviewgraph') == 30) print "selected"; ?>>30</option>
 	<option value="50" <?php if(get_option('statpress_daysinoverviewgraph') == 50) print "selected"; ?>>50</option>
 	</select></td></tr>
+	
+	<tr><td><?php  _e('Results in Last items','statpress'); ?>
+	<select name="statpress_resultsinlastitems">
+	<option value="5" <?php if(get_option('statpress_resultsinlastitems') == 5) print "selected"; ?>>5</option>
+	<option value="10" <?php if(get_option('statpress_resultsinlastitems') == 10) print "selected"; ?>>10</option>
+	<option value="20" <?php if(get_option('statpress_resultsinlastitems') == 20) print "selected"; ?>>20</option>
+	<option value="30" <?php if(get_option('statpress_resultsinlastitems') == 30) print "selected"; ?>>30</option>
+	<option value="40" <?php if(get_option('statpress_resultsinlastitems') == 40) print "selected"; ?>>40</option>
+	<option value="50" <?php if(get_option('statpress_resultsinlastitems') == 50) print "selected"; ?>>50</option>
+	<option value="99" <?php if(get_option('statpress_resultsinlastitems') == 99) print "selected"; ?>>99</option>
+	</select></td></tr>
+
 
 	<tr><td><?php _e('Minimum capability to view stats','statpress'); ?>
 	<select name="statpress_mincap">
@@ -540,8 +553,8 @@
 
 
 
-
-	$querylimit="LIMIT 40";
+	$limit_x="LIMIT ".get_option('statpress_resultsinlastitems');
+	$querylimit=$limit_x;
 	    
 	# Tabella Last hits
 	print "<div class='wrap'><h2>". __('Last hits','statpress'). "</h2><table class='widefat'><thead><tr><th scope='col'>". __('Date','statpress'). "</th><th scope='col'>". __('Time','statpress'). "</th><th scope='col'>IP</th><th scope='col'>". __('Domain','statpress'). "</th><th scope='col'>". __('Page','statpress'). "</th><th scope='col'>OS</th><th scope='col'>Browser</th><th scope='col'>Feed</th></tr></thead>";

