Skip to content

Commit

Permalink
[45] 3.3.0a support, more localizations for DB tables (itemsetinfo
Browse files Browse the repository at this point in the history
…& `maps`), you need to update you DB with SQL files from `sql/updates` folder.
  • Loading branch information
Shadez committed Jan 11, 2010
1 parent fc8deaf commit 7cb913c
Show file tree
Hide file tree
Showing 38 changed files with 1,196 additions and 470 deletions.
7 changes: 7 additions & 0 deletions THANKS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
I would like to thank these peoples:
- Chestr (aka DiSlord),
- SUPERGADGET,
- Fog (aka LordJZ),
- Arcano,
- FearX
for code examples, help & support.
2 changes: 1 addition & 1 deletion achievement-firsts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 30
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion achievements-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 31
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion arena-calculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 30
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion arena-ladder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 30
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion character-achievements.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 40
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion character-reputation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 40
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion character-select-submit.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 37
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion character-select.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 37
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion character-sheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 40
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion character-talents.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 40
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion guild-bank-contents.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 39
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion guild-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 30
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion guild-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 30
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
752 changes: 378 additions & 374 deletions includes/UpdateFields.php

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions includes/armory_loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 44
* @copyright (c) 2009 Shadez
* @revision 45
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand All @@ -31,7 +31,7 @@
die('<b>Error:</b> can not load connector class!');
}

define('DB_VERSION', 'armory_r44');
define('DB_VERSION', 'armory_r45');
$armory = new Connector;
$armory->tpl->template_dir = 'includes/template/';
$armory->tpl->compile_dir = 'includes/cache/';
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/class.achievements.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 40
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/class.arenateams.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 30
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/class.characters.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 37
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/class.connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 30
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/class.guilds.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 39
* @copyright (c) 2009 Shadez
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down
26 changes: 15 additions & 11 deletions includes/classes/class.items.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* @package World of Warcraft Armory
* @version Release Candidate 1
* @revision 43
* @copyright (c) 2009 Shadez
* @revision 45
* @copyright (c) 2009-2010 Shadez
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -227,25 +227,29 @@ public function BuildItemSetInfo($itemset) {
$itemsName='';
$query = $this->aDB->selectRow("
SELECT *
FROM `itemset`
FROM `itemsetinfo`
WHERE `id`=? LIMIT 1", $itemset);
$itemSetName = $query['name'];
if(!$query) {
return false;
}
$itemSetName = $query['name_'.$locale];
$itemsCount = 0;
for($i=1; $i !=9; $i++) {
if($query['item_'.$i] > 0) {
if($query['item'.$i] > 0) {
$itemsCount++;
$curName = $this->getItemName($query['item_'.$i]);
$curName = $this->getItemName($query['item'.$i]);
if($curName) { // TODO: разобраться с сетами гладиаторов
$itemsName .= '<span class="setItemGray">'.$curName.'</span><br />';
}
//setItem
}
}

for($i=1; $i!=9; $i++) {
if($query['bonus_'.$i] > 0) {
$spell_tmp = $this->aDB->selectRow("SELECT * FROM `spell` WHERE `id`=?", $query['bonus_'.$i]);
$itemSetBonuses .= '<span class="setItemGray">('.$i.') Комплект:&nbsp;'.$this->spellReplace($spell_tmp, Utils::validateText($spell_tmp['Description'.$spell_locale])).'</span><br />';
for($i=1; $i<9; $i++) {
if($query['bonus'.$i] > 0) {
$spell_tmp = $this->aDB->selectRow("SELECT * FROM `spell` WHERE `id`=?", $query['bonus'.$i]);
$itemSetBonuses .= '<span class="setItemGray">('.$i.') ';
$itemSetBonuses .= ($locale == 'ru_ru') ? 'Комплект' : 'Set';
$itemSetBonuses .= ':&nbsp;'.$this->spellReplace($spell_tmp, Utils::validateText($spell_tmp['Description'.$spell_locale])).'</span><br />';
}
}
$fullItemInfoString = sprintf('<span class="setNameYellow">%s (0/%s)</span><div class="setItemIndent"><br />%s<br />%s</div>', $itemSetName, $itemsCount, $itemsName, $itemSetBonuses);
Expand Down
Loading

0 comments on commit 7cb913c

Please sign in to comment.