Compare commits
11 Commits
new-mysql
...
8eccdffb1e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8eccdffb1e | ||
|
|
c858d5dd32 | ||
|
|
234e187a54 | ||
| d8f5fd7f3a | |||
|
|
a30fd21842 | ||
|
|
57421ead5e | ||
| a846fe2fa7 | |||
|
|
06a3112617 | ||
|
|
064d8f0df3 | ||
|
|
19dcea8344 | ||
| b8e078f470 |
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,5 +1,5 @@
|
|||||||
/.buildpath
|
/.buildpath
|
||||||
/.project
|
/.project
|
||||||
/secret.php
|
/secret.php
|
||||||
/config.php
|
/config.php
|
||||||
/test.php
|
/test.php
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
git submodule add https://git.seemsleg.it/ef/php-func-lib lib
|
# php-func-lib
|
||||||
|
git submodule add https://git.seemsleg.it/pub/php-func-lib lib
|
||||||
test
|
|
||||||
|
|||||||
18
_func.php
18
_func.php
@@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
// include ('config.php');
|
// include ('config.php');
|
||||||
include_once ('sql.php');
|
include_once ('sql.php');
|
||||||
$sql = new SQL ();
|
$sql = new SQL ();
|
||||||
include_once ('string.php');
|
include_once ('string.php');
|
||||||
include_once ('numbers.php');
|
include_once ('numbers.php');
|
||||||
include_once ('mail.php');
|
include_once ('mail.php');
|
||||||
include_once ('debug.php');
|
include_once ('debug.php');
|
||||||
include_once ('markdown.php');
|
include_once ('markdown.php');
|
||||||
?>
|
?>
|
||||||
29
mail.php
29
mail.php
@@ -1,17 +1,20 @@
|
|||||||
<?php
|
<?php
|
||||||
|
function send_mail($an, $betreff, $text, $ok = '', $error = '') {
|
||||||
|
include 'secret.php';
|
||||||
|
$sender = 'noreply@troy-grunt.de';
|
||||||
|
if (isset ( $_sendermail )) {
|
||||||
|
$sender = $_sendermail;
|
||||||
|
}
|
||||||
|
$header = 'From: ' . $sender . "\r\n";
|
||||||
|
$header .= 'To: ' . $an . "\r\n";
|
||||||
|
$header .= 'Content-Type:text/html' . "\r\n";
|
||||||
|
$header .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
|
||||||
|
$header .= 'X-Mailer: PHP/' . phpversion ();
|
||||||
|
|
||||||
function send_mail($an, $betreff, $text, $ok = '', $error = '')
|
if (mail ( $an, $betreff, $text, $header ) === true) {
|
||||||
{
|
echo $ok;
|
||||||
$header = 'From: noreply@isleofhope.de' . "\r\n";
|
} else {
|
||||||
$header .= 'To: ' . $an . "\r\n";
|
echo $error;
|
||||||
$header .= 'Content-Type:text/html' . "\r\n";
|
}
|
||||||
$header .= 'Content-Transfer-Encoding: 8bit' . "\r\n";
|
|
||||||
$header .= 'X-Mailer: PHP/' . phpversion();
|
|
||||||
|
|
||||||
if (mail($an, $betreff, $text, $header) === true) {
|
|
||||||
echo $ok;
|
|
||||||
} else {
|
|
||||||
echo $error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,6 @@ $_m['pass'] = '';
|
|||||||
$_m['data'] = '';
|
$_m['data'] = '';
|
||||||
$_m['pre'] = 'efcms2_';
|
$_m['pre'] = 'efcms2_';
|
||||||
$_m['salt'] = '';
|
$_m['salt'] = '';
|
||||||
|
|
||||||
|
$_sendermail = 'noreply@troy-grunt.de';
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user