From 0f52d80ca67a49258b235f5831163dd72fbd54cf Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 11 Jun 2024 18:02:01 +0100 Subject: Merge MVC rewrite into master (#21) * Just commit it all * Require auth * crap * Update homepage * Block AI scrapers * Update cache update script * Add dummy file * Remove unnecessary lastfm config var * Use withQueryParameters for LastFM API * Fix embeds * Update example env * Smard --- .../pages/admin/guestbook-del-confirm.blade.php | 33 ---------------------- resources/views/pages/admin/guestbook.blade.php | 32 --------------------- resources/views/pages/admin/index.blade.php | 9 ------ 3 files changed, 74 deletions(-) delete mode 100644 resources/views/pages/admin/guestbook-del-confirm.blade.php delete mode 100644 resources/views/pages/admin/guestbook.blade.php delete mode 100644 resources/views/pages/admin/index.blade.php (limited to 'resources/views/pages/admin') diff --git a/resources/views/pages/admin/guestbook-del-confirm.blade.php b/resources/views/pages/admin/guestbook-del-confirm.blade.php deleted file mode 100644 index de920e0..0000000 --- a/resources/views/pages/admin/guestbook-del-confirm.blade.php +++ /dev/null @@ -1,33 +0,0 @@ -@extends('layouts.minimal') -@section('title', 'Delete confirm') -@section('content') -

Delete Confirmation

-
-

Are you sure you want to delete this entry?

- -

Entry Details:

- - - - - - - - - - - - - - - - - -
ID:{{ $entry->id }}
Name:{{ $entry->name }}
Date:{{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }}
Message:{{ $entry->message }}
- -
- @csrf - - -
-@stop diff --git a/resources/views/pages/admin/guestbook.blade.php b/resources/views/pages/admin/guestbook.blade.php deleted file mode 100644 index 85460cc..0000000 --- a/resources/views/pages/admin/guestbook.blade.php +++ /dev/null @@ -1,32 +0,0 @@ -@extends('layouts.default-admin') -@section('title', 'Guestbook') -@section('content') - @php - $entries = DB::select(' - SELECT id, name, timestamp, message, ip_address - FROM guestbook__entries - ORDER BY id DESC - '); - @endphp -

Entries ({{ count($entries) }} total)

- @foreach ($entries as $entry) - - - - - - - -
- Name: {{ $entry->name }}
- IP:   {{ $entry->ip_address }}
- Date: {{ gmdate("H:i:s - Y-m-d", $entry->timestamp) }} -
- del -
-
- {{ htmlspecialchars($entry->message) }} -
- @endforeach -@stop - diff --git a/resources/views/pages/admin/index.blade.php b/resources/views/pages/admin/index.blade.php deleted file mode 100644 index fd34313..0000000 --- a/resources/views/pages/admin/index.blade.php +++ /dev/null @@ -1,9 +0,0 @@ -@extends('layouts.default-admin') -@section('title', 'Page Title') -@section('description', 'Page description goes here') -@php - $user = auth()->user(); -@endphp -@section('content') -

You are logged in as {{ $user->name }} ({{ $user->email }})

-@stop -- cgit v1.2.3-54-g00ecf