Download the Fruit farm game module for free Treasure
The archive also has instructions .
Installation Instructions:
Add to .htaccess
——————-
RewriteRule ^account/klad(/?)+$ index.php?menu=account&sel=klad [L]
——————-\
——————-/
add to /pages/_account.php
——————-
case “klad”: include(“pages/account/_klad.php “); break; // klondike
——————-\
——————-/
add to /inc/_user_menu.php
——————-
<div class=”field-gr”><a href=”/account/klad”>Klondike</a><font color = “red”><sup><b>NEW</b></sup></font></div>
——————-\
——————-/
throw everything into directories
——————-
execute 3 queries to the muSQL database
——————-
–1 request TO MAKE ALL REQUESTS IN TURN!!!!
— Structure of the `db_bonus_klad` table
—
CREATE TABLE IF NOT EXISTS `db_bonus_klad` (
`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=16 ;
–2 request
— Structure of the `db_klad` table
—
CREATE TABLE IF NOT EXISTS `db_klad` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(13) NOT NULL,
`login` varchar(55) NOT NULL,
`date` int(13) NOT NULL,
`date_del` int(11) NOT NULL DEFAULT ‘0’,
`summa` float NOT NULL,
`win` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=1 ;
— ———-3 request
———————————————-
–addition to the shovels in the db_users_a database
—
ALTER TABLE `db_users_a` ADD `kop` int(11) NOT NULL DEFAULT ‘1’;
That’s it!!!