From 3dbf85e3d0180548fab7bc82b7d9e3aa4b63a5ac Mon Sep 17 00:00:00 2001 From: Frankie B Date: Thu, 25 May 2023 20:12:46 +0100 Subject: Add git to navbar --- guestbook/submit.php | 76 ---------------------------------------------------- inc/nav.inc.php | 3 ++- 2 files changed, 2 insertions(+), 77 deletions(-) delete mode 100755 guestbook/submit.php diff --git a/guestbook/submit.php b/guestbook/submit.php deleted file mode 100755 index bc30672..0000000 --- a/guestbook/submit.php +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - -
- - -
-
- You must provide both a name and message!'; - } else { - $db = new PDO("sqlite:/mnt/data1/webdata/floppydisk/guestbook.db"); - - $showinfo = isset($_POST["showinfo"]) ? true : false; - $showip = isset($_POST["showip"]) ? true : false; - $ip = $_SERVER['REMOTE_ADDR']; - $browser = get_browser(null, true); - $sys = $browser['parent'] . ' (' . $browser['platform_description'] . ' ' . $browser['platform_version'] . ')'; - - $data = array('name' => $name, 'message' => $msg, 'show_info' => $showinfo, 'show_ip' => $showip, 'ip' => $ip, 'submitted' => time(), 'sys' => $sys); - - $insert = "INSERT INTO Entries (name, message, show_info, show_ip, ip, submitted, browser_info) VALUES (:name, :message, :show_info, :show_ip, :ip, :submitted, :browser)"; - $stmt = $db->prepare($insert); - $stmt->bindParam(':name', $data['name'], PDO::PARAM_STR); - $stmt->bindParam(':message', $data['message'], PDO::PARAM_STR); - $stmt->bindParam(':show_info', $data['show_info'], PDO::PARAM_STR); - $stmt->bindParam(':show_ip', $data['show_ip'], PDO::PARAM_STR); - $stmt->bindParam(':ip', $data['ip'], PDO::PARAM_STR); - $stmt->bindParam(':submitted', $data['submitted'], PDO::PARAM_STR); - $stmt->bindParam(':browser', $data['sys'], PDO::PARAM_STR); - $stmt->execute(); - echo 'Success!'; - } - } else { - echo 'Your message could not be submitted as it (or your username) contains the following prohibited keywords:
'.PHP_EOL; - echo '
'.join(', ', $contains_keywords).'
'.PHP_EOL; - } - ?> -

- Back -
- - -
-
- - diff --git a/inc/nav.inc.php b/inc/nav.inc.php index c626142..b3876ea 100644 --- a/inc/nav.inc.php +++ b/inc/nav.inc.php @@ -1,6 +1,7 @@
-
\ No newline at end of file + -- cgit v1.2.3-54-g00ecf