diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php new file mode 100644 index 0000000..e2f23a2 --- /dev/null +++ b/app/Http/Controllers/AdminController.php @@ -0,0 +1,18 @@ + ['required', 'string', 'alpha_dash', 'min:3', 'max:20', 'unique:users'], + 'name' => ['required', 'string', 'min:3', 'max:20', 'unique:users', 'regex:/^(?!^\.)(?!.*[-_.]$)[a-zA-Z0-9 ]+$/'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users', 'confirmed', 'email:rfc,dns'], 'dob' => ['required', 'date_format:Y-m-d', 'before:today', 'after:01/01/1970'], 'password' => ['required', 'string', 'min:8', 'regex:/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{6,}$/'], diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php index 2b02c37..b6855cd 100644 --- a/app/Http/Kernel.php +++ b/app/Http/Kernel.php @@ -65,5 +65,6 @@ class Kernel extends HttpKernel 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, + 'AdminCheck' => \App\Http\Middleware\AdminCheck::class, ]; } diff --git a/app/Http/Middleware/AdminCheck.php b/app/Http/Middleware/AdminCheck.php new file mode 100644 index 0000000..15dff87 --- /dev/null +++ b/app/Http/Middleware/AdminCheck.php @@ -0,0 +1,26 @@ +Admin - {{ env('APP_NAME') }} +@endsection + +@section('content') +
++
+ USERNAME: MORBLOX
+EMAIL: test@example.com
+ID: 1
+DOB: 1/1/01
+STATUS: Normal
+INVITED BY: SYSTEM (ID: 0)
+ + + + + ++
+ Game Name: MORBLOX's Place
+Game Description: This is your first MORBLOX Place. Open it with MORBLOX Studio to start building!
+Creator: MORBLOX
+GAMEID: 1
+ + + + ++
---------------------------
+SYSTEM (ID: 0)
+- MORBLOX (ID: 1)
+- Conkley (ID: 2)
+- Thomas (ID: 3)
+- - the night guard from five nights at freddy (ID: ??)
+- Mura (ID: 4)
+- Pipedream (ID: 5)
+---------------------------
++
+ Asset Name: PLACEHOLDER
+Asset Description: PLACEHOLDER IMAGE
+Asset Type: Decal
+Asset Creator: MORBLOX (ID: 1)
+ + + + ++
+ Reporting: Game
+Report Sender: MORBLOX (USERID: 1)
+Game: MORBLOX's Place (GAMEID: 1)
+Game Creator: MORBLOX (USERID: 1)
+Reason: Racial/Homophobic Slurs
+Comments: Has the N Word in it.
+ + + + +
+ Reporting: Player
+Report Sender: MORBLOX (USERID: 1)
+Player: Thomas (USERID: 3)
+Inviter: SYSTEM (USERID: 0)
+Reason: Harrassment
+Comments: Said "It's Morbin Time"
+ + + + ++
Moderator: Thomas (ID: 3)
+Player: skeuomorphism hater (ID: ??)
+Inviter: skeuomorphism lover (ID: ??)
+Punishment: Termination, Disabling invites for Inviter
+Reason: Being mean :(
+ + + + +There are no running game servers!
+