Logged out.
BE SURE TO CLOSE YOUR BROWSER!"; echo "

Go back to manager"; } else { require("header.html"); echo "TravelWithAlan.com WEBSITE MANAGER
"; require("manage-options.html"); } if($chosenoption == "contact") { $action = $_POST["action"]; if($action == "") { echo "

"; $query = "SELECT * FROM Contact;"; $result = mysql_query($query); $num=mysql_numrows($result); $i=0; $general = stripslashes(stripslashes(mysql_result($result,$i,"general"))); $upcoming = stripslashes(stripslashes(mysql_result($result,$i,"upcoming"))); $special = stripslashes(stripslashes(mysql_result($result,$i,"special"))); include('textbox.php'); ?>
General Contact Information:


Upcoming Trips Contact Information:


Special Offers Contact Information:


Saved!"; } } else if ($chosenoption == 'where') { echo "

"; require("where-options.html"); $action = $_POST['action']; if($action == "" || $action == "view") { echo "Where's Alan

"; DisplayTopic("WheresAlan","all","false","true","where"); } else if ($action == "viewa") { echo "Where's Alan

"; DisplayTopic("WheresAlan","all","true","true","where"); } else if ($action == "help") { require("where-help.html"); } else if ($action == "addnew") { include('textbox.php'); ?>
Add New Where's Alan? Entry

Title:
Comments:



SAVED!"; } else if ($action == "edit") { $theid = $_POST["theid"]; $query = "SELECT * FROM WheresAlan WHERE id = $theid;"; $result = mysql_query($query); $num=mysql_numrows($result); $i=0; $title = stripslashes(stripslashes(mysql_result($result,$i,"title"))); $info = stripslashes(stripslashes(mysql_result($result,$i,"info"))); include('textbox.php'); ?>
"; ?> Edit Where's Alan? Entry

Title:
Comments:


Saved!

"; mysql_query($query); } else if ($action =="delete") { $theid = $_POST["theid"]; $info = mysql_escape_string($_POST["comments"]); $title = mysql_escape_string($_POST["title"]); $query = "DELETE FROM WheresAlan WHERE id = $theid;"; echo "Deleted.

"; mysql_query($query); } else if ($action == "archive") { $theid = $_POST["theid"]; $query = "UPDATE WheresAlan SET archive = 1 WHERE id = $theid;"; echo "Archived!

"; mysql_query($query); } else if ($action == "unarchive") { $theid = $_POST["theid"]; $query = "UPDATE WheresAlan SET archive = 0 WHERE id = $theid;"; echo "Unarchived!

"; mysql_query($query); } } else if ($chosenoption == "upcoming" || $chosenoption == "special") { $tablename = "SpecialOffers"; $myoption = "special"; $optionname = "Special Offers"; if($chosenoption == "upcoming") { $myoption = "upcoming"; $tablename = "UpcomingTrips"; $optionname = "Upcoming Trips"; require("upcoming-options.html"); } else { require("special-options.html"); } echo "

"; echo ""; echo "$optionname"; echo ""; $action = $_POST['action']; if($action == "" || $action == "view") { echo "

"; DisplayOffer($tablename,"all","false","true",$myoption); } else if ($action == "viewa") { echo " - Archived

"; DisplayOffer($tablename,"all","true","true",$myoption); } else if ($action == "help") { echo "

"; require("where-help.html"); } else if ($action == "addnew") { include('textbox.php'); ?>
Add New Entry

Title:
Teaser:

Comments:

Trip Type:


SAVED!"; } else if ($action == "edit") { $theid = $_POST["theid"]; $query = "SELECT * FROM $tablename WHERE id = $theid;"; $result = mysql_query($query); $num=mysql_numrows($result); $i=0; $title = stripslashes(stripslashes(mysql_result($result,$i,"title"))); $info = stripslashes(stripslashes(mysql_result($result,$i,"info"))); $teaser = stripslashes(stripslashes(mysql_result($result,$i,"teaser"))); $triptype = mysql_result($result,$i,"type"); include('textbox.php'); ?>
"; ?> Edit Entry

Title:
Teaser:

Comments:

Trip Type:
Saved!

"; mysql_query($query); } else if ($action =="delete") { $theid = $_POST["theid"]; $query = "DELETE FROM $tablename WHERE id = $theid;"; echo "Deleted.

"; mysql_query($query); } else if ($action == "archive") { $theid = $_POST["theid"]; $query = "UPDATE $tablename SET archive = 1 WHERE id = $theid;"; echo "Archived!

"; mysql_query($query); } else if ($action == "unarchive") { $theid = $_POST["theid"]; $query = "UPDATE $tablename SET archive = 0 WHERE id = $theid;"; echo "Unarchived!

"; mysql_query($query); } } else if ($chosenoption == 'list') { echo "

"; require("list-options.html"); $action = $_POST['action']; $since = $_POST['since']; $actemail = $_POST['email']; $whattodo = $_POST['whattodo']; if($action == "cust" || $action == "left") { if($whattodo == "delete") { echo "Deleted: $actemail
"; $query = "DELETE FROM Customers WHERE email = '$actemail';"; mysql_query($query); } else if($whattodo == "deleteall") { echo "Deleted all.
"; $query = "DELETE FROM Customers;"; mysql_query($query); } else if($whattodo == "view") { PrintCustomer("SELECT * FROM Customers WHERE email = '$actemail';"); } else { if($action == "cust") { echo "Customers"; PrintCustomerList("SELECT * FROM Customers;","false",$action,$since); } else if($action == "left") { echo "Customers Who Do Not Want Emails"; PrintCustomerList("SELECT * FROM Customers;","true",$action,$since); } } } else if($action == "custcsv") { ExportList("select * from Customers;","false"); echo "Click here to open up the export file"; } else if($action == "leftcsv") { ExportList("select * from Customers;","true"); echo "Click here to open up the export file"; } else if($action == "help") { require("list-help.html"); } } } else { if($_POST["pw"] == "red5candy") { //setcookie('loggedin',$mainpw,time()+10800); require("header.html"); echo "TravelWithAlan.com WEBSITE MANAGER"; ?>

You have Successfully Logged In!
Note: Do not forget to log out! You have three hours to finish your work before your session will expire. If you do work, leave your computer and didn't submit your work within three hours, it will be lost.
TravelWithAlan.com WEBSITE MANAGER"; if($_POST["pw"] != "arden" && $_POST["pw"] != "") echo "
Incorrect password.
"; ?>
Please enter the password: