- setup can now be run from CLI. Use "> php index.php --help" to start off
- updated logging for use with CLI
- added generators for client imagery (icons, maps, talents, ect)
DBC:
- parsed DBCs are now expected in the Aowow-DB, prefixed with dbc_* (they are joined with
  these tables, so its easier to have them here altogether)
- setup/db_setup_3.zip may be reapplied (optionally)
- alternatively aowow will now extract you own DBCs alongside your textures.
  They will be parsed and saved to DB, as needed.
Misc:
 * HOST_URL and STATIC_URL will now be determined automaticly once and
 * then saved to ?_config (setup by CLI requires these to be set)
Spell:
 * added glyph-symbol to infobox for glyph-related spells
This commit is contained in:
Sarjuuk
2015-01-18 19:55:13 +01:00
parent 1dc63e2b6d
commit acbe969b8d
25 changed files with 2975 additions and 460 deletions

View File

@@ -28,7 +28,7 @@ class DB
$options = &self::$optionsCache[$idx];
$interface = DbSimple_Generic::connect(self::createConnectSyntax($options));
$interface->setErrorHandler(array('DB', 'errorHandler'));
$interface->setErrorHandler(['DB', 'errorHandler']);
if ($interface->error)
die('Failed to connect to database.');
@@ -46,9 +46,9 @@ class DB
if (!error_reporting())
return;
echo "DB ERROR:<br /><br />\n\n<pre>";
print_r($data);
echo "</pre>";
$error = "DB ERROR:<br /><br />\n\n<pre>".print_r($data, true)."</pre>";
echo CLI ? strip_tags($error) : $error;
exit;
}