Added Cached Realtime Carrier Stats option to System Settings to have the Carrier Log Stats generated once per minute system-wide instead of every time the realtime report refreshes on every screen.

git-svn-id: svn://192.168.202.10@2414 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2015-11-24 17:41:43 +00:00
parent 7c7083060c
commit c833a45eb8
9 changed files with 598 additions and 175 deletions
+15
View File
@@ -1245,6 +1245,21 @@ function MathZDC($dividend, $divisor, $quotient=0)
}
}
function use_archive_table($table_name)
{
global $link;
$tbl_stmt="show tables like '".$table_name."_archive'";
$tbl_rslt=mysql_to_mysqli($tbl_stmt, $link);
if (mysqli_num_rows($tbl_rslt)>0)
{
$tbl_row=mysqli_fetch_row($tbl_rslt);
return $tbl_row[0];
}
else
{
return $table_name;
}
}
# function to print/echo content, options for length, alignment and ordered internal variables are included
function _QXZ($English_text, $sprintf=0, $align="l", $v_one='', $v_two='', $v_three='', $v_four='', $v_five='', $v_six='', $v_seven='', $v_eight='', $v_nine='')