Archived
1
0
Fork 0

Exception catch

This commit is contained in:
Alexander Yakovlev 2017-02-16 21:46:59 +07:00
parent 3f7377b83e
commit d482f31634
2 changed files with 21 additions and 17 deletions

View file

@ -16,16 +16,18 @@ $loader->addPrefix('Source', 'Source_en');
if (PHP_SAPI !== 'cli') {
ob_start();
echo '<!DOCTYPE html><html><body><pre>';
echo '<!DOCTYPE html><html><body><code><pre>';
}
(new Source\Textadventures())->print();
(new Source\IFDB())->print();
(new Source\Dashingdon())->print();
(new Source\Itch())->print();
(new Source\Hyperbook())->print();
try {
(new Source\Textadventures())->print();
(new Source\IFDB())->print();
(new Source\Dashingdon())->print();
(new Source\Itch())->print();
(new Source\Hyperbook())->print();
} catch (Exception $e) {}
if (PHP_SAPI !== 'cli') {
echo '</pre></body></html>';
echo '</pre></code></body></html>';
ob_end_flush();
}

View file

@ -7,19 +7,21 @@ $loader->addPrefix('Source', 'Source');
if (PHP_SAPI !== 'cli') {
ob_start();
echo '<!DOCTYPE html><html><body><pre>';
echo '<!DOCTYPE html><html><body><code><pre>';
}
(new Source\Urq())->print();
(new Source\Qsp())->print();
(new Source\Kvester())->print();
(new Source\Apero())->print();
(new Source\Instead())->print();
(new Source\Storymaze())->print();
(new Source\Hyperbook())->print();
(new Source\Questbook())->print();
try {
(new Source\Urq())->print();
(new Source\Qsp())->print();
(new Source\Kvester())->print();
(new Source\Apero())->print();
(new Source\Instead())->print();
(new Source\Storymaze())->print();
(new Source\Hyperbook())->print();
(new Source\Questbook())->print();
} catch (Exception $e) {}
if (PHP_SAPI !== 'cli') {
echo '</pre></body></html>';
echo '</pre></code></body></html>';
ob_end_flush();
}