Filter:   InfoImg
download lastaccess.php
Language: PHP
LOC: 93
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 (!$n)
	$n=20;

if ($security<90){
	$user = $PHP_AUTH_USER;
}else{
	if (!$user)
		$user=$PHP_AUTH_USER;
}

$sql = "SELECT FirstName, LastName, Suburb, CustomerID, VISP,
LastAccessDate, PhoneWork, PhoneHome
FROM MasterAccounts WHERE LastAccessUser='$user' ORDER BY LastAccessDate
DESC
LIMIT $n";


#echo $sql;
include "mysql.inc.php";
$result=mysql_query($sql);
if (!mysql_num_rows($result)){
	print "No records found!<BR>";
	print $sql;
	while (list($key,$val) = each($GLOBALS))
		print "$key = $val<BR>\n";
	exit;
}

if (mysql_num_rows($result) == 1 && !$access){
	$row = mysql_fetch_array($result);
	
	#1 result, go directly to user
	header("Location: user.php?ID=$row[CustomerID]");
	exit;
}


?><HTML>
<HEAD>
</HEAD>
<body background="bg.jpg" bgcolor="#CCCC99" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" leftmargin="20"
topmargin="10">

<script language="JavaScript">
function changetop(ID)
{
        top.rtop.location = 'top.php?'+ID;
}
</script>

<FONT SIZE=+1 FACE="arial">
<BR>

<? if ($security >90){
	$osql = "SELECT username FROM ops ORDER BY username";
	$ores = mysql_query($osql);
	print "<form>\n";
	print "<input size=4 type=text name=n value=\"$n\">";
	print "<select name=user>";
	while ($orow = mysql_fetch_row($ores)){
		print "<option value=\"$orow[0]\"";
		if ($orow[0] == $user)
			print " selected";
		print ">$orow[0]</option>";
	} 
	print "</select>";
	print "<input type=submit value=show>";
	print "</form>";
}
?>
<BR>
<?

while ($row=mysql_fetch_array($result)){
	$vsql="SELECT VISPName FROM VISP WHERE VISPID=$row[VISP]";
	$vres=mysql_result(mysql_query($vsql),0);
	
?>
<P><? 
#uncomment to show VISP's
#if ($vres) echo "$vres";
?> <A HREF="user.php?ID=<? echo $row[CustomerID] ?>" onclick=changetop(<? echo $row[CustomerID]?>)>
<? echo
"$row[FirstName]
$row[LastName]"; ?></A>
<? if ($typeq=='P')
	echo "H: $row[PhoneHome] W: $row[PhoneWork]";

if ($C)
	echo " <B>$row[Company]</B> ";

#if ($lastmodified)
	echo " $row[LastAccessDate]";
?>
</P>
<?
}

print "<!-- ";
while (list($key,$val) = each($GLOBALS)){
	print "$key = $val\n";
}
print " -->";

?>
</font>
</BODY>
</HTML>