Ok Here is a Moded Validate list for lava tools
Easy to Validate or delete include user online time
enjoy...
PHP Code:
else if($action=="validatelist")
{
addonline(getuid_sid($sid),"Owner Tools","");
echo "<head>";
echo "<title>Validate List</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
//////ALL LISTS SCRIPT <<
echo "<p align=\"left\"><small>";
echo "<u>Space Validate 1.0</u><br/>";
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE validated='0'"));
$num_items = $noi[0]; //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
//changable sql
$sql = "SELECT id, name FROM ibwf_users WHERE validated='0' ORDER BY tottimeonl DESC LIMIT $limit_start, $items_per_page";
$items = mysql_query($sql);
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$nopl = mysql_fetch_array(mysql_query("SELECT sex, birthday, location, tottimeonl FROM ibwf_users WHERE id='".$item[0]."'"));
$uage = getage($nopl[1]);
if($nopl[0]=='M')
{$usex = "Male";}else
if($nopl[0]=='F'){$usex = "Female";}
else{$usex = "Dont Validate";}
$nopl[2] = htmlspecialchars($nopl[2]);
$lnk = "<a href=\"index.php?action=viewuser&who=$item[0]&sid=$sid\">$item[1]</a>($uage/$usex/$nopl[2]) <a href=\"ownrproc.php?action=delu&sid=$sid&who=$item[0]\">[x]</a> <a href=\"ownrproc.php?action=validate&sid=$sid&who=$item[0]\">[v]</a>";
echo "$lnk <br/>Online Tym: ";
$num = $nopl[3]/86400;
$days = intval($num);
$num2 = ($num - $days)*24;
$hours = intval($num2);
$num3 = ($num2 - $hours)*60;
$mins = intval($num3);
$num4 = ($num3 - $mins)*60;
$secs = intval($num4);
echo " ";
if(($days==0) and ($hours==0) and ($mins==0)){
echo "$secs s<br/>";
}else
if(($days==0) and ($hours==0)){
echo "$mins m, ";
echo "$secs s<br/>";
}else
if(($days==0)){
echo "$hours h, ";
echo "$mins m, ";
echo "$secs s<br/>";
}else{
echo "$days days, ";
echo "$hours hours, ";
echo "$mins mins, ";
echo "$secs seconds<br/>";
}
}
}
echo "</p>";
echo "<p align=\"center\">";
if($page>1)
{
$ppage = $page-1;
echo "<a href=\"ownercp.php?action=$action&page=$ppage&sid=$sid&who=$who\">«Prev</a> ";
}
if($page<$num_pages)
{
$npage = $page+1;
echo "<a href=\"ownercp.php?action=$action&page=$npage&sid=$sid&who=$who\">Next»</a>";
}
echo "<br/>$page/$num_pages<br/>";
if($num_pages>2)
{
echo $rets;
$rets = "<form action=\"ownercp.php\" method=\"get\">";
$rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>";
$rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
$rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
$rets .= "<input type=\"submit\" value=\"Go To Page\"/>";
$rets .= "</form>";
echo $rets;
}
echo "</p>";
echo "<p align=\"center\">";
echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
echo "</body>";
}
Comment