* try to die a bit more gracefull if errors occur
This commit is contained in:
Sarjuuk
2017-03-21 02:58:16 +01:00
parent 62a95effb8
commit 00de81c60d
27 changed files with 35 additions and 31 deletions

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -1,7 +1,7 @@
<?php
if (!defined('AOWOW_REVISION'))
die('invalid access');
die('illegal access');
if (!CLI)
die('not in cli mode');

View File

@@ -30,7 +30,7 @@ if (!CLI)
else // expected file.mp3.mp3
$filePath .= '.mp3';
// just use the first locale available .. i there is no support for multiple audio files anyway
// just use the first locale available .. there is no support for multiple audio files anyway
foreach (CLISetup::$expectedPaths as $locStr => $__)
{
// get your paths straight!
@@ -43,7 +43,7 @@ if (!CLI)
{
$ok = false;
CLISetup::log(' - could not copy '.CLISetup::bold($p).' into '.CLISetup::bold('static/wowsounds/'.$fileId), CLISetup::LOG_ERROR);
die();
break 2;
}
continue 2;