From de1b0ecec5266ea1df8325ec25a4bf5ece3e84a9 Mon Sep 17 00:00:00 2001 From: neroduckale Date: Fri, 12 Jan 2024 05:43:02 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BE=D1=87=D0=B5=D0=BD=D1=8C=20=D0=BA=D1=80?= =?UTF-8?q?=D0=B8=D0=B2=D0=BE=D0=B9=20=D0=BF=D0=B8=D0=BD=D0=BA=D0=BE=D0=B4?= =?UTF-8?q?=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0=B9=20=D0=BE=D0=B1?= =?UTF-8?q?=D1=85=D0=BE=D0=B4=D0=B8=D1=82=D1=81=D1=8F=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=8B=D0=BC=20=D0=B8=D1=81=D1=81=D0=BB=D0=B5=D0=B4?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=D0=BC=20=D1=8D=D0=BB=D0=B5?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=82=D0=B0...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nrdkwebsite/{ => Extensions}/API.cs | 0 .../{ => Extensions}/DatabaseHandler.cs | 0 nrdkwebsite/{ => Extensions}/User.cs | 0 nrdkwebsite/Pages/users.cshtml | 45 +++++++++---------- nrdkwebsite/Program.cs | 5 +++ nrdkwebsite/wwwroot/js/admin.js | 4 ++ nrdkwebsite/wwwroot/js/md5.min.js | 2 + 7 files changed, 31 insertions(+), 25 deletions(-) rename nrdkwebsite/{ => Extensions}/API.cs (100%) rename nrdkwebsite/{ => Extensions}/DatabaseHandler.cs (100%) rename nrdkwebsite/{ => Extensions}/User.cs (100%) create mode 100644 nrdkwebsite/wwwroot/js/md5.min.js diff --git a/nrdkwebsite/API.cs b/nrdkwebsite/Extensions/API.cs similarity index 100% rename from nrdkwebsite/API.cs rename to nrdkwebsite/Extensions/API.cs diff --git a/nrdkwebsite/DatabaseHandler.cs b/nrdkwebsite/Extensions/DatabaseHandler.cs similarity index 100% rename from nrdkwebsite/DatabaseHandler.cs rename to nrdkwebsite/Extensions/DatabaseHandler.cs diff --git a/nrdkwebsite/User.cs b/nrdkwebsite/Extensions/User.cs similarity index 100% rename from nrdkwebsite/User.cs rename to nrdkwebsite/Extensions/User.cs diff --git a/nrdkwebsite/Pages/users.cshtml b/nrdkwebsite/Pages/users.cshtml index cfe3133..5450720 100644 --- a/nrdkwebsite/Pages/users.cshtml +++ b/nrdkwebsite/Pages/users.cshtml @@ -1,6 +1,6 @@ @page @model Users -@{ViewData["Title"] = "users";} +@{ ViewData["Title"] = "users"; }
- - + + + + + +
АйдиНикнеймМасть
Loading...Loading...Loading...
АйдиНикнеймМасть
Loading...Loading...Loading...
- @{ - if (ViewData["Admin"] == "true") - { - - } - } +
-@{ - if (ViewData["Admin"] == "true") - { -
- -
nickname
- -
масть
- -
- -
-
- - } - } +
+ +
nickname
+ +
масть
+ +
+ +
+
+ + \ No newline at end of file diff --git a/nrdkwebsite/Program.cs b/nrdkwebsite/Program.cs index d73ab58..7f78757 100644 --- a/nrdkwebsite/Program.cs +++ b/nrdkwebsite/Program.cs @@ -30,3 +30,8 @@ app.UseAuthorization(); app.MapRazorPages(); app.Run(); + + + + + diff --git a/nrdkwebsite/wwwroot/js/admin.js b/nrdkwebsite/wwwroot/js/admin.js index c2e0c60..ad4fc80 100644 --- a/nrdkwebsite/wwwroot/js/admin.js +++ b/nrdkwebsite/wwwroot/js/admin.js @@ -1,4 +1,8 @@ function admin() { + let person = prompt("Введите пинкод", "1234") + if (md5(person) !== "3d65eea6270a01922434000ca578b198") { + return; + } document.body.style.background = "black"; document.getElementById("admin").remove(); let adminbuttons = document.getElementsByClassName("ADMINBUT"); diff --git a/nrdkwebsite/wwwroot/js/md5.min.js b/nrdkwebsite/wwwroot/js/md5.min.js new file mode 100644 index 0000000..f414e7c --- /dev/null +++ b/nrdkwebsite/wwwroot/js/md5.min.js @@ -0,0 +1,2 @@ +!function(n){"use strict";function d(n,t){var r=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(r>>16)<<16|65535&r}function f(n,t,r,e,o,u){return d((u=d(d(t,n),d(e,u)))<>>32-o,r)}function l(n,t,r,e,o,u,c){return f(t&r|~t&e,n,t,o,u,c)}function g(n,t,r,e,o,u,c){return f(t&e|r&~e,n,t,o,u,c)}function v(n,t,r,e,o,u,c){return f(t^r^e,n,t,o,u,c)}function m(n,t,r,e,o,u,c){return f(r^(t|~e),n,t,o,u,c)}function c(n,t){var r,e,o,u;n[t>>5]|=128<>>9<<4)]=t;for(var c=1732584193,f=-271733879,i=-1732584194,a=271733878,h=0;h>5]>>>e%32&255);return t}function a(n){var t=[];for(t[(n.length>>2)-1]=void 0,e=0;e>5]|=(255&n.charCodeAt(e/8))<>>4&15)+r.charAt(15&t);return e}function r(n){return unescape(encodeURIComponent(n))}function o(n){return i(c(a(n=r(n)),8*n.length))}function u(n,t){return function(n,t){var r,e=a(n),o=[],u=[];for(o[15]=u[15]=void 0,16