1.0升級方法
1.- 升級資料庫
- CREATE TABLE `cdb_z_cup_spdudan` (
- `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 ;
- CREATE TABLE `cdb_z_cup_bsdudan` (
- `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 ;
- CREATE TABLE `cdb_z_cup_bswinnerlist` (
- `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` smallint(6) unsigned NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM ;
- CREATE TABLE `cdb_z_cup_bswinuser` (
- `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 ;
- CREATE TABLE `cdb_z_cup_spwinnerlist` (
- `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` smallint(6) unsigned NOT NULL default '0',
- PRIMARY KEY (`id`)
- ) TYPE=MyISAM ;
- CREATE TABLE `cdb_z_cup_spwinuser` (
- `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 ;
- CREATE TABLE `cdb_z_cup_spgame` (
- `id` smallint(6) unsigned NOT NULL auto_increment,
- `vteam` varchar(30) NOT NULL default '',
- `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 ;
复制代码
2.- 上傳所有html放到模板內
- 上傳所有除z_config.php的php放到根目錄內
复制代码
3.- include/common.php
- 找
- $tables = array(
- 加
- 'z_cup_bsdudan', 'z_cup_bswinnerlist', 'z_cup_bswinuser','z_cup_spwinnerlist', 'z_cup_spwinuser','z_cup_spdudan','z_cup_spgame'
复制代码
~~完~~ |