regester off for 30 minit lavalair

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

11 replies · 683 views · started 16 years ago · 1 min read

5 participants
sklbd Junior · 47 posts #1

can any one help me by giving the code that if one ip reg. then next 30 minit that ip cannot be reg. again

ShaK!L AhammeD

Sklifbd.CoM +88-01730039272

subzero Super moderator Fellow · 3,954 posts #2

send a cookie

$cod = genRandomString();

$seet = "id_$cod"; setcookie("SIGNUP", $seet, time()+2000);

if(isset($_COOKIE["SIGNUP"])) { echo "You cant sign up here :P"; }

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

djdevil89 Senior · 287 posts #3

hah sub nice idea then i just clear my cookies and sign up again hehe 🙂

Better log the ip of a user who is logged in and make a message if user ip matches ip in database and with subs cookie thing it will work i will have a look at this are you using lavalair?

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
ewanz Developer · 187 posts #4

?? I cant understand why t0 0ff in 30minutes..

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
sklbd Junior · 47 posts #7

where i can put this code $cod = genRandomString();

$seet = "id_$cod"; setcookie("SIGNUP", $seet, time()+2000);

if(isset($_COOKIE["SIGNUP"])) { echo "You cant sign up here :P"; }

ShaK!L AhammeD

Sklifbd.CoM +88-01730039272

sklbd Junior · 47 posts #8

DjMatrix i r also right so plz tell me how can i protect reg. flooding.

ShaK!L AhammeD

Sklifbd.CoM +88-01730039272

djdevil89 Senior · 287 posts #9
function addonline($uid,$place,$plclink, $ip)
{
  $hidden=mysql_fetch_array(mysql_query("SELECT hidden FROM ibwf_users WHERE id='".$uid."'"));
  if($hidden[0]==0)
  {
  /////delete inactive users
  $tm = time();
  $timeout = $tm - 420; //time out = 5 minutes
  $deloff = mysql_query("DELETE FROM ibwf_online WHERE actvtime <'".$timeout."'");
  ///now try to add user to online list
  $res = mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='".$uid."'");
  $res = mysql_query("INSERT INTO ibwf_online SET userid='".$uid."', actvtime='".$tm."', place='".$place."', placedet='".$plclink."', ip='$ip'");
  if(!$res)
  {
    //most probably userid already in the online list
    //so just update the place and time
    $res = mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$place."', placedet='".$plclink."', ip='$ip' WHERE userid='".$uid."'");
    
    
  }
  }
  $maxmem=mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE id='2'"));
  
            $result = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online"));

          if($result[0]>=$maxmem[0])
          {
            $tnow = date("D d M Y - H:i");
            mysql_query("UPDATE ibwf_settings set name='".$tnow."', value='".$result[0]."' WHERE id='2'");
          }
          $maxtoday = mysql_fetch_array(mysql_query("SELECT ppl FROM ibwf_mpot WHERE ddt='".date("d m y")."'"));
          if($maxtoday[0]==0||$maxtoday=="")
          {
            mysql_query("INSERT INTO ibwf_mpot SET ddt='".date("d m y")."', ppl='1', dtm='".date("H:i:s")."'");
            $maxtoday[0]=1;
          }
          if($result[0]>=$maxtoday[0])
          {
            mysql_query("UPDATE ibwf_mpot SET ppl='".$result[0]."', dtm='".date("H:i:s")."' WHERE ddt='".date("d m y")."'");
          }
}
    addonline(getuid_sid($sid),"Main Menu","", "$_SERVER[REMOTE_ADDR]");

add a row called ip to your ibwf_online table when you have done that come back and i help you with the next step

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}
sklbd Junior · 47 posts #10

DjMatrix ok bro. many many thnx but tell me plz where i can put addonline(getuid_sid($sid),"Main Menu","", "$_SERVER[REMOTE_ADDR]"); this code

ShaK!L AhammeD

Sklifbd.CoM +88-01730039272

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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