diff --git a/includes/tsmmonitor.php b/includes/tsmmonitor.php
index 95ff598..4ed8234 100644
--- a/includes/tsmmonitor.php
+++ b/includes/tsmmonitor.php
@@ -295,10 +295,9 @@ class TSMMonitor {
$linebox .= "";
if ($end > 1) {
- return '
'.$fp.' '.$pp.' '.$numbers.' '.$np.' '.$lp.'
'.$linebox.'
';
- } else {
- return ''.$linebox.'
';
+ $navline = $fp.' '.$pp.' '.$numbers.' '.$np.' '.$lp;
}
+ return '';
}
@@ -1078,7 +1077,13 @@ class TSMMonitor {
$sql = "SELECT * from log_polldlog where timestamp > '".(time()-86400)."' order by timestamp desc";
$_SESSION["lastsql"] = $sql;
- $rs = $this->fetchSplitArrayDB($sql,20);
+ if ($_SESSION["lines"][$this->GETVars['qq']] != "") {
+ $lpp = $_SESSION["lines"][$this->GETVars['qq']];
+ } else {
+ $lpp = 20;
+ }
+
+ $rs = $this->fetchSplitArrayDB($sql,$lpp);
foreach ($rs as $row) {
$modrow = array();
while(list($keycell, $valcell) = each($row)) {
diff --git a/index.php b/index.php
index fdfc6ab..840b9af 100644
--- a/index.php
+++ b/index.php
@@ -95,6 +95,16 @@ include_once "includes/page_head.php";
// show polld status
} else if ($tsmmonitor->GETVars['qq'] == "polldstat") {
+ $lines = $_POST["lpp"];
+ if ($lines != "") {
+ if (!isset($_SESSION["lines"])){
+ $temp = array();
+ $temp[$tsmmonitor->GETVars['qq']] = $lines;
+ $_SESSION["lines"] = $temp;
+ } else {
+ $_SESSION["lines"][$tsmmonitor->GETVars['qq']] = $lines;
+ }
+ }
echo $tsmmonitor->getPollDStat();
// show serverlist