A
download getcall.php
Language: PHP
LOC: 95
Project Info
Total ISP(total-isp)
Server: SourceForge
Type: cvs
...orge\t\total‑isp\total‑isp\
   abn.php
   addnew.php
   addnote.php
   addpay.php
   addsub.php
   addtime.php
   aliasadd.php
   answer.php
   approvelink.php
   ask.php
   autobill.php
   autobillpost.php
   backuplink.php
   batchtax.php
   Blocks-check.php
   Blocks-oldmail.php
   buildmenu.php
   business-check.php
   buytime.php
   cachemgr.php
   callanalysis.php
   calls.php
   callweekall.php
   ccemail.php
   changes.php
   checkmail.php
   cli.php
   clicheck.php
   config.php
   createwebdir.php
   credit.php
   creditpost.php
   cvimage.php
   dbspec.sql
   dealer.php
   dealeredit.php
   dealereditsave.php
   dealermenu.php
   dealerspecial-check.php
   dealerspecial.php
   dealersummary.php
   dig.php
   dnstest.php
   domainadd.php
   dschurn.php
   dsused.php
   edit.php
   editadd.php
   emailip.php
   expire.php
   extraadd.php
   faq.php
   firstpayments.php
   fixedip.dat
   fixedip.ph
   fixedip.php
   frames.php
   frconten.php
   frmain.php
   getcall.php
   gstinc.inc.php
   gsttest.php
   hms.inc.php
   index.php
   invoicepost.php
   invoices.php
   IPAD-check.php
   ipadmail.dat
   jump.php
   kick.php
   kickall.php
   killed.php
   lastaccess.php
   lastcall.php
   lastpasswords.php
   list.php
   listpay.php
   listpurchase-cash.php
   listpurchase-cheque.php
   listpurchase-code.php
   listpurchase-dupes.php
   listpurchase-exact.php
   listpurchase-group.php
   listpurchase-summary.php
   listpurchase-supplier.php
   ...purchase-unapproved.php
   listpurchase.php
   lm.inc.php
   loginfail.php
   mail.php
   mailadd.php
   mailusr.php
   monthpurch.php
   mysql.inc.php
   names.php
   newcustomer.php
   nextcall.php
   nosubs.php
   orphans.php
   password.php
   payimage.php
   payment.php
   payreport.php
   payview.php
   pdf-daily-sum.php
   pdfprint.inc.php
   permanent-check.php
   phpinfo.php
   phptest.php
   ping.php
   purchase-delete.php
   purchaseedit.php
   purchaseindex.php
   purchasing.php
   qchar.php
   radiususers.php
   radtest.php
   reallysure.php
   recall.php
   redir.php
   report.php
   reseller-check.php
   resellview.php
   sampledata.sql
   searchfaq.php
   searchfaqres.php
   sendmail.php
   staff.php
   subedit.php
   subeditadd.php
   submituser.php
   subnames.php
   taxpdf.php
   testbatch.php
   testpdf-day.php
   testpost.php
   testtaxpdf.php
   testuser.php
   testwho.php
   thundermail.php
   tigris.php
   time1.inc.php
   timetest.php
   top.php
   unanswered.php
   unlimited-3mth-check.php
   unlimited-check.php
   unlimited-stats.php
   unlimitedpartition.php
   uploadmailhdr.php
   user.php
   viewnotes.php
   visp.inc.php
   webadd.php
   weblinks.php
   WebSite-check.php
   weeknotes.php
   weekuser.php
   who.php
   whoip.php
   whoverify.php

<?
include "./auth.inc.php";

if ($Year){
	$datetime = "$Year-$Month-$Day $Hour:$Minute:00";	

	print "$datetime <BR>";

	#offset for Adelaide!
	#ideally get offset from OS.
	$offset = date("Z")/60 - $gmt;
	$mtime = mktime($Hour,$Minute + $offset,0,$Month,$Day,$Year);
	
	$getdate= date("Y-m-d H:i:s",$mtime);

	$sql = "SELECT UserName, realtime, FramedIPAddress, AcctSessionTime, unix_timestamp(realtime) as t 
		FROM $table
		WHERE AcctStatusType='Stop' 
		HAVING t <= '$mtime' AND (t+AcctSessionTime) >= '$mtime'";

	print $sql;
	$res = mysql_query($sql);
	print mysql_error();
	print "<BR><TABLE border=1>";
	print "<TR><TH>Username</TH><TH>Time</TH><TH>IP Address</TH><TH>Duration</TH></TR>\n";
	while ($row = mysql_fetch_row($res)){
		print "<TR>";
		print "<TD>$row[0]</TD>";
		print "<TD>$row[1]</TD>";
		print "<TD>$row[2]</TD>";
		print "<TD>$row[3]</TD>";
		print "</TR>\n";
	}
	print "</TABLE>";
exit;	
}
?>
<HTML>
<HEAD></HEAD>
<BODY bgcolor=white>
<FORM>
<H2>Enter a Time to find out who was on at that time</H2>
<BR>
Warning: This is a database intensive Search.
<BR>

Date: <select name=Day>
<? for ($i=1;$i<32;$i++){
        print "<option value=\"$i\">".date("jS",mktime(0,0,0,1,$i,2000))."</option>\n";
}
?>
</SELECT>

<SELECT name=Month>
<? for ($i=1;$i<13;$i++){
	print "<option value=\"$i\">".date("F",mktime(0,0,0,$i,1,2000))."</option>\n";	
}
?>	
</SELECT>
<SELECT NAME=Year>
        <option><? echo date("Y") ?></option>
        <option><? echo date("Y")-1 ?></option>
</SELECT>
<BR>
Time: <select name=Hour>
<?  for ($i=0;$i<24;$i++){
	print "<option>$i</option>\n";

}
?>
</select>:
<select name=Minute>
<?  for ($i=0;$i<60;$i++){
        print "<option>$i</option>\n";

}
?>
</select>
<BR>
GMT: <select name=gmt>
<? for ($i=-24;$i<24;$i++){
	$gmtn = intval($i/2)*100 + ($i%2)*30;
	if (intval($gmtn) > 0){
		#if (strlen($gmtn)==3){
		#	$gmtn = '0'.$gmtn;
		#}
		$gmtn = '+'.$gmtn;
	}
	$value=$i*30;
	print "<option value=\"$value\"";
	if ($value == 570)
		print " selected";
	print ">$gmtn</option>";
}
?></SELECT>
<BR>
Data: <SELECT NAME="table">
<option>radacct</option>
<option>radacctarchive</option>
</SELECT>
<BR>
<INPUT TYPE=SUBMIT>
</FORM>

</BODY>
</HTML>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us