Skip to content

Commit

Permalink
finish DragonModOverview #150
Browse files Browse the repository at this point in the history
(view only, for support)
remove old mod manager
  • Loading branch information
IDragonfire committed Feb 7, 2013
1 parent c8ecd9c commit 73e6222
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 467 deletions.
11 changes: 1 addition & 10 deletions _installer/conf/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -1464,23 +1464,14 @@ function update_mysql_1_6()
}
$qry = $qrx;
//-> Mod/AddOns verwalten
db("CREATE TABLE ".$db['versions']." (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`id_server` INT(11) NOT NULL,
`name` VARCHAR(100) NOT NULL,
`server` LONGTEXT NOT NULL,
`download_link` LONGTEXT NOT NULL,
`own_version` VARCHAR(11) NOT NULL,
`own_date` INT(12) NOT NULL,
PRIMARY KEY (`id`)) ;");

db("CREATE TABLE ".$db['mods']." (
`author` varchar(32) NOT NULL,
`modid` varchar(32) NOT NULL,
`version` text NOT NULL,
`serverurl` text NOT NULL,
`downloadurl` text NOT NULL,
`installed` datetime NOT NULL,
`updated` datetime NOT NULL,
`serverversion` text NOT NULL,
PRIMARY KEY (`author`,`modid`) )");

Expand Down
16 changes: 14 additions & 2 deletions admin/menu/mods.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/

if(_adminMenu != 'true') exit;
$where = $where.': '._config_version;
$where = $where.': '._config_mods;
if($chkMe != 4) {
$show = error(_error_wrong_permissions, 1);
} else {
Expand All @@ -28,6 +28,7 @@
'version' => $get[ 'version' ] ,
'server_version' => '?',
'installed' => $get[ 'installed' ],
'updated' => $get[ 'updated' ],
'dl_link' => $get[ 'downloadurl'] );
$text .= implode(PHP_EOL, $modData);
$text .= PHP_EOL . $get['serverurl'] . PHP_EOL . '###';
Expand All @@ -37,6 +38,17 @@
$i ++;
}
}
$show = show ( $dir . '/form_mods', array( 'rows' => $rows, 'support' => $text) );
$replace = array( 'rows' => $rows, 'support' => $text);
$replace['_mod_head'] = _mod_head;
$replace['_mod_name'] = _mod_name;
$replace['_mod_author'] = _mod_author;
$replace['_mod_yourVersion'] = _mod_yourVersion;
$replace['_mod_link'] = _mod_link;
$replace['_mod_installed'] = _mod_installed;
$replace['_mod_updated'] = _mod_updated;
$replace['_mod_copyAndPasteInfo'] = _mod_copyAndPasteInfo;
$replace['_mod_clickMe'] = _mod_clickMe;

$show = show ( $dir . '/form_mods', $replace);
}
?>
File renamed without changes
301 changes: 0 additions & 301 deletions admin/menu/version.php

This file was deleted.

16 changes: 10 additions & 6 deletions inc/_templates_/version1.5/admin/form_mods.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
<tr>
<td class="contentHead" colspan="7" align="center"><span class="fontBold">[_mod_head]</span></td>
</tr>
<tr>
<td class="contentMainTop"><span class="fontBold">#</span></td>
<td class="contentMainTop"><span class="fontBold">Autor</span></td>
<td class="contentMainTop"><span class="fontBold">Mod</span></td>
<td class="contentMainTop"><span class="fontBold">installierte Version</span></td>
<td class="contentMainTop"><span class="fontBold">verf&uuml;gbare Version</span></td>
<td class="contentMainTop"><span class="fontBold">installiert am</span></td>
<td class="contentMainTop"><span class="fontBold">[_mod_name]</span></td>
<td class="contentMainTop"><span class="fontBold">[_mod_author]</span></td>
<td class="contentMainTop"><span class="fontBold">[_mod_yourVersion]</span></td>
<td class="contentMainTop"><span class="fontBold">[_mod_installed]</span></td>
<td class="contentMainTop"><span class="fontBold">[_mod_updated]</span></td>
<td class="contentMainTop"><span class="fontBold">[_mod_link]</span></td>
</tr>[rows]
</table>
<table class="mainContent" cellspacing="1">
</tr>
<td class="contentMainTop" style="text-align:center"><span class="fontBold">Copy und Pate Info</span></td>
<td class="contentMainTop" style="text-align:center"><span class="fontBold">[_mod_copyAndPasteInfo]</span></td>
</tr>
<tr>
<td class="contentMainFirst" style="text-align:center;">
Expand Down
Loading

0 comments on commit 73e6222

Please sign in to comment.