1
iaparrot.com is parked at aviary.info
aviary.info is my site and it works fine but when someone goes to iaparrot.com a page that I wrote is blank. It displays fine in aviary.info and most pages show up fine in iaparrot.com except that one. Is there something I'm supposed to have in the header to make it show up?
Here's the php code:
Quote:
include "mainfile.php";
include XOOPS_ROOT_PATH."/include/Snoopy.class.php";
include XOOPS_ROOT_PATH."/class/xoopsmailer.php";
include(XOOPS_ROOT_PATH."/header.php");
global $xoopsConfig, $xoopsUser, $xoopsTheme, $xoopsLogger;
$mail = new phpmailer;
If(!trim($emailaddr)=='')
{
$xoopsDB->queryF("INSERT INTO `xoops_complaints` (`realname`, `emailaddr`, `destination`) VALUES ('".$realname."', '".$emailaddr."', '1')");
if($xoopsDB->getAffectedRows()==-1)
{
//already complained
$errordisplay="That email address has already sent a complaint.. but we like your enthusiasm!";
$ret.=$errordisplay;
} else {
$xoopsMailer->reset;
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$tempdir=XOOPS_ROOT_PATH.'/modules/system/language/'.$xoopsConfig['language'].'/mail_template/';
$xoopsMailer->setTemplateDir($tempdir);
$xoopsMailer->setTemplate("festival.tpl");
$xoopsMailer->assign("EMAILADDR", $emailaddr);
$xoopsMailer->assign("REALNAME", $realname);
$xoopsMailer->assign("COMMENTS", $comments);
$xoopsMailer->setFromEmail($emailaddr);
$xoopsMailer->setFromName($realname);
$xoopsMailer->setSubject("Your MN festival pet policy");
$xoopsMailer->setToEmails("info@renaissancefest.com");
//$xoopsMailer->setToEmails("test@aviary.info");
if ( !$xoopsMailer->send() )
{
$errordisplay="ERROR:Could not send your email complaint. Please try again later or contact the site administrator.";
$ret.=$errordisplay;
$xoopsDB->queryF("DELETE FROM `xoops_complaints` WHERE (`emailaddr`='".$emailaddr."' AND `realname`='".$realname."' AND `destination`='1')");
} else
{
redirect_header("festival.php",1,"EMAIL SENT! Thank you for supporting this topic!
");
exit();
}
}
// show result
print $ret."
";
}
//show form
if($emailaddr=="") $emailaddr=$xoopsUser->getVar("email", "E");
if($realname=="") $realname=$xoopsUser->getVar("name", "E");
$ret="";
print $ret;
include(XOOPS_ROOT_PATH."/footer.php");
?>