1
0

fix api command [site::createBookThumbnails] and [site::createProgramThumbnails]

This commit is contained in:
Mike Schwörer 2019-12-29 17:59:51 +01:00
parent ebbef44054
commit d160a4a636
3 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ function httpError($errorcode, $message)
function httpDie($errorcode, $message) function httpDie($errorcode, $message)
{ {
ob_clean(); ob_flush();
http_response_code($errorcode); http_response_code($errorcode);
die($message); die($message);

View File

@ -10,8 +10,8 @@ $API_COMMANDS =
'progs::updatecheck' => [ 'src' => __DIR__.'/../commands/progs_updatecheck.php', 'auth' => 'none' ], 'progs::updatecheck' => [ 'src' => __DIR__.'/../commands/progs_updatecheck.php', 'auth' => 'none' ],
'site::createProgramThumbnails' => [ 'src' => __DIR__.'/../commands/site_createProgramThumbnails.php', 'auth' => 'admin' ], 'site::createprogramthumbnails' => [ 'src' => __DIR__.'/../commands/site_createProgramThumbnails.php', 'auth' => 'admin' ],
'site::createBookThumbnails' => [ 'src' => __DIR__.'/../commands/site_createBookThumbnails.php', 'auth' => 'admin' ], 'site::createbookthumbnails' => [ 'src' => __DIR__.'/../commands/site_createBookThumbnails.php', 'auth' => 'admin' ],
'server::setselfaddress' => [ 'src' => __DIR__.'/../commands/server_setselfaddress.php', 'auth' => 'none' ], 'server::setselfaddress' => [ 'src' => __DIR__.'/../commands/server_setselfaddress.php', 'auth' => 'none' ],
'server::gitwebhook' => [ 'src' => __DIR__.'/../commands/server_gitwebhook.php', 'auth' => 'webhook_secret' ], 'server::gitwebhook' => [ 'src' => __DIR__.'/../commands/server_gitwebhook.php', 'auth' => 'webhook_secret' ],

View File

@ -54,7 +54,7 @@ if (($redirect === '/' || $redirect === '') && isset($_GET['redirect'])) $redire
<div> <div>
<label for="username" class="required">Username</label> <label for="username" class="required">Username</label>
<input name="username" id="username" type="text"> <input name="username" id="username" type="text" autofocus >
</div> </div>
<div> <div>