session_start(); // start general page logging include_once($_SERVER['DOCUMENT_ROOT']."/common/includes/classes/generalstats/DatabaseHandler.class.php"); include_once($_SERVER['DOCUMENT_ROOT']."/common/includes/classes/generalstats/LogGeneralViews.class.php"); $pgExtension = (empty($_SERVER['QUERY_STRING'])) ? '' : '?'.$_SERVER['QUERY_STRING'] ; $logGenViews = new LogGeneralViews($_SERVER['PHP_SELF'].$pgExtension); // end general page logging //The default messagebody is stored in a file called "default_messagetext.txt" //That file can be found in the /data directory. //*********************************************************************** // You may change these variables to suite your purposes //*********************************************************************** //After successfully completing, the user will be redirect here: $Redirect="success.html"; //Email Address of Person Getting reports $Admin_Address[]="webmaster@kingstonlinks.com"; $Admin_Address[]="btanner@home.com"; //This is the subject of the e-mail message $Subject="Requested code from Kingston Links"; //This is the name that the e-mail will be "from" $From_Name="Kingston Links"; //This is the e-mail address that the e-mail will be "from" $From_Address="chris@kingstonlinks.com"; //This will be the e-mail address that officially "sent" the message (nobody usually sees this) $Send_Address="chris@kingstonlinks.com"; //This is the address that will be notified if there is a problem delivering the e-mail $Return_Path="chris@kingstonlinks.com"; //************************************************************************* //End of stuff that you should be changing //************************************************************************* $Message_Value=GetFile("data/default_messagetext.txt"); include("classes/form_handler.class"); $FormHandler=new form_handler(); if(empty($C)) $C="D"; $FormHandler->InsertGroup("Forward"); //Email $ThisField=&$FormHandler->InsertField("Email","* Your Email Address:","T","Forward"); $ThisField->ValidationTypes=array("R","TL","MX:128","E"); //Message $ThisField=&$FormHandler->InsertField("Message","* Message:","A","Forward"); $ThisField->ValidationTypes=array("R"); $ThisField->Rows=10; $ThisField->Cols=40; $FormHandler->Load(); if(empty($Message)) $ThisField->Value=$Message_Value; else{ $ThisField->Value=stripslashes($ThisField->Value); } if($C=="V"){ $FormHandler->Validate(); if($FormHandler->IsValid()) $C="P"; else $C="D"; } if($C=="D"){ //************************************************************************************************** //************************************************************************************************** //************************************************************************************************** // Start OF THE PAGE // //************************************************************************************************** //************************************************************************************************** //************************************************************************************************** ?>