<h2>Admin Sessions</h2>
<div>Last 50</div><ol>
<?PHP
-$q="SELECT * FROM admin_sessions where name <> 'Patrick McGuire' ORDER BY id DESC LIMIT 50";
+$q="SELECT * FROM admin_sessions where username <> 'Patrick McGuire' ORDER BY id DESC LIMIT 50";
$r = $petition->query($q);
while($d = mysqli_fetch_array($r)){
echo "<li title='$d[action_on]'>$d[ip] $d[username] $d[php_page]</li>";
// graph latest sma
$trader_sma_real[] = intval($count);
$trader_sma_timePeriod++;
- $trader_sma = trader_sma($trader_sma_real,$trader_sma_timePeriod);
+ $trader_sma = trader_sma($trader_sma_real,7);
//print_r($trader_sma);
$the_index = $trader_sma_timePeriod - 1;
$this_sma = $trader_sma[$the_index]; // should be last value?
visible: true,
showInLegend: true,
yValueFormatString: "#####",
- name: "Simple Moving Average",
+ name: "7 Day Simple Moving Average",
dataPoints: [
<?PHP echo $chart7; ?>
]