注:经本人测试,此插件可用于DZ4.1.0 !在导入插件后台文件时选上“允许导入不同版本”就可以啦!
添加首页操作方法:在添加templates/default/actions.lang.php
帮顶!
沙发还是让他自己占啦!!!
加个演示 地址吧!顺便AD一下!!!
工职院校园社区
如果出现时间到了还可以下注,请作以下修改(如果没有出现不用修改,否则改了反而出错)
将PHP文件里的所有的改为
时间误差就是快/慢了多少秒误差,一般是28800,具体自己测试一下!
这个问题一般是因为PHP不同的版本对time()的定义不同!!!
如果出现用中文用户登陆出现错误,请进入后台重新升级数据库
注意:如果已经有数据,那将会删除原有足球插件的所有数据,请先备份好数据再升级
- DROP TABLE IF EXISTS cdb_z_cup_dudan;
- DROP TABLE IF EXISTS cdb_z_cup_bsdudan;
- DROP TABLE IF EXISTS cdb_z_cup_spdudan;
- DROP TABLE IF EXISTS cdb_z_cup_winnerlist;
- DROP TABLE IF EXISTS cdb_z_cup_bswinnerlist;
- DROP TABLE IF EXISTS cdb_z_cup_spwinnerlist;
- DROP TABLE IF EXISTS cdb_z_cup_game;
- DROP TABLE IF EXISTS cdb_z_cup_bsgame;
- DROP TABLE IF EXISTS cdb_z_cup_spgame;
- DROP TABLE IF EXISTS cdb_z_cup_bswinuser;
- DROP TABLE IF EXISTS cdb_z_cup_winuser;
- DROP TABLE IF EXISTS cdb_z_cup_spwinuser;
- DROP TABLE IF EXISTS cdb_z_cup_class;
- CREATE TABLE cdb_z_cup_class (
- `id` smallint(6) unsigned NOT NULL auto_increment,
- `gameclass` varchar(40) NOT NULL default '',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM DEFAULT CHARSET=gbk;
- CREATE TABLE cdb_z_cup_dudan (
- `id` smallint(6) unsigned NOT NULL auto_increment,
- `username` varchar(15) NOT NULL default '',
- `gameid` smallint(6) unsigned NOT NULL default '0',
- `game1` smallint(2) unsigned NOT NULL default '0',
- `game2` varchar(10) NOT NULL default '',
- `duzhu` smallint(6) unsigned NOT NULL default '0',
- `addtime` int(11) NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM DEFAULT CHARSET=gbk;
- CREATE TABLE cdb_z_cup_game (
- `id` smallint(6) unsigned NOT NULL auto_increment,
- `hteam` varchar(30) NOT NULL default '',
- `vteam` varchar(30) NOT NULL default '',
- `score` varchar(10) NOT NULL default '',
- `ending` tinyint(2) NOT NULL default '0',
- `gameclass` smallint(6) unsigned NOT NULL default '0',
- `gamedate` date NOT NULL default '0000-00-00',
- `gametime` time NOT NULL default '00:00:00',
- `addtime` int(11) NOT NULL default '0',`info` text NOT NULL,
- `hteamrate` float NOT NULL default '0',
- `equalrate` float NOT NULL default '0',
- `vteamrate` float NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM DEFAULT CHARSET=gbk;
- CREATE TABLE cdb_z_cup_winnerlist (
- `id` smallint(6) unsigned NOT NULL auto_increment,
- `username` varchar(15) NOT NULL default '',
- `gameid` smallint(6) unsigned NOT NULL default '0',
- `gametime` date NOT NULL default '0000-00-00',
- `winmoney` mediumint(6) NOT NULL default '0',
- `gametype` varchar(10) NOT NULL default 'sc',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM DEFAULT CHARSET=gbk;
- CREATE TABLE cdb_z_cup_winuser (
- `id` smallint(6) unsigned NOT NULL auto_increment,
- `username` varchar(15) NOT NULL default '',
- `win` smallint(6) unsigned NOT NULL default '0',
- `lost` smallint(6) unsigned NOT NULL default '0',
- `money` mediumint(6) NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM DEFAULT CHARSET=gbk;
- CREATE TABLE cdb_z_cup_spgame (
- `id` smallint(6) unsigned NOT NULL auto_increment,
- `ateam` varchar(30) NOT NULL default '',
- `bteam` varchar(30) NOT NULL default '',
- `cteam` varchar(30) NOT NULL default '',
- `dteam` varchar(30) NOT NULL default '',
- `eteam` varchar(30) NOT NULL default '',
- `fteam` varchar(30) NOT NULL default '',
- `gteam` varchar(30) NOT NULL default '',
- `hteam` varchar(30) NOT NULL default '',
- `score` varchar(10) NOT NULL default '',
- `ending` tinyint(2) NOT NULL default '0',
- `gameclass` smallint(6) unsigned NOT NULL default '0',
- `gamedate` date NOT NULL default '0000-00-00',
- `gametime` time NOT NULL default '00:00:00',
- `addtime` int(11) NOT NULL default '0',`info` text NOT NULL,
- `ateamrate` float NOT NULL default '0',
- `bteamrate` float NOT NULL default '0',
- `cteamrate` float NOT NULL default '0',
- `dteamrate` float NOT NULL default '0',
- `eteamrate` float NOT NULL default '0',
- `fteamrate` float NOT NULL default '0',
- `gteamrate` float NOT NULL default '0',
- `hteamrate` float NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM DEFAULT CHARSET=gbk;
- ALTER TABLE cdb_z_cup_game ADD `bsopen` tinyint(2) DEFAULT '1' NOT NULL,ADD `bsbrate` float NOT NULL default '0',ADD
- `bssrate` float NOT NULL default '0',ADD `bsending` tinyint(2) DEFAULT '1' NOT NULL,ADD `yqopen` tinyint(2) DEFAULT '0' NOT NULL,ADD `yqtype` tinyint(2) DEFAULT '1' NOT NULL,ADD `yqrate` float NOT NULL default '1';
- ALTER TABLE cdb_z_cup_dudan ADD `gametype` varchar(10) NOT NULL default 'sc';
复制代码
[ 本帖最后由 alantam 于 2006-6-15 01:58 编辑 ] |