mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-11 10:06:37 +02:00
parent
8113184b12
commit
39bec20b7e
|
@ -66,7 +66,7 @@ To enable/disable authentication set `$use_auth` to true or false.
|
|||
<li>:zap: Backup files</li>
|
||||
<li>:mag_right: Search - Search and Sorting using datatable js</li>
|
||||
<li>:file_folder: Exclude folders from listing</li>
|
||||
<li>:globe_with_meridians: Multi-language support (English, French)</li>
|
||||
<li>:globe_with_meridians: Multi-language support (English, French, Italian)</li>
|
||||
<li>:bangbang: lots more...</li>
|
||||
</ul>
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ $report_errors = isset($cfg->data['error_reporting']) ? $cfg->data['error_report
|
|||
//available languages
|
||||
$lang_list = array(
|
||||
'en' => 'English',
|
||||
'fr' => 'French',
|
||||
'fr' => 'Français',
|
||||
'it' => 'Italiano'
|
||||
);
|
||||
|
||||
|
@ -150,7 +150,7 @@ if ($use_auth) {
|
|||
} elseif (isset($_POST['fm_usr'], $_POST['fm_pwd'])) {
|
||||
// Logging In
|
||||
sleep(1);
|
||||
if(function_exists(password_verify)) {
|
||||
if(function_exists('password_verify')) {
|
||||
if (isset($auth_users[$_POST['fm_usr']]) && isset($_POST['fm_pwd']) && password_verify($_POST['fm_pwd'], $auth_users[$_POST['fm_usr']])) {
|
||||
$_SESSION['logged'] = $_POST['fm_usr'];
|
||||
fm_set_msg('You are logged in');
|
||||
|
|
Loading…
Reference in a new issue