From 4e5020660b07f30b7bf3ccc0a2ca664a19a21c0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 2 Mar 2010 15:59:25 +0000 Subject: [PATCH] Further rewrites due to deprecated functions in 5.3.1 --- DOCS/de/THANK_YOU.txt | 2 +- inc/classes/rdf.class.php | 2 +- inc/functions.php | 40 +++++++++++------------ inc/language/nickname_de.php | 2 +- inc/libs/html_mail_functions.php | 8 ++--- inc/libs/newsletter_functions.php | 6 ++-- inc/libs/rewrite_functions.php | 4 +-- inc/libs/security_functions.php | 2 +- inc/modules/admin/what-config_rewrite.php | 2 +- inc/modules/admin/what-updates.php | 2 +- inc/modules/member/what-nickname.php | 2 +- inc/phpmailer/class.phpmailer.php | 2 +- inc/pool/pool-bonus.php | 2 +- inc/pool/pool-user.php | 2 +- inc/wrapper-functions.php | 11 +++++++ 15 files changed, 50 insertions(+), 39 deletions(-) diff --git a/DOCS/de/THANK_YOU.txt b/DOCS/de/THANK_YOU.txt index 5e17dc516e..a214dc6e39 100644 --- a/DOCS/de/THANK_YOU.txt +++ b/DOCS/de/THANK_YOU.txt @@ -31,7 +31,7 @@ Personen: (http://www.onlinewerbebombe.de) - Der User profi-concept aus meinem Forum hat mir sehr viele gute Patches zur Verfuegung gestellt (http://www.stelzi.net) -- Irgentjemand, den ich noch vergessen habe... +- Irgent jemand, den ich noch vergessen habe... Websites / Programmierer / etc.: - SF.net: Hosten meine Projektdateien (nur Archive) diff --git a/inc/classes/rdf.class.php b/inc/classes/rdf.class.php index 8233aba8cc..d71ca447dd 100644 --- a/inc/classes/rdf.class.php +++ b/inc/classes/rdf.class.php @@ -693,7 +693,7 @@ class fase4_rdf { $this->_item['link'] = trim($this->_item['link']); if ((!empty($this->_display_opt['refid'])) && (!empty($this->_item['link']))) { - if (!ereg('refid=', $this->_item['link'])) $this->_item['link'] .= '?refid=' . $this->_display_opt['refid']; + if (!isInString('refid=', $this->_item['link'])) $this->_item['link'] .= '?refid=' . $this->_display_opt['refid']; } switch ($name) { case 'item': diff --git a/inc/functions.php b/inc/functions.php index 9eedda3e43..278c570375 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -539,7 +539,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = ' eval("\$subject = decodeEntities(\"".compileRawCode(escapeQuotes($subject))."\");"); // Set from header - if ((!eregi('@', $toEmail)) && ($toEmail > 0)) { + if ((!isInStringIgnoreCase('@', $toEmail)) && ($toEmail > 0)) { // Value detected, is the message extension installed? // @TODO Extension 'msg' does not exist if (isExtensionActive('msg')) { @@ -1462,38 +1462,38 @@ function createTimeSelections ($timestamp, $prefix = '', $display = '', $align = $OUT .= "\n"; $OUT .= "\n"; - if (ereg('Y', $display) || (empty($display))) { + if (isInString('Y', $display) || (empty($display))) { $OUT .= " \n"; } - if (ereg('M', $display) || (empty($display))) { + if (isInString('M', $display) || (empty($display))) { $OUT .= " \n"; } - if (ereg('W', $display) || (empty($display))) { + if (isInString('W', $display) || (empty($display))) { $OUT .= " \n"; } - if (ereg('D', $display) || (empty($display))) { + if (isInString('D', $display) || (empty($display))) { $OUT .= " \n"; } - if (ereg('h', $display) || (empty($display))) { + if (isInString('h', $display) || (empty($display))) { $OUT .= " \n"; } - if (ereg('m', $display) || (empty($display))) { + if (isInString('m', $display) || (empty($display))) { $OUT .= " \n"; } - if (ereg('s', $display) || (empty($display))) { + if (isInString('s', $display) || (empty($display))) { $OUT .= " \n"; } $OUT .= "\n"; $OUT .= "\n"; - if (ereg('Y', $display) || (empty($display))) { + if (isInString('Y', $display) || (empty($display))) { // Generate year selection $OUT .= "
{--_YEARS--}
{--_MONTHS--}
{--_WEEKS--}
{--_DAYS--}
{--_HOURS--}
{--_MINUTES--}
{--_SECONDS--}
'; } - if (ereg('M', $display) || (empty($display))) { + if (isInString('M', $display) || (empty($display))) { // Generate month selection $OUT .= " '; } - if (ereg('W', $display) || (empty($display))) { + if (isInString('W', $display) || (empty($display))) { // Generate week selection $OUT .= " '; } - if (ereg('D', $display) || (empty($display))) { + if (isInString('D', $display) || (empty($display))) { // Generate day selection $OUT .= " '; } - if (ereg('h', $display) || (empty($display))) { + if (isInString('h', $display) || (empty($display))) { // Generate hour selection $OUT .= " '; } - if (ereg('m', $display) || (empty($display))) { + if (isInString('m', $display) || (empty($display))) { // Generate minute selection $OUT .= " '; } - if (ereg('s', $display) || (empty($display))) { + if (isInString('s', $display) || (empty($display))) { // Generate second selection $OUT .= "