From: Enrico Tassi Date: Wed, 21 Dec 2005 16:15:14 +0000 (+0000) Subject: fix X-Git-Tag: make_still_working~7935 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=caf1c867278e1d78ec25b9e8bd823847c7723f95;p=helm.git fix --- 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));