summaryrefslogtreecommitdiffstats
path: root/frontends/php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php')
-rw-r--r--frontends/php/actions.php2
-rw-r--r--frontends/php/chart3.php11
2 files changed, 11 insertions, 2 deletions
diff --git a/frontends/php/actions.php b/frontends/php/actions.php
index 10a5d274..abd461d6 100644
--- a/frontends/php/actions.php
+++ b/frontends/php/actions.php
@@ -40,8 +40,6 @@
show_table_header("$description<BR>$expression");
?>
-<hr>
-
<?
$sql="select a.actionid,a.triggerid,u.alias,a.good,a.delay,a.subject,a.message from actions a,users u where a.userid=u.userid and a.triggerid=$triggerid order by u.alias, a.good desc";
$result=DBselect($sql);
diff --git a/frontends/php/chart3.php b/frontends/php/chart3.php
index c77d32fa..bc06d6cd 100644
--- a/frontends/php/chart3.php
+++ b/frontends/php/chart3.php
@@ -268,6 +268,17 @@ else
// ImageLine($im,$shiftX,$shiftYup+$sizeY/2,$sizeX+$shiftX,$shiftYup+$sizeY/2,$green);
}
+ $i=intval( 900*(($now+3*3600)%(24*3600))/(24*3600));
+ $x1=$sizeX*($i-$minX)/($maxX-$minX);
+ $y1=$sizeY*($avg[$i]-$minY)/($maxY-$minY);
+ $x2=$x1;
+ $y2=0;
+ $y1=$sizeY-$y1;
+ $y2=$sizeY-$y2;
+
+// ImageDashedLine($im,$x1+$shiftX,$y1+$shiftYup,$x2+$shiftX,$y2+$shiftYup,$black);
+ ImageDashedLine($im,$x1+$shiftX,$shiftYup,$x2+$shiftX,$sizeY+$shiftYup,$black);
+
if($nodata == 0)
{
for($i=0;$i<=$sizeY;$i+=$sizeY/5)