include("includes/functions.php");
// this is our team passcode
$teamPasscode = "poop";
$filePath = "rssfeed.xml";
$Submit = $_POST["Submit"];
if($Submit)
{
// handle data that was entered
$title = $_POST["Title"];
$description = $_POST["Description"];
$link = $_POST["Link"];
$passcode = $_POST["Passcode"];
if(trim($title) == "")
{
$errors["Title"] = "Please enter a title.";
}
if(trim($description) == "")
{
$errors["Description"] = "Please enter a description.";
}
if(trim($link) == "")
{
$errors["Link"] = "Please enter a link.";
}
if(trim($passcode) == "")
{
$errors["Passcode"] = "Please enter a passcode.";
}
else if(strcmp($teamPasscode, $passcode) != 0)
{
$errors["Passcode"] = "Invalid passcode entered.";
}
if(!$errors)
{
$success = addRSSItem($title, $description, $link, $filePath);
if(!$success)
{
$errors["addRSSItem()"] = "An error occurred while adding the RSS item.";
}
}
}
?>
The Photorganizers | Tracking
include("header.php"); ?>
|
|
|
|
|
Tracking - RSS Editor
if(count($errors) > 0)
{
print("\n\n");
}
else if($success)
{
print("\n\n");
}
?>
|
|
|
|
include("footer.php"); ?>