PHP/Compat

* fixed misc issues Intellisense was nice enough to highlight.
 * mostly deprecated usage of uninitialized parameters
 * class GenericPage still needs a long, hard look and a refactor
This commit is contained in:
Sarjuuk
2024-03-11 19:40:30 +01:00
parent 3e6e43fd68
commit ec1a2afc5f
75 changed files with 387 additions and 223 deletions

View File

@@ -64,7 +64,7 @@ class AjaxAccount extends AjaxHandler
foreach ($ids as $typeId)
DB::Aowow()->query('INSERT INTO ?_account_excludes (`userId`, `type`, `typeId`, `mode`) VALUES (?a) ON DUPLICATE KEY UPDATE mode = (mode ^ 0x3)', array(
User::$id, $type, $typeId, in_array($includes, $typeId) ? 2 : 1
User::$id, $type, $typeId, in_array($typeId, $includes) ? 2 : 1
));
return;

View File

@@ -411,7 +411,8 @@ class AjaxComment extends AjaxHandler
return;
}
Util::createReport(1, 19, $this->_post['id'][0], '[General Reply Report]');
$report = new Report(Report::MODE_COMMENT, Report::CO_INAPPROPRIATE, $this->_post['id'][0]);
$report->create('Report Reply Button Click');
}
protected function handleReplyUpvote() : void

View File

@@ -29,7 +29,7 @@ class AjaxGotocomment extends AjaxHandler
if ($_ = DB::Aowow()->selectRow('SELECT IFNULL(c2.id, c1.id) AS id, IFNULL(c2.type, c1.type) AS type, IFNULL(c2.typeId, c1.typeId) AS typeId FROM ?_comments c1 LEFT JOIN ?_comments c2 ON c1.replyTo = c2.id WHERE c1.id = ?d', $this->_get['id']))
return '?'.Type::getFileString(intVal($_['type'])).'='.$_['typeId'].'#comments:id='.$_['id'].($_['id'] != $this->_get['id'] ? ':reply='.$this->_get['id'] : null);
else
trigger_error('AjaxGotocomment::handleGoToComment - could not find comment #'.$this->get['id'], E_USER_ERROR);
trigger_error('AjaxGotocomment::handleGoToComment - could not find comment #'.$this->_get['id'], E_USER_ERROR);
return '.';
}

View File

@@ -19,6 +19,7 @@ abstract class BaseType
private $itrStack = [];
public static $dataTable = '';
public static $contribute = CONTRIBUTE_ANY;
/*
@@ -925,6 +926,8 @@ abstract class Filter
*/
protected $genericFilter = [];
protected $enums = []; // criteriumID => [validOptionList]
/*
fieldId => [checkType, checkValue[, fieldIsArray]]
*/

View File

@@ -352,6 +352,11 @@ define('SIDE_ALLIANCE', 1);
define('SIDE_HORDE', 2);
define('SIDE_BOTH', 3);
// Expansion
define('EXP_CLASSIC', 0);
define('EXP_BC', 1);
define('EXP_WOTLK', 2);
// ClassMask
define('CLASS_WARRIOR', 0x001);
define('CLASS_PALADIN', 0x002);

View File

