X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fscripts%2Fpublic_html%2Fshowquery.php;h=dfa0b473068144d1e12e90c6718e45822b7a3d60;hb=20377cd037f6cc5eb9c6a5664354a8a0189d3f4f;hp=007f37217daa968adc5444d4a26bfcc82b94e4f9;hpb=7fbb1eb57d3d8fffdf5398bc3b16adea58f143ed;p=helm.git diff --git a/helm/software/matita/scripts/public_html/showquery.php b/helm/software/matita/scripts/public_html/showquery.php index 007f37217..dfa0b4730 100644 --- a/helm/software/matita/scripts/public_html/showquery.php +++ b/helm/software/matita/scripts/public_html/showquery.php @@ -7,47 +7,13 @@ $qs = array(); foreach($nqs as $v){ $x = explode("@@@",$v); - $qs[$x[0]] = $x[1]; + if ($x[1] == NULL) { + $qs["Unnamed"] = $x[0]; + } else { + $qs[$x[0]] = $x[1]; + } } -function prettify($s,$name) { - if (preg_match("/^[0-9]{12}$/",$s)) { - $year = substr($s,0,4); - $month = substr($s,4,2); - $day = substr($s,6,2); - $hour = substr($s,8,2); - $minute = substr($s,10,2); - return $day . "/" . $month . "/" . $year . " " . $hour . ":" . $minute; - } else if ($name == "sum_time" || $name == "sum_timeuser"){ - $min = floor($s / 6000); - $sec = floor(($s - $min * 6000) / 100); - $cents = $s % 100; - return $min . "m" . $sec . "." . $cents . "s"; - } else - return $s; -} - -function printer($q){ - static $i = 0; - if ( $i == 0) { - echo "
- print $q; ?> + echo $q; ?>