Skip to content
Find file
5d1172d
17 lines (15 sloc) 407 Bytes
<?php
include_once 'lib/commonChart.inc.php';
include_once("lib/login/session.inc.php");
include_once("lib/error.inc.php");
try {
if($database->isProtected($chartId) == false || login_check()) {
echo preg_replace('/"(-?\d+\.?\d*)"/', '$1', json_encode($database->queryAnalog($date,$chartId,$period)));
}
else {
echo "{status: \"access denied\"}";
}
}
catch(Exception $e) {
sendAjaxError($e);
}
Jump to Line
Something went wrong with that request. Please try again.