| [ Index ] | PHP Cross Reference of Mambo 4.6.5 |
|
| [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Install instructions 4 * @package Mambo 5 * @author Mambo Foundation Inc see README.php 6 * @copyright (C) 2000 - 2009 Mambo Foundation Inc. 7 * See COPYRIGHT.php for copyright notices and details. 8 * @license GNU/GPL Version 2, see LICENSE.php 9 * 10 * Redistributions of files must retain the above copyright notice. 11 * 12 * Mambo is free software; you can redistribute it and/or 13 * modify it under the terms of the GNU General Public License 14 * as published by the Free Software Foundation; version 2 of the License. 15 */ 16 17 // Set flag that this is a parent file 18 define( "_VALID_MOS", 1 ); 19 20 // Test to see if the user has submitted the survey 21 if (isset($_POST['name'])) { 22 23 // Include common.php 24 require_once ( 'common.php' ); 25 26 // Collect the survey information 27 $name = mosGetParam( $_POST, 'name', '' ); 28 $email = mosGetParam( $_POST, 'email', '' ); 29 $company = mosGetParam( $_POST, 'company', '' ); 30 $category = mosGetParam( $_POST, 'category', '' ); 31 $comments = mosGetParam( $_POST, 'comments', '' ); 32 33 // Check for user's name and a valid email address 34 if (empty($name) || empty($email) || (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email))) { 35 $response = 0; 36 } 37 else { 38 $response = 1; 39 } 40 41 //Build standard email headers 42 $headers = "From: $email" . "\r\n" 43 . "Reply-To: $email" . "\r\n" 44 . 'X-Mailer: PHP/' . phpversion(); 45 46 // Check to see if the user left any comments and process 47 if ($response && $comments) { 48 $subject = "Mambo Installation - User Comments"; 49 $message = "$name left some comments on the installation survey. " 50 . "Here are the comments:\n" 51 . "\n" 52 . "Name: $name\n" 53 . "Email: $email\n" 54 . "Category: $category\n" 55 . "Company: $company\n" 56 . "Comments: $comments"; 57 58 // OK lets send the feedback email 59 // No error checking on the send since this is just a nice to have 60 mail('feedback@mambo-foundation.org', $subject, $message, $headers); 61 62 } 63 64 } 65 66 //Redirect user to the frontpage 67 Header('Location: ../index.php'); 68 69 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Feb 8 00:05:01 2012 | Cross-referenced by PHPXref 0.7 |
| Mambo API: Mambo is Free software released under the GNU/General Public License, Version 2 |