diff --git a/www/internals/base.php b/www/internals/base.php index 54fd263..457ede2 100644 --- a/www/internals/base.php +++ b/www/internals/base.php @@ -53,7 +53,7 @@ function httpError($errorcode, $message) function httpDie($errorcode, $message) { - ob_clean(); + ob_flush(); http_response_code($errorcode); die($message); diff --git a/www/pages/api.php b/www/pages/api.php index 025a402..c19e5c1 100644 --- a/www/pages/api.php +++ b/www/pages/api.php @@ -10,8 +10,8 @@ $API_COMMANDS = 'progs::updatecheck' => [ 'src' => __DIR__.'/../commands/progs_updatecheck.php', 'auth' => 'none' ], - 'site::createProgramThumbnails' => [ 'src' => __DIR__.'/../commands/site_createProgramThumbnails.php', 'auth' => 'admin' ], - 'site::createBookThumbnails' => [ 'src' => __DIR__.'/../commands/site_createBookThumbnails.php', 'auth' => 'admin' ], + 'site::createprogramthumbnails' => [ 'src' => __DIR__.'/../commands/site_createProgramThumbnails.php', 'auth' => 'admin' ], + 'site::createbookthumbnails' => [ 'src' => __DIR__.'/../commands/site_createBookThumbnails.php', 'auth' => 'admin' ], 'server::setselfaddress' => [ 'src' => __DIR__.'/../commands/server_setselfaddress.php', 'auth' => 'none' ], 'server::gitwebhook' => [ 'src' => __DIR__.'/../commands/server_gitwebhook.php', 'auth' => 'webhook_secret' ], diff --git a/www/pages/login.php b/www/pages/login.php index 0e2688e..8f6e94c 100644 --- a/www/pages/login.php +++ b/www/pages/login.php @@ -54,7 +54,7 @@ if (($redirect === '/' || $redirect === '') && isset($_GET['redirect'])) $redire