Validate List 1.0 Lava

Started on the old forum in March 2010 · view the original in the archive · old links redirect here

3 replies · 558 views · started 16 years ago · 1 min read

4 participants
centi Developer · 159 posts #1

😊

Ok Here is a Moded Validate list for lava tools Easy to Validate or delete include user online time enjoy...

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>";
}

😳 .................................... http://photomag.lk/ .................................... 🤨

bOrN2pwn Developer · 230 posts #2

This PHP Validation script is a set of validation rules which lets you add server-side validation to your forms quickly and with as little effort as possible. This script can be modified to work with lava. The script checks the values that a user has entered into your form, and if it doesn't meet the criteria specified (e.g. they failed to enter a value, or they entered a fake email address), they are returned to the original form with a list of all the offending fields. It requires PHP 4 or later.

BakGat

class Counter {
public:
  void Count();
  int  ReadDisplay();
private:
  int  CurrentCount;
};

External image (may be gone) External image (may be gone) External image (may be gone)

Back up my hard drive? How do I put it in reverse? http://www.hackthissite.org Profile…

Attachments: validation.zip
WhiteWarrior Principal · 1,419 posts #3

Why use a vaildater?.. pointless, lose members because they don't want to wait etc.. Why should a person have to wait up to 24 hours to be allowed onto a site?..

Get the "SCRIPT" to detect a VALID IP, browser etc. Works a lot better and you will see more members joining, if you only want to allow one user name per person then just add a option so the user can change there user name every now and then. 🙂

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close