[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14453 - gauger
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14453 - gauger |
Date: |
Thu, 17 Feb 2011 22:43:10 +0100 |
Author: bartpolot
Date: 2011-02-17 22:43:10 +0100 (Thu, 17 Feb 2011)
New Revision: 14453
Added:
gauger/nodata.png
Modified:
gauger/plot.php
gauger/style.css
gauger/template_graph.php
gauger/template_host.php
Log:
Changed alt text for imanges, added no data notice
Added: gauger/nodata.png
===================================================================
(Binary files differ)
Property changes on: gauger/nodata.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: gauger/plot.php
===================================================================
--- gauger/plot.php 2011-02-17 21:26:16 UTC (rev 14452)
+++ gauger/plot.php 2011-02-17 21:43:10 UTC (rev 14453)
@@ -61,7 +61,10 @@
// print_r($g);
// die($cmd);
- if(!$c) die('NODATA');
+ if(!$c) {
+ header('Location: nodata.png');
+ die();
+ }
$cmd = "echo '$cmd' | gnuplot";
if(get_param('raw_cmd') == 'true')
@@ -87,5 +90,10 @@
}
$out = plot($g, $h);
-header('Content-type: image/png');
-die($out);
+if($out) {
+ header('Content-type: image/png');
+ die($out);
+} else {
+ header('Location: nodata.png');
+ die();
+}
Modified: gauger/style.css
===================================================================
--- gauger/style.css 2011-02-17 21:26:16 UTC (rev 14452)
+++ gauger/style.css 2011-02-17 21:43:10 UTC (rev 14453)
@@ -36,7 +36,8 @@
background-color: white;
border: 1px;
border-style: solid;
- border-color: #D3D3D3;
+ border-color: #D3D3D3;
+ text-align: center;
}
a:link {
Modified: gauger/template_graph.php
===================================================================
--- gauger/template_graph.php 2011-02-17 21:26:16 UTC (rev 14452)
+++ gauger/template_graph.php 2011-02-17 21:43:10 UTC (rev 14453)
@@ -1,3 +1,3 @@
<h1>SHOWING GRAPH: <?php echo get_counter_name($currentg) ?></h1>
-<img class="plot" src="plot.php?g=<?php echo $currentg ?>" alt="PNG not found
:("/>
+<img class="plot" src="plot.php?g=<?php echo $currentg ?>" alt="loading..."/>
<p>TODO: Select hosts | Range | Normalize </p>
Modified: gauger/template_host.php
===================================================================
--- gauger/template_host.php 2011-02-17 21:26:16 UTC (rev 14452)
+++ gauger/template_host.php 2011-02-17 21:43:10 UTC (rev 14453)
@@ -31,7 +31,7 @@
<br>Add counter
<br/>Colors
</th>
- <td><img class="plot" src="plot.php?h=<?php echo
"$current&g=$counter" ?>" alt="PNG not found :("/></td>
+ <td><img class="plot" src="plot.php?h=<?php echo
"$current&g=$counter" ?>" alt="loading..."/></td>
</tr>
<?php endforeach; ?>
</table>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14453 - gauger,
gnunet <=