From caf1c867278e1d78ec25b9e8bd823847c7723f95 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Wed, 21 Dec 2005 16:15:14 +0000 Subject: [PATCH] fix --- helm/matita/scripts/public_html/bench.php | 2 +- helm/matita/scripts/public_html/composequery.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/helm/matita/scripts/public_html/bench.php b/helm/matita/scripts/public_html/bench.php index 278e4775d..d694307ac 100644 --- a/helm/matita/scripts/public_html/bench.php +++ b/helm/matita/scripts/public_html/bench.php @@ -55,7 +55,7 @@ function minus1_to_all($s){ } function links_of($name,$q,$limits){ - echo "
  • $name    "; + echo "
  • $name :   "; foreach($limits as $l) { $q1 = str_replace(urlencode("***"), " LIMIT 0,$l", $q); echo "" . diff --git a/helm/matita/scripts/public_html/composequery.php b/helm/matita/scripts/public_html/composequery.php index 683df4daa..49a943e47 100644 --- a/helm/matita/scripts/public_html/composequery.php +++ b/helm/matita/scripts/public_html/composequery.php @@ -21,6 +21,7 @@ } $gb = $_GET['groupby']; + $limit = $_GET['limit']; if($gb != "--") $what = "mark, SEC_TO_TIME(SUM(TIME_TO_SEC(time))) as sum_time, SEC_TO_TIME(SUM(TIME_TO_SEC(timeuser))) as sum_timeuser"; else @@ -33,6 +34,11 @@ if( $gb != "--"){ $query = $query. "group by $gb"; } + + if($limit != "--") { + $query = $query. " LIMIT 0,$limit"; + } + $query = $query. ";"; header("Location: showquery.php?query=".urlencode("Custom:@@@" . $query)); -- 2.39.2