From a464ef4c0e3ce235fb1da70dfb282449beeeac80 Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 13 Jun 2023 21:59:16 +0100 Subject: Initialize laravel app --- guestbook/index.php | 75 ----------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100755 guestbook/index.php (limited to 'guestbook/index.php') diff --git a/guestbook/index.php b/guestbook/index.php deleted file mode 100755 index 1bd827d..0000000 --- a/guestbook/index.php +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - -
- - -
-
-
-
-
- Add Entry - - - - -
Form temporarily disabled
-
-
- - prepare('SELECT COUNT(*) FROM Entries'); - $count_query->execute(); - $count = $count_query->fetch()[0]; - echo '

Entries (' . $count . ' total)

'; - // Prepare SELECT statement. - $select = "SELECT name, message, show_info, show_ip, ip, submitted, browser_info FROM Entries ORDER BY submitted DESC"; - $stmt = $db->prepare($select); - - // Execute statement. - $stmt->execute(); // ID between 1 and 3. - - // Get the results. - $results = $stmt->fetchAll(PDO::FETCH_ASSOC); - - foreach($results as $row) { - echo '
';
-		    $submittedRaw = $row['submitted'];
-		    $submittedDT = new DateTime("@$submittedRaw");
-		    $submitted = $submittedDT->format('H:i:s - Y-m-d');
-			
-			$browser = get_browser(null, true);
-			$sys = $browser['parent'] . ' (' . $browser['platform_description'] . ' ' . $browser['platform_version'] . ')';
-
-		    echo 'Name:	' . $row['name'] . PHP_EOL;
-			if ($row['show_ip']) echo 'IP:	' . $row['ip'] . PHP_EOL;
-			if ($row['show_info']) echo 'Sys:	' . $row['browser_info'] . PHP_EOL;
-			echo 'Date:	' . $submitted . PHP_EOL . PHP_EOL;
-			echo $row['message'];
-			echo '

'; - } - ?> - -
- - -
-
- - -- cgit v1.2.3-54-g00ecf