mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-13 03:23:59 +02:00
renamed ifmlib.php to libifm.php
This commit is contained in:
@@ -2137,6 +2137,7 @@ function IFM( params ) {
|
|||||||
break;
|
break;
|
||||||
case "file":
|
case "file":
|
||||||
if( @file_exists( $srcopt ) && @is_readable( $srcopt ) ) {
|
if( @file_exists( $srcopt ) && @is_readable( $srcopt ) ) {
|
||||||
|
$lines = file( $srcopt );
|
||||||
list( $uname, $hash ) = explode( ":", fgets( fopen( $srcopt, 'r' ) ) );
|
list( $uname, $hash ) = explode( ":", fgets( fopen( $srcopt, 'r' ) ) );
|
||||||
return password_verify( $pass, trim( $hash ) ) ? ( $uname == $user ) : false;
|
return password_verify( $pass, trim( $hash ) ) ? ( $uname == $user ) : false;
|
||||||
} else {
|
} else {
|
Reference in New Issue
Block a user