commit bf38e44abaabfce8901c5c9e659209fe30cd197e
parent 36c906625c313a714939936918a3f013431309ed
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Mon, 29 Jul 2024 12:48:40 +0200
fix: remove unused file
Diffstat:
D | index.php | | | 96 | ------------------------------------------------------------------------------- |
1 file changed, 0 insertions(+), 96 deletions(-)
diff --git a/index.php b/index.php
@@ -1,96 +0,0 @@
-<!-- SPDX-License-Identifier: AGPL-3.0-or-later
- SPDX-FileCopyrightText: 2024 JayVii <jayvii[AT]posteo[DOT]de>
--->
-
-<!DOCTYPE html>
-<html>
-
-<?php
-
-if (unset($_POST["streams"])) {
-
- // Prepare streams array
- $streams = array(
- "video_id" => array(),
- "video_title" => array(),
- "video_desc" => array(),
- "video_date" => array(),
- "channel_id" => array(),
- "channel_name" => array()
- );
- $loading_screen = true;
-
-} else {
-
- $streams = unserialize($_POST["streams"]);
- $loading_screen = false;
-
-}
-
-// Streams or Loading Screen
-if (!$loading_screen) {
- // Load Stream Data
- include("lib/load_streams.php");
- // Build HTML from Stream Data
- include("lib/build_html.php");
-} else {
- // Load Loading Screen content
- include("lib/loadingscreen.php");
-}
-
-?>
-
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Twitch Streams</title>
- <link rel="icon" type="image/png" href="assets/img/twitch.png">
- <link rel="icon" type="image/png" sizes="16x16" href="assets/img/twitch_16.png">
- <link rel="icon" type="image/png" sizes="32x32" href="assets/img/twitch_32.png">
- <link rel="icon" type="image/png" sizes="64x64" href="assets/img/twitch_64.png">
- <link rel="icon" type="image/png" sizes="128x128" href="assets/img/twitch_128.png">
- <link rel="apple-touch-icon" href="assets/img/twitch.png">
- <link rel="stylesheet" type="text/css" href="assets/css/stylesheet.css"/>
- <link rel="stylesheet" href="assets/css/loading.css" />
- <link rel="stylesheet" href="assets/css/custom.css" />
- <script async src="assets/js/twitch.js"></script>
- <link crossorigin="use-credentials" rel="manifest" href="manifest.json">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- </head>
-
- <body class="list dark">
- <main class="main">
-
- <h1>Streams</h1>
-
- <!-- Save Button -->
- <button class="button" onclick="<?php echo "document.cookie='streams=" . implode(",", $streams["stream"]) . ";path=/;max-age=31536000;';" ?>" style="<?php echo "color:" . $save_col; ?>">
- 🖫 Save
- </button>
-
- <!-- Reload Button -->
- <a href="<?php echo "/?streams=" . implode(",", $streams["stream"]); ?>">
- <button class="button">
- ↻ Reload
- </button>
- </a>
-
- <button class="button">
- Live: <?php echo array_sum($streams["status"]); ?>
- </button>
-
- <br>
-
- <!-- Search Bar -->
- <form action="https://www.twitch.tv/search" method="GET" style="width:100%;">
- <input id="searchbar" type="text" id="searchInput" name="term" placeholder="🔍 Search...">
- </form><br>
-
-<?php
-
-echo $content;
-
-?>
-
- </main>
- </body>
-</html>