nmps-server

server-side nmps
git clone git://git.kocotian.pl/nmps-server.git
Log | Files | Refs | README

commit a376024d0427385fee5d998836f4365114f32301
parent 6767a94e39c59e1fb4106c335268807b2d969bcf
Author: kocotian <kocotian@kocotian.pl>
Date:   Wed, 11 Nov 2020 21:16:16 +0100

authorization changes + new commands

Diffstat:
A400.shtml | 2++
A401.shtml | 2++
A403.shtml | 2++
A404.shtml | 2++
Mauth.php | 2+-
Aclear | 2++
Ahelp | 2++
7 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/400.shtml b/400.shtml @@ -0,0 +1 @@ +Bad Request - something went wrong with your command. Write help for help.+ \ No newline at end of file diff --git a/401.shtml b/401.shtml @@ -0,0 +1 @@ +Unauthorised - you don't have access to this command. Write help for help.+ \ No newline at end of file diff --git a/403.shtml b/403.shtml @@ -0,0 +1 @@ +Forbidden - you don't have access to this command. Write help for help.+ \ No newline at end of file diff --git a/404.shtml b/404.shtml @@ -0,0 +1 @@ +Command not found. Write help for help.+ \ No newline at end of file diff --git a/auth.php b/auth.php @@ -7,7 +7,7 @@ $user = db::query("SELECT * FROM users WHERE username=:username", ['username' => $argv[0]])[0]; if ($user) if (password_verify($argv[1], $user['password'])) - echo "Authorized"; + echo "Authorized\naa13d2b75605c3472101c195c5cd1cb601daa320"; else echo "Wrong password"; else diff --git a/clear b/clear @@ -0,0 +1 @@ ++ \ No newline at end of file diff --git a/help b/help @@ -0,0 +1 @@ +Help temporary unavailable.+ \ No newline at end of file