Download for free a new bonus for the Fruit Farm in the form of a treasure map
By default, in the bonus settings there is an opportunity to open one of the parts once every 24 hours.
You can specify any periodicity of card opening.
Detailed installation instructions:
Making queries in the database
ALTER TABLE `db_users_b` ADD `k_1` int(1) NOT NULL DEFAULT ‘0’;
ALTER TABLE `db_users_b` ADD `k_2` int(1) NOT NULL DEFAULT ‘0’;
ALTER TABLE `db_users_b` ADD `k_3` int(1) NOT NULL DEFAULT ‘0’;
ALTER TABLE `db_users_b` ADD `k_4` int(1) NOT NULL DEFAULT ‘0’;
ALTER TABLE `db_users_b` ADD `k_5` int(1) NOT NULL DEFAULT ‘0’;
ALTER TABLE `db_users_b` ADD `k_6` int(1) NOT NULL DEFAULT ‘0’;
ALTER TABLE `db_users_b` ADD `last_sbor2` int(11) NOT NULL DEFAULT ‘0’;
Also
CREATE TABLE IF NOT EXISTS `db_bonus_list` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` varchar(10) CHARACTER SET utf8 NOT NULL,
`user_id` int(11) NOT NULL DEFAULT ‘0’,
`sum` double NOT NULL DEFAULT ‘0’,
`date_add` int(11) NOT NULL DEFAULT ‘0’,
`date_del` int(11) NOT NULL DEFAULT ‘0’,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
4. file _bonus.php
upload to /pages/account/
3. Open the root file.htaccess and looking for:
RewriteRule ^account/bonus(/?)+$ index.php?menu=account&sel=bonus [L]
4. Open the file inc/_user_menu.php and we are looking for:
<div class=”field-gr”><a href=”/account/bonus”>Daily bonus</a></div>
5. add to pages/account
case “bonus”: include(“pages/account/_bonus.php “); break; // Bonus
——————————————————————-
In the file line 238
$daddkarta=24; // in hours, the opening of the card is the frequency of reloading