From 66679ae1df33189203eb739697c6ef8fd71f60a4 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 4 Feb 2022 22:48:20 +0000 Subject: [PATCH] Moved 2019 to the abyss. --- pages/contact.php | 2 +- public/2019/404.php | 25 ----- public/2019/blog.php | 50 --------- public/2019/index.php | 236 --------------------------------------- public/2019/projects.php | 82 -------------- public/nintendo.php | 2 +- 6 files changed, 2 insertions(+), 395 deletions(-) delete mode 100644 public/2019/404.php delete mode 100644 public/2019/blog.php delete mode 100644 public/2019/index.php delete mode 100644 public/2019/projects.php diff --git a/pages/contact.php b/pages/contact.php index b0f05e7..ab8bd47 100644 --- a/pages/contact.php +++ b/pages/contact.php @@ -8,7 +8,7 @@ if($reqPath === '/contact.php' || $reqPath === '/contact.html') { return FM_HIT | 302; } -if($reqPath === '/nintendo') { +if($reqPath === '/nintendo' || $reqPath === '/nintendo.php') { if($reqMethod !== 'GET') return FM_ERR | 405; header('Location: /contact#gaming'); diff --git a/public/2019/404.php b/public/2019/404.php deleted file mode 100644 index 4506e46..0000000 --- a/public/2019/404.php +++ /dev/null @@ -1,25 +0,0 @@ -' - . html_head('Error 404 - Not Found', HEAD_ERROR) - . '' - . html_navigation(NAV_ERROR, [ - 'title1' => '404 ', - 'title2' => 'not found', - ]) - . '
'; -?> -
-

-
-' - . html_footer() - . '' - . html_close(); diff --git a/public/2019/blog.php b/public/2019/blog.php deleted file mode 100644 index 93edae8..0000000 --- a/public/2019/blog.php +++ /dev/null @@ -1,50 +0,0 @@ -prepare(' - SELECT `post_id`, `post_title`, `post_text`, `post_published` - FROM `fm_blog_posts` - WHERE `post_id` = :id - AND `post_published` IS NOT NULL - AND `post_published` < CURRENT_TIMESTAMP - AND `post_deleted` IS NULL -'); -$getBlogPost->bindValue('id', $postId); -$getBlogPost->execute(); -$blogPost = $getBlogPost->fetch(PDO::FETCH_OBJ); - -if (empty($blogPost)) die('Couldn\'t find that post.'); - -echo html_open() - . '' - . html_head($blogPost->post_title, HEAD_FLASHWAVE) - . '' - . html_navigation(NAV_FLASHWAVE) - . '
'; - -?> -
-

post_title;?>

- post_text); - - foreach ($splitLines as $paragraph) - if(!empty($paragraph)) - echo '

' . trim($paragraph) . '

