1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Get rid of deprecated functions

This commit is contained in:
e107steved
2010-10-28 20:17:40 +00:00
parent fc04350895
commit 5ecdcd2440
4 changed files with 841 additions and 841 deletions

View File

@@ -83,7 +83,7 @@ if(isset($_POST['send-contactus'])){
if ($pref['signup_remote_emailcheck'] && $error == '') if ($pref['signup_remote_emailcheck'] && $error == '')
{ {
require_once(e_HANDLER."mail_validation_class.php"); require_once(e_HANDLER."mail_validation_class.php");
list($adminuser,$adminhost) = split ('@', SITEADMINEMAIL); list($adminuser,$adminhost) = explode('@', SITEADMINEMAIL, 2);
$validator = new email_validation_class; $validator = new email_validation_class;
$validator->localuser= $adminuser; $validator->localuser= $adminuser;
$validator->localhost= $adminhost; $validator->localhost= $adminhost;

View File

@@ -151,7 +151,7 @@ if (isset ($_POST['execute_batch']))
if (isset ($_POST['test_mail'])) if (isset ($_POST['test_mail']))
{ {
require_once (e_HANDLER.'mail_validation_class.php'); require_once (e_HANDLER.'mail_validation_class.php');
list($adminuser,$adminhost) = split("@",SITEADMINEMAIL); list($adminuser,$adminhost) = explode('@',SITEADMINEMAIL, 2);
$validator = new email_validation_class; $validator = new email_validation_class;
$validator->localuser = $adminuser; $validator->localuser = $adminuser;
$validator->localhost = $adminhost; $validator->localhost = $adminhost;

View File

@@ -397,7 +397,7 @@ class BounceHandler{
// parse the email into data structures // parse the email into data structures
$boundary = $head_hash['Content-type']['boundary']; $boundary = $head_hash['Content-type']['boundary'];
$mime_sections = BounceHandler::parse_body_into_mime_sections($body, $boundary); $mime_sections = BounceHandler::parse_body_into_mime_sections($body, $boundary);
$arrBody = split("\r\n", $body); $arrBody = explode("\r\n", $body);
// now we try all our weird text parsing methods // now we try all our weird text parsing methods
if (preg_match("/auto.{0,20}reply|vacation|(out|away|on holiday).*office/i", $head_hash['Subject'])){ if (preg_match("/auto.{0,20}reply|vacation|(out|away|on holiday).*office/i", $head_hash['Subject'])){
@@ -417,7 +417,7 @@ class BounceHandler{
// Busted Exim MTA // Busted Exim MTA
// Up to 50 email addresses can be listed on each header. // Up to 50 email addresses can be listed on each header.
// There can be multiple X-Failed-Recipients: headers. - (not supported) // There can be multiple X-Failed-Recipients: headers. - (not supported)
$arrFailed = split(',', $head_hash['X-failed-recipients']); $arrFailed = explode(',', $head_hash['X-failed-recipients']);
for($j=0; $j<count($arrFailed); $j++){ for($j=0; $j<count($arrFailed); $j++){
$output[$j]['recipient'] = trim($arrFailed[$j]); $output[$j]['recipient'] = trim($arrFailed[$j]);
$output[$j]['status'] = BounceHandler::get_status_code_from_text($output[$j]['recipient'], $arrBody,0); $output[$j]['status'] = BounceHandler::get_status_code_from_text($output[$j]['recipient'], $arrBody,0);

View File

@@ -843,7 +843,7 @@ function step10()
{ {
//If file, add real name to entry //If file, add real name to entry
case 'file': case 'file':
$tmp = split('_', $fInfo['basename'], 4); $tmp = explode('_', $fInfo['basename'], 4);
$newval .= '*'.$tmp[3]; $newval .= '*'.$tmp[3];
break; break;
@@ -1264,7 +1264,7 @@ class forumUpgrade
function moveAttachment($attachment, $post_id, &$error) function moveAttachment($attachment, $post_id, &$error)
{ {
set_time_limit(30); set_time_limit(30);
// $tmp = split('/', $attachment['name']); // $tmp = explode('/', $attachment['name']);
$attachment['name'] = str_replace(array(' ', "\n", "\r"), '', $attachment['name']); $attachment['name'] = str_replace(array(' ', "\n", "\r"), '', $attachment['name']);
$old = str_replace('{e_FILE}', e_FILE, $attachment['name']); $old = str_replace('{e_FILE}', e_FILE, $attachment['name']);
$fileInfo = pathinfo($attachment['name']); $fileInfo = pathinfo($attachment['name']);
@@ -1312,7 +1312,7 @@ class forumUpgrade
$oldThumb = ''; $oldThumb = '';
if($attachment['thumb']) if($attachment['thumb'])
{ {
$tmp = split('/', $attachment['thumb']); $tmp = explode('/', $attachment['thumb']);
$fileInfo = pathinfo($attachment['thumb']); $fileInfo = pathinfo($attachment['thumb']);
$oldThumb = str_replace('{e_FILE}', e_FILE, $attachment['thumb']); $oldThumb = str_replace('{e_FILE}', e_FILE, $attachment['thumb']);