Skip to content

Commit

Permalink
Change one instance of split() to explode() for PHP 7.0 Compatibility as
Browse files Browse the repository at this point in the history
split() was deprecated in 5.3.0 and removed in 7.0.0
http://php.net/manual/en/function.split.php
  • Loading branch information
dancapper committed Oct 19, 2016
1 parent 9166145 commit ab3916e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions api/Authentication/LDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,10 @@ function logIn($param) {
$_SESSION['username'] = $user['username'];
$_SESSION['gid'] = $user['gid'];
$_SESSION['grp'] = "users";

$_SESSION['data'] = $user;



// Assigne Admin Privs, should be read from the LDAP Directory in the future
$ADMIN_USER = split(",", LDAP_ADMIN_USER);
// Assign Admin Privs, should be read from the LDAP Directory in the future
$ADMIN_USER = explode(",", LDAP_ADMIN_USER);
foreach($ADMIN_USER as &$value) {

if ($value == $param['username']) {
Expand All @@ -132,7 +129,6 @@ function logIn($param) {
}
}
}

return array();
}

Expand Down Expand Up @@ -176,7 +172,6 @@ function getUser() {
return $_SESSION['data'];
}


//create random password with 8 alphanumerical characters

function createPassword() {
Expand Down

0 comments on commit ab3916e

Please sign in to comment.