mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup:
- 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user