@@ -93,6 +93,8 @@ require_once __DIR__ . '/CacherImpl.php';
*/
abstract class DbSimple_Database extends DbSimple_LastError
{
private $attributes;
/**
* Public methods.
*/

View File

@@ -26,6 +26,8 @@ class DbSimple_Mysqli extends DbSimple_Database
{
var $link;
private $_lastQuery;
/**
* constructor(string $dsn)
* Connect to MySQL server.

View File

@@ -15,6 +15,8 @@ class SmartAI
private $srcType = 0;
private $entry = 0;
private $rowKey = '';
private $miscData = [];
private $quotes = [];
private $summons = null;

View File

@@ -122,6 +122,7 @@ class RemoteArenaTeamList extends ArenaTeamList
);
private $members = [];
private $rankOrder = [];
public function __construct($conditions = [], $miscData = null)
{

View File

@@ -22,6 +22,9 @@ class ItemList extends BaseType
private $vendors = [];
private $jsGlobals = []; // getExtendedCost creates some and has no access to template
private $enhanceR = [];
private $relEnchant = [];
protected $queryBase = 'SELECT i.*, i.block AS tplBlock, i.armor AS tplArmor, i.dmgMin1 AS tplDmgMin1, i.dmgMax1 AS tplDmgMax1, i.id AS ARRAY_KEY, i.id AS id FROM ?_items i';
protected $queryOpts = array( // 3 => Type::ITEM
'i' => [['is', 'src', 'ic'], 'o' => 'i.quality DESC, i.itemLevel DESC'],

View File

@@ -509,6 +509,8 @@ class RemoteProfileList extends ProfileList
'at' => [['atm'], 'j' => 'arena_team at ON atm.arenaTeamId = at.arenaTeamId', 's' => ', at.name AS arenateam, IF(at.captainGuid = c.guid, 1, 0) AS captain']
);
private $rnItr = []; // rename iterator [name => nCharsWithThisName]
public function __construct($conditions = [], $miscData = null)
{
// select DB by realm

View File

@@ -1033,7 +1033,7 @@ abstract class Util
return $success;
}
public static function createHash($length = 40) // just some random numbers for unsafe identifictaion purpose
public static function createHash($length = 40) // just some random numbers for unsafe identification purpose
{
static $seed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$hash = '';
@@ -2010,21 +2010,21 @@ class Report
{
if ($mode < 0 || $reason <= 0 || !$subject)
{
trigger_error('AjaxContactus::handleContactUs - malformed contact request received', E_USER_ERROR);
trigger_error('Report - malformed contact request received', E_USER_ERROR);
$this->errorCode = self::ERR_MISCELLANEOUS;
return;
}
if (!isset($this->context[$mode][$reason]))
{
trigger_error('AjaxContactus::handleContactUs - report has invalid context (mode:'.$mode.' / reason:'.$reason.')', E_USER_ERROR);
trigger_error('Report - report has invalid context (mode:'.$mode.' / reason:'.$reason.')', E_USER_ERROR);
$this->errorCode = self::ERR_MISCELLANEOUS;
return;
}
if (!User::$id && !User::$ip)
{
trigger_error('AjaxContactus::handleContactUs - could not determine IP for anonymous user', E_USER_ERROR);
trigger_error('Report - could not determine IP for anonymous user', E_USER_ERROR);
$this->errorCode = self::ERR_MISCELLANEOUS;
return;
}

View File

@@ -7,6 +7,13 @@ if (!defined('AOWOW_REVISION'))
// exclude & weightscales are handled as Ajax
class AccountPage extends GenericPage
{
protected $text = '';
protected $head = '';
protected $token = '';
protected $infobox = [];
protected $resetPass = false;
protected $forceTabs = false;
protected $tpl = 'acc-dashboard';
protected $scripts = array(
[SC_JS_FILE, 'js/user.js'],

View File

@@ -25,6 +25,12 @@ class AchievementPage extends GenericPage
{
use TrDetailPage;
protected $mail = [];
protected $series = null;
protected $description = '';
protected $criteria = [];
protected $rewards = [];
protected $type = Type::ACHIEVEMENT;
protected $typeId = 0;
protected $tpl = 'achievement';
@@ -151,9 +157,9 @@ class AchievementPage extends GenericPage
/* Main Content */
/****************/
$this->mail = $this->createMail($reqBook);
$this->headIcons = [$this->subject->getField('iconString')];
$this->infobox = $infobox ? '[ul][li]'.implode('[/li][li]', $infobox).'[/li][/ul]' : null;
$this->mail = $this->createMail($reqBook);
$this->series = $series ? [[array_values($series), null]] : null;
$this->description = $this->subject->getField('description', true);
$this->redButtons = array(

View File

@@ -6,6 +6,14 @@ if (!defined('AOWOW_REVISION'))
class AdminPage extends GenericPage
{
protected $getAll = null;
protected $ssPages = [];
protected $ssData = [];
protected $ssNFound = int;
protected $lvTabs = [];
protected $extraText = '';
protected $extraHTML = '';
protected $tpl = null; // depends on the subject
protected $reqUGroup = U_GROUP_NONE; // actual group dependant on the subPage
protected $reqAuth = true;

View File

@@ -10,14 +10,18 @@ class ArenaTeamPage extends GenericPage
{
use TrProfiler;
protected $lvTabs = [];
protected $lvTabs = [];
protected $type = Type::ARENA_TEAM;
protected $type = Type::ARENA_TEAM;
protected $tabId = 1;
protected $path = [1, 5, 3];
protected $tpl = 'roster';
protected $scripts = array(
protected $subject = null;
protected $redButtons = [];
protected $extraHTML = null;
protected $tabId = 1;
protected $path = [1, 5, 3];
protected $tpl = 'roster';
protected $scripts = array(
[SC_JS_FILE, 'js/profile_all.js'],
[SC_JS_FILE, 'js/profile.js'],
[SC_CSS_FILE, 'css/Profiler.css']
@@ -65,7 +69,6 @@ class ArenaTeamPage extends GenericPage
if ($this->subject->error)
$this->notFound();
$this->profile = $params;
$this->name = sprintf(Lang::profiler('arenaRoster'), $this->subject->getField('name'));
}
// 2) not yet synced but exists on realm (wont work if we get passed an urlized name, but there is nothing we can do about it)

View File

@@ -10,6 +10,12 @@ class ArenaTeamsPage extends GenericPage
{
use TrProfiler;
private $filterObj = null;
protected $subCat = '';
protected $filter = [];
protected $lvTabs = [];
protected $type = Type::ARENA_TEAM;
protected $tabId = 1;

View File

@@ -10,6 +10,9 @@ class EnchantmentPage extends GenericPage
{
use TrDetailPage;
protected $effects = [];
protected $activation = [];
protected $type = Type::ENCHANTMENT;
protected $typeId = 0;
protected $tpl = 'enchantment';
@@ -169,7 +172,7 @@ class EnchantmentPage extends GenericPage
}
}
$this->activateCondition = $x;
$this->activation = $x;
}
/**************/

View File

@@ -10,6 +10,8 @@ class EventPage extends GenericPage
{
use TrDetailPage;
protected $dates = [];
protected $type = Type::WORLDEVENT;
protected $typeId = 0;
protected $tpl = 'detail-page-generic';

View File

@@ -10,6 +10,8 @@ class EventsPage extends GenericPage
{
use TrListPage;
private $dependency = [];
protected $type = Type::WORLDEVENT;
protected $tpl = 'list-page-generic';
protected $path = [0, 11];
@@ -47,10 +49,9 @@ class EventsPage extends GenericPage
$events = new WorldEventList($condition);
$this->extendGlobalData($events->getJSGlobals());
$this->deps = [];
foreach ($events->iterate() as $__)
if ($d = $events->getField('requires'))
$this->deps[$events->id] = $d;
$this->dependency[$events->id] = $d;
$data = array_values($events->getListviewData());
@@ -86,7 +87,7 @@ class EventsPage extends GenericPage
foreach ($views[1]['data'] as &$data)
{
// is a followUp-event
if (!empty($this->deps[$data['id']]))
if (!empty($this->dependency[$data['id']]))
{
$data['startDate'] = $data['endDate'] = false;
unset($data['_date']);

View File

@@ -15,6 +15,18 @@ trait TrDetailPage
protected $subject = null; // so it will not get cached
// template vars
protected $extraText = '';
protected $infobox = [];
protected $transfer = []; // faction transfer equivalent data
protected $redButtons = []; // see template/redButtons.tpl.php
protected $smartAI = null;
protected $map = null;
protected $article = [];
protected $headIcons = [];
protected $expansion = EXP_CLASSIC;
protected $contribute = CONTRIBUTE_ANY;
protected function generateCacheKey(bool $withStaff = true) : string
@@ -49,9 +61,11 @@ trait TrDetailPage
trait TrListPage
{
protected $category = null;
protected $filter = [];
protected $lvTabs = []; // most pages have this
protected $category = null;
protected $subCat = '';
protected $filter = [];
protected $lvTabs = []; // most pages have this
protected $redButtons = []; // see template/redButtons.tpl.php
private $filterObj = null;
@@ -574,7 +588,7 @@ class GenericPage
$this->article['params']['prepend'] = '<div class="notice-box"><span class="icon-bubble">'.Lang::main('langOnly', [Lang::lang($article['locale'])]).'</span></div>';
if (method_exists($this, 'postArticle')) // e.g. update variables in article
$this->postArticle();
$this->postArticle($this->article['text']);
}
}

View File

@@ -17,6 +17,9 @@ class GuidePage extends GenericPage
const VALID_URL = '/^[a-z0-9=_&\.\/\-]{2,64}$/i';
protected /* array */ $guideRating = [];
protected /* ?string */$extraHTML = null;
protected /* int */ $type = Type::GUIDE;
protected /* int */ $typeId = 0;
protected /* int */ $guideRevision = -1;
@@ -33,6 +36,7 @@ class GuidePage extends GenericPage
private /* string */ $extra = '';
private /* string */ $powerTpl = '$WowheadPower.registerGuide(%s, %d, %s);';
private /* array */ $editorFields = [];
private /* bool */ $save = false;
protected /* array */ $_get = array(
'id' => ['filter' => FILTER_CALLBACK, 'options' => 'GenericPage::checkInt'],
@@ -296,7 +300,7 @@ class GuidePage extends GenericPage
if ($this->subject->getField('nvotes') < 5)
$qf[] = Lang::guide('rating').Lang::main('colon').Lang::guide('noVotes');
else
$qf[] = Lang::guide('rating').Lang::main('colon').Lang::guide('votes', [round($this->rating['avg'], 1), $this->rating['n']]);
$qf[] = Lang::guide('rating').Lang::main('colon').Lang::guide('votes', [round($this->subject->getField('rating'), 1), $this->subject->getField('nvotes')]);
}
break;
case GUIDE_STATUS_ARCHIVED:

View File

@@ -10,14 +10,18 @@ class GuildPage extends GenericPage
{
use TrProfiler;
protected $lvTabs = [];
protected $lvTabs = [];
protected $type = Type::GUILD;
protected $type = Type::GUILD;
protected $tabId = 1;
protected $path = [1, 5, 2];
protected $tpl = 'roster';
protected $scripts = array(
protected $subject = null;
protected $redButtons = [];
protected $extraHTML = null;
protected $tabId = 1;
protected $path = [1, 5, 2];
protected $tpl = 'roster';
protected $scripts = array(
[SC_JS_FILE, 'js/profile_all.js'],
[SC_JS_FILE, 'js/profile.js'],
[SC_CSS_FILE, 'css/Profiler.css']
@@ -65,7 +69,6 @@ class GuildPage extends GenericPage
if ($this->subject->error)
$this->notFound();
$this->profile = $params;
$this->name = sprintf(Lang::profiler('guildRoster'), $this->subject->getField('name'));
}
// 2) not yet synced but exists on realm (wont work if we get passed an urlized name, but there is nothing we can do about it)

View File

@@ -10,6 +10,12 @@ class GuildsPage extends GenericPage
{
use TrProfiler;
private $filterObj = null;
protected $subCat = '';
protected $filter = [];
protected $lvTabs = [];
protected $type = Type::GUILD;
protected $tabId = 1;

View File

@@ -10,6 +10,8 @@ class IconPage extends GenericPage
{
use TrDetailPage;
protected $icon = '';
protected $type = Type::ICON;
protected $typeId = 0;
protected $tpl = 'icon';

View File

@@ -10,6 +10,11 @@ class ItemPage extends genericPage
{
use TrDetailPage;
protected $pageText = [];
protected $tooltip = null;
protected $unavailable = false;
protected $subItems = [];
protected $type = Type::ITEM;
protected $typeId = 0;
protected $tpl = 'item';
@@ -372,7 +377,7 @@ class ItemPage extends genericPage
);
// availablility
$this->unavailable = $this->subject->getField('cuFlags') & CUSTOM_UNAVAILABLE;
$this->unavailable = !!($this->subject->getField('cuFlags') & CUSTOM_UNAVAILABLE);
// subItems
$this->subject->initSubItems();

View File

@@ -10,6 +10,9 @@ class ItemsPage extends GenericPage
{
use TrListPage;
protected $forceTabs = false;
protected $gemScores = [];
protected $type = Type::ITEM;
protected $tpl = 'items';
protected $path = [0, 0];
@@ -76,6 +79,7 @@ class ItemsPage extends GenericPage
13 => true
);
private $filterOpts = [];
private $sharedLV = array( // common listview components across all tabs
'hiddenCols' => [],
'visibleCols' => [],
@@ -485,7 +489,7 @@ class ItemsPage extends GenericPage
$this->sharedLV['computeDataFunc'] = '$fi_scoreSockets';
$q = intVal($this->filter['gm']);
$mask = 14;
$mask = 0xE;
$cnd = [10, ['class', ITEM_CLASS_GEM], ['gemColorMask', &$mask, '&'], ['quality', &$q]];
if (!isset($this->filter['jc']))
$cnd[] = ['itemLimitCategory', 0]; // Jeweler's Gems
@@ -503,7 +507,7 @@ class ItemsPage extends GenericPage
for ($i = 0; $i < 4; $i++)
{
$mask = 1 << $i;
$q = !$i ? 3 : intVal($this->filter['gm']); // meta gems are always included.. ($q is backReferenced)
$q = !$i ? ITEM_QUALITY_RARE : intVal($this->filter['gm']); // meta gems are always included.. ($q is backReferenced)
$byColor = new ItemList($cnd, ['extraOpts' => $this->filterObj->extraOpts]);
if (!$byColor->error)
{

View File

@@ -10,6 +10,13 @@ class ItemsetPage extends GenericPage
{
use TrDetailPage;
protected $summary = [];
protected $bonusExt = '';
protected $description = '';
protected $unavailable = false;
protected $pieces = [];
protected $spells = [];
protected $type = Type::ITEMSET;
protected $typeId = 0;
protected $tpl = 'itemset';
@@ -18,8 +25,6 @@ class ItemsetPage extends GenericPage
protected $mode = CACHE_TYPE_PAGE;
protected $scripts = [[SC_JS_FILE, 'js/swfobject.js'], [SC_JS_FILE, 'js/Summary.js']];
protected $summary = [];
protected $_get = ['domain' => ['filter' => FILTER_CALLBACK, 'options' => 'GenericPage::checkDomain']];
private $powerTpl = '$WowheadPower.registerItemSet(%d, %d, %s);';
@@ -160,11 +165,11 @@ class ItemsetPage extends GenericPage
$this->bonusExt = $skill;
$this->description = $_ta ? sprintf(Lang::itemset('_desc'), $this->name, Lang::itemset('notes', $_ta), $_cnt) : sprintf(Lang::itemset('_descTagless'), $this->name, $_cnt);
$this->unavailable = $this->subject->getField('cuFlags') & CUSTOM_UNAVAILABLE;
$this->unavailable = !!($this->subject->getField('cuFlags') & CUSTOM_UNAVAILABLE);
$this->infobox = $infobox ? '[ul][li]'.implode('[/li][li]', $infobox).'[/li][/ul]' : null;
$this->pieces = $pieces;
$this->spells = $this->subject->getBonuses();
$this->expansion = 0;
// $this->expansion = $this->subject->getField('expansion'); NYI - todo: add col to table
$this->redButtons = array(
BUTTON_WOWHEAD => $this->typeId > 0, // bool only
BUTTON_LINKS => ['type' => $this->type, 'typeId' => $this->typeId],

View File

@@ -10,14 +10,21 @@ if (!defined('AOWOW_REVISION'))
class MorePage extends GenericPage
{
protected $tpl = 'list-page-generic';
protected $path = [];
protected $tabId = 0;
protected $mode = CACHE_TYPE_NONE;
protected $scripts = [[SC_JS_FILE, 'js/swfobject.js']];
protected $articleUrl = '';
protected $tabsTitle = '';
protected $privReqPoints = '';
protected $forceTabs = true;
protected $lvTabs = [];
protected $privileges = [];
private $page = [];
private $req2priv = array(
protected $tpl = 'list-page-generic';
protected $path = [];
protected $tabId = 0;
protected $mode = CACHE_TYPE_NONE;
protected $scripts = [[SC_JS_FILE, 'js/swfobject.js']];
private $page = [];
private $req2priv = array(
1 => CFG_REP_REQ_COMMENT, // write comments
2 => 0, // NYI post external links
4 => 0, // NYI no captcha
@@ -56,9 +63,9 @@ class MorePage extends GenericPage
{
$pageData = $this->validPages[$pageCall];
$this->tab = $pageData[0];
$this->path = $pageData[1];
$this->page = [$pageCall, $subPage];
$this->tabId = $pageData[0];
$this->path = $pageData[1];
$this->page = [$pageCall, $subPage];
if ($subPage && isset($pageData[2]))
{
@@ -109,14 +116,13 @@ class MorePage extends GenericPage
}
}
protected function postArticle()
protected function postArticle(string &$txt) : void
{
if ($this->page[0] != 'reputation' &&
$this->page[0] != 'privileges' &&
$this->page[0] != 'privilege')
return;
$txt = &$this->article['text'];
$consts = get_defined_constants(true);
foreach ($consts['user'] as $k => $v)
{
@@ -145,7 +151,6 @@ class MorePage extends GenericPage
$r['when'] = date(Util::$dateFormatInternal, $r['when']);
$this->tabsTitle = Lang::main('yourRepHistory');
$this->forceTabs = true;
$this->lvTabs[] = ['reputationhistory', array(
'id' => 'reputation-history',
'name' => '$LANG.reputationhistory',

View File

@@ -10,6 +10,12 @@ class NpcPage extends GenericPage
{
use TrDetailPage;
protected $placeholder = null;
protected $accessory = [];
protected $quotes = [];
protected $reputation = [];
protected $subname = '';
protected $type = Type::NPC;
protected $typeId = 0;
protected $tpl = 'npc';

View File

@@ -10,6 +10,8 @@ class NpcsPage extends GenericPage
{
use TrListPage;
protected $petFamPanel = false;
protected $type = Type::NPC;
protected $tpl = 'npcs';
protected $path = [0, 4];
@@ -45,8 +47,6 @@ class NpcsPage extends GenericPage
$conditions[] = ['type', $this->category[0]];
$this->petFamPanel = $this->category[0] == 1;
}
else
$this->petFamPanel = false;
if ($_ = $this->filterObj->getConditions())
$conditions[] = $_;

View File

@@ -10,6 +10,9 @@ class ObjectPage extends GenericPage
{
use TrDetailPage;
protected $pageText = [];
protected $relBoss = null;
protected $type = Type::OBJECT;
protected $typeId = 0;
protected $tpl = 'object';
@@ -213,7 +216,7 @@ class ObjectPage extends GenericPage
/****************/
// pageText
if ($this->pageText = Game::getPageText($next = $this->subject->getField('pageTextId')))
if ($this->pageText = Game::getPageText($this->subject->getField('pageTextId')))
$this->addScript(
[SC_JS_FILE, 'js/Book.js'],
[SC_CSS_FILE, 'css/Book.css']

View File

@@ -10,6 +10,11 @@ class ProfilesPage extends GenericPage
{
use TrProfiler;
private $filterObj = null;
protected $subCat = '';
protected $filter = [];
protected $lvTabs = [];
protected $roster = 0; // $_GET['roster'] = 1|2|3|4 .. 2,3,4 arenateam-size (4 => 5-man), 1 guild .. it puts a resync button on the lv...
protected $type = Type::PROFILE;

View File

@@ -10,6 +10,21 @@ class QuestPage extends GenericPage
{
use TrDetailPage;
protected $objectiveList = [];
protected $providedItem = [];
protected $series = [];
protected $gains = [];
protected $mail = [];
protected $rewards = [];
protected $objectives = '';
protected $details = '';
protected $offerReward = '';
protected $requestItems = '';
protected $completed = '';
protected $end = '';
protected $suggestedPl = 1;
protected $unavailable = false;
protected $type = Type::QUEST;
protected $typeId = 0;
protected $tpl = 'quest';
@@ -369,9 +384,6 @@ class QuestPage extends GenericPage
/* Objectives List */
/*******************/
$this->objectiveList = [];
$this->providedItem = [];
// gather ids for lookup
$olItems = $olNPCs = $olGOs = $olFactions = [];
$olItemData = $olNPCData = $olGOData = null;

View File

@@ -11,6 +11,10 @@ class ScreenshotPage extends GenericPage
const MAX_W = 488;
const MAX_H = 325;
protected $infobox = [];
protected $cropper = [];
protected $extraHTML = null;
protected $tpl = 'screenshot';
protected $scripts = [[SC_JS_FILE, 'js/Cropper.js'], [SC_CSS_FILE, 'css/Cropper.css']];
protected $reqAuth = true;
@@ -20,6 +24,7 @@ class ScreenshotPage extends GenericPage
private $pendingPath = 'static/uploads/screenshots/pending/';
private $destination = null;
private $minSize = CFG_SCREENSHOT_MIN_SIZE;
private $command = '';
protected $validCats = ['add', 'crop', 'complete', 'thankyou'];
protected $destType = 0;
@@ -243,7 +248,7 @@ class ScreenshotPage extends GenericPage
// write to db
$newId = DB::Aowow()->query(
'INSERT INTO ?_screenshots (type, typeId, userIdOwner, date, width, height, caption) VALUES (?d, ?d, ?d, UNIX_TIMESTAMP(), ?d, ?d, ?)',
'INSERT INTO ?_screenshots (`type`, `typeId`, `userIdOwner`, `date`, `width`, `height`, `caption`, `status`) VALUES (?d, ?d, ?d, UNIX_TIMESTAMP(), ?d, ?d, ?, 0)',
$this->destType, $this->destTypeId,
User::$id,
$w, $h,

View File

@@ -10,7 +10,10 @@ class SoundPage extends GenericPage
{
use TrDetailPage;
protected $articleUrl = '';
protected $type = Type::SOUND;
protected $typeId = 0;
protected $tpl = 'sound';
protected $path = [0, 19];
protected $tabId = 0;

View File

@@ -10,6 +10,26 @@ class SpellPage extends GenericPage
{
use TrDetailPage;
protected $reagents = [];
protected $scaling = [];
protected $items = [];
protected $tools = [];
protected $effects = [];
protected $attributes = [];
protected $powerCost = [];
protected $castTime = [];
protected $level = [];
protected $rangeName = [];
protected $range = [];
protected $gcd = [];
protected $gcdCat = null; // todo (low): nyi; find out how this works [n/a; normal; ..]
protected $school = [];
protected $dispel = [];
protected $mechanic = [];
protected $stances = [];
protected $cooldown = [];
protected $duration = [];
protected $type = Type::SPELL;
protected $typeId = 0;
protected $tpl = 'spell';
@@ -278,20 +298,19 @@ class SpellPage extends GenericPage
$this->tools = $this->createTools();
$this->effects = $effects;
$this->attributes = $this->createAttributesList();
$this->infobox = $infobox;
$this->powerCost = $this->subject->createPowerCostForCurrent();
$this->castTime = $this->subject->createCastTimeForCurrent(false, false);
$this->name = $this->subject->getField('name', true);
$this->headIcons = [$this->subject->getField('iconString'), $this->subject->getField('stackAmount') ?: ($this->subject->getField('procCharges') > 1 ? $this->subject->getField('procCharges') : '')];
$this->level = $this->subject->getField('spellLevel');
$this->rangeName = $this->subject->getField('rangeText', true);
$this->range = $this->subject->getField('rangeMaxHostile');
$this->gcd = Util::formatTime($this->subject->getField('startRecoveryTime'));
$this->gcdCat = null; // todo (low): nyi; find out how this works [n/a; normal; ..]
$this->school = [Util::asHex($this->subject->getField('schoolMask')), Lang::getMagicSchools($this->subject->getField('schoolMask'))];
$this->dispel = $this->subject->getField('dispelType') ? Lang::game('dt', $this->subject->getField('dispelType')) : null;
$this->mechanic = $this->subject->getField('mechanic') ? Lang::game('me', $this->subject->getField('mechanic')) : null;
$this->name = $this->subject->getField('name', true);
$this->headIcons = [$this->subject->getField('iconString'), $this->subject->getField('stackAmount') ?: ($this->subject->getField('procCharges') > 1 ? $this->subject->getField('procCharges') : '')];
$this->redButtons = $redButtons;
$this->infobox = $infobox;
// minRange exists.. prepend
if ($_ = $this->subject->getField('rangeMinHostile'))

View File

@@ -10,6 +10,9 @@ class SpellsPage extends GenericPage
{
use TrListPage;
protected $classPanel = false;
protected $glyphPanel = false;
protected $type = Type::SPELL;
protected $tpl = 'spells';
protected $path = [0, 1];
@@ -95,9 +98,6 @@ class SpellsPage extends GenericPage
$this->name = Util::ucFirst(Lang::game('spells'));
$this->subCat = $pageParam !== '' ? '='.$pageParam : '';
$this->classPanel = false;
$this->glyphPanel = false;
}
protected function generateContent()

View File

@@ -18,6 +18,7 @@ class TalentPage extends GenericPage
[SC_CSS_FILE, 'css/talent.css']
);
protected $tcType = 'tc'; // tc: TalentCalculator; pc: PetCalculator
private $isPetCalc = false;
public function __construct($pageCall, $__)

View File

@@ -6,6 +6,11 @@ if (!defined('AOWOW_REVISION'))
class UserPage extends GenericPage
{
protected $lvTabs = [];
protected $forceTabs = true;
protected $infobox = [];
protected $contributions = '';
protected $tpl = 'user';
protected $scripts = array(
[SC_JS_FILE, 'js/user.js'],
@@ -14,7 +19,6 @@ class UserPage extends GenericPage
);
protected $mode = CACHE_TYPE_NONE;
protected $typeId = 0;
protected $pageName = '';
protected $user = [];
@@ -136,9 +140,6 @@ class UserPage extends GenericPage
/* Extra Tabs */
/**************/
$this->lvTabs = [];
$this->forceTabs = true;
// [unused] Site Achievements
// Reputation changelog (params only for comment-events)

View File

@@ -8,6 +8,10 @@ if (!defined('AOWOW_REVISION'))
// tabId 1: Tools g_initHeader()
class UtilityPage extends GenericPage
{
protected $lvTabs = [];
protected $category = [];
protected $h1Links = '';
protected $tpl = 'list-page-generic';
protected $path = [1, 8];
protected $tabId = 1;
@@ -42,8 +46,6 @@ class UtilityPage extends GenericPage
else
$this->name .= Lang::main('colon') . Lang::main('mostComments', 0);
}
$this->lvTabs = [];
}
public function display(string $override = '') : void

View File

@@ -13,6 +13,7 @@ class ZonePage extends GenericPage
protected $path = [0, 6];
protected $tabId = 0;
protected $type = Type::ZONE;
protected $typeId = 0;
protected $tpl = 'detail-page-generic';
protected $scripts = [[SC_JS_FILE, 'js/ShowOnMap.js']];

View File

@@ -10,6 +10,8 @@ class ZonesPage extends GenericPage
{
use TrListPage;
protected $map = null;
protected $type = Type::ZONE;
protected $tpl = 'list-page-generic';
protected $path = [0, 6];
@@ -82,7 +84,6 @@ class ZonesPage extends GenericPage
if ($hiddenCols)
$tabData['hiddenCols'] = $hiddenCols;
$this->map = null;
$this->lvTabs[] = [ZoneList::$brickFile, $tabData];
// create flight map

View File

@@ -3,7 +3,7 @@ if (!empty($this->contribute)):
?>
<div class="clear"></div>
<div class="text">
<h2><?php echo Lang::main('contribute'); ?></h2>
<h2><?=Lang::main('contribute'); ?></h2>
</div>
<div id="tabs-contribute-generic" style="width: 50%"></div>
<div class="text" style="margin-right: 310px">

View File

@@ -28,7 +28,7 @@ endif;
<noscript>
<div id="noscript-bg"></div>
<div id="noscript-text"><?php echo Lang::main('noJScript'); ?></div>
<div id="noscript-text"><?=Lang::main('noJScript'); ?></div>
</noscript>
<script type="text/javascript">DomContentLoaded.now()</script>

View File

@@ -4,12 +4,12 @@ echo " <table class=\"infobox\">\n";
if (!empty($this->infobox)):
?>
<tr><th id="infobox-quick-facts"><?php echo Lang::main('quickFacts'); ?></th></tr>
<tr><th id="infobox-quick-facts"><?=Lang::main('quickFacts'); ?></th></tr>
<tr><td>
<div class="infobox-spacer"></div>
<div id="infobox-contents0"></div>
<script type="text/javascript">
Markup.printHtml("<?php echo Util::jsEscape($this->infobox); ?>", "infobox-contents0", { allow: Markup.CLASS_STAFF, dbpage: true });
Markup.printHtml("<?=Util::jsEscape($this->infobox); ?>", "infobox-contents0", { allow: Markup.CLASS_STAFF, dbpage: true });
</script>
</td></tr>
<?php
@@ -17,12 +17,12 @@ echo " <table class=\"infobox\">\n";
if (!empty($this->contributions)):
?>
<tr><th id="infobox-contributions"><?php echo Lang::user('contributions'); ?></th></tr>
<tr><th id="infobox-contributions"><?=Lang::user('contributions'); ?></th></tr>
<tr><td>
<div class="infobox-spacer"></div>
<div id="infobox-contents1"></div>
<script type="text/javascript">
Markup.printHtml('<?php echo Util::jsEscape($this->contributions); ?>', 'infobox-contents1', { allow: Markup.CLASS_STAFF });
Markup.printHtml('<?=Util::jsEscape($this->contributions); ?>', 'infobox-contents1', { allow: Markup.CLASS_STAFF });
</script>
</td></tr>
<?php
@@ -36,14 +36,14 @@ echo " <table class=\"infobox\">\n";
if ($this->contribute & CONTRIBUTE_SS):
?>
<tr><th id="infobox-screenshots"><?php echo Lang::main('screenshots'); ?></th></tr>
<tr><th id="infobox-screenshots"><?=Lang::main('screenshots'); ?></th></tr>
<tr><td><div class="infobox-spacer"></div><div id="infobox-sticky-ss"></div></td></tr>
<?php
endif;
if ($this->contribute & CONTRIBUTE_VI && (User::isInGroup(U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO) || !empty($this->community['vi']))):
?>
<tr><th id="infobox-videos"><?php echo Lang::main('videos'); ?></th></tr>
<tr><th id="infobox-videos"><?=Lang::main('videos'); ?></th></tr>
<tr><td><div class="infobox-spacer"></div><div id="infobox-sticky-vi"></div></td></tr>
<?php
endif;

View File

@@ -1,4 +1,4 @@
<h3><?php echo Lang::spell('reagents'); ?></h3>
<h3><?=Lang::spell('reagents'); ?></h3>
<?php
if ($enhanced):
@@ -168,8 +168,8 @@ if ($enhanced):
<tr>
<th></th>
<th align="left">
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',true);" value="<?php echo Lang::spell('_expandAll'); ?>">
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',false);" value="<?php echo Lang::spell('_collapseAll'); ?>">
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',true);" value="<?=Lang::spell('_expandAll'); ?>">
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',false);" value="<?=Lang::spell('_collapseAll'); ?>">
</th>
</tr>
<?php

View File

@@ -1,4 +1,4 @@
<tr><th id="infobox-series"><?php echo $listTitle ?: Lang::achievement('series'); ?></th></tr>
<tr><th id="infobox-series"><?=$listTitle ?: Lang::achievement('series'); ?></th></tr>
<tr><td>
<div class="infobox-spacer"></div>
<table class="series">

View File

@@ -9,7 +9,7 @@ $hasBuff = !empty($this->jsGlobals[Type::SPELL][2][$this->typeId]['buff']); // n
if ($hasBuff):
?>
<h3><?php echo Lang::spell('_aura'); ?></h3>
<h3><?=Lang::spell('_aura'); ?></h3>
<div id="btt<?=$this->typeId; ?>" class="wowhead-tooltip"></div>
<?php
endif;
@@ -23,7 +23,7 @@ endif;
?>
<script type="text/javascript">//<![CDATA[
$WH.ge('ic<?=$this->typeId; ?>').appendChild(Icon.create('<?php echo $this->headIcons[0]; ?>', 2, null, 0, <?php echo $this->headIcons[1]; ?>));
$WH.ge('ic<?=$this->typeId; ?>').appendChild(Icon.create('<?=$this->headIcons[0]; ?>', 2, null, 0, <?=$this->headIcons[1]; ?>));
var
tt = $WH.ge('tt<?=$this->typeId; ?>'),
<?php if ($hasBuff): ?>

View File

@@ -11,7 +11,7 @@
if (User::canComment()):
?>
<form name="addcomment" action="?comment=add&amp;type=<?php echo $this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<form name="addcomment" action="?comment=add&amp;type=<?=$this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<div id="funcbox-generic"></div>
<script type="text/javascript">Listview.funcBox.coEditAppend($('#funcbox-generic'), {body: ''}, 1)</script>
<div class="pad"></div>
@@ -43,7 +43,7 @@
if (User::canUploadScreenshot()):
?>
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<form action="?screenshot=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<input type="file" name="screenshotfile" style="width: 35%"/><br />
<div class="pad2"></div>
<input type="submit" value="Submit" />
@@ -70,7 +70,7 @@
if (User::canSuggestVideo()):
?>
<div class="pad2"></div>
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<form action="?video=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<input type="text" name="videourl" style="width: 35%" /> <small>Supported: YouTube only</small>
<div class="pad2"></div>
<input type="submit" value="Submit" />

View File

@@ -11,7 +11,7 @@
if (User::canComment()):
?>
<form name="addcomment" action="?comment=add&amp;type=<?php echo $this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<form name="addcomment" action="?comment=add&amp;type=<?=$this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<div id="funcbox-generic"></div>
<script type="text/javascript">Listview.funcBox.coEditAppend($('#funcbox-generic'), {body: ''}, 1)</script>
<div class="pad"></div>
@@ -43,7 +43,7 @@
if (User::canUploadScreenshot()):
?>
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<form action="?screenshot=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<input type="file" name="screenshotfile" style="width: 35%"/><br />
<div class="pad2"></div>
<input type="submit" value="Soumettre" />
@@ -70,7 +70,7 @@
if (User::canSuggestVideo()):
?>
<div class="pad2"></div>
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<form action="?video=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<input type="text" name="videourl" style="width: 35%" /> <small>Supporté : Youtube seulement</small>
<div class="pad2"></div>
<input type="submit" value="Soumettre" />

View File

@@ -11,7 +11,7 @@
if (User::canComment()):
?>
<form name="addcomment" action="?comment=add&amp;type=<?php echo $this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<form name="addcomment" action="?comment=add&amp;type=<?=$this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<div id="funcbox-generic"></div>
<script type="text/javascript">Listview.funcBox.coEditAppend($('#funcbox-generic'), {body: ''}, 1)</script>
<div class="pad"></div>
@@ -43,7 +43,7 @@
if (User::canUploadScreenshot()):
?>
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<form action="?screenshot=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<input type="file" name="screenshotfile" style="width: 35%"/><br />
<div class="pad2"></div>
<input type="submit" value="Senden" />
@@ -70,7 +70,7 @@
if (User::canSuggestVideo()):
?>
<div class="pad2"></div>
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<form action="?video=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<input type="text" name="videourl" style="width: 35%" /> <small>Unterstützt: nur YouTube</small>
<div class="pad2"></div>
<input type="submit" value="Senden" />

View File

@@ -11,7 +11,7 @@
if (User::canComment()):
?>
<form name="addcomment" action="?comment=add&amp;type=<?php echo $this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<form name="addcomment" action="?comment=add&amp;type=<?=$this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<div id="funcbox-generic"></div>
<script type="text/javascript">Listview.funcBox.coEditAppend($('#funcbox-generic'), {body: ''}, 1)</script>
<div class="pad"></div>
@@ -43,7 +43,7 @@
if (User::canUploadScreenshot()):
?>
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<form action="?screenshot=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<input type="file" name="screenshotfile" style="width: 35%"/><br />
<div class="pad2"></div>
<input type="submit" value="Submit" />
@@ -70,7 +70,7 @@
if (User::canSuggestVideo()):
?>
<div class="pad2"></div>
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<form action="?video=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<input type="text" name="videourl" style="width: 35%" /> <small>Supported: YouTube only</small>
<div class="pad2"></div>
<input type="submit" value="Submit" />

View File

@@ -11,7 +11,7 @@
if (User::canComment()):
?>
<form name="addcomment" action="?comment=add&amp;type=<?php echo $this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<form name="addcomment" action="?comment=add&amp;type=<?=$this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<div id="funcbox-generic"></div>
<script type="text/javascript">Listview.funcBox.coEditAppend($('#funcbox-generic'), {body: ''}, 1)</script>
<div class="pad"></div>
@@ -43,7 +43,7 @@
if (User::canUploadScreenshot()):
?>
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<form action="?screenshot=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<input type="file" name="screenshotfile" style="width: 35%"/><br />
<div class="pad2"></div>
<input type="submit" value="Enviar" />
@@ -70,7 +70,7 @@
if (User::canSuggestVideo()):
?>
<div class="pad2"></div>
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<form action="?video=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<input type="text" name="videourl" style="width: 35%" /> <small>Soportado: Sólo YouTube</small>
<div class="pad2"></div>
<input type="submit" value="Enviar" />

View File

@@ -11,7 +11,7 @@
if (User::canComment()):
?>
<form name="addcomment" action="?comment=add&amp;type=<?php echo $this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<form name="addcomment" action="?comment=add&amp;type=<?=$this->type.'&amp;typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
<div id="funcbox-generic"></div>
<script type="text/javascript">Listview.funcBox.coEditAppend($('#funcbox-generic'), {body: ''}, 1)</script>
<div class="pad"></div>
@@ -43,7 +43,7 @@
if (User::canUploadScreenshot()):
?>
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<form action="?screenshot=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
<input type="file" name="screenshotfile" style="width: 35%"/><br />
<div class="pad2"></div>
<input type="submit" value="Отправить" />
@@ -70,7 +70,7 @@
if (User::canSuggestVideo()):
?>
<div class="pad2"></div>
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<form action="?video=add&<?=$this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
<input type="text" name="videourl" style="width: 35%" /> <small>Поддерживается: только YouTube</small>
<div class="pad2"></div>
<input type="submit" value="Отправить" />

View File

@@ -1,4 +1,4 @@
<h2><img src="<?php echo STATIC_URL; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Reminder</h2>
<h2><img src="<?=STATIC_URL; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Reminder</h2>
Your screenshot will <b class="q10">not</b> be approved if it doesn't correspond to the following guidelines.
<ul>

View File

@@ -1,4 +1,4 @@
<h2><img src="<?php echo STATIC_URL; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Hinweis</h2>
<h2><img src="<?=STATIC_URL; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">Hinweis</h2>
Euer Screenshot wird <b class="q10">nicht</b> zugelassen werden, wenn er nicht unseren Richtlinien entspricht.
<ul>

View File

@@ -1,4 +1,4 @@
<h2><img src="<?php echo STATIC_URL; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">提醒</h2>
<h2><img src="<?=STATIC_URL; ?>/images/icons/bubble-big.gif" width="32" height="29" alt="" style="vertical-align:middle;margin-right:8px">提醒</h2>
你的截图将<b class="q10">不会</b> 通过审查假设不符合下列准则。
<ul>

View File

@@ -12,24 +12,24 @@
$this->brick('infobox');
?>
<script type="text/javascript">var g_pageInfo = { username: '<?php echo Util::jsEscape($this->gUser['name']); ?>' }</script>
<script type="text/javascript">var g_pageInfo = { username: '<?=Util::jsEscape($this->gUser['name']); ?>' }</script>
<div class="text">
<div id="h1-icon-generic" class="h1-icon"></div>
<script type="text/javascript">
$WH.ge('h1-icon-generic').appendChild(Icon.createUser(<?php echo (is_numeric(User::$avatar) ? 2 : 1).' , \''.User::$avatar.'\''?>, 1, null, <?php echo User::isInGroup(U_GROUP_PREMIUM) ? 0 : 2; ?>, false, Icon.getPrivilegeBorder(<?php echo User::getReputation(); ?>)));
$WH.ge('h1-icon-generic').appendChild(Icon.createUser(<?=(is_numeric(User::$avatar) ? 2 : 1).' , \''.User::$avatar.'\''?>, 1, null, <?=User::isInGroup(U_GROUP_PREMIUM) ? 0 : 2; ?>, false, Icon.getPrivilegeBorder(<?=User::getReputation(); ?>)));
</script>
<h1 class="h1-icon"><?php echo Lang::account('myAccount'); ?></h1>
<h1 class="h1-icon"><?=Lang::account('myAccount'); ?></h1>
<?php
// Banned-Minibox
if ($b = $this->banned):
?>
<div style="max-width:300px;" class="minibox">
<h1 class="q10"><?php echo Lang::account('accBanned'); ?></h1>
<h1 class="q10"><?=Lang::account('accBanned'); ?></h1>
<ul style="text-align:left">
<li><div><?php echo '<b>'.Lang::account('bannedBy').'</b>'.Lang::main('colon').'<a href="?user='.$b['by'][0].'">'.$b['by'][1].'</a>'; ?></div></li>
<li><div><?php echo '<b>'.Lang::account('ends').'</b>'.Lang::main('colon').($b['end'] ? date(Lang::main('dateFmtLong'), $b['end']) : Lang::account('permanent')); ?></div></li>
<li><div><?php echo '<b>'.Lang::account('reason').'</b>'.Lang::main('colon').'<span class="msg-failure">'.($b['reason'] ?: Lang::account('noReason')).'</span>'; ?></div></li>
<li><div><?='<b>'.Lang::account('bannedBy').'</b>'.Lang::main('colon').'<a href="?user='.$b['by'][0].'">'.$b['by'][1].'</a>'; ?></div></li>
<li><div><?='<b>'.Lang::account('ends').'</b>'.Lang::main('colon').($b['end'] ? date(Lang::main('dateFmtLong'), $b['end']) : Lang::account('permanent')); ?></div></li>
<li><div><?='<b>'.Lang::account('reason').'</b>'.Lang::main('colon').'<span class="msg-failure">'.($b['reason'] ?: Lang::account('noReason')).'</span>'; ?></div></li>
</ul>
</div>
<?php

View File

@@ -11,9 +11,9 @@
<div class="pad3"></div>
<?php if (!empty($this->text)): ?>
<div class="inputbox">
<h1><?php echo $this->head; ?></h1>
<h1><?=$this->head; ?></h1>
<div id="inputbox-error"></div>
<div style="text-align: center; font-size: 110%"><?php echo $this->text; ?></div>
<div style="text-align: center; font-size: 110%"><?=$this->text; ?></div>
</div>
<?php elseif ($this->resetPass): ?>
<script type="text/javascript">
@@ -60,29 +60,29 @@
}
</script>
<form action="?account=signup&amp;next=<?php echo $this->next . '&amp;token=' . $this->token; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<form action="?account=signup&amp;next=<?=$this->next . '&amp;token=' . $this->token; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<div class="inputbox" style="position: relative">
<h1><?php echo $this->head; ?></h1>
<div id="inputbox-error"><?php echo $this->error; ?></div>
<h1><?=$this->head; ?></h1>
<div id="inputbox-error"><?=$this->error; ?></div>
<table align="center">
<tr>
<td align="right"><?php echo Lang::account('email').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('email').Lang::main('colon'); ?></td>
<td><input type="text" name="email" style="width: 10em" /></td>
</tr>
<tr>
<td align="right"><?php echo Lang::account('newPass').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('newPass').Lang::main('colon'); ?></td>
<td><input type="password" name="password" style="width: 10em" /></td>
</tr>
<tr>
<td align="right"><?php echo Lang::account('passConfirm').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('passConfirm').Lang::main('colon'); ?></td>
<td><input type="password" name="c_password" style="width: 10em" /></td>
</tr>
<tr>
<td align="right" valign="top"></td>
<td><input type="submit" name="signup" value="<?php echo Lang::account('continue'); ?>" /></td>
<td><input type="submit" name="signup" value="<?=Lang::account('continue'); ?>" /></td>
</tr>
<input type="hidden" name="token" value="<?php echo $this->token; ?>" />
<input type="hidden" name="token" value="<?=$this->token; ?>" />
</table>
</div>
@@ -111,16 +111,16 @@
//]]>
</script>
<form action="?account=<?php echo $this->category[0]; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<form action="?account=<?=$this->category[0]; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<div class="inputbox">
<h1><?php echo $this->head; ?></h1>
<div id="inputbox-error"><?php echo $this->error; ?></div>
<h1><?=$this->head; ?></h1>
<div id="inputbox-error"><?=$this->error; ?></div>
<div style="text-align: center">
<?php echo Lang::account('email').Lang::main('colon'); ?><input type="text" name="email" value="" id="email-generic" style="width: 12em" />
<?=Lang::account('email').Lang::main('colon'); ?><input type="text" name="email" value="" id="email-generic" style="width: 12em" />
<div class="pad2"></div>
<input type="submit" value="<?php echo Lang::account('continue'); ?>" />
<input type="submit" value="<?=Lang::account('continue'); ?>" />
</div>
</div>

View File

@@ -30,32 +30,32 @@
}
</script>
<form action="?account=signin&amp;next=<?php echo $this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<form action="?account=signin&amp;next=<?=$this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<div class="inputbox" style="position: relative">
<h1><?php echo Lang::account('doSignIn'); ?></h1>
<div id="inputbox-error"><?php echo $this->error; ?></div>
<h1><?=Lang::account('doSignIn'); ?></h1>
<div id="inputbox-error"><?=$this->error; ?></div>
<table align="center">
<tr>
<td align="right"><?php echo Lang::account('user').Lang::main('colon'); ?></td>
<td><input type="text" name="username" value="<?php echo $this->user; ?>" maxlength="16" id="username-generic" style="width: 10em" /></td>
<td align="right"><?=Lang::account('user').Lang::main('colon'); ?></td>
<td><input type="text" name="username" value="<?=$this->user; ?>" maxlength="16" id="username-generic" style="width: 10em" /></td>
</tr>
<tr>
<td align="right"><?php echo Lang::account('pass').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('pass').Lang::main('colon'); ?></td>
<td><input type="password" name="password" style="width: 10em" /></td>
</tr>
<tr>
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes" checked="checked" /></td>
<td>
<label for="remember_me"><?php echo Lang::account('rememberMe'); ?></label>
<label for="remember_me"><?=Lang::account('rememberMe'); ?></label>
<div class="pad2"></div>
<input type="submit" value="<?php echo Lang::account('signIn'); ?>" />
<input type="submit" value="<?=Lang::account('signIn'); ?>" />
</td>
</tr>
</table>
<br>
<div style="position: absolute; right: 5px; bottom: 5px;"><?php echo Lang::account('forgot').Lang::main('colon'); ?><a href="?account=forgotusername"><?php echo Lang::account('forgotUser'); ?></a> | <a href="?account=forgotpassword"><?php echo Lang::account('forgotPass'); ?></a></div>
<div style="position: absolute; right: 5px; bottom: 5px;"><?=Lang::account('forgot').Lang::main('colon'); ?><a href="?account=forgotusername"><?=Lang::account('forgotUser'); ?></a> | <a href="?account=forgotpassword"><?=Lang::account('forgotPass'); ?></a></div>
</div>
</form>

View File

@@ -11,9 +11,9 @@
<div class="pad3"></div>
<?php if (!empty($this->text)): ?>
<div class="inputbox">
<h1><?php echo $this->head; ?></h1>
<h1><?=$this->head; ?></h1>
<div id="inputbox-error"></div>
<div style="text-align: center; font-size: 110%"><?php echo $this->text; ?></div>
<div style="text-align: center; font-size: 110%"><?=$this->text; ?></div>
</div>
<?php else: ?>
<script type="text/javascript">
@@ -80,34 +80,34 @@
}
</script>
<form action="?account=signup&amp;next=<?php echo $this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<form action="?account=signup&amp;next=<?=$this->next; ?>" method="post" onsubmit="return inputBoxValidate(this)">
<div class="inputbox" style="position: relative">
<h1><?php echo $this->head; ?></h1>
<div id="inputbox-error"><?php echo $this->error; ?></div>
<h1><?=$this->head; ?></h1>
<div id="inputbox-error"><?=$this->error; ?></div>
<table align="center">
<tr>
<td align="right"><?php echo Lang::account('user').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('user').Lang::main('colon'); ?></td>
<td><input type="text" name="username" value="" maxlength="16" id="username-generic" style="width: 10em" /></td>
</tr>
<tr>
<td align="right"><?php echo Lang::account('pass').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('pass').Lang::main('colon'); ?></td>
<td><input type="password" name="password" style="width: 10em" /></td>
</tr>
<tr>
<td align="right"><?php echo Lang::account('passConfirm').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('passConfirm').Lang::main('colon'); ?></td>
<td><input type="password" name="c_password" style="width: 10em" /></td>
</tr>
<tr>
<tr>
<td align="right"><?php echo Lang::account('email').Lang::main('colon'); ?></td>
<td align="right"><?=Lang::account('email').Lang::main('colon'); ?></td>
<td><input type="text" name="email" style="width: 10em" /></td>
</tr>
<td align="right" valign="top"><input type="checkbox" name="remember_me" id="remember_me" value="yes" /></td>
<td>
<label for="remember_me"><?php echo Lang::account('rememberMe'); ?></label>
<label for="remember_me"><?=Lang::account('rememberMe'); ?></label>
<div class="pad2"></div>
<input type="submit" name="signup" value="<?php echo Lang::account('continue'); ?>" />
<input type="submit" name="signup" value="<?=Lang::account('continue'); ?>" />
</td>
</tr>
</table>

View File

@@ -18,7 +18,7 @@ $this->brick('headIcons');
$this->brick('redButtons');
?>
<h1><?php echo $this->name; ?></h1>
<h1><?=$this->name; ?></h1>
<?php
echo $this->description;
@@ -123,7 +123,7 @@ endif;
?>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>
<?php

View File

@@ -13,20 +13,20 @@ $this->brick('announcement');
$this->brick('pageTemplate', ['fi' => empty($f['query']) ? null : ['query' => $f['query'], 'menuItem' => 9]]);
?>
<div id="fi" style="display: <?php echo empty($f['query']) ? 'none' : 'block'; ?>;">
<form action="?filter=achievements<?php echo $this->subCat; ?>" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
<div id="fi" style="display: <?=empty($f['query']) ? 'none' : 'block'; ?>;">
<form action="?filter=achievements<?=$this->subCat; ?>" method="post" name="fi" onsubmit="return fi_submit(this)" onreset="return fi_reset(this)">
<table>
<tr>
<td><?php echo Util::ucFirst(Lang::main('name')).Lang::main('colon'); ?></td>
<td><?=Util::ucFirst(Lang::main('name')).Lang::main('colon'); ?></td>
<td colspan="3">
<table><tr>
<td>&nbsp;<input type="text" name="na" size="30" <?php echo isset($f['na']) ? 'value="'.$f['na'].'"' : null; ?>/></td>
<td>&nbsp; <input type="checkbox" name="ex" value="on" id="achievement-ex" <?php echo isset($f['ex']) ? 'checked="checked"' : null; ?>/></td>
<td><label for="achievement-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_extendedachievementsearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()"><?php echo Lang::main('extSearch'); ?></span></label></td>
<td>&nbsp;<input type="text" name="na" size="30" <?=isset($f['na']) ? 'value="'.$f['na'].'"' : null; ?>/></td>
<td>&nbsp; <input type="checkbox" name="ex" value="on" id="achievement-ex" <?=isset($f['ex']) ? 'checked="checked"' : null; ?>/></td>
<td><label for="achievement-ex"><span class="tip" onmouseover="$WH.Tooltip.showAtCursor(event, LANG.tooltip_extendedachievementsearch, 0, 0, 'q')" onmousemove="$WH.Tooltip.cursorUpdate(event)" onmouseout="$WH.Tooltip.hide()"><?=Lang::main('extSearch'); ?></span></label></td>
</tr></table>
</td>
</tr><tr>
<td class="padded"><?php echo Lang::main('side').Lang::main('colon'); ?></td>
<td class="padded"><?=Lang::main('side').Lang::main('colon'); ?></td>
<td class="padded">&nbsp;<select name="si">
<option></option>
<?php
@@ -39,24 +39,24 @@ endforeach;
</select>
</td>
<td class="padded"><table><tr>
<td>&nbsp;&nbsp;&nbsp;<?php echo Lang::achievement('points').Lang::main('colon'); ?></td>
<td>&nbsp;<input type="text" name="minpt" maxlength="2" class="smalltextbox" <?php echo isset($f['minpt']) ? 'value="'.$f['minpt'].'"' : null; ?>/> - <input type="text" name="maxpt" maxlength="2" class="smalltextbox" <?php echo isset($f['maxpt']) ? 'value="'.$f['maxpt'].'"' : null; ?>/></td>
<td>&nbsp;&nbsp;&nbsp;<?=Lang::achievement('points').Lang::main('colon'); ?></td>
<td>&nbsp;<input type="text" name="minpt" maxlength="2" class="smalltextbox" <?=isset($f['minpt']) ? 'value="'.$f['minpt'].'"' : null; ?>/> - <input type="text" name="maxpt" maxlength="2" class="smalltextbox" <?=isset($f['maxpt']) ? 'value="'.$f['maxpt'].'"' : null; ?>/></td>
</tr></table></td>
</tr>
</table>
<div id="fi_criteria" class="padded criteria"><div></div></div><div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false"><?php echo Lang::main('addFilter'); ?></a></div>
<div id="fi_criteria" class="padded criteria"><div></div></div><div><a href="javascript:;" id="fi_addcriteria" onclick="fi_addCriterion(this); return false"><?=Lang::main('addFilter'); ?></a></div>
<div class="padded2">
<div style="float: right"><?php echo Lang::main('refineSearch'); ?></div>
<?php echo Lang::main('match').Lang::main('colon'); ?><input type="radio" name="ma" value="" id="ma-0" <?php echo !isset($f['ma']) ? 'checked="checked" ' : null ?>/><label for="ma-0"><?php echo Lang::main('allFilter'); ?></label><input type="radio" name="ma" value="1" id="ma-1" <?php echo isset($f['ma']) ? 'checked="checked" ' : null ?> /><label for="ma-1"><?php echo Lang::main('oneFilter'); ?></label>
<div style="float: right"><?=Lang::main('refineSearch'); ?></div>
<?=Lang::main('match').Lang::main('colon'); ?><input type="radio" name="ma" value="" id="ma-0" <?=!isset($f['ma']) ? 'checked="checked" ' : null ?>/><label for="ma-0"><?=Lang::main('allFilter'); ?></label><input type="radio" name="ma" value="1" id="ma-1" <?=isset($f['ma']) ? 'checked="checked" ' : null ?> /><label for="ma-1"><?=Lang::main('oneFilter'); ?></label>
</div>
<div class="clear"></div>
<div class="padded">
<input type="submit" value="<?php echo Lang::main('applyFilter'); ?>" />
<input type="reset" value="<?php echo Lang::main('resetForm'); ?>" />
<input type="submit" value="<?=Lang::main('applyFilter'); ?>" />
<input type="reset" value="<?=Lang::main('resetForm'); ?>" />
</div>
</form>

View File

@@ -16,14 +16,14 @@
<?php $this->brick('redButtons'); ?>
<h1 class="h1-icon"><?php echo $this->name; ?></h1>
<h1 class="h1-icon"><?=$this->name; ?></h1>
<div class="clear"></div>
<?php $this->brick('article'); ?>
<h3><?php echo Lang::enchantment('details'); ?></h3>
<h3><?=Lang::enchantment('details'); ?></h3>
<table class="grid" id="spelldetails">
<colgroup>
@@ -32,11 +32,11 @@
<col width="50%" />
</colgroup>
<?php
if (!empty($this->activateCondition)):
if (!empty($this->activation)):
?>
<tr>
<th><?php echo Lang::enchantment('activation'); ?></th>
<td colspan="2"><?php echo $this->activateCondition; ?></td>
<th><?=Lang::enchantment('activation'); ?></th>
<td colspan="2"><?=$this->activation; ?></td>
</tr>
<?php
endif;
@@ -44,7 +44,7 @@ endif;
foreach ($this->effects as $i => $e):
?>
<tr>
<th><?php echo Lang::spell('_effect').' #'.$i; ?></th>
<th><?=Lang::spell('_effect').' #'.$i; ?></th>
<td colspan="3" style="line-height: 17px">
<?php
echo ' '.$e['name'].(!empty($e['tip']) ? Lang::main('colon').'(<span '.(User::isInGroup(U_GROUP_EMPLOYEE) ? 'class="tip" ' : '').'id="efftip-'.$i.'"></span>)' : '').'<small>';
@@ -83,7 +83,7 @@ foreach ($this->effects as $i => $e):
?>
<table class="icontab">
<tr>
<th id="icontab-icon<?php echo $i; ?>"></th>
<th id="icontab-icon<?=$i; ?>"></th>
<?php
echo ' <td>'.(strpos($e['icon']['name'], '#') ? $e['icon']['name'] : sprintf('<a href="?spell=%d">%s</a>', $e['icon']['id'], $e['icon']['name']))."</td>\n";
?>
@@ -91,7 +91,7 @@ foreach ($this->effects as $i => $e):
</tr>
</table>
<script type="text/javascript">
<?php echo '$WH.ge(\'icontab-icon'.$i.'\').appendChild(g_spells.createIcon('.$e['icon']['id'].', 1, '.$e['icon']['count']."));\n"; ?>
<?='$WH.ge(\'icontab-icon'.$i.'\').appendChild(g_spells.createIcon('.$e['icon']['id'].', 1, '.$e['icon']['count']."));\n"; ?>
</script>
<?php
endif;
@@ -103,7 +103,7 @@ endforeach;
?>
</table>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>
<?php

View File

@@ -26,7 +26,7 @@
$this->brick('article');
?>
<div class="clear"></div>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>
<?php

View File

@@ -15,12 +15,12 @@
<div class="text">
<?php $this->brick('redButtons'); ?>
<h1><?php echo $this->name; ?></h1>
<h1><?=$this->name; ?></h1>
<?php
if ($this->unavailable):
?>
<div class="pad"></div>
<b style="color: red"><?php echo Lang::item('_unavailable'); ?></b>
<b style="color: red"><?=Lang::item('_unavailable'); ?></b>
<div class="pad"></div>
<?php
endif;
@@ -36,7 +36,7 @@ endif;
if (!empty($this->subItems)):
?>
<div class="clear"></div>
<h3><?php echo Lang::item('_rndEnchants'); ?></h3>
<h3><?=Lang::item('_rndEnchants'); ?></h3>
<div class="random-enchantments" style="margin-right: 25px">
<ul>
@@ -82,7 +82,7 @@ endif;
$this->brick('book');
?>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>
<?php

View File

@@ -7,9 +7,9 @@
<style type="text/css">
body { text-align: center; font-family: Arial; background-color: black; color: white }
.maintenance { background: url(<?php echo STATIC_URL; ?>/images/logos/home.png) no-repeat center top; width: 900px; margin: 40px auto; text-align: center; padding-top: 70px; }
.maintenance { background: url(<?=STATIC_URL; ?>/images/logos/home.png) no-repeat center top; width: 900px; margin: 40px auto; text-align: center; padding-top: 70px; }
.maintenance div { color: #00DD00; font-weight: bold; padding: 20px }
.maintenance p { background: url(<?php echo STATIC_URL; ?>/images/maintenance/brbgnomes.jpg) no-repeat center bottom; padding-bottom: 300px }
.maintenance p { background: url(<?=STATIC_URL; ?>/images/maintenance/brbgnomes.jpg) no-repeat center bottom; padding-bottom: 300px }
</style>
</head>
<body>

View File

@@ -15,33 +15,33 @@
<div class="text">
<div style="text-align: center">
<select id="maps-ek" onchange="ma_ChooseZone(this)" class="zone-picker" style="margin: 0">
<option value="0" style="color: #bbbbbb"><?php echo Lang::maps('EasternKingdoms'); ?></option>
<option value="0" style="color: #bbbbbb"><?=Lang::maps('EasternKingdoms'); ?></option>
</select>
<select id="maps-kalimdor" onchange="ma_ChooseZone(this)" class="zone-picker">
<option value="0" style="color: #bbbbbb"><?php echo Lang::maps('Kalimdor'); ?></option>
<option value="0" style="color: #bbbbbb"><?=Lang::maps('Kalimdor'); ?></option>
</select>
<select id="maps-outland" onchange="ma_ChooseZone(this)" class="zone-picker">
<option value="0" style="color: #bbbbbb"><?php echo Lang::maps('Outland'); ?></option>
<option value="0" style="color: #bbbbbb"><?=Lang::maps('Outland'); ?></option>
</select>
<select id="maps-northrend" onchange="ma_ChooseZone(this)" class="zone-picker">
<option value="0" style="color: #bbbbbb"><?php echo Lang::maps('Northrend'); ?></option>
<option value="0" style="color: #bbbbbb"><?=Lang::maps('Northrend'); ?></option>
</select>
<div style="padding-bottom: 4px"></div>
<select onchange="ma_ChooseZone(this)" class="zone-picker">
<option value="0" style="color: #bbbbbb"><?php echo Lang::maps('Instances'); ?></option>
<optgroup label="<?php echo Lang::maps('Dungeons'); ?>" id="maps-dungeons"></optgroup>
<optgroup label="<?php echo Lang::maps('Raids'); ?>" id="maps-raids"></optgroup>
<option value="0" style="color: #bbbbbb"><?=Lang::maps('Instances'); ?></option>
<optgroup label="<?=Lang::maps('Dungeons'); ?>" id="maps-dungeons"></optgroup>
<optgroup label="<?=Lang::maps('Raids'); ?>" id="maps-raids"></optgroup>
</select>
<select onchange="ma_ChooseZone(this)" class="zone-picker">
<option value="0" style="color: #bbbbbb"><?php echo Lang::maps('More'); ?></option>
<optgroup label="<?php echo Lang::maps('Battlegrounds'); ?>" id="maps-battlegrounds"></optgroup>
<optgroup label="<?php echo Lang::maps('Miscellaneous'); ?>">
<option value="-1"><?php echo Lang::maps('Azeroth'); ?></option>
<option value="-3"><?php echo Lang::maps('EasternKingdoms'); ?></option>
<option value="-6"><?php echo Lang::maps('Kalimdor'); ?></option>
<option value="-2"><?php echo Lang::maps('Outland'); ?></option>
<option value="-5"><?php echo Lang::maps('Northrend'); ?></option>
<option value="-4"><?php echo Lang::maps('CosmicMap'); ?></option>
<option value="0" style="color: #bbbbbb"><?=Lang::maps('More'); ?></option>
<optgroup label="<?=Lang::maps('Battlegrounds'); ?>" id="maps-battlegrounds"></optgroup>
<optgroup label="<?=Lang::maps('Miscellaneous'); ?>">
<option value="-1"><?=Lang::maps('Azeroth'); ?></option>
<option value="-3"><?=Lang::maps('EasternKingdoms'); ?></option>
<option value="-6"><?=Lang::maps('Kalimdor'); ?></option>
<option value="-2"><?=Lang::maps('Outland'); ?></option>
<option value="-5"><?=Lang::maps('Northrend'); ?></option>
<option value="-4"><?=Lang::maps('CosmicMap'); ?></option>
</optgroup>
</select>
</div>
@@ -49,8 +49,8 @@
<div id="mapper-generic"></div>
<div class="pad"></div>
<div style="text-align: center; font-size: 13px">
<a href="javascript:;" style="margin-right: 2em" id="link-to-this-map"><?php echo Lang::maps('linkToThisMap'); ?></a>
<a href="javascript:;" onclick="myMapper.setCoords([])" onmousedown="return false"><?php echo Lang::maps('clear'); ?></a>
<a href="javascript:;" style="margin-right: 2em" id="link-to-this-map"><?=Lang::maps('linkToThisMap'); ?></a>
<a href="javascript:;" onclick="myMapper.setCoords([])" onmousedown="return false"><?=Lang::maps('clear'); ?></a>
</div>
</div>
<script type="text/javascript">ma_Init();</script>

View File

@@ -15,7 +15,7 @@
<div class="text">
<?php $this->brick('redButtons'); ?>
<h1><?php echo $this->name.($this->subname ? ' &lt;'.$this->subname.'&gt;' : null); ?></h1>
<h1><?=$this->name.($this->subname ? ' &lt;'.$this->subname.'&gt;' : null); ?></h1>
<?php
$this->brick('article');
@@ -39,7 +39,7 @@ endif;
if ($this->quotes[0]):
?>
<h3><a class="disclosure-off" onclick="return g_disclose($WH.ge('quotes-generic'), this)"><?php echo Lang::npc('quotes').'&nbsp;('.$this->quotes[1]; ?>)</a></h3>
<h3><a class="disclosure-off" onclick="return g_disclose($WH.ge('quotes-generic'), this)"><?=Lang::npc('quotes').'&nbsp;('.$this->quotes[1]; ?>)</a></h3>
<div id="quotes-generic" style="display: none"><ul>
<?php
foreach ($this->quotes[0] as $group):
@@ -69,7 +69,7 @@ endif;
if ($this->reputation):
?>
<h3><?php echo Lang::main('gains'); ?></h3>
<h3><?=Lang::main('gains'); ?></h3>
<?php
echo Lang::npc('gainsDesc').Lang::main('colon');
@@ -112,7 +112,7 @@ if (isset($this->smartAI)):
<?php
endif;
?>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>
<?php

View File

@@ -15,7 +15,7 @@
<div class="text">
<?php $this->brick('redButtons'); ?>
<h1><?php echo $this->name; ?></h1>
<h1><?=$this->name; ?></h1>
<?php
$this->brick('article');
@@ -48,7 +48,7 @@ if (isset($this->smartAI)):
endif;
?>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>
<?php

View File

@@ -15,10 +15,10 @@
<div class="text">
<?php $this->brick('redButtons'); ?>
<h1><?php echo $this->name; ?></h1>
<h1><?=$this->name; ?></h1>
<?php if ($this->unavailable): ?>
<div class="pad"></div>
<b style="color: red"><?php echo Lang::quest('unavailable'); ?></b>
<b style="color: red"><?=Lang::quest('unavailable'); ?></b>
<div class="pad"></div>
<?php
endif;
@@ -120,15 +120,15 @@ endif;
if ($this->requestItems && $this->objectives):
?>
<h3><a href="javascript:;" class="disclosure-off" onclick="return g_disclose($WH.ge('disclosure-progress'), this)"><?php echo Lang::quest('progress'); ?></a></h3>
<div id="disclosure-progress" style="display: none"><?php echo $this->requestItems; ?></div>
<h3><a href="javascript:;" class="disclosure-off" onclick="return g_disclose($WH.ge('disclosure-progress'), this)"><?=Lang::quest('progress'); ?></a></h3>
<div id="disclosure-progress" style="display: none"><?=$this->requestItems; ?></div>
<?php
endif;
if ($this->offerReward && ($this->requestItems || $this->objectives)):
?>
<h3><a href="javascript:;" class="disclosure-off" onclick="return g_disclose($WH.ge('disclosure-completion'), this)"><?php echo Lang::quest('completion'); ?></a></h3>
<div id="disclosure-completion" style="display: none"><?php echo $this->offerReward; ?></div>
<h3><a href="javascript:;" class="disclosure-off" onclick="return g_disclose($WH.ge('disclosure-completion'), this)"><?=Lang::quest('completion'); ?></a></h3>
<div id="disclosure-completion" style="display: none"><?=$this->offerReward; ?></div>
<?php
endif;
@@ -207,7 +207,7 @@ if (!empty($this->transfer)):
endif;
?>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>
<?php

View File

@@ -128,7 +128,7 @@ g_audioplaylist.setAudioControls($WH.ge('playlistcontrols'));
})();
//]]></script>
<h2 class="clear"><?php echo Lang::main('related'); ?></h2>
<h2 class="clear"><?=Lang::main('related'); ?></h2>
</div>

View File

@@ -10,14 +10,14 @@
$this->brick('pageTemplate');
?>
<div id="<?php echo $this->tcType; ?>-classes">
<div id="<?php echo $this->tcType; ?>-classes-outer">
<div id="<?php echo $this->tcType; ?>-classes-inner"><p><?php echo ($this->tcType == 'tc' ? Lang::main('chooseClass') : Lang::main('chooseFamily')) . Lang::main('colon'); ?></p></div>
<div id="<?=$this->tcType; ?>-classes">
<div id="<?=$this->tcType; ?>-classes-outer">
<div id="<?=$this->tcType; ?>-classes-inner"><p><?=($this->tcType == 'tc' ? Lang::main('chooseClass') : Lang::main('chooseFamily')) . Lang::main('colon'); ?></p></div>
</div>
</div>
<div id="<?php echo $this->tcType; ?>-itself"></div>
<div id="<?=$this->tcType; ?>-itself"></div>
<script type="text/javascript">
<?php echo $this->tcType; ?>_init();
<?=$this->tcType; ?>_init();
</script>
<div class="clear"></div>

View File

@@ -12,23 +12,23 @@
$this->brick('infobox');
?>
<script type="text/javascript">var g_pageInfo = { username: '<?php echo Util::jsEscape($this->user['displayName']); ?>' }</script>
<script type="text/javascript">var g_pageInfo = { username: '<?=Util::jsEscape($this->user['displayName']); ?>' }</script>
<div class="text">
<div id="h1-icon-generic" class="h1-icon"></div>
<script type="text/javascript">
$WH.ge('h1-icon-generic').appendChild(Icon.createUser(<?php echo (is_numeric($this->user['avatar']) ? 2 : 1).', \''.($this->user['avatar'] ?: 'inv_misc_questionmark').'\''?>, 1, null, <?php echo User::isInGroup(U_GROUP_PREMIUM) ? 0 : 2; ?>, false, Icon.getPrivilegeBorder(<?php echo $this->user['sumRep']; ?>)));
$WH.ge('h1-icon-generic').appendChild(Icon.createUser(<?=(is_numeric($this->user['avatar']) ? 2 : 1).', \''.($this->user['avatar'] ?: 'inv_misc_questionmark').'\''?>, 1, null, <?=User::isInGroup(U_GROUP_PREMIUM) ? 0 : 2; ?>, false, Icon.getPrivilegeBorder(<?=$this->user['sumRep']; ?>)));
</script>
<h1 class="h1-icon"><?php echo $this->name; ?></h1>
<h1 class="h1-icon"><?=$this->name; ?></h1>
</div>
<h3 class="first"><?php echo Lang::user('publicDesc'); ?></h3>
<h3 class="first"><?=Lang::user('publicDesc'); ?></h3>
<div id="description" class="left"><?php # must follow directly, no whitespaces allowed
if (!empty($this->user['description'])):
?>
<div id="description-generic"></div>
<script type="text/javascript">//<![CDATA[
Markup.printHtml('<?php echo $this->user['description']; ?>', "description-generic", { allow: Markup.CLASS_USER, roles: "<?php echo $this->user['userGroups']; ?>" });
Markup.printHtml('<?=$this->user['description']; ?>', "description-generic", { allow: Markup.CLASS_USER, roles: "<?=$this->user['userGroups']; ?>" });
//]]></script>
<?php
endif;