- Error handling:

* replaced error-suppressions with proper checks
  * log php errors to db
  * use __callStatic() to access localization and thus handle erronous keys
- Setup:
  * fixed some erronous filenames when generating icons
  * increased alpha threshold for spawn maps (should improve spawn points)
- disentangled DB::Aowow and DB::World. Aowow should now be able to run
  with DB::World being on a different server
- added missing faction transfer pendants (title/quest/faction/..)
- fixed extended costs for specific vendors
This commit is contained in:
Sarjuuk
2015-02-03 01:22:12 +01:00
parent acbe969b8d
commit c7fe84b7e0
59 changed files with 926 additions and 592 deletions

View File

@@ -82,6 +82,7 @@ class GenericPage
private $cacheLoaded = [];
private $skipCache = 0x0;
private $memcached = null;
private $mysql = ['time' => 0, 'count' => 0];
public function __construct($pageCall/*, $pageParam */)
{
@@ -216,7 +217,7 @@ class GenericPage
}
$this->time = microtime(true) - $this->time;
$this->mysql = DB::Aowow()->getStatistics();
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
}
public function addJS($name, $unshift = false)
@@ -363,8 +364,8 @@ class GenericPage
public function notFound($typeStr) // unknown ID
{
$this->typeStr = $typeStr;
$this->mysql = DB::Aowow()->getStatistics();
$this->hasComContent = false;
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
if (isset($this->tabId))
$this->pageTemplate['activeTab'] = $this->tabId;
@@ -384,7 +385,7 @@ class GenericPage
$this->addArticle();
$this->mysql = DB::Aowow()->getStatistics();
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
$this->display('text-page-generic');
exit();
@@ -758,7 +759,10 @@ class GenericPage
$cache = explode("\n", $cache, 2);
$data = $cache[1];
@list($time, $rev, $type) = explode(' ', $cache[0]);
if (substr_count($cache[0], ' ') < 2)
return false;
list($time, $rev, $type) = explode(' ', $cache[0]);
if ($time + CFG_CACHE_DECAY <= time() || $rev < AOWOW_REVISION)
$cache = null;