Compare commits
14 Commits
new-mysql
...
385a02c90f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
385a02c90f | ||
|
|
8638f28847 | ||
|
|
5f2502877b | ||
|
|
8eccdffb1e | ||
|
|
c858d5dd32 | ||
|
|
234e187a54 | ||
| d8f5fd7f3a | |||
|
|
a30fd21842 | ||
|
|
57421ead5e | ||
| a846fe2fa7 | |||
|
|
06a3112617 | ||
|
|
064d8f0df3 | ||
|
|
19dcea8344 | ||
| b8e078f470 |
@@ -1,3 +1,2 @@
|
||||
git submodule add https://git.seemsleg.it/ef/php-func-lib lib
|
||||
|
||||
test
|
||||
# php-func-lib
|
||||
git submodule add https://git.seemsleg.it/pub/php-func-lib lib
|
||||
|
||||
11
mail.php
11
mail.php
@@ -1,8 +1,11 @@
|
||||
<?php
|
||||
|
||||
function send_mail($an, $betreff, $text, $ok = '', $error = '')
|
||||
{
|
||||
$header = 'From: noreply@isleofhope.de' . "\r\n";
|
||||
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";
|
||||
|
||||
@@ -7,4 +7,6 @@ $_m['pass'] = '';
|
||||
$_m['data'] = '';
|
||||
$_m['pre'] = 'efcms2_';
|
||||
$_m['salt'] = '';
|
||||
|
||||
$_sendermail = 'noreply@troy-grunt.de';
|
||||
?>
|
||||
@@ -51,7 +51,7 @@ function endsWith($haystack, $needle) {
|
||||
return $length === 0 || (substr ( $haystack, - $length ) === $needle);
|
||||
}
|
||||
function onlyAlpha($str, $zus = '') {
|
||||
return preg_replace ( "/[^a-zA-Z0-9 \-\{$zus}_]+/", "", $str );
|
||||
return preg_replace ( "/[^a-zA-Z0-9 \-\_{$zus}]+/", "", $str );
|
||||
}
|
||||
function shortener($str, $len = 50, $fill = '...') {
|
||||
if (strlen ( $str ) > $len) {
|
||||
|
||||
Reference in New Issue
Block a user