Validate List 1.0 Lava

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Validate List 1.0 Lava



    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&amp;who=$item[0]&amp;sid=$sid\">$item[1]</a>($uage/$usex/$nopl[2]) <a href=\"ownrproc.php?action=delu&amp;sid=$sid&amp;who=$item[0]\">[x]</a> <a href=\"ownrproc.php?action=validate&amp;sid=$sid&amp;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&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
        }
        if($page<$num_pages)
        {
          $npage = $page+1;
          echo "<a href=\"ownercp.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;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&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
        echo "</body>";
    } 
    


    ....................................
    http://photomag.lk/
    ....................................


    #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.
    Attached Files
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };








    Back up my hard drive? How do I put it in reverse?
    My Community
    BakGat
    sigpic

    Comment


      #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.

      Comment


        #4
        Where to put this code?

        Comment

        Working...
        X