Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (41 sloc) 1.443 kB
<?php
/*********************
* contactus.php
*
* Standard Contact Page
* @author Austin Putman <austin@radicaldesigns.org>
* @version AMP 3.5.8
* @date 2006-02-06
*/
require_once("AMP/BaseDB.php");
require_once( 'Modules/Contact/Form.inc.php');
$form = &new ContactForm( );
$form->Build( );
$form->enforceRules( );
$showForm = !( $form->submitted( ) && $form->validate( ));
$intro_id = $showForm ? AMP_CONTENT_PUBLICPAGE_ID_CONTACT_US :
AMP_CONTENT_PUBLICPAGE_ID_CONTACT_US_RESPONSE ;
$modid = AMP_MODULE_ID_CONTACT_US;
require_once("AMP/BaseTemplate.php");
$flash = &AMP_System_Flash::instance( );
print $flash->execute( );
require_once("AMP/BaseModuleIntro.php");
if ( !isset( $MM_email_contact)) $MM_email_contact = false;
if ( !defined( 'AMP_SITE_EMAIL_CONTACT')) define( 'AMP_SITE_EMAIL_CONTACT', $MM_email_contact );
if ( $showForm ) {
print $form->output( );
} elseif ( AMP_SITE_EMAIL_CONTACT ){
$data = $form->getValues( );
require_once( 'AMP/System/Email.inc.php');
$email_maker = &new AMPSystem_Email( );
$email_maker->setRecipient( AMP_SITE_EMAIL_CONTACT );
$email_maker->setMessage( $data['message'] );
$email_maker->setSender( $data['sender_email'] );
$email_maker->setSenderName( false );
$email_maker->setSubject( $data['subject'] );
$email_maker->execute( );
} else {
print AMP_TEXT_ERROR_TOOL_NOT_CONFIGURED;
}
require_once("AMP/BaseFooter.php");
?>
Jump to Line
Something went wrong with that request. Please try again.