aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--admin.php13
-rw-r--r--handle-reservation.php2
-rw-r--r--reservation.php1
3 files changed, 4 insertions, 12 deletions
diff --git a/admin.php b/admin.php
index 32f6b03..888965c 100644
--- a/admin.php
+++ b/admin.php
@@ -61,17 +61,6 @@ if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
else
echo "<td class=\"center\"><input type=\"checkbox\"></td>";
- //echo "<td contenteditable=\"true\">" . $row['operatorCall'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['fromTime'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['toTime'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['frequencies'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['modes'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['specialCall'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['operatorName'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['operatorEmail'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['operatorPhone'] . "</td>";
- //echo "<td contenteditable=\"true\">" . $row['qso'] . "</td>";
-
echo "<td><div class=\"edit\" contenteditable=\"true\">" . $row['operatorCall'] . "</div></td>";
echo "<td><div class=\"edit\" contenteditable=\"true\">" . $row['qso'] . "</div></td>";
echo "<td><div class=\"edit\" contenteditable=\"true\">" . $row['fromTime'] . "</div></td>";
@@ -98,7 +87,7 @@ if (isset($_SESSION['admin']) && $_SESSION['admin'] == true) {
if (isset($_SESSION['admin']) && $_SESSION['admin'] == false)
echo "<em>Bad credentials!</em>";
# Login form
- echo '<form method="post">';
+ echo '<form action="login.php" method="post">';
echo '<label for="email">Email:</label>';
echo '<input type="email" id="email" name="email">';
echo '<label for="password">Password:</label>';
diff --git a/handle-reservation.php b/handle-reservation.php
index bed1949..076b02a 100644
--- a/handle-reservation.php
+++ b/handle-reservation.php
@@ -1,4 +1,6 @@
<?php
+session_start();
+
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// DB INFO
$user = "yota_requester";
diff --git a/reservation.php b/reservation.php
index 05f6fa7..d557c1e 100644
--- a/reservation.php
+++ b/reservation.php
@@ -28,6 +28,7 @@ session_start();
<?php
if (isset($_SESSION["msg"])) {
echo "<p class=\"mid\"><strong>" . $_SESSION["msg"] . "</strong></p>";
+ unset($_SESSION["msg"]);
}
?>