Minor crap
This commit is contained in:
parent
d32f9aeafd
commit
f80612e03b
2 changed files with 1 additions and 7 deletions
|
@ -28,9 +28,6 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
ini_set('display_errors', 1);
|
|
||||||
ini_set('display_startup_errors', 1);
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
// Pain
|
// Pain
|
||||||
$count_query = $db->prepare('SELECT COUNT(*) FROM Entries');
|
$count_query = $db->prepare('SELECT COUNT(*) FROM Entries');
|
||||||
$count_query->execute();
|
$count_query->execute();
|
||||||
|
|
|
@ -17,16 +17,13 @@
|
||||||
<div id="pagebody">
|
<div id="pagebody">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<?php
|
<?php
|
||||||
ini_set('display_errors', 1);
|
|
||||||
ini_set('display_startup_errors', 1);
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
// Open the DB
|
// Open the DB
|
||||||
if ($_POST['name'] === "" || $_POST['message'] === "") {
|
if ($_POST['name'] === "" || $_POST['message'] === "") {
|
||||||
echo '<b>You must provide both a name and message!</b>';
|
echo '<b>You must provide both a name and message!</b>';
|
||||||
} else {
|
} else {
|
||||||
$db = new PDO("sqlite:/mnt/data1/webdata/floppydisk/guestbook.db");
|
$db = new PDO("sqlite:/mnt/data1/webdata/floppydisk/guestbook.db");
|
||||||
$name = $_POST["name"];
|
$name = $_POST["name"];
|
||||||
$msg = strip_tags($_POST["message"]);
|
$msg = htmlspecialchars($_POST["message"]);
|
||||||
$showinfo = isset($_POST["showinfo"]) ? true : false;
|
$showinfo = isset($_POST["showinfo"]) ? true : false;
|
||||||
$showip = isset($_POST["showip"]) ? true : false;
|
$showip = isset($_POST["showip"]) ? true : false;
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
|
|
Loading…
Reference in a new issue