Annotation of /mambo/branches/4.6/installation/survey.php
Parent Directory
|
Revision Log
Revision 926 - (view) (download)
| 1 : | ninekrit | 926 | <?php |
| 2 : | /** | ||
| 3 : | * @package Mambo Open Source | ||
| 4 : | * @copyright (C) 2005 - 2006 Mambo Foundation Inc. | ||
| 5 : | * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL | ||
| 6 : | * | ||
| 7 : | * Mambo was originally developed by Miro (www.miro.com.au) in 2000. Miro assigned the copyright in Mambo to The Mambo Foundation in 2005 to ensure | ||
| 8 : | * that Mambo remained free Open Source software owned and managed by the community. | ||
| 9 : | * Mambo is Free Software | ||
| 10 : | */ | ||
| 11 : | |||
| 12 : | // Set flag that this is a parent file | ||
| 13 : | define( "_VALID_MOS", 1 ); | ||
| 14 : | |||
| 15 : | // Test to see if the user has submitted the survey | ||
| 16 : | if (isset($_POST['submit'])) { | ||
| 17 : | |||
| 18 : | // Include common.php | ||
| 19 : | require_once( 'common.php' ); | ||
| 20 : | |||
| 21 : | // Collect the survey information | ||
| 22 : | $name = mosGetParam( $_POST, 'name', '' ); | ||
| 23 : | $email = mosGetParam( $_POST, 'email', '' ); | ||
| 24 : | $company = mosGetParam( $_POST, 'company', '' ); | ||
| 25 : | $category = mosGetParam( $_POST, 'category', '' ); | ||
| 26 : | $teammambo = mosGetParam( $_POST, 'teammambo', '' ); | ||
| 27 : | $comments = mosGetParam( $_POST, 'comments', '' ); | ||
| 28 : | |||
| 29 : | // Check for user's name and a valid email address | ||
| 30 : | if (empty($name) || empty($email) || (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email))) { | ||
| 31 : | $response = 0;} | ||
| 32 : | else { | ||
| 33 : | $response = 1;} | ||
| 34 : | |||
| 35 : | // Check to see if the user is interested in joining Team Mambo and process | ||
| 36 : | if ($teammambo && $response) { | ||
| 37 : | $subject = "Mambo Installation - Possible New Team Member"; | ||
| 38 : | $message = "$name is interested in being a member of Team Mambo. " | ||
| 39 : | . "Here are the details of the installation survey:\n" | ||
| 40 : | . "\n" | ||
| 41 : | . "Name: $name\n" | ||
| 42 : | . "Email: $email\n" | ||
| 43 : | . "Company: $company"; | ||
| 44 : | |||
| 45 : | //OK lets send the notice of interest | ||
| 46 : | mail('membership@mambo-foundation.org', $subject, $message); | ||
| 47 : | } | ||
| 48 : | |||
| 49 : | // Check to see if the user left any comments and process | ||
| 50 : | if ($response && $comments) { | ||
| 51 : | $subject = "Mambo Installation - User Comments"; | ||
| 52 : | $message = "$name left some comments on the installation survey. " | ||
| 53 : | . "Here are the comments:\n" | ||
| 54 : | . "\n" | ||
| 55 : | . "Name: $name\n" | ||
| 56 : | . "Email: $email\n" | ||
| 57 : | . "Category: $category\n" | ||
| 58 : | . "Company: $company\n" | ||
| 59 : | . "Comments: $comments"; | ||
| 60 : | |||
| 61 : | // OK lets send the feedback email | ||
| 62 : | mail('feedback@mambo-foundation.org', $subject, $message); | ||
| 63 : | } | ||
| 64 : | |||
| 65 : | } | ||
| 66 : | |||
| 67 : | //Redirect user to the frontpage | ||
| 68 : | Header('Location: ../index.php'); | ||
| 69 : | |||
| 70 : | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

