Source for file survey.php
Documentation is available at survey.php
* @author Mambo Foundation Inc see README.php
* @copyright Mambo Foundation Inc.
* See COPYRIGHT.php for copyright notices and details.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see
* Mambo is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2 of the
// Set flag that this is a parent file
// Test to see if the user has submitted the survey
if (isset
($_POST['name'])) {
require_once( 'common.php' );
// Collect the survey information
// Check for user's name and a valid email address
if (empty($name) ||
empty($email) ||
(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email))) {
//Build standard email headers
$headers =
"From: $email" .
"\r\n"
.
"Reply-To: $email" .
"\r\n"
// Check to see if the user is interested in joining Team Mambo and process
if ($teammambo &&
$response) {
$subject =
"Mambo Installation - Possible New Team Member";
$message =
"$name is interested in being a member of Team Mambo. "
.
"Here are the details of the installation survey:\n"
.
"Category: $category\n"
//OK lets send the notice of interest
// No error checking on the send since this is just a nice to have
mail('membership@mambo-foundation.org', $subject, $message, $headers);
// Check to see if the user left any comments and process
if ($response &&
$comments) {
$subject =
"Mambo Installation - User Comments";
$message =
"$name left some comments on the installation survey. "
.
"Here are the comments:\n"
.
"Category: $category\n"
// OK lets send the feedback email
// No error checking on the send since this is just a nice to have
mail('feedback@mambo-foundation.org', $subject, $message, $headers);
//Redirect user to the frontpage
Header('Location: ../index.php');
Documentation generated on Mon, 05 May 2008 16:22:55 +0400 by phpDocumentor 1.4.0