Imported AoWoW.
This version of AoWoW is based on https://github.com/udw/udwbase and is not yet usable. An initial amount of testing has been finished, and you can import the aowow.sql database into your world database, and create a local copy of config.php.in as config.php to test this version. FirePHP (http://firephp.org/) has been added for testing purposes. Signed-off-by: TheLuda <theluda@getmangos.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{strip}
|
||||
var lv_comments = [
|
||||
{foreach name=foo from=$comments key=number item=comment}
|
||||
{ldelim}
|
||||
number:{$comment.number},
|
||||
user:'{$comment.user}',
|
||||
body:'{$comment.body|escape:"javascript"}',
|
||||
date:'{$comment.date|date_format:"%Y/%m/%d %H:%M:%S"}',
|
||||
{if $comment.roles!=0}
|
||||
roles: {$comment.roles},
|
||||
{/if}
|
||||
{if $comment.indent!=0}
|
||||
indent: {$comment.indent},
|
||||
{/if}
|
||||
rating: {$comment.rating},
|
||||
replyTo: {$comment.replyto},
|
||||
purged: {$comment.purged},
|
||||
deleted:0,
|
||||
raters:[{foreach name=foo2 key=id from=$comment.raters item=rater}[{$rater.userid},{$rater.rate}]{if $smarty.foreach.foo2.last}{else},{/if}{/foreach}],
|
||||
id:{$comment.id}
|
||||
{rdelim}
|
||||
{if $smarty.foreach.foo.last}{else},{/if}
|
||||
{/foreach}
|
||||
];
|
||||
{/strip}
|
||||
@@ -0,0 +1,14 @@
|
||||
{*
|
||||
ШАБЛОН ИНФОРМАЦИИ О ВЕЩЯХ
|
||||
Переменные, передаваемые шаблону:
|
||||
data - данные для табл
|
||||
|
||||
Пример вставки модуля в текст:
|
||||
{include file='bricks/allitems_table.tpl' data=$allitems}
|
||||
*}
|
||||
var _ = g_items;
|
||||
{strip}
|
||||
{foreach from=$data key=id item=item}
|
||||
_[{$id}]={ldelim}icon: '{$item.icon}'{rdelim};
|
||||
{/foreach}
|
||||
{/strip}
|
||||
@@ -0,0 +1,6 @@
|
||||
var _ = g_spells;
|
||||
{strip}
|
||||
{foreach from=$data key=id item=item}
|
||||
_[{$id}]={ldelim}icon: '{$item.icon}'{rdelim};
|
||||
{/foreach}
|
||||
{/strip}
|
||||
@@ -0,0 +1,27 @@
|
||||
<div class="text">
|
||||
<h2>{#Contribute#}</h2>
|
||||
</div>
|
||||
<div id="tabs_contribute-generic" style="width: 50%"></div>
|
||||
<div class="text" style="margin-right: 310px">
|
||||
<div class="tabbed-contents" style="clear: none">
|
||||
<div id="tab-add-your-comment" style="display: none">
|
||||
<form name="addcomment" action="?comment=add&type={$page.type}&typeid={$page.typeid}" method="post" onsubmit="return co_validateForm(this)">
|
||||
<div id="replybox-generic" style="display: none">
|
||||
{#Replying_to_comment_by#} <span></span>. <a href="javascript:;" onclick="co_cancelReply()">{#Cancel#}</a>
|
||||
<div class="pad"></div>
|
||||
</div>
|
||||
<div id="funcbox-generic"></div>
|
||||
<script type="text/javascript">Listview.funcBox.coEditAppend(ge('funcbox-generic'), {ldelim}body: ''{rdelim}, 1)</script>
|
||||
<div class="pad"></div>
|
||||
<input type="submit" value="{#Submit#}"></input>
|
||||
<input type="hidden" name="replyto" value=""></input>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var tabsContribute = new Tabs({ldelim}parent: ge('tabs_contribute-generic'){rdelim});
|
||||
tabsContribute.add(LANG.tab_addyourcomment, {ldelim}id: 'add-your-comment'{rdelim});
|
||||
tabsContribute.flush();
|
||||
</script>
|
||||
<div class="clear"></div>
|
||||
@@ -0,0 +1,85 @@
|
||||
{*
|
||||
ШАБЛОН ТАБЛИЦЫ СОЗДАНИЙ
|
||||
Переменные, передаваемые шаблону:
|
||||
id - идентификатор/тип табл
|
||||
name - название табл
|
||||
tabsid - идентификатор вкладок
|
||||
data - данные для табл
|
||||
|
||||
Пример вставки модуля в текст:
|
||||
Со вкладками:
|
||||
{include file='bricks/creature_table.tpl' id='dropped-by' tabsid='tabsRelated' data=$droppedby name=#droppedby#}
|
||||
Без вкладок:
|
||||
{include file='bricks/creature_table.tpl' id='items' data=$items}
|
||||
*}
|
||||
{strip}
|
||||
|
||||
{assign var="cost" value=false}
|
||||
{assign var="stack" value=false}
|
||||
{assign var="group" value=false}
|
||||
{assign var="percent" value=false}
|
||||
|
||||
{foreach from=$data item=curr}
|
||||
{if isset($curr.cost)}{assign var="cost" value=true}{/if}
|
||||
{if isset($curr.stack)}{assign var="stack" value=true}{/if}
|
||||
{if isset($curr.percent)}{assign var="percent" value=true}{/if}
|
||||
{if isset($curr.group)}{assign var="group" value=true}{/if}
|
||||
{/foreach}
|
||||
|
||||
new Listview(
|
||||
{ldelim}template:'npc',
|
||||
id:'{$id}',
|
||||
{if isset($name)}name: LANG.tab_{$name},{/if}
|
||||
{if isset($tabsid)}tabs:{$tabsid},parent: 'listview-generic',{/if}
|
||||
extraCols:[
|
||||
{if $percent}Listview.extraCols.percent{/if}
|
||||
{if $cost}Listview.extraCols.stock, {if $stack}Listview.funcBox.createSimpleCol('stack', 'stack', '10%', 'stack'),{/if} Listview.extraCols.cost{/if}
|
||||
],
|
||||
hiddenCols:[{if $cost}'type'{else}'location'{/if}],
|
||||
sort: [{if $percent}'-percent',{/if} 'name'],
|
||||
data:[
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
name: '{$data[i].name|escape:"quotes"}',
|
||||
{if $data[i].subname}
|
||||
tag: '{$data[i].subname|escape:"quotes"}',
|
||||
{/if}
|
||||
minlevel: {$data[i].minlevel},
|
||||
maxlevel: {$data[i].maxlevel},
|
||||
type: {$data[i].type},
|
||||
classification: {$data[i].classification},
|
||||
react: [{$data[i].react}],
|
||||
{if $percent}
|
||||
percent: {$data[i].percent},
|
||||
{/if}
|
||||
{if $cost}
|
||||
stock: {$data[i].stock},
|
||||
{if isset($data[i].stack)}
|
||||
stack: {$data[i].stack},
|
||||
{/if}
|
||||
cost: [
|
||||
{if isset($data[i].cost.money)}{$data[i].cost.money}{/if}
|
||||
{if isset($data[i].cost.honor) or isset($data[i].cost.arena) or isset($data[i].cost.items)}
|
||||
,{if isset($data[i].cost.honor)}{$data[i].cost.honor}{/if}
|
||||
{if isset($data[i].cost.arena) or isset($data[i].cost.items)}
|
||||
,{if isset($data[i].cost.arena)}{$data[i].cost.arena}{/if}
|
||||
{if isset($data[i].cost.items)}
|
||||
,[
|
||||
{foreach from=$data[i].cost.items item=curitem name=c}
|
||||
[{$curitem.item},{$curitem.count}]
|
||||
{if $smarty.foreach.c.last}{else},{/if}
|
||||
{/foreach}
|
||||
]
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
],
|
||||
{/if}
|
||||
id: {$data[i].entry}
|
||||
{rdelim}
|
||||
{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]
|
||||
{rdelim}
|
||||
);
|
||||
{/strip}
|
||||
@@ -0,0 +1,12 @@
|
||||
{strip}
|
||||
new Listview({ldelim}template: 'faction', id: 'factions', data: [
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
id: {$data[i].entry},
|
||||
name: '{$data[i].name|escape:"quotes"}'
|
||||
{if isset($data[i].group)},group: '{$data[i].group|escape:"quotes"}'{/if}
|
||||
{if isset($data[i].side)},side: '{$data[i].side|escape:"quotes"}'{/if}
|
||||
{rdelim}{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]{rdelim});
|
||||
{/strip}
|
||||
@@ -0,0 +1,103 @@
|
||||
{strip}
|
||||
|
||||
{assign var="cost" value=true}
|
||||
{assign var="percent" value=false}
|
||||
{assign var="classs1" value=true}
|
||||
{assign var="classs2" value=true}
|
||||
{assign var="classs4" value=true}
|
||||
{assign var="group" value=false}
|
||||
|
||||
{foreach from=$data item=curr}
|
||||
{if !(isset($curr.cost))}{assign var="cost" value=false}{/if}
|
||||
{if isset($curr.percent)}{assign var="percent" value=true}{/if}
|
||||
{if !($curr.classs==1)}{assign var="classs1" value=false}{/if}
|
||||
{if !($curr.classs==2)}{assign var="classs2" value=false}{/if}
|
||||
{if !($curr.classs==4)}{assign var="classs4" value=false}{/if}
|
||||
{if isset($curr.group)}{assign var="group" value=true}{/if}
|
||||
{/foreach}
|
||||
|
||||
new Listview(
|
||||
{ldelim}template:'item',
|
||||
id:'{$id}',
|
||||
{if (isset($name))}name: LANG.tab_{$name},{/if}
|
||||
{if (isset($tabsid))}tabs:{$tabsid},parent:'listview-generic',{/if}
|
||||
extraCols:[
|
||||
{if $percent}Listview.extraCols.percent{/if}
|
||||
{if $group},Listview.funcBox.createSimpleCol('group', 'group', '10%', 'group'){/if}
|
||||
{if $cost}Listview.extraCols.stock, Listview.extraCols.cost{/if}
|
||||
],
|
||||
{if $classs1}visibleCols: ['slots'],
|
||||
{elseif $classs2}visibleCols: ['dps', 'speed'],
|
||||
{elseif $classs4}visibleCols: ['armor', 'slot'],{/if}
|
||||
hiddenCols:['source'],
|
||||
sort: [{if $percent}'-percent',{/if}'name'],
|
||||
data: [
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
{* Название/качество вещи, обязательно *}
|
||||
name: '{$data[i].quality2}{$data[i].name|escape:"quotes"}',
|
||||
{* Уровень вещи *}
|
||||
{if $data[i].level}
|
||||
level: {$data[i].level},
|
||||
{/if}
|
||||
{* Требуемый уровень вещи *}
|
||||
{if $data[i].reqlevel}
|
||||
reqlevel: {$data[i].reqlevel},
|
||||
{/if}
|
||||
{* Класс вещи, обязательно *}
|
||||
classs: {$data[i].classs},
|
||||
{* Подкласс вещи, обязательно *}
|
||||
subclass: {$data[i].subclass},
|
||||
{* Кол-во вещей при дропе *}
|
||||
{if isset($data[i].maxcount)}
|
||||
{if $data[i].maxcount>1}
|
||||
stack:[{$data[i].mincount},{$data[i].maxcount}],
|
||||
{/if}
|
||||
{/if}
|
||||
{* Процент дропа *}
|
||||
{if $percent}
|
||||
percent: {$data[i].percent},
|
||||
{/if}
|
||||
{if isset($data[i].group) and isset($data[i].grouppercent)}
|
||||
group: '{$data[i].group} [{$data[i].grouppercent}%]',
|
||||
{/if}
|
||||
{* Стоимость *}
|
||||
{if $cost}
|
||||
{* Макс. кол-во на продажу *}
|
||||
stock: -1,
|
||||
cost: [
|
||||
{if isset($data[i].cost.money)}{$data[i].cost.money}{/if}
|
||||
{if isset($data[i].cost.honor) or isset($data[i].cost.arena) or isset($data[i].cost.items)}
|
||||
,{if isset($data[i].cost.honor)}{$data[i].cost.honor}{/if}
|
||||
{if isset($data[i].cost.arena) or isset($data[i].cost.items)}
|
||||
,{if isset($data[i].cost.arena)}{$data[i].cost.arena}{/if}
|
||||
{if isset($data[i].cost.items)}
|
||||
,[
|
||||
{foreach from=$data[i].cost.items item=curitem name=c}
|
||||
[{$curitem.item},{$curitem.count}]
|
||||
{if $smarty.foreach.c.last}{else},{/if}
|
||||
{/foreach}
|
||||
]
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
],
|
||||
{/if}
|
||||
{if $classs1==1}
|
||||
nslots: {$data[i].slots},
|
||||
{/if}
|
||||
{if $classs2}
|
||||
dps: {$data[i].dps},
|
||||
speed: {$data[i].speed},
|
||||
{/if}
|
||||
{if $classs4}
|
||||
armor: {$data[i].armor},
|
||||
slot: {$data[i].slot},
|
||||
{/if}
|
||||
{* Номер вещи, обязателен *}
|
||||
id: {$data[i].entry}
|
||||
{rdelim}{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]{rdelim}
|
||||
);
|
||||
{/strip}
|
||||
@@ -0,0 +1,21 @@
|
||||
{strip}
|
||||
new Listview({ldelim}
|
||||
template: 'itemset',
|
||||
id: 'itemsets',
|
||||
{if isset($name)}name: LANG.tab_{$name},{/if}
|
||||
{if isset($tabsid)}tabs:{$tabsid},parent:'listview-generic',{/if}
|
||||
data: [
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
name: '{$data[i].quality2}{$data[i].name|escape:"quotes"}',
|
||||
{if $data[i].minlevel}minlevel: {$data[i].minlevel},{/if}
|
||||
{if $data[i].maxlevel}maxlevel: {$data[i].maxlevel},{/if}
|
||||
{if $data[i].pieces}pieces:[{section name=j loop=$data[i].pieces}{$data[i].pieces[j]}{if $smarty.section.j.last}{else},{/if}{/section}],{/if}
|
||||
{if isset($data[i].type)}type: {$data[i].type},{/if}
|
||||
id: {$data[i].entry}
|
||||
{rdelim}
|
||||
{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]
|
||||
{rdelim});
|
||||
{/strip}
|
||||
@@ -0,0 +1,42 @@
|
||||
{strip}
|
||||
|
||||
{assign var="percent" value=false}
|
||||
{assign var="skill" value=false}
|
||||
|
||||
{foreach from=$data item=curr}
|
||||
{if isset($curr.percent)}{assign var="percent" value=true}{/if}
|
||||
{if isset($curr.skill)}{assign var="skill" value=true}{/if}
|
||||
{/foreach}
|
||||
|
||||
new Listview({ldelim}
|
||||
template:'object',
|
||||
id:'{$id}',
|
||||
{if isset($name)}name: LANG.tab_{$name},{/if}
|
||||
{if isset($tabsid)}tabs:{$tabsid},parent:'listview-generic',{/if}
|
||||
{if $percent}extraCols:[Listview.extraCols.percent],{/if}
|
||||
{if $skill}visibleCols:['skill'],{/if}
|
||||
sort: [{if $skill}'skill',{/if}{if $percent}'-percent',{/if} 'name'],
|
||||
hiddenCols:[],
|
||||
data:[
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
{* Название обекта, обязательно *}
|
||||
name: '{$data[i].name|escape:"quotes"}',
|
||||
{* Тип обекта, обязательно *}
|
||||
type: {$data[i].type},
|
||||
{* Процент дропа *}
|
||||
{if $percent}
|
||||
percent: {$data[i].percent},
|
||||
{/if}
|
||||
{* Необходимый уровень скилла *}
|
||||
{if $skill}
|
||||
skill: {$data[i].skill},
|
||||
{/if}
|
||||
{* Номер объекта, обязателен *}
|
||||
id: {$data[i].entry}
|
||||
{rdelim}
|
||||
{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]{rdelim}
|
||||
);
|
||||
{/strip}
|
||||
@@ -0,0 +1,56 @@
|
||||
{strip}
|
||||
new Listview({ldelim}
|
||||
template:'quest',
|
||||
id:'{$id}',
|
||||
{if isset($name)}name: LANG.tab_{$name},{/if}
|
||||
{if isset($tabsid)}tabs:{$tabsid},parent:'listview-generic',{/if}
|
||||
data:[
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
id: '{$data[i].entry}',
|
||||
name: '{$data[i].Title|escape:"quotes"}',
|
||||
level: '{$data[i].QuestLevel}',
|
||||
{if ($data[i].MinLevel)}
|
||||
reqlevel:{$data[i].MinLevel},
|
||||
{/if}
|
||||
side: '{$data[i].side.side}'
|
||||
{if isset($data[i].itemrewards)}
|
||||
,itemrewards:[
|
||||
{section name=j loop=$data[i].itemrewards}
|
||||
[{$data[i].itemrewards[j].entry},{$data[i].itemrewards[j].count}]
|
||||
{if $smarty.section.j.last}{else},{/if}
|
||||
{/section}
|
||||
]
|
||||
{/if}
|
||||
{if isset($data[i].itemchoices)}
|
||||
,itemchoices:[
|
||||
{section name=j loop=$data[i].itemchoices}
|
||||
[{$data[i].itemchoices[j].entry},{$data[i].itemchoices[j].count}]
|
||||
{if $smarty.section.j.last}{else},{/if}
|
||||
{/section}
|
||||
]
|
||||
{/if}
|
||||
{if isset($data[i].xp)}
|
||||
,xp:{$data[i].xp}
|
||||
{/if}
|
||||
{if isset($data[i].money)}
|
||||
,money:{$data[i].money}
|
||||
{/if}
|
||||
{if isset($data[i].category)}
|
||||
,category:{$data[i].category}
|
||||
{/if}
|
||||
{if isset($data[i].maincat)}
|
||||
,category2:{$data[i].maincat}
|
||||
{/if}
|
||||
{if isset($data[i].type)}
|
||||
,type:{$data[i].type}
|
||||
{/if}
|
||||
{if isset($data[i].Daily)}
|
||||
,daily: 1
|
||||
{/if}
|
||||
{rdelim}
|
||||
{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]
|
||||
{rdelim});
|
||||
{/strip}
|
||||
@@ -0,0 +1,68 @@
|
||||
{strip}
|
||||
|
||||
{assign var="level" value=false}
|
||||
{assign var="skill" value=false}
|
||||
{assign var="reagents" value=false}
|
||||
|
||||
{foreach from=$data item=curr}
|
||||
{if $curr.level}{assign var="level" value=true}{/if}
|
||||
{if $curr.skill}{assign var="skill" value=true}{/if}
|
||||
{if $curr.reagents}{assign var="reagents" value=true}{/if}
|
||||
{/foreach}
|
||||
|
||||
new Listview({ldelim}
|
||||
template:'spell',
|
||||
id:'{$id}',
|
||||
{if isset($name)}name: LANG.tab_{$name},{/if}
|
||||
visibleCols: [{if $level}'level'{/if}],
|
||||
hiddenCols: [{if !$reagents}'reagents',{/if}{if !$skill}'skill',{/if}'school'],
|
||||
sort: [{if isset($sort)}{$sort}{else}'name'{/if}],
|
||||
{if $script}note: sprintf(LANG.lvnote_scripttype, '{$script|escape:"quotes"}'),{/if}
|
||||
{if isset($tabsid)}tabs:{$tabsid}, parent: 'listview-generic',{/if}
|
||||
data:[
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
name: '{$data[i].quality}{$data[i].name|escape:"quotes"}',
|
||||
{if $level}level: {$data[i].level},{/if}
|
||||
school: {$data[i].school},
|
||||
{if isset($data[i].rank)}
|
||||
rank: '{$data[i].rank|escape:"quotes"}',
|
||||
{/if}
|
||||
{if isset($data[i].skill)}
|
||||
skill: [{$data[i].skill}],
|
||||
{/if}
|
||||
{if $data[i].reagents}
|
||||
reagents:[
|
||||
{section name=j loop=$data[i].reagents}
|
||||
[{$data[i].reagents[j].entry},{$data[i].reagents[j].count}]
|
||||
{if $smarty.section.j.last}{else},{/if}
|
||||
{/section}
|
||||
],
|
||||
{/if}
|
||||
{if isset($data[i].creates)}
|
||||
creates:[
|
||||
{section name=j loop=$data[i].creates}
|
||||
{$data[i].creates[j].entry},
|
||||
{$data[i].creates[j].count}
|
||||
{if $smarty.section.j.last}{else},{/if}
|
||||
{/section}
|
||||
],
|
||||
{/if}
|
||||
{if isset($data[i].learnedat)}
|
||||
learnedat: {$data[i].learnedat},
|
||||
{/if}
|
||||
{if isset($data[i].colors)}
|
||||
colors:[
|
||||
{section name=j loop=$data[i].colors}
|
||||
{$data[i].colors[j]}
|
||||
{if $smarty.section.j.last}{else},{/if}
|
||||
{/section}
|
||||
],
|
||||
{/if}
|
||||
id: {$data[i].entry}
|
||||
{rdelim}
|
||||
{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]
|
||||
{rdelim});
|
||||
{/strip}
|
||||
@@ -0,0 +1,21 @@
|
||||
{*
|
||||
ШАБЛОН ТАБЛИЦ
|
||||
Переменные, передаваемые шаблону:
|
||||
id - идентификатор/тип табл
|
||||
name - название табл
|
||||
tabsid - идентификатор вкладок
|
||||
data - данные для табл
|
||||
|
||||
Пример вставки модуля в текст:
|
||||
{include file='bricks/table.tpl' id='dropped-by' tabsid='tabsRelated' data=$droppedby name=#droppedby#}
|
||||
*}
|
||||
|
||||
<div id="tabs-generic"></div>
|
||||
<div id="listview-generic" class="listview"></div>
|
||||
<script type="text/javascript">
|
||||
var {$tabsid} = new Tabs({ldelim}parent: ge('tabs-generic'){rdelim});
|
||||
{section name=k loop=$data}
|
||||
{include file=$data[k].file id=$data[k].id tabsid=$tabsid data=$data[k].data name=$data[k].name}
|
||||
{/section}
|
||||
tabsRelated.flush();
|
||||
</script>
|
||||
@@ -0,0 +1,22 @@
|
||||
{strip}
|
||||
new Listview({ldelim}
|
||||
template:'zone',
|
||||
id:'fished-in',
|
||||
{if $name}name: LANG.tab_{$name}{/if},
|
||||
tabs:tabsRelated,
|
||||
parent:'listview-generic',
|
||||
hiddenCols: ['instancetype', 'level', 'territory', 'category'],
|
||||
extraCols: [Listview.extraCols.percent],
|
||||
sort:['-percent', 'name'],
|
||||
data:[
|
||||
{section name=i loop=$data}
|
||||
{ldelim}
|
||||
id: '{$data[i].id}',
|
||||
name: '{$data[i].name|escape:"quotes"}',
|
||||
percent: {$data[i].percent}
|
||||
{rdelim}
|
||||
{if $smarty.section.i.last}{else},{/if}
|
||||
{/section}
|
||||
]
|
||||
{rdelim});
|
||||
{/strip}
|
||||
Reference in New Issue
Block a user