<?php
define('SQL_GET_ACT_DATA', "SELECT UserName,iif(datetime('%s', Start_time) == 0, '', Start_Time),iif(datetime('%s', Stop_Time) == 0, '', Stop_time),Call_From,Call_To,Ip,((Time_On-(Time_On%3600))/3600)'||'(((Time_On%3600)-(Time_On%60))/60)'||'(Time_On%60),In_Bytes,Out_Bytes,Billing_Minus,Terminate_Cause,Port FROM sk_actions WHERE "); ?>
