1
ChadK
Pages other than actual module pages are blank?
  • 2004/8/10 23:12

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 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="";
$ret.="";
$ret.="";
if($comments) {
$ret.="";
} else {
$ret.="";
}
$ret.="
Your Name
Your Email (must be VALID)
Comments to send
Comments to send
";
print $ret;



include(XOOPS_ROOT_PATH."/footer.php");

?>




2
ChadK
Re: Pages other than actual module pages are blank?
  • 2004/8/10 23:26

  • ChadK

  • Quite a regular

  • Posts: 242

  • Since: 2004/7/9 1


Not really a big deal now because I added this to my mainfile.php:

Quote:

$whathost=$_SERVER["HTTP_HOST"];
if($whathost != "www.aviary.info")
{
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.aviary.info".$_SERVER["REQUEST_URI"]);
exit();
}

Login

Who's Online

296 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 296


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits