From 6b384a8fb1392a19fb4089e1a7782a012baa7c9b Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 21 Jun 2012 11:54:45 +0300 Subject: [PATCH] add support system (by netsoundrad) --- Templates/menu.tpl | 2 +- mailme.php | 56 +++++++++++++++++ support.php | 151 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+), 1 deletion(-) create mode 100644 mailme.php create mode 100644 support.php diff --git a/Templates/menu.tpl b/Templates/menu.tpl index 8626dd14..24f96d04 100644 --- a/Templates/menu.tpl +++ b/Templates/menu.tpl @@ -50,7 +50,7 @@ div.c1 {text-align: center} Game Rules

Travian Plus - Support + Support

isDeleting($session->uid); diff --git a/mailme.php b/mailme.php new file mode 100644 index 00000000..d7b13e90 --- /dev/null +++ b/mailme.php @@ -0,0 +1,56 @@ +\n"; +$strFrom .= "X-Sender: \n"; +$strFrom .= "X-Mailer: PHP\n"; +$strFrom .= "X-Priority: 3\n"; +$strFrom .= "Errors-To: \n"; +$strFrom .= "Return-Path: \n"; +$strFrom .= "Reply-To: " . $_POST['Emailadress'] . "\n"; +$strFrom .= "Content-Type: text; charset=iso-8859-15\n"; + +$strSubject = "New Ticket supported"; + + +$strReturnhtml = 'dorf1.php'; + + +$strDelimiter = ":\t"; + +### end of config ### + +if($_POST) +{ + $strMailtext = ""; + + while(list($strName,$value) = each($_POST)) + { + if(is_array($value)) + { + foreach($value as $value_array) + { + $strMailtext .= $strName.$strDelimiter.$value_array."\n"; + } + } + else + { + $strMailtext .= $strName.$strDelimiter.$value."\n"; + } + } + + if(get_magic_quotes_gpc()) + { + $strMailtext = stripslashes($strMailtext); + } + + mail($strEmpfaenger, $strSubject, $strMailtext, $strFrom) + or die("The mail could not be send. Something get wrong!"); + header("Location: $strReturnhtml"); + exit; +} + +?> \ No newline at end of file diff --git a/support.php b/support.php new file mode 100644 index 00000000..f8fa923f --- /dev/null +++ b/support.php @@ -0,0 +1,151 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + + +
+
+
+ +
+ +
+

Support

+

You can use the following form to submit your request to the Support.
Please take a bit of time to answer the form questions in as much detail as possible, so that we can answer your request quickly and in length.
Please note that without a valid email address, your request will not get processed. +

Bug reports, login errors, general questions and feedback

+ +
+ +
+ + + + + +
+
+
+ + + + + +
+
+
+ + + + + +
+
+
+ + + + + +
+
+
+
+ + + + + + + +
                                                            
+
+
+ +
+
+
+ +
+ +
+
+ + +
+ + +
+ + \ No newline at end of file