| ... | ... |
@@ -1,8 +1,8 @@ |
| 1 | 1 |
<?php |
| 2 |
-if(!defined("_CHARSET")) exit( );
|
|
| 3 |
- $content = "<form method=\"POST\" id=\"searchblock\" enctype=\"multipart/form-data\" action=\""._BASEDIR."search.php?action=advanced\"> |
|
| 4 |
- <INPUT type=\"text\" class=\"textbox\" name=\"searchterm\" id=\"searchterm\" size=\"15\"> |
|
| 5 |
- <INPUT type=\"hidden\" name=\"searchtype\" value=\"advanced\"> |
|
| 6 |
- <INPUT type=\"submit\" class=\"button\" name=\"submit\" value=\""._SEARCH."\"></form>"; |
|
| 7 |
- |
|
| 8 |
-?> |
|
| 9 | 2 |
\ No newline at end of file |
| 3 |
+if (!defined('_CHARSET')) {
|
|
| 4 |
+ exit(); |
|
| 5 |
+} |
|
| 6 |
+ $content = '<form method="POST" id="searchblock" enctype="multipart/form-data" action="'._BASEDIR.'searching.php?action=advanced"> |
|
| 7 |
+ <INPUT type="text" class="textbox" name="searchterm" id="searchterm" size="15"> |
|
| 8 |
+ <INPUT type="hidden" name="searchtype" value="advanced"> |
|
| 9 |
+ <INPUT type="submit" class="button" name="submit" value="'._SEARCH.'"></form>'; |
| ... | ... |
@@ -50,7 +50,7 @@ function sendemail($to_name,$to_email,$from_name,$from_email,$subject,$message,$ |
| 50 | 50 |
$subject = descript(strip_tags($subject)); |
| 51 | 51 |
$message = descript($message); |
| 52 | 52 |
// End paranoia |
| 53 |
- |
|
| 53 |
+ |
|
| 54 | 54 |
// Try to determine the right $type setting |
| 55 | 55 |
if(strpos($message, "<br>") || strpos($message, "</p>") || strpos($message, "<br />") || strpos($message, "<br>") || strpos($message, "<a href")) $type = "html"; |
| 56 | 56 |
|
| ... | ... |
@@ -100,7 +100,7 @@ function sendemail($to_name,$to_email,$from_name,$from_email,$subject,$message,$ |
| 100 | 100 |
$mail->ErrorInfo; |
| 101 | 101 |
$mail->ClearAllRecipients(); |
| 102 | 102 |
$mail->ClearReplyTos(); |
| 103 |
- return false; |
|
| 103 |
+ return $mail->ErrorInfo; |
|
| 104 | 104 |
} else {
|
| 105 | 105 |
$mail->ClearAllRecipients(); |
| 106 | 106 |
$mail->ClearReplyTos(); |