mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Fixups
* added forgotten mapper strings for esES, ruRU, frFR * readded default name for screenshots and videos tab * fixed referencing not set $id in opensearch (wich now displays icons once again) * fixed referencing a long removed variable in admin=screenshots, preventing delete operations
This commit is contained in:
@@ -19,7 +19,7 @@ class AjaxAdmin extends AjaxHandler
|
|||||||
protected $_post = array(
|
protected $_post = array(
|
||||||
'alt' => [FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW],
|
'alt' => [FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_LOW],
|
||||||
'id' => [FILTER_SANITIZE_NUMBER_INT, null],
|
'id' => [FILTER_SANITIZE_NUMBER_INT, null],
|
||||||
'scale' => [FILTER_CALLBACK, ['options' => 'AjaxAccount::checkScale']],
|
'scale' => [FILTER_CALLBACK, ['options' => 'AjaxAdmin::checkScale']],
|
||||||
'__icon' => [FILTER_CALLBACK, ['options' => 'AjaxAdmin::checkKey']],
|
'__icon' => [FILTER_CALLBACK, ['options' => 'AjaxAdmin::checkKey']],
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -237,7 +237,7 @@ class AjaxAdmin extends AjaxHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
// flag as deleted if not aready
|
// flag as deleted if not aready
|
||||||
DB::Aowow()->query('UPDATE ?_screenshots SET status = ?d, userIdDelete = ?d WHERE id IN (?a)', CC_FLAG_DELETED, User::$id, $ids);
|
DB::Aowow()->query('UPDATE ?_screenshots SET status = ?d, userIdDelete = ?d WHERE id IN (?a)', CC_FLAG_DELETED, User::$id, $this->_get['id']);
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -413,6 +413,7 @@ $lang = array(
|
|||||||
'trap' => "Trampa",
|
'trap' => "Trampa",
|
||||||
'triggeredBy' => "Accionado por",
|
'triggeredBy' => "Accionado por",
|
||||||
'capturePoint' => "Punto de captura",
|
'capturePoint' => "Punto de captura",
|
||||||
|
'foundIn' => "Este entidad se puede encontrar en",
|
||||||
'restock' => "[Restocks every %s.]"
|
'restock' => "[Restocks every %s.]"
|
||||||
),
|
),
|
||||||
'npc' => array(
|
'npc' => array(
|
||||||
@@ -435,6 +436,7 @@ $lang = array(
|
|||||||
'melee' => "Cuerpo a cuerpo",
|
'melee' => "Cuerpo a cuerpo",
|
||||||
'ranged' => "Ataque a distancia",
|
'ranged' => "Ataque a distancia",
|
||||||
'armor' => "Armadura",
|
'armor' => "Armadura",
|
||||||
|
'foundIn' => "Este PNJ se puede encontrar en",
|
||||||
'tameable' => "Domesticable (%s)",
|
'tameable' => "Domesticable (%s)",
|
||||||
'waypoint' => "punto de recorrido",
|
'waypoint' => "punto de recorrido",
|
||||||
'wait' => "Tiempo de espera",
|
'wait' => "Tiempo de espera",
|
||||||
|
|||||||
@@ -412,6 +412,7 @@ $lang = array(
|
|||||||
'trap' => "Piège",
|
'trap' => "Piège",
|
||||||
'triggeredBy' => "Déclenché par",
|
'triggeredBy' => "Déclenché par",
|
||||||
'capturePoint' => "Point de capture",
|
'capturePoint' => "Point de capture",
|
||||||
|
'foundIn' => "Cette entité se trouve dans",
|
||||||
'restock' => "Se remplit toutes les %s.]"
|
'restock' => "Se remplit toutes les %s.]"
|
||||||
),
|
),
|
||||||
'npc' => array(
|
'npc' => array(
|
||||||
@@ -434,6 +435,7 @@ $lang = array(
|
|||||||
'melee' => "de mêlée",
|
'melee' => "de mêlée",
|
||||||
'ranged' => "à distance",
|
'ranged' => "à distance",
|
||||||
'armor' => "Armure",
|
'armor' => "Armure",
|
||||||
|
'foundIn' => "Ce PNJ se trouve dans",
|
||||||
'tameable' => "Domptable (%s)",
|
'tameable' => "Domptable (%s)",
|
||||||
'waypoint' => "Point de route",
|
'waypoint' => "Point de route",
|
||||||
'wait' => "Période d'attente",
|
'wait' => "Période d'attente",
|
||||||
|
|||||||
@@ -412,6 +412,7 @@ $lang = array(
|
|||||||
'trap' => "Ловушки",
|
'trap' => "Ловушки",
|
||||||
'triggeredBy' => "Срабатывает от",
|
'triggeredBy' => "Срабатывает от",
|
||||||
'capturePoint' => "Точка захвата",
|
'capturePoint' => "Точка захвата",
|
||||||
|
'foundIn' => "Этот НИП может быть найден в следующих зонах:",
|
||||||
'restock' => "[Restocks every %s.]"
|
'restock' => "[Restocks every %s.]"
|
||||||
),
|
),
|
||||||
'npc' => array(
|
'npc' => array(
|
||||||
@@ -434,6 +435,7 @@ $lang = array(
|
|||||||
'melee' => "Ближнего боя",
|
'melee' => "Ближнего боя",
|
||||||
'ranged' => "Дальнего боя",
|
'ranged' => "Дальнего боя",
|
||||||
'armor' => "Броня",
|
'armor' => "Броня",
|
||||||
|
'foundIn' => "Этот объект может быть найден в следующих зонах:",
|
||||||
'tameable' => "Можно приручить (%s)",
|
'tameable' => "Можно приручить (%s)",
|
||||||
'waypoint' => "Путевой точки",
|
'waypoint' => "Путевой точки",
|
||||||
'wait' => "Период ожидания",
|
'wait' => "Период ожидания",
|
||||||
|
|||||||
@@ -125,11 +125,11 @@ class GenericPage
|
|||||||
'race' => ['template' => 'race', 'id' => 'races', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_races' ],
|
'race' => ['template' => 'race', 'id' => 'races', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_races' ],
|
||||||
'replypreview' => ['template' => 'replypreview', 'id' => 'comment-replies', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_commentreplies'],
|
'replypreview' => ['template' => 'replypreview', 'id' => 'comment-replies', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_commentreplies'],
|
||||||
'reputationhistory' => ['template' => 'reputationhistory', 'id' => 'reputation', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_reputation' ],
|
'reputationhistory' => ['template' => 'reputationhistory', 'id' => 'reputation', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_reputation' ],
|
||||||
'screenshot' => ['template' => 'screenshot', 'id' => 'screenshots', 'parent' => 'lv-generic', 'data' => [] ],
|
'screenshot' => ['template' => 'screenshot', 'id' => 'screenshots', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_screenshots' ],
|
||||||
'skill' => ['template' => 'skill', 'id' => 'skills', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_skills' ],
|
'skill' => ['template' => 'skill', 'id' => 'skills', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_skills' ],
|
||||||
'spell' => ['template' => 'spell', 'id' => 'spells', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_spells' ],
|
'spell' => ['template' => 'spell', 'id' => 'spells', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_spells' ],
|
||||||
'title' => ['template' => 'title', 'id' => 'titles', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_titles' ],
|
'title' => ['template' => 'title', 'id' => 'titles', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_titles' ],
|
||||||
'video' => ['template' => 'video', 'id' => 'videos', 'parent' => 'lv-generic', 'data' => [], ],
|
'video' => ['template' => 'video', 'id' => 'videos', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_videos' ],
|
||||||
'zone' => ['template' => 'zone', 'id' => 'zones', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_zones' ]
|
'zone' => ['template' => 'zone', 'id' => 'zones', 'parent' => 'lv-generic', 'data' => [], 'name' => '$LANG.tab_zones' ]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -706,7 +706,7 @@ class SearchPage extends GenericPage
|
|||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
{
|
{
|
||||||
foreach ($talents->iterate() as $__)
|
foreach ($talents->iterate() as $id => $__)
|
||||||
{
|
{
|
||||||
$osInfo[3][$id] = strToLower($talents->getField('iconString'));
|
$osInfo[3][$id] = strToLower($talents->getField('iconString'));
|
||||||
$osInfo[4][$id] = $talents->ranks[$talents->id];
|
$osInfo[4][$id] = $talents->ranks[$talents->id];
|
||||||
@@ -752,7 +752,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($glyphs->iterate() as $__)
|
foreach ($glyphs->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($glyphs->getField('iconString'));
|
$osInfo[3][$id] = strToLower($glyphs->getField('iconString'));
|
||||||
|
|
||||||
if ($glyphs->getMatches() > $this->maxResults)
|
if ($glyphs->getMatches() > $this->maxResults)
|
||||||
@@ -794,7 +794,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($prof->iterate() as $__)
|
foreach ($prof->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($prof->getField('iconString'));
|
$osInfo[3][$id] = strToLower($prof->getField('iconString'));
|
||||||
|
|
||||||
if ($prof->getMatches() > $this->maxResults)
|
if ($prof->getMatches() > $this->maxResults)
|
||||||
@@ -836,7 +836,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($prof->iterate() as $__)
|
foreach ($prof->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($prof->getField('iconString'));
|
$osInfo[3][$id] = strToLower($prof->getField('iconString'));
|
||||||
|
|
||||||
if ($prof->getMatches() > $this->maxResults)
|
if ($prof->getMatches() > $this->maxResults)
|
||||||
@@ -878,7 +878,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($vPets->iterate() as $__)
|
foreach ($vPets->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($vPets->getField('iconString'));
|
$osInfo[3][$id] = strToLower($vPets->getField('iconString'));
|
||||||
|
|
||||||
if ($vPets->getMatches() > $this->maxResults)
|
if ($vPets->getMatches() > $this->maxResults)
|
||||||
@@ -919,7 +919,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($mounts->iterate() as $__)
|
foreach ($mounts->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($mounts->getField('iconString'));
|
$osInfo[3][$id] = strToLower($mounts->getField('iconString'));
|
||||||
|
|
||||||
if ($mounts->getMatches() > $this->maxResults)
|
if ($mounts->getMatches() > $this->maxResults)
|
||||||
@@ -1027,7 +1027,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($acvs->iterate() as $__)
|
foreach ($acvs->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($acvs->getField('iconString'));
|
$osInfo[3][$id] = strToLower($acvs->getField('iconString'));
|
||||||
|
|
||||||
if ($acvs->getMatches() > $this->maxResults)
|
if ($acvs->getMatches() > $this->maxResults)
|
||||||
@@ -1175,7 +1175,7 @@ class SearchPage extends GenericPage
|
|||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($skills->iterate() as $id => $__)
|
foreach ($skills->iterate() as $id => $__)
|
||||||
$osInf[3][$id] = $skills->getField('iconString');
|
$osInfo[3][$id] = $skills->getField('iconString');
|
||||||
|
|
||||||
if ($skills->getMatches() > $this->maxResults)
|
if ($skills->getMatches() > $this->maxResults)
|
||||||
{
|
{
|
||||||
@@ -1203,7 +1203,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($pets->iterate() as $__)
|
foreach ($pets->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = $pets->getField('iconString');
|
$osInfo[3][$id] = $pets->getField('iconString');
|
||||||
|
|
||||||
if ($pets->getMatches() > $this->maxResults)
|
if ($pets->getMatches() > $this->maxResults)
|
||||||
@@ -1241,7 +1241,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($npcAbilities->iterate() as $__)
|
foreach ($npcAbilities->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($npcAbilities->getField('iconString'));
|
$osInfo[3][$id] = strToLower($npcAbilities->getField('iconString'));
|
||||||
|
|
||||||
if ($npcAbilities->getMatches() > $this->maxResults)
|
if ($npcAbilities->getMatches() > $this->maxResults)
|
||||||
@@ -1287,7 +1287,7 @@ class SearchPage extends GenericPage
|
|||||||
);
|
);
|
||||||
|
|
||||||
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
if ($this->searchMask & SEARCH_TYPE_OPEN)
|
||||||
foreach ($misc->iterate() as $__)
|
foreach ($misc->iterate() as $id => $__)
|
||||||
$osInfo[3][$id] = strToLower($misc->getField('iconString'));
|
$osInfo[3][$id] = strToLower($misc->getField('iconString'));
|
||||||
|
|
||||||
if ($misc->getMatches() > $this->maxResults)
|
if ($misc->getMatches() > $this->maxResults)
|
||||||
|
|||||||
Reference in New Issue
Block a user