'; - ?> - Posted post_published;?> -
-' - . html_footer() - . '' - . html_close(); diff --git a/public/2019/index.php b/public/2019/index.php deleted file mode 100644 index 1465324..0000000 --- a/public/2019/index.php +++ /dev/null @@ -1,236 +0,0 @@ - 'fas fa-at', - 'title' => 'E-mail', - 'url' => 'mailto:me@flash.moe', - ], - [ - 'icon' => 'fas fa-bolt', - 'title' => 'Flashii', - 'url' => 'https://flashii.net/profile.php?u=1', - ], - [ - 'icon' => 'fab fa-github', - 'title' => 'Github', - 'url' => 'https://github.com/flashwave', - ], - [ - 'icon' => 'fab fa-youtube', - 'title' => 'YouTube', - 'url' => 'https://youtube.com/c/flashwave', - ], - [ - 'icon' => 'fab fa-twitch', - 'title' => 'Twitch', - 'url' => 'https://twitch.tv/flashwave0', - ], - [ - 'icon' => 'fab fa-steam', - 'title' => 'Steam', - 'url' => 'https://steamcommunity.com/id/flashwave_', - ], - [ - 'icon' => 'fab fa-twitter', - 'title' => 'Twitter', - 'url' => 'javascript:confirm(\'Proceed with caution.\') ? location.assign(\'https://twitter.com/smugwave\') : void(0);', - ], - [ - 'icon' => 'fab fa-lastfm', - 'title' => 'last.fm', - 'url' => 'https://www.last.fm/user/flashwave_', - ], - [ - 'icon' => 'fab fa-nintendo-switch', - 'title' => 'Switch', - 'url' => 'javascript:alert(\'SW-7446-8163-4902\');', - ], - [ - 'icon' => 'fab fa-paypal', - 'title' => 'Donate', - 'url' => 'https://paypal.me/flashwave', - ], -]; - -$getBlogPosts = $pdo->prepare(' - SELECT `post_id`, `post_title`, `post_text`, `post_published` - FROM `fm_blog_posts` AS bp - WHERE `post_published` IS NOT NULL - AND `post_published` < CURRENT_TIMESTAMP - AND `post_deleted` IS NULL - ORDER BY `post_published` DESC -'); -$getBlogPosts->execute(); -$blogPosts = $getBlogPosts->fetchAll(PDO::FETCH_OBJ); - -echo html_open() - . '' - . html_head('flash.moe', HEAD_FLASHWAVE) - . ''; - -if(html_old_ie()) - echo ''; -if(html_netscape()) - echo ''; - -echo '
'; -?> -
-
- avatar -
-
flashwave
-
if it ain't broke, i'll break it
-
-
- -
- - - -
- - -
Projects
-
List of things I've made or am making.
-
- -
Flashii
-
Community site I run and develop.
-
- -
Railgun
-
Chat server and chat protocols I work on.
-
- - -
-
Loading...
-
-
-
- - -
-
-
- -
- -
- -
-

post_title;?>

-

post_text)[0]);?>

- Continue reading - Posted post_published;?> -
- -
- - - -' - . html_footer() - . '' - . html_close(); diff --git a/public/2019/projects.php b/public/2019/projects.php deleted file mode 100644 index 1eddc5f..0000000 --- a/public/2019/projects.php +++ /dev/null @@ -1,82 +0,0 @@ -' - . html_head('Projects', HEAD_FLASHWAVE) - . '' - . html_navigation(NAV_FLASHWAVE) - . '
'; -?> -
-
Active Projects
- -
- prepare(' - SELECT `project_id`, `project_name`, `project_summary`, `project_homepage`, `project_repository`, `project_forum`, `project_archived` - FROM `fm_projects` - WHERE `project_deleted` IS NULL - ORDER BY !ISNULL(`project_archived`), `project_order` DESC - '); - $getProjects->execute(); - $projects = $getProjects->fetchAll(PDO::FETCH_OBJ); - - $getLanguages = $pdo->prepare(' - SELECT pl.`language_name`, pl.`language_colour` - FROM `fm_proglangs` AS pl - LEFT JOIN `fm_projects_proglangs` AS ppl - ON ppl.`language_id` = pl.`language_id` - WHERE ppl.`project_id` = :project_id - ORDER BY ppl.`priority` - '); - - foreach ($projects as $project) { - $getLanguages->bindValue('project_id', $project->project_id); - $getLanguages->execute(); - $languages = $getLanguages->fetchAll(PDO::FETCH_OBJ); - - if(!$archived && !empty($project->project_archived)) { - $archived = true; - ?> -
-
Archived Projects
-
- -
language_colour)) { echo sprintf(' style="background-color: %1$s; box-shadow: 0 0 3px %1$s;"', html_colour($languages[0]->language_colour)); } ?>> -
-

project_name;?>

-
project_summary);?>
- -
- -
- language_name;?> -
- -
- -
-
- -
-
-' - . html_footer() - . '' - . html_close(); diff --git a/public/nintendo.php b/public/nintendo.php index ccc78a3..41cc616 100644 --- a/public/nintendo.php +++ b/public/nintendo.php @@ -1,2 +1,2 @@