4images Forum & Community
General / Allgemeines => Programming => Topic started by: GaYan 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
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 !
-
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(10, 25);
-
Thanks ! :lol: Experts do well :P :P
:mrgreen: lol... This is usefull :) Thanks Sir V@NO !
-
Zeigt das Teil die Bots an?
-
... 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 ...