diff options
author | smos <seth.mos@dds.nl> | 2012-01-19 20:33:41 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-01-19 20:33:41 +0100 |
commit | cfbfd9412b70bda8c34127b8b7dfdceff4872390 (patch) | |
tree | 465ee07c80898171a4cc41a6ac82d9133012797d /etc/inc/auth.inc | |
parent | 80c88a686d0e56b2f2ad774da05debb1a2afba47 (diff) | |
download | pfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.zip pfsense-cfbfd9412b70bda8c34127b8b7dfdceff4872390.tar.gz |
The function split() is replaced by the function explode(). Starting with PHP 5.3 this is deprecated and with version 6 gone.
Replacing it surpresses all the warnings
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 81d3058..48052a9 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -825,7 +825,7 @@ function ldap_get_user_ous($show_complete_ou=true, $authcfg) { if (is_array($info)) { foreach ($info as $inf) { if (!$show_complete_ou) { - $inf_split = split(",", $inf['dn']); + $inf_split = explode(",", $inf['dn']); $ou = $inf_split[0]; $ou = str_replace("OU=","", $ou); $ou = str_replace("CN=","", $ou); @@ -852,12 +852,12 @@ function ldap_get_groups($username, $authcfg) { return false; if(stristr($username, "@")) { - $username_split=split("\@", $username); + $username_split = explode("\@", $username); $username = $username_split[0]; } if(stristr($username, "\\")) { - $username_split=split("\\", $username); + $username_split = explode("\\", $username); $username = $username_split[0]; } @@ -943,7 +943,7 @@ function ldap_get_groups($username, $authcfg) { /* Iterate through the groups and throw them into an array */ foreach ($info[0][$ldapgroupattribute] as $member) { if (stristr($member, "CN=") !== false) { - $membersplit = split(",", $member); + $membersplit = explode(",", $member); $memberof[] = preg_replace("/CN=/i", "", $membersplit[0]); } } @@ -969,11 +969,11 @@ function ldap_backed($username, $passwd, $authcfg) { return; if(stristr($username, "@")) { - $username_split=split("\@", $username); + $username_split = explode("\@", $username); $username = $username_split[0]; } if(stristr($username, "\\")) { - $username_split=split("\\", $username); + $username_split = explode("\\", $username); $username = $username_split[0]; } @@ -1056,7 +1056,7 @@ function ldap_backed($username, $passwd, $authcfg) { } /* Get LDAP Authcontainers and split em up. */ - $ldac_splits = split(";", $ldapauthcont); + $ldac_splits = explode(";", $ldapauthcont); /* setup the usercount so we think we havn't found anyone yet */ $usercount = 0; @@ -1357,7 +1357,7 @@ function session_auth() { /* and destroy it */ session_destroy(); - $scriptName = split("/", $_SERVER["SCRIPT_FILENAME"]); + $scriptName = explode("/", $_SERVER["SCRIPT_FILENAME"]); $scriptElms = count($scriptName); $scriptName = $scriptName[$scriptElms-1]; |