rou_alert(0,"$OPEP, now logname=<$logname>");
return $logname;
}
+
+//==============================================================
+//
+// Function to retreive a some email record
+//
+//==============================================================
+function sql_getemaillist($dbsql,$limit,$skip)
+
+{
+$OPEP="gessql.php:sql_getemaillist";
+
+$strsel="Select * from emails order by email asc";
+$strlim="";
+$strskip="";
+$stmt=$dbsql->Select("$strsel $strlim $strskip");
+return $stmt->fetchAll();
+}
+
?>
{
global $isadmin;
+$line="";
+$dbsql=sql_connect();
+$emails=sql_getemaillist($dbsql,NULL,NULL);
+foreach($emails as $email) {
+ $name=$email['email'];
+ $last=$email['lastemail'];
+ $max=$email['mxspace'];
+ $lock=$email['locked'];
+ $line=$line."<TR>";
+ $line=$line."<TD>$name</TD>";
+ $line=$line."<TD align=center>$last</TD>";
+ $line=$line."<TD align=center>$max</TD>";
+ $line=$line."<TD align=center>$lock</TD>";
+ $line=$line."</TR>";
+ }
+sql_close($dbsql);
+
$start=starthtml(NULL);
$stop=endhtml();
$top=topper($isadmin,$logname,"lvlusr");
$footer=footer("lvlusr");
+
$STR = <<<EOT
$start
$top
-<CENTER><FONT SIZE=+2 color=red>
-Within LVLUSR
-</FONT></CENTER>
-<BR>
+<CENTER>
+<table WIDTH="80%" BORDER="1" CellSpacing="0">
+<TR>
+<TH align=center>Email</TH>
+<TH align=center>lastemail</TH>
+<TH align=center>mxspace</TH>
+<TH align=center>locked</TH>
+</TR>
+$line
+</Table>
+</CENTER>
$footer
$stop
EOT;