Skip to content

Commit c44f9fd

Browse files
committed
Merge branch 'develop'
2 parents 1a77cdf + 1eb5ea0 commit c44f9fd

3 files changed

Lines changed: 2 additions & 40 deletions

File tree

install.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,44 +13,15 @@
1313

1414
define('TABLE_XTENSE_GROUPS', $table_prefix.'xtense_groups');
1515
define('TABLE_XTENSE_CALLBACKS', $table_prefix.'xtense_callbacks');
16-
define('TABLE_PARSEDREC', $table_prefix.'parsedRec');
17-
define('TABLE_PARSEDSPYEN', $table_prefix.'parsedSpyEn');
18-
1916

2017
$install_ogspy = false;
2118
$is_ok = false;
2219
$mod_folder = "xtense";
2320
$root = "xtense";
2421
$is_ok = install_mod($mod_folder);
25-
$db->sql_query("UPDATE " . TABLE_MOD . " SET menu = 'Xtense' WHERE title = 'xtense'");
26-
2722

2823
if ($is_ok) {
2924

30-
//---- Creation de la table des recyclages
31-
$db->sql_query("CREATE TABLE IF NOT EXISTS " . TABLE_PARSEDREC . " (
32-
`id_rec` INT( 255 ) NOT NULL AUTO_INCREMENT ,
33-
`dateRec` INT( 11 ) NOT NULL ,
34-
`coordinates` VARCHAR( 9 ) NOT NULL ,
35-
`nbRec` INT( 11 ) NOT NULL ,
36-
`M_total` INT( 11 ) NOT NULL ,
37-
`C_total` INT( 11 ) NOT NULL ,
38-
`M_recovered` INT( 11 ) NOT NULL ,
39-
`C_recovered` INT( 11 ) NOT NULL ,
40-
`sender_id` INT( 11 ) NOT NULL ,
41-
PRIMARY KEY ( `id_rec` )
42-
) DEFAULT CHARSET=utf8;");
43-
44-
$db->sql_query("CREATE TABLE IF NOT EXISTS " . TABLE_PARSEDSPYEN . " (
45-
`spy_id` INT( 255 ) NOT NULL AUTO_INCREMENT ,
46-
`dateSpy` INT( 11 ) NOT NULL ,
47-
`from` VARCHAR( 9 ) NOT NULL ,
48-
`to` VARCHAR( 9 ) NOT NULL ,
49-
`proba` INT( 3 ) NOT NULL ,
50-
`sender_id` INT( 11 ) NOT NULL ,
51-
PRIMARY KEY ( `spy_id` )
52-
)DEFAULT CHARSET=utf8;");
53-
5425
//---- Creation de la table des Callbacks
5526
$db->sql_query("CREATE TABLE IF NOT EXISTS `" . TABLE_XTENSE_CALLBACKS . "` (
5627
`id` int(3) NOT NULL auto_increment,
@@ -80,6 +51,4 @@
8051
generate_all_cache();
8152
$db->sql_query("REPLACE INTO " .TABLE_XTENSE_GROUPS. " (`group_id`, `system`, `ranking`, `empire`, `messages`) VALUES
8253
('1', '1', '1', '1', '1')");
83-
84-
8554
}

update.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,5 @@
2727
$db->sql_query('DELETE FROM '.TABLE_CONFIG.' WHERE `name` LIKE "xtense_log"');
2828
$db->sql_query('DELETE FROM '.TABLE_CONFIG.' WHERE `name` LIKE "xtense_keep_log"');
2929

30-
$result = $db->sql_query("SELECT `version` FROM ".TABLE_MOD." WHERE `title` = 'xtense'");
31-
list($version) = $db->sql_fetch_row($result);
32-
33-
if(version_compare($version, '2.7.2', '<')){
34-
$db->sql_query("ALTER TABLE ".TABLE_XTENSE_CALLBACKS." MODIFY `type` enum('overview','system','ally_list','buildings','research','fleet','fleetSending','defense','spy', 'spy_shared', 'ennemy_spy','rc', 'rc_shared','rc_cdr', 'msg', 'ally_msg', 'expedition','expedition_shared', 'ranking', 'trade', 'trade_me','hostiles') NOT NULL");
35-
}
36-
3730
update_mod($mod_folder, $mod_name);
3831
generate_all_cache();

version.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Xtense
2-
2.11.4
2+
2.11.5
33
Xtense,Xtense,xtense,xtense,index.php,1,1
4-
4.0.0-dev
4+
4.0.0
55
3.0.0

0 commit comments

Comments
 (0)