mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 11:34:10 +02:00
Rename functions (avoid conflict with WordPress)
This commit is contained in:
@@ -358,7 +358,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||
$replace['{$' . "$val}"] = $this->editVal($row[$val], $fields[$val]);
|
||||
}
|
||||
$email = $row[$_POST["email_field"]];
|
||||
if (is_email($email) && send_email($email, strtr($subject, $replace), strtr($message, $replace), $_POST["email_from"], $_FILES["email_files"])) {
|
||||
if (is_mail($email) && send_mail($email, strtr($subject, $replace), strtr($message, $replace), $_POST["email_from"], $_FILES["email_files"])) {
|
||||
$sent++;
|
||||
}
|
||||
}
|
||||
|
@@ -16,7 +16,7 @@ function email_header($header) {
|
||||
* @param array
|
||||
* @return
|
||||
*/
|
||||
function send_email($email, $subject, $message, $from = "", $files = array()) {
|
||||
function send_mail($email, $subject, $message, $from = "", $files = array()) {
|
||||
$eol = (strncasecmp(PHP_OS, "win", 3) ? "\n" : "\r\n"); // PHP_EOL available since PHP 4.3.10 and 5.0.2
|
||||
$message = str_replace("\n", $eol, wordwrap(str_replace("\r", "", "$message\n")));
|
||||
$boundary = uniqid("boundary");
|
||||
|
Reference in New Issue
Block a user