Author Topic: Fake Users :D :D  (Read 4483 times)

0 Members and 1 Guest are viewing this topic.

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Fake Users :D :D
« on: November 19, 2009, 04:04:27 PM »
Hey :)  :D
im about to do a crime  :mrgreen:

i have a code to show fake users onle  :D

Code: [Select]
function randomGen($min, $max)
{
    // setup our seed
    srand((float) microtime() * 10000000);
    // Generate the number
    $random = rand($min,$max);
   // Return the number
    return $random;
}
/*adjust these numbers to display a random number within a range-
make sure the low number is on the left.*/

$random_number = randomGen(10,25);
echo "<br/>There are " .$random_number. " visitors online";

hehe..paste this is your index..havent tested this 4images.but works fine for vbulleting and other forum boards !

Have Fun !
I'm Back :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Fake Users :D :D
« Reply #1 on: November 20, 2009, 12:46:40 AM »
you are criminal! :lol: j/k

You don't need create any functions for this, the srand() is pretty much absolete since PHP 4.2.0

In 4images there is a simple way to do this crime:

In includes/session.php replace
$num_guests_online 0;


with:
$num_guests_online mt_rand(1025);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline GaYan

  • Sr. Member
  • ****
  • Posts: 301
  • ♫ | G2 | ♫
    • View Profile
    • Ziramagic
Re: Fake Users :D :D
« Reply #2 on: November 20, 2009, 05:12:39 AM »
Thanks ! :lol: Experts do well  :P  :P

:mrgreen: lol... This is usefull :) Thanks Sir V@NO !

I'm Back :)

Offline Benny Change

  • Addicted member
  • ******
  • Posts: 1.788
  • #WWG1WGA
    • View Profile
    • Qlobal-Change
Re: Fake Users :D :D
« Reply #3 on: November 20, 2009, 09:52:39 PM »
Zeigt das Teil die Bots an?
Beste Grüße
Benny

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Fake Users :D :D
« Reply #4 on: November 20, 2009, 10:54:05 PM »
... steht doch ganz groß drüber ... FAKE ...
... es zeigt nur eine Zufallszahl (hier getarnt als User online) zwischen 10 und 25 an ...
... hat also nichts mit Usern, Bots oder ähnlichen zu tun ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

 

Post your comments here