mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
Get rid of deprecated functions
This commit is contained in:
parent
fc04350895
commit
5ecdcd2440
@ -83,7 +83,7 @@ if(isset($_POST['send-contactus'])){
|
||||
if ($pref['signup_remote_emailcheck'] && $error == '')
|
||||
{
|
||||
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->localuser= $adminuser;
|
||||
$validator->localhost= $adminhost;
|
||||
|
@ -151,7 +151,7 @@ if (isset ($_POST['execute_batch']))
|
||||
if (isset ($_POST['test_mail']))
|
||||
{
|
||||
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->localuser = $adminuser;
|
||||
$validator->localhost = $adminhost;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -843,7 +843,7 @@ function step10()
|
||||
{
|
||||
//If file, add real name to entry
|
||||
case 'file':
|
||||
$tmp = split('_', $fInfo['basename'], 4);
|
||||
$tmp = explode('_', $fInfo['basename'], 4);
|
||||
$newval .= '*'.$tmp[3];
|
||||
break;
|
||||
|
||||
@ -1264,7 +1264,7 @@ class forumUpgrade
|
||||
function moveAttachment($attachment, $post_id, &$error)
|
||||
{
|
||||
set_time_limit(30);
|
||||
// $tmp = split('/', $attachment['name']);
|
||||
// $tmp = explode('/', $attachment['name']);
|
||||
$attachment['name'] = str_replace(array(' ', "\n", "\r"), '', $attachment['name']);
|
||||
$old = str_replace('{e_FILE}', e_FILE, $attachment['name']);
|
||||
$fileInfo = pathinfo($attachment['name']);
|
||||
@ -1312,7 +1312,7 @@ class forumUpgrade
|
||||
$oldThumb = '';
|
||||
if($attachment['thumb'])
|
||||
{
|
||||
$tmp = split('/', $attachment['thumb']);
|
||||
$tmp = explode('/', $attachment['thumb']);
|
||||
$fileInfo = pathinfo($attachment['thumb']);
|
||||
|
||||
$oldThumb = str_replace('{e_FILE}', e_FILE, $attachment['thumb']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user