Add debug option in SFTPGo authenticator
This commit is contained in:
parent
b93ff0c26f
commit
9f7c93e66d
1 changed files with 6 additions and 0 deletions
|
@ -1,8 +1,12 @@
|
|||
<?php
|
||||
|
||||
const DEBUG = false;
|
||||
!DEBUG or ob_start();
|
||||
|
||||
require 'router.php';
|
||||
|
||||
function deny() {
|
||||
!DEBUG or file_put_contents(ROOT_PATH . '/db/debug.txt', ob_get_contents());
|
||||
http_response_code(403);
|
||||
exit();
|
||||
}
|
||||
|
@ -38,4 +42,6 @@ echo '
|
|||
}
|
||||
}
|
||||
';
|
||||
|
||||
!DEBUG or file_put_contents(ROOT_PATH . '/db/debug.txt', ob_get_contents());
|
||||
http_response_code(200);
|
||||
|
|
Loading…
Reference in a new issue