mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Get rid of deprecated functions
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -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']);
|
||||||
|
Reference in New Issue
Block a user