الهاك بواسطة :Zajako
العمل:This hack displays a Easter Egg where you want it in your header or footer randomly at a set percentage.
The Egg links to a random link you set in the file.
YOu create pages that have extra features or hidden pages, then set them as a link for one of the eggs.
Upload Easter folder to images
طريقة التركيب
Open Global.php
Find
***********************
?>
***********************
Add Before
***********************
if($eegg==1){
$eggnumber=rand(0,100);
$eggodds="25";
//eggs
$egg[0]="http://tfogame.com/arcade.php";
$egg[1]="http://tfogame.com/tfov1";
$egg[2]="http://tfogame.com/tfov2";
$egg[3]="http://tfogame.com/egg2.php";
$egg[4]="http://tfogame.com/arcade.php";
$egg[5]="http://tfogame.com/tfov1";
$egg[6]="http://tfogame.com/tfov2";
$egg[7]="http://tfogame.com/egg2.php";
$egg[8]="http://tfogame.com/arcade.php";
$egg[9]="http://tfogame.com/tfov1";
$egg[10]="http://tfogame.com/tfov2";
if($eggnumber <= $eggodds){
$egglist=rand(0,10);
$eggshow="<a href=\"$egg[$egglist]\"><img src=\"images/easter/egg.gif\" border=0></a>";
}
}
************************
Change The $egg[#] lines. Make The URL's match your easter Egg Pagees.
You may Change the Egg Odds from 25 to whatever percentage you would like.
If you want more Eggs just add $egg[11]="url"; and change this line:
$egglist=rand(0,10);
to:
$egglist=rand(0,11);
PostBit Edit:
Add $eggshow to your header or footer template, wherever you want it.
Query:
INSERT INTO setting (settingid,settinggroupid,title,varname,value,description,optioncode,displayorder) VALUES (NULL,2,'Easter Egg Hunt On?','eegg','0','Easter Egg Hunt random variable.','yesno','18');
THen goto your vB Options Page and Turn it on when you want it on.
You may turn it off when your no longer use it.
![]()
![]()