@@ -457,28 +457,28 @@ discard block |
||
457 | 457 | |
458 | 458 | // Prepare error message |
459 | 459 | if (value.pw_status === "encryption_error") { |
460 | - pwd_error = '<span class="fa fa-warning fa-sm mi-red tip" title="<?php echo addslashes($LANG['pw_encryption_error']);?>"></span> '; |
|
460 | + pwd_error = '<span class="fa fa-warning fa-sm mi-red tip" title="<?php echo addslashes($LANG['pw_encryption_error']); ?>"></span> '; |
|
461 | 461 | } |
462 | 462 | |
463 | 463 | // Prepare anyone can modify icon |
464 | 464 | if (value.anyone_can_modify === "1") { |
465 | - icon_all_can_modify = '<span class="fa fa-pencil fa-sm mi-grey-1 pointer tip" title="<?php echo addslashes($LANG['item_menu_collab_enable']);?>" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \''+value.open_edit+'\', \''+value.reload+'\', \''+value.tree_id+'\')"></span> '; |
|
465 | + icon_all_can_modify = '<span class="fa fa-pencil fa-sm mi-grey-1 pointer tip" title="<?php echo addslashes($LANG['item_menu_collab_enable']); ?>" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \''+value.open_edit+'\', \''+value.reload+'\', \''+value.tree_id+'\')"></span> '; |
|
466 | 466 | } |
467 | 467 | |
468 | 468 | // Prepare mini icons |
469 | 469 | if (value.copy_to_clipboard_small_icons === "1" && value.display_item === 1) { |
470 | 470 | // Login icon |
471 | 471 | if (value.login !== "") { |
472 | - icon_login = '<span class="fa fa-sm fa-user mi-black mini_login" data-clipboard-text="'+sanitizeString(value.login)+'" title="<?php echo addslashes($LANG['item_menu_copy_login']);?>" id="minilogin_'+value.item_id+'"></span> '; |
|
472 | + icon_login = '<span class="fa fa-sm fa-user mi-black mini_login" data-clipboard-text="'+sanitizeString(value.login)+'" title="<?php echo addslashes($LANG['item_menu_copy_login']); ?>" id="minilogin_'+value.item_id+'"></span> '; |
|
473 | 473 | } |
474 | 474 | // Pwd icon |
475 | 475 | if (value.pw !== "") { |
476 | - icon_pwd = '<span class="fa fa-sm fa-lock mi-black mini_pw" data-clipboard-text="'+sanitizeString(value.pw)+'" title="<?php echo addslashes($LANG['item_menu_copy_pw']);?>" data-clipboard-id="'+value.item_id+'" id="minipwd_'+value.item_id+'"></span> '; |
|
476 | + icon_pwd = '<span class="fa fa-sm fa-lock mi-black mini_pw" data-clipboard-text="'+sanitizeString(value.pw)+'" title="<?php echo addslashes($LANG['item_menu_copy_pw']); ?>" data-clipboard-id="'+value.item_id+'" id="minipwd_'+value.item_id+'"></span> '; |
|
477 | 477 | } |
478 | 478 | |
479 | 479 | // Now check if pwd is empty. If it is then warn user |
480 | 480 | if (value.pw === "") { |
481 | - pwd_error = ' <span class="fa fa-exclamation-circle fa-sm mi-yellow tip" title="<?php echo addslashes($LANG['password_is_empty']);?>"></span> '; |
|
481 | + pwd_error = ' <span class="fa fa-exclamation-circle fa-sm mi-yellow tip" title="<?php echo addslashes($LANG['password_is_empty']); ?>"></span> '; |
|
482 | 482 | } |
483 | 483 | } |
484 | 484 | |
@@ -2375,8 +2375,8 @@ discard block |
||
2375 | 2375 | $("#delete-edit-file_"+file_id) |
2376 | 2376 | .hide() |
2377 | 2377 | .after( |
2378 | - '<span class="delete_me"> <span id="confirm-delete-edit-file_'+file_id+'" class="fa fa-thumbs-up tip" style="cursor:pointer;" onclick="delete_attached_file('+file_id+', 1)" title="<?php echo addslashes($LANG['confirm']);?>"></span>' + |
|
2379 | - ' <span id="cancel-delete-edit-file_'+file_id+'" class="fa fa-thumbs-down tip" style="cursor:pointer;" onclick="cancel_delete_attached_file('+file_id+')" title="<?php echo addslashes($LANG['cancel']);?>"></span> </span>' |
|
2378 | + '<span class="delete_me"> <span id="confirm-delete-edit-file_'+file_id+'" class="fa fa-thumbs-up tip" style="cursor:pointer;" onclick="delete_attached_file('+file_id+', 1)" title="<?php echo addslashes($LANG['confirm']); ?>"></span>' + |
|
2379 | + ' <span id="cancel-delete-edit-file_'+file_id+'" class="fa fa-thumbs-down tip" style="cursor:pointer;" onclick="cancel_delete_attached_file('+file_id+')" title="<?php echo addslashes($LANG['cancel']); ?>"></span> </span>' |
|
2380 | 2380 | ); |
2381 | 2381 | $(".tip").tooltipster({multiple: true}); |
2382 | 2382 | } |
@@ -2597,9 +2597,9 @@ discard block |
||
2597 | 2597 | |
2598 | 2598 | // Shall we show the root folder |
2599 | 2599 | if (data.html_json.can_create_root_folder === 1) { |
2600 | - html_visible = '<option value="0"><?php echo addslashes($LANG['root']);?></option>'; |
|
2601 | - html_full_visible = '<option value="0"><?php echo addslashes($LANG['root']);?></option>'; |
|
2602 | - html_active_visible = '<option value="0"><?php echo addslashes($LANG['root']);?></option>'; |
|
2600 | + html_visible = '<option value="0"><?php echo addslashes($LANG['root']); ?></option>'; |
|
2601 | + html_full_visible = '<option value="0"><?php echo addslashes($LANG['root']); ?></option>'; |
|
2602 | + html_active_visible = '<option value="0"><?php echo addslashes($LANG['root']); ?></option>'; |
|
2603 | 2603 | } |
2604 | 2604 | |
2605 | 2605 | // |
@@ -4529,20 +4529,20 @@ discard block |
||
4529 | 4529 | if (value.copy_to_clipboard_small_icons === 1) { |
4530 | 4530 | // Prepare Login |
4531 | 4531 | if (value.login !== "") { |
4532 | - value.login = '<span class="fa fa-user fa-lg mi-black mini_login tip" data-clipboard-text="'+value.login+'" title="<?php echo addslashes($LANG['item_menu_copy_login']);?>"></span> '; |
|
4532 | + value.login = '<span class="fa fa-user fa-lg mi-black mini_login tip" data-clipboard-text="'+value.login+'" title="<?php echo addslashes($LANG['item_menu_copy_login']); ?>"></span> '; |
|
4533 | 4533 | } |
4534 | 4534 | |
4535 | 4535 | // Prepare PWD |
4536 | 4536 | if (value.pw !== "") { |
4537 | - value.pw = '<span class="fa fa-lock fa-lg mi-black mini_pw tip" data-clipboard-text="'+value.pw+'" title="<?php echo addslashes($LANG['item_menu_copy_pw']);?>"></span> ' |
|
4537 | + value.pw = '<span class="fa fa-lock fa-lg mi-black mini_pw tip" data-clipboard-text="'+value.pw+'" title="<?php echo addslashes($LANG['item_menu_copy_pw']); ?>"></span> ' |
|
4538 | 4538 | } |
4539 | 4539 | |
4540 | 4540 | // Prepare favorite |
4541 | 4541 | if (value.enable_favourites === 1) { |
4542 | 4542 | if (value.is_favorite === 1) { |
4543 | - icon_favorite = '<span class="fa fa-star fa-lg mi-yellow tip" onclick="ActionOnQuickIcon('+value.item_id+',0)" class="tip" title="<?php echo addslashes($LANG['item_menu_del_from_fav']);?>"></span>'; |
|
4543 | + icon_favorite = '<span class="fa fa-star fa-lg mi-yellow tip" onclick="ActionOnQuickIcon('+value.item_id+',0)" class="tip" title="<?php echo addslashes($LANG['item_menu_del_from_fav']); ?>"></span>'; |
|
4544 | 4544 | } else { |
4545 | - icon_favorite = '<span class="fa fa-star-o fa-lg tip" onclick="ActionOnQuickIcon('+value.item_id+',1)" class="tip" title="<?php echo addslashes($LANG['item_menu_add_to_fav']);?>"></span>'; |
|
4545 | + icon_favorite = '<span class="fa fa-star-o fa-lg tip" onclick="ActionOnQuickIcon('+value.item_id+',1)" class="tip" title="<?php echo addslashes($LANG['item_menu_add_to_fav']); ?>"></span>'; |
|
4546 | 4546 | } |
4547 | 4547 | } else { |
4548 | 4548 | icon_favorite = ''; |
@@ -4556,7 +4556,7 @@ discard block |
||
4556 | 4556 | // Append |
4557 | 4557 | $("#full_items_list").append( |
4558 | 4558 | '<li class="item trunc_line" id="'+value.item_id+'"><a id="fileclass'+value.item_id+'" class="file_search">' + |
4559 | - '<span class="fa fa-key mi-yellow tip" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \''+value.open_edit+'\', \''+value.reload+'\', \''+value.tree_id+'\')" title="<?php echo addslashes($LANG['click_to_edit']);?>"></span> ' + |
|
4559 | + '<span class="fa fa-key mi-yellow tip" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \''+value.open_edit+'\', \''+value.reload+'\', \''+value.tree_id+'\')" title="<?php echo addslashes($LANG['click_to_edit']); ?>"></span> ' + |
|
4560 | 4560 | '<span class="truncate" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \'\', \''+value.reload+'\', \''+value.tree_id+'\')">'+value.label + |
4561 | 4561 | value.desc + |
4562 | 4562 | ' <span style="font-size:11px;font-style:italic;"><i class="fa fa-folder-o"></i> '+value.folder+'</span>' + |
@@ -4614,20 +4614,20 @@ discard block |
||
4614 | 4614 | if (value.copy_to_clipboard_small_icons === "1") { |
4615 | 4615 | // Prepare Login |
4616 | 4616 | if (value.login !== "") { |
4617 | - value.login = '<span class="fa fa-user fa-lg mi-black mini_login tip" data-clipboard-text="'+value.login+'" title="<?php echo addslashes($LANG['item_menu_copy_login']);?>"></span> '; |
|
4617 | + value.login = '<span class="fa fa-user fa-lg mi-black mini_login tip" data-clipboard-text="'+value.login+'" title="<?php echo addslashes($LANG['item_menu_copy_login']); ?>"></span> '; |
|
4618 | 4618 | } |
4619 | 4619 | |
4620 | 4620 | // Prepare PWD |
4621 | 4621 | if (value.pw !== "") { |
4622 | - value.pw = '<span class="fa fa-lock fa-lg mi-black mini_pw tip" data-clipboard-text="'+value.pw+'" title="<?php echo addslashes($LANG['item_menu_copy_pw']);?>"></span> ' |
|
4622 | + value.pw = '<span class="fa fa-lock fa-lg mi-black mini_pw tip" data-clipboard-text="'+value.pw+'" title="<?php echo addslashes($LANG['item_menu_copy_pw']); ?>"></span> ' |
|
4623 | 4623 | } |
4624 | 4624 | |
4625 | 4625 | // Prepare favorite |
4626 | 4626 | if (value.enable_favourites === "1") { |
4627 | 4627 | if (value.is_favorite === 1) { |
4628 | - icon_favorite = '<span class="fa fa-star fa-lg mi-yellow tip" onclick="ActionOnQuickIcon('+value.item_id+',0)" class="tip" title="<?php echo addslashes($LANG['item_menu_del_from_fav']);?>"></span>'; |
|
4628 | + icon_favorite = '<span class="fa fa-star fa-lg mi-yellow tip" onclick="ActionOnQuickIcon('+value.item_id+',0)" class="tip" title="<?php echo addslashes($LANG['item_menu_del_from_fav']); ?>"></span>'; |
|
4629 | 4629 | } else { |
4630 | - icon_favorite = '<span class="fa fa-star-o fa-lg tip" onclick="ActionOnQuickIcon('+value.item_id+',1)" class="tip" title="<?php echo addslashes($LANG['item_menu_add_to_fav']);?>"></span>'; |
|
4630 | + icon_favorite = '<span class="fa fa-star-o fa-lg tip" onclick="ActionOnQuickIcon('+value.item_id+',1)" class="tip" title="<?php echo addslashes($LANG['item_menu_add_to_fav']); ?>"></span>'; |
|
4631 | 4631 | } |
4632 | 4632 | } else { |
4633 | 4633 | icon_favorite = ''; |
@@ -4641,7 +4641,7 @@ discard block |
||
4641 | 4641 | // Append |
4642 | 4642 | $("#full_items_list").append( |
4643 | 4643 | '<li class="item trunc_line" id="'+value.item_id+'"><a id="fileclass'+value.item_id+'" class="file_search">' + |
4644 | - '<span class="fa fa-key mi-yellow tip" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \''+value.open_edit+'\', \''+value.reload+'\', \''+value.tree_id+'\')" title="<?php echo addslashes($LANG['click_to_edit']);?>"></span> ' + |
|
4644 | + '<span class="fa fa-key mi-yellow tip" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \''+value.open_edit+'\', \''+value.reload+'\', \''+value.tree_id+'\')" title="<?php echo addslashes($LANG['click_to_edit']); ?>"></span> ' + |
|
4645 | 4645 | '<span class="truncate" onclick="AfficherDetailsItem(\''+value.item_id+'\',\''+value.sk+'\',\''+value.expired+'\', \''+value.restricted+'\', \''+value.display+'\', \'\', \''+value.reload+'\', \''+value.tree_id+'\')">'+value.label + |
4646 | 4646 | value.desc + |
4647 | 4647 | ' <span style="font-size:11px;font-style:italic;"><i class="fa fa-folder-o"></i> '+value.folder+'</span>' + |
@@ -309,7 +309,7 @@ |
||
309 | 309 | BeforeUpload: function (up, file) { |
310 | 310 | $("#import_status_ajax_loader").show(); |
311 | 311 | up.settings.multipart_params = { |
312 | - "PHPSESSID":"<?php echo $_SESSION['user_id'];?>", |
|
312 | + "PHPSESSID":"<?php echo $_SESSION['user_id']; ?>", |
|
313 | 313 | "type_upload":"import_items_from_keypass", |
314 | 314 | "user_token": $("#import_user_token").val() |
315 | 315 | }; |
@@ -769,7 +769,7 @@ discard block |
||
769 | 769 | } |
770 | 770 | // Get IDs of personal folders |
771 | 771 | if (isset($SETTINGS['enable_pf_feature']) === true && $SETTINGS['enable_pf_feature'] === '1' |
772 | - && isset($_SESSION['personal_folder']) === true && $_SESSION['personal_folder'] === '1' |
|
772 | + && isset($_SESSION['personal_folder']) === true && $_SESSION['personal_folder'] === '1' |
|
773 | 773 | ) { |
774 | 774 | $persoFld = DB::queryfirstrow( |
775 | 775 | "SELECT id |
@@ -1925,7 +1925,7 @@ discard block |
||
1925 | 1925 | $antiXss = new protect\AntiXSS\AntiXSS(); |
1926 | 1926 | |
1927 | 1927 | // Protect against bad inputs |
1928 | - if (is_array($source_file) ||is_array($target_file)) { |
|
1928 | + if (is_array($source_file) || is_array($target_file)) { |
|
1929 | 1929 | return 'error_cannot_be_array'; |
1930 | 1930 | } |
1931 | 1931 | |
@@ -2082,7 +2082,7 @@ discard block |
||
2082 | 2082 | $newArr = array(); |
2083 | 2083 | |
2084 | 2084 | foreach ($arr as $key => $value) { |
2085 | - $newArr[ $key ] = (is_array($value) ? array_map_r($func, $value) : ( is_array($func) ? call_user_func_array($func, $value) : $func( $value ))); |
|
2085 | + $newArr[$key] = (is_array($value) ? array_map_r($func, $value) : (is_array($func) ? call_user_func_array($func, $value) : $func($value))); |
|
2086 | 2086 | } |
2087 | 2087 | |
2088 | 2088 | return $newArr; |
@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | |
19 | 19 | // Load config if $SETTINGS not defined |
20 | 20 | if (!isset($SETTINGS['cpassman_dir']) || empty($SETTINGS['cpassman_dir'])) { |
21 | - if (file_exists('../includes/config/tp.config.php')) { |
|
22 | - require_once '../includes/config/tp.config.php'; |
|
23 | - } elseif (file_exists('./includes/config/tp.config.php')) { |
|
24 | - require_once './includes/config/tp.config.php'; |
|
25 | - } elseif (file_exists('../../includes/config/tp.config.php')) { |
|
26 | - require_once '../../includes/config/tp.config.php'; |
|
27 | - } else { |
|
28 | - throw new Exception("Error file '/includes/config/tp.config.php' not exists", 1); |
|
29 | - } |
|
21 | + if (file_exists('../includes/config/tp.config.php')) { |
|
22 | + require_once '../includes/config/tp.config.php'; |
|
23 | + } elseif (file_exists('./includes/config/tp.config.php')) { |
|
24 | + require_once './includes/config/tp.config.php'; |
|
25 | + } elseif (file_exists('../../includes/config/tp.config.php')) { |
|
26 | + require_once '../../includes/config/tp.config.php'; |
|
27 | + } else { |
|
28 | + throw new Exception("Error file '/includes/config/tp.config.php' not exists", 1); |
|
29 | + } |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | // load phpCrypt |
@@ -1430,7 +1430,7 @@ discard block |
||
1430 | 1430 | // Can we use PHP7 random_int function? |
1431 | 1431 | if (version_compare(phpversion(), '7.0', '>=')) { |
1432 | 1432 | require_once $SETTINGS['cpassman_dir'].'/includes/libraries/PasswordGenerator/RandomGenerator/Php7RandomGenerator.php'; |
1433 | - $generator->setRandomGenerator(new PasswordGenerator\RandomGenerator\Php7RandomGenerator()); |
|
1433 | + $generator->setRandomGenerator(new PasswordGenerator\RandomGenerator\Php7RandomGenerator()); |
|
1434 | 1434 | } |
1435 | 1435 | |
1436 | 1436 | // init |
@@ -130,16 +130,16 @@ discard block |
||
130 | 130 | $superGlobal = new protect\SuperGlobal\SuperGlobal(); |
131 | 131 | |
132 | 132 | // Prepare superGlobal variables |
133 | - $session_forbiden_pfs = $superGlobal->get("forbiden_pfs", "SESSION"); |
|
134 | - $session_groupes_visibles = $superGlobal->get("groupes_visibles", "SESSION"); |
|
135 | - $session_list_restricted_folders_for_items = $superGlobal->get("list_restricted_folders_for_items", "SESSION"); |
|
136 | - $session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
137 | - $session_login = $superGlobal->get("login", "SESSION"); |
|
138 | - $session_no_access_folders = $superGlobal->get("no_access_folders", "SESSION"); |
|
139 | - $session_list_folders_limited = $superGlobal->get("list_folders_limited", "SESSION"); |
|
140 | - $session_read_only_folders = $superGlobal->get("read_only_folders", "SESSION"); |
|
141 | - $session_personal_folders = $superGlobal->get("personal_folders", "SESSION"); |
|
142 | - $session_personal_visible_groups = $superGlobal->get("personal_visible_groups", "SESSION"); |
|
133 | + $session_forbiden_pfs = $superGlobal->get("forbiden_pfs", "SESSION"); |
|
134 | + $session_groupes_visibles = $superGlobal->get("groupes_visibles", "SESSION"); |
|
135 | + $session_list_restricted_folders_for_items = $superGlobal->get("list_restricted_folders_for_items", "SESSION"); |
|
136 | + $session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
137 | + $session_login = $superGlobal->get("login", "SESSION"); |
|
138 | + $session_no_access_folders = $superGlobal->get("no_access_folders", "SESSION"); |
|
139 | + $session_list_folders_limited = $superGlobal->get("list_folders_limited", "SESSION"); |
|
140 | + $session_read_only_folders = $superGlobal->get("read_only_folders", "SESSION"); |
|
141 | + $session_personal_folders = $superGlobal->get("personal_folders", "SESSION"); |
|
142 | + $session_personal_visible_groups = $superGlobal->get("personal_visible_groups", "SESSION"); |
|
143 | 143 | |
144 | 144 | // Be sure that user can only see folders he/she is allowed to |
145 | 145 | if (in_array($nodeId, $session_forbiden_pfs) === false |
@@ -304,15 +304,15 @@ discard block |
||
304 | 304 | $superGlobal = new protect\SuperGlobal\SuperGlobal(); |
305 | 305 | |
306 | 306 | // Prepare superGlobal variables |
307 | - $session_forbiden_pfs = $superGlobal->get("forbiden_pfs", "SESSION"); |
|
308 | - $session_groupes_visibles = $superGlobal->get("groupes_visibles", "SESSION"); |
|
309 | - $session_list_restricted_folders_for_items = $superGlobal->get("list_restricted_folders_for_items", "SESSION"); |
|
310 | - $session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
311 | - $session_login = $superGlobal->get("login", "SESSION"); |
|
312 | - $session_user_read_only = $superGlobal->get("user_read_only", "SESSION"); |
|
313 | - $session_no_access_folders = $superGlobal->get("no_access_folders", "SESSION"); |
|
314 | - $session_list_folders_limited = $superGlobal->get("list_folders_limited", "SESSION"); |
|
315 | - $session_read_only_folders = $superGlobal->get("read_only_folders", "SESSION"); |
|
307 | + $session_forbiden_pfs = $superGlobal->get("forbiden_pfs", "SESSION"); |
|
308 | + $session_groupes_visibles = $superGlobal->get("groupes_visibles", "SESSION"); |
|
309 | + $session_list_restricted_folders_for_items = $superGlobal->get("list_restricted_folders_for_items", "SESSION"); |
|
310 | + $session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
311 | + $session_login = $superGlobal->get("login", "SESSION"); |
|
312 | + $session_user_read_only = $superGlobal->get("user_read_only", "SESSION"); |
|
313 | + $session_no_access_folders = $superGlobal->get("no_access_folders", "SESSION"); |
|
314 | + $session_list_folders_limited = $superGlobal->get("list_folders_limited", "SESSION"); |
|
315 | + $session_read_only_folders = $superGlobal->get("read_only_folders", "SESSION"); |
|
316 | 316 | |
317 | 317 | // Be sure that user can only see folders he/she is allowed to |
318 | 318 | if (in_array($completTree[$nodeId]->id, $session_forbiden_pfs) === false |
@@ -341,8 +341,8 @@ |
||
341 | 341 | if ($getItemInList === true) { |
342 | 342 | $sOutputConst .= $sOutputItem; |
343 | 343 | } else { |
344 | - $iFilteredTotal --; |
|
345 | - $iTotal --; |
|
344 | + $iFilteredTotal--; |
|
345 | + $iTotal--; |
|
346 | 346 | } |
347 | 347 | } |
348 | 348 | if (!empty($sOutputConst)) { |
@@ -331,7 +331,7 @@ |
||
331 | 331 | } |
332 | 332 | $passwordClear = $_SERVER['PHP_AUTH_PW']; |
333 | 333 | $pwdOldEncryption = encryptOld($_SERVER['PHP_AUTH_PW']); |
334 | - }else{ |
|
334 | + } else{ |
|
335 | 335 | $passwordClear = htmlspecialchars_decode($dataReceived['pw']); |
336 | 336 | $pwdOldEncryption = encryptOld(htmlspecialchars_decode($dataReceived['pw'])); |
337 | 337 | $username = $antiXss->xss_clean(htmlspecialchars_decode($dataReceived['login'])); |
@@ -321,26 +321,26 @@ discard block |
||
321 | 321 | $dataReceived = prepareExchangedData($sentData, "decode"); |
322 | 322 | |
323 | 323 | // prepare variables |
324 | - if (isset($SETTINGS['enable_http_request_login']) === true |
|
324 | + if (isset($SETTINGS['enable_http_request_login']) === true |
|
325 | 325 | && $SETTINGS['enable_http_request_login'] === '1' |
326 | 326 | && isset($_SERVER['PHP_AUTH_USER']) === true |
327 | 327 | && !(isset($SETTINGS['maintenance_mode']) === true |
328 | 328 | && $SETTINGS['maintenance_mode'] === '1') |
329 | 329 | ) { |
330 | 330 | if (strpos($_SERVER['PHP_AUTH_USER'], '@') !== false) { |
331 | - $username = explode("@", $_SERVER['PHP_AUTH_USER'])[0]; |
|
332 | - } elseif (strpos($_SERVER['PHP_AUTH_USER'], '\\') !== false) { |
|
333 | - $username = explode("\\", $_SERVER['PHP_AUTH_USER'])[1]; |
|
334 | - } else { |
|
335 | - $username = $_SERVER['PHP_AUTH_USER']; |
|
336 | - } |
|
337 | - $passwordClear = $_SERVER['PHP_AUTH_PW']; |
|
338 | - $pwdOldEncryption = encryptOld($_SERVER['PHP_AUTH_PW']); |
|
339 | - }else{ |
|
340 | - $passwordClear = htmlspecialchars_decode($dataReceived['pw']); |
|
341 | - $pwdOldEncryption = encryptOld(htmlspecialchars_decode($dataReceived['pw'])); |
|
342 | - $username = $antiXss->xss_clean(htmlspecialchars_decode($dataReceived['login'])); |
|
343 | - } |
|
331 | + $username = explode("@", $_SERVER['PHP_AUTH_USER'])[0]; |
|
332 | + } elseif (strpos($_SERVER['PHP_AUTH_USER'], '\\') !== false) { |
|
333 | + $username = explode("\\", $_SERVER['PHP_AUTH_USER'])[1]; |
|
334 | + } else { |
|
335 | + $username = $_SERVER['PHP_AUTH_USER']; |
|
336 | + } |
|
337 | + $passwordClear = $_SERVER['PHP_AUTH_PW']; |
|
338 | + $pwdOldEncryption = encryptOld($_SERVER['PHP_AUTH_PW']); |
|
339 | + }else{ |
|
340 | + $passwordClear = htmlspecialchars_decode($dataReceived['pw']); |
|
341 | + $pwdOldEncryption = encryptOld(htmlspecialchars_decode($dataReceived['pw'])); |
|
342 | + $username = $antiXss->xss_clean(htmlspecialchars_decode($dataReceived['login'])); |
|
343 | + } |
|
344 | 344 | $logError = ""; |
345 | 345 | $userPasswordVerified = false; |
346 | 346 | |
@@ -438,10 +438,10 @@ discard block |
||
438 | 438 | if (($SETTINGS['ldap_bind_dn'] === "" && $SETTINGS['ldap_bind_passwd'] === "") || $ldapbind === true) { |
439 | 439 | $filter = "(&(".$SETTINGS['ldap_user_attribute']."=".$username.")(objectClass=".$SETTINGS['ldap_object_class']."))"; |
440 | 440 | $result = ldap_search( |
441 | - $ldapconn, |
|
442 | - $SETTINGS['ldap_search_base'], |
|
443 | - $filter, |
|
444 | - array('dn', 'mail', 'givenname', 'sn') |
|
441 | + $ldapconn, |
|
442 | + $SETTINGS['ldap_search_base'], |
|
443 | + $filter, |
|
444 | + array('dn', 'mail', 'givenname', 'sn') |
|
445 | 445 | ); |
446 | 446 | if ($debugLdap == 1) { |
447 | 447 | fputs( |
@@ -488,11 +488,11 @@ discard block |
||
488 | 488 | if ($entries['count'] > 0) { |
489 | 489 | // Now check if group fits |
490 | 490 | for ($i=0; $i<$entries['count']; $i++) { |
491 | - $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
492 | - if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
491 | + $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
492 | + if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
493 | 493 | $GroupRestrictionEnabled = true; |
494 | 494 | break; |
495 | - } |
|
495 | + } |
|
496 | 496 | } |
497 | 497 | |
498 | 498 | } |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | } |
337 | 337 | $passwordClear = $_SERVER['PHP_AUTH_PW']; |
338 | 338 | $pwdOldEncryption = encryptOld($_SERVER['PHP_AUTH_PW']); |
339 | - }else{ |
|
339 | + } else { |
|
340 | 340 | $passwordClear = htmlspecialchars_decode($dataReceived['pw']); |
341 | 341 | $pwdOldEncryption = encryptOld(htmlspecialchars_decode($dataReceived['pw'])); |
342 | 342 | $username = $antiXss->xss_clean(htmlspecialchars_decode($dataReceived['login'])); |
@@ -487,9 +487,9 @@ discard block |
||
487 | 487 | |
488 | 488 | if ($entries['count'] > 0) { |
489 | 489 | // Now check if group fits |
490 | - for ($i=0; $i<$entries['count']; $i++) { |
|
491 | - $parsr=ldap_explode_dn($entries[$i]['dn'], 0); |
|
492 | - if (str_replace(array('CN=','cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
490 | + for ($i = 0; $i < $entries['count']; $i++) { |
|
491 | + $parsr = ldap_explode_dn($entries[$i]['dn'], 0); |
|
492 | + if (str_replace(array('CN=', 'cn='), '', $parsr[0]) === $SETTINGS['ldap_usergroup']) { |
|
493 | 493 | $GroupRestrictionEnabled = true; |
494 | 494 | break; |
495 | 495 | } |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | if (val[4] !== "") { |
206 | 206 | newList += '<span id="encryt_data_'+val[1]+'" style="margin-left:4px; cursor:pointer;">'; |
207 | 207 | if (val[4] === "1") { |
208 | - newList += '<i class="fa fa-key tip" title="<?php echo $LANG['encrypted_data'];?>" onclick="changeEncrypMode('+val[1]+', 1)"></i>'; |
|
208 | + newList += '<i class="fa fa-key tip" title="<?php echo $LANG['encrypted_data']; ?>" onclick="changeEncrypMode('+val[1]+', 1)"></i>'; |
|
209 | 209 | } else if (val[4] === "0") { |
210 | - newList += '<span class="fa-stack" title="<?php echo $LANG['not_encrypted_data'];?>" onclick="changeEncrypMode('+val[1]+', 0)"><i class="fa fa-key fa-stack-1x"></i><i class="fa fa-ban fa-stack-1x fa-lg" style="color:red;"></i></span>'; |
|
210 | + newList += '<span class="fa-stack" title="<?php echo $LANG['not_encrypted_data']; ?>" onclick="changeEncrypMode('+val[1]+', 0)"><i class="fa fa-key fa-stack-1x"></i><i class="fa fa-ban fa-stack-1x fa-lg" style="color:red;"></i></span>'; |
|
211 | 211 | } |
212 | 212 | newList += '</span>' |
213 | 213 | } |
@@ -215,9 +215,9 @@ discard block |
||
215 | 215 | if (val[6] !== "") { |
216 | 216 | newList += '<span style="margin-left:4px;">'; |
217 | 217 | if (val[6] === "text") { |
218 | - newList += '<i class="fa fa-paragraph tip" title="<?php echo $LANG['data_is_text'];?>"></i>'; |
|
218 | + newList += '<i class="fa fa-paragraph tip" title="<?php echo $LANG['data_is_text']; ?>"></i>'; |
|
219 | 219 | } else if (val[6] === "masked") { |
220 | - newList += '<i class="fa fa-eye-slash tip" title="<?php echo $LANG['data_is_masked'];?>"></i>'; |
|
220 | + newList += '<i class="fa fa-eye-slash tip" title="<?php echo $LANG['data_is_masked']; ?>"></i>'; |
|
221 | 221 | } |
222 | 222 | newList += '</span>' |
223 | 223 | } |
@@ -1028,8 +1028,8 @@ discard block |
||
1028 | 1028 | function(data) { |
1029 | 1029 | data = prepareExchangedData(data , "decode", "<?php echo $_SESSION['key']; ?>"); |
1030 | 1030 | |
1031 | - var html_admin_by = '<option value="">-- <?php echo addslashes($LANG['select']);?> --</option>', |
|
1032 | - html_roles = '<option value="">-- <?php echo addslashes($LANG['select']);?> --</option>', |
|
1031 | + var html_admin_by = '<option value="">-- <?php echo addslashes($LANG['select']); ?> --</option>', |
|
1032 | + html_roles = '<option value="">-- <?php echo addslashes($LANG['select']); ?> --</option>', |
|
1033 | 1033 | selected_admin_by = 0, |
1034 | 1034 | selected_role = 0; |
1035 | 1035 | |
@@ -1040,7 +1040,7 @@ discard block |
||
1040 | 1040 | if (data[i].selected_role === 1) { |
1041 | 1041 | selected_role = data[i].id; |
1042 | 1042 | } |
1043 | - html_admin_by += '<option value="'+data[i].id+'"><?php echo addslashes($LANG['managers_of']." ");?>'+data[i].title+'</option>'; |
|
1043 | + html_admin_by += '<option value="'+data[i].id+'"><?php echo addslashes($LANG['managers_of']." "); ?>'+data[i].title+'</option>'; |
|
1044 | 1044 | html_roles += '<option value="'+data[i].id+'">'+data[i].title+'</option>'; |
1045 | 1045 | } |
1046 | 1046 | $("#ldap_new_user_is_administrated_by").append(html_admin_by); |
@@ -700,20 +700,20 @@ |
||
700 | 700 | && $SETTINGS['maintenance_mode'] === '1') |
701 | 701 | ) { |
702 | 702 | if (strpos($_SERVER['PHP_AUTH_USER'], '@') !== false) { |
703 | - $username = explode("@", $_SERVER['PHP_AUTH_USER'])[0]; |
|
704 | - } elseif (strpos($_SERVER['PHP_AUTH_USER'], '\\') !== false) { |
|
705 | - $username = explode("\\", $_SERVER['PHP_AUTH_USER'])[1]; |
|
706 | - } else { |
|
707 | - $username = $_SERVER['PHP_AUTH_USER']; |
|
708 | - } |
|
709 | - echo ' |
|
703 | + $username = explode("@", $_SERVER['PHP_AUTH_USER'])[0]; |
|
704 | + } elseif (strpos($_SERVER['PHP_AUTH_USER'], '\\') !== false) { |
|
705 | + $username = explode("\\", $_SERVER['PHP_AUTH_USER'])[1]; |
|
706 | + } else { |
|
707 | + $username = $_SERVER['PHP_AUTH_USER']; |
|
708 | + } |
|
709 | + echo ' |
|
710 | 710 | <div style="margin-bottom:3px;"> |
711 | 711 | <label for="login" class="form_label">', isset($SETTINGS['custom_login_text']) && !empty($SETTINGS['custom_login_text']) ? (string) $SETTINGS['custom_login_text'] : $LANG['index_login'], '</label> |
712 | 712 | <input type="text" size="10" id="login" name="login" class="input_text text ui-widget-content ui-corner-all" value="' , $username , '" readonly /> |
713 | 713 | <span id="login_check_wait" style="display:none; float:right;"><i class="fa fa-cog fa-spin fa-1x"></i></span> |
714 | 714 | </div>'; |
715 | - } else { |
|
716 | - echo ' |
|
715 | + } else { |
|
716 | + echo ' |
|
717 | 717 | <div style="margin-bottom:3px;"> |
718 | 718 | <label for="login" class="form_label">', isset($SETTINGS['custom_login_text']) && !empty($SETTINGS['custom_login_text']) ? (string) $SETTINGS['custom_login_text'] : $LANG['index_login'], '</label> |
719 | 719 | <input type="text" size="10" id="login" name="login" class="input_text text ui-widget-content ui-corner-all" value="', empty($post_login) === false ? $post_login : '', '" /> |
@@ -91,34 +91,34 @@ discard block |
||
91 | 91 | require_once $SETTINGS['cpassman_dir'].'/sources/core.php'; |
92 | 92 | |
93 | 93 | // Prepare POST variables |
94 | -$post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING); |
|
95 | -$post_sig_response = filter_input(INPUT_POST, 'sig_response', FILTER_SANITIZE_STRING); |
|
96 | -$post_duo_login = filter_input(INPUT_POST, 'duo_login', FILTER_SANITIZE_STRING); |
|
97 | -$post_duo_data = filter_input(INPUT_POST, 'duo_data', FILTER_SANITIZE_STRING); |
|
98 | -$post_login = filter_input(INPUT_POST, 'login', FILTER_SANITIZE_STRING); |
|
99 | -$post_pw = filter_input(INPUT_POST, 'pw', FILTER_SANITIZE_STRING); |
|
94 | +$post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING); |
|
95 | +$post_sig_response = filter_input(INPUT_POST, 'sig_response', FILTER_SANITIZE_STRING); |
|
96 | +$post_duo_login = filter_input(INPUT_POST, 'duo_login', FILTER_SANITIZE_STRING); |
|
97 | +$post_duo_data = filter_input(INPUT_POST, 'duo_data', FILTER_SANITIZE_STRING); |
|
98 | +$post_login = filter_input(INPUT_POST, 'login', FILTER_SANITIZE_STRING); |
|
99 | +$post_pw = filter_input(INPUT_POST, 'pw', FILTER_SANITIZE_STRING); |
|
100 | 100 | |
101 | 101 | // Prepare superGlobal variables |
102 | -$session_user_language = $superGlobal->get("user_language", "SESSION"); |
|
103 | -$session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
104 | -$session_user_flag = $superGlobal->get("user_language_flag", "SESSION"); |
|
105 | -$session_user_admin = $superGlobal->get("user_admin", "SESSION"); |
|
102 | +$session_user_language = $superGlobal->get("user_language", "SESSION"); |
|
103 | +$session_user_id = $superGlobal->get("user_id", "SESSION"); |
|
104 | +$session_user_flag = $superGlobal->get("user_language_flag", "SESSION"); |
|
105 | +$session_user_admin = $superGlobal->get("user_admin", "SESSION"); |
|
106 | 106 | $session_user_human_resources = $superGlobal->get("user_can_manage_all_users", "SESSION"); |
107 | -$session_user_avatar_thumb = $superGlobal->get("user_avatar_thumb", "SESSION"); |
|
108 | -$session_name = $superGlobal->get("name", "SESSION"); |
|
109 | -$session_lastname = $superGlobal->get("lastname", "SESSION"); |
|
110 | -$session_user_manager = $superGlobal->get("user_manager", "SESSION"); |
|
111 | -$session_user_read_only = $superGlobal->get("user_read_only", "SESSION"); |
|
112 | -$session_is_admin = $superGlobal->get("is_admin", "SESSION"); |
|
113 | -$session_login = $superGlobal->get("login", "SESSION"); |
|
114 | -$session_validite_pw = $superGlobal->get("validite_pw", "SESSION"); |
|
115 | -$session_nb_folders = $superGlobal->get("nb_folders", "SESSION"); |
|
116 | -$session_nb_roles = $superGlobal->get("nb_roles", "SESSION"); |
|
117 | -$session_autoriser = $superGlobal->get("autoriser", "SESSION"); |
|
118 | -$session_hide_maintenance = $superGlobal->get("hide_maintenance", "SESSION"); |
|
119 | -$session_initial_url = $superGlobal->get("initial_url", "SESSION"); |
|
120 | -$server_request_uri = $superGlobal->get("REQUEST_URI", "SERVER"); |
|
121 | -$session_nb_users_online = $superGlobal->get("nb_users_online", "SESSION"); |
|
107 | +$session_user_avatar_thumb = $superGlobal->get("user_avatar_thumb", "SESSION"); |
|
108 | +$session_name = $superGlobal->get("name", "SESSION"); |
|
109 | +$session_lastname = $superGlobal->get("lastname", "SESSION"); |
|
110 | +$session_user_manager = $superGlobal->get("user_manager", "SESSION"); |
|
111 | +$session_user_read_only = $superGlobal->get("user_read_only", "SESSION"); |
|
112 | +$session_is_admin = $superGlobal->get("is_admin", "SESSION"); |
|
113 | +$session_login = $superGlobal->get("login", "SESSION"); |
|
114 | +$session_validite_pw = $superGlobal->get("validite_pw", "SESSION"); |
|
115 | +$session_nb_folders = $superGlobal->get("nb_folders", "SESSION"); |
|
116 | +$session_nb_roles = $superGlobal->get("nb_roles", "SESSION"); |
|
117 | +$session_autoriser = $superGlobal->get("autoriser", "SESSION"); |
|
118 | +$session_hide_maintenance = $superGlobal->get("hide_maintenance", "SESSION"); |
|
119 | +$session_initial_url = $superGlobal->get("initial_url", "SESSION"); |
|
120 | +$server_request_uri = $superGlobal->get("REQUEST_URI", "SERVER"); |
|
121 | +$session_nb_users_online = $superGlobal->get("nb_users_online", "SESSION"); |
|
122 | 122 | |
123 | 123 | |
124 | 124 | /* DEFINE WHAT LANGUAGE TO USE */ |
@@ -239,10 +239,7 @@ discard block |
||
239 | 239 | <div style="float:right; margin:-10px 5px 0 0; color:#FFF;">' |
240 | 240 | .$LANG['index_welcome'].' <b>'.$session_name.' '.$session_lastname |
241 | 241 | .' ['.$session_login.']</b> - ' |
242 | - , $session_user_admin === '1' ? $LANG['god'] : |
|
243 | - ($session_user_manager === '1' ? $LANG['gestionnaire'] : |
|
244 | - ($session_user_read_only === '1' ? $LANG['read_only_account'] : |
|
245 | - ($session_user_human_resources === '1' ? $LANG['human_resources'] :$LANG['user']) |
|
242 | + , $session_user_admin === '1' ? $LANG['god'] : ($session_user_manager === '1' ? $LANG['gestionnaire'] : ($session_user_read_only === '1' ? $LANG['read_only_account'] : ($session_user_human_resources === '1' ? $LANG['human_resources'] : $LANG['user']) |
|
246 | 243 | ) |
247 | 244 | ), ' '.strtolower($LANG['index_login']).'</div>'; |
248 | 245 | |
@@ -709,7 +706,7 @@ discard block |
||
709 | 706 | echo ' |
710 | 707 | <div style="margin-bottom:3px;"> |
711 | 708 | <label for="login" class="form_label">', isset($SETTINGS['custom_login_text']) && !empty($SETTINGS['custom_login_text']) ? (string) $SETTINGS['custom_login_text'] : $LANG['index_login'], '</label> |
712 | - <input type="text" size="10" id="login" name="login" class="input_text text ui-widget-content ui-corner-all" value="' , $username , '" readonly /> |
|
709 | + <input type="text" size="10" id="login" name="login" class="input_text text ui-widget-content ui-corner-all" value="' , $username, '" readonly /> |
|
713 | 710 | <span id="login_check_wait" style="display:none; float:right;"><i class="fa fa-cog fa-spin fa-1x"></i></span> |
714 | 711 | </div>'; |
715 | 712 | } else { |
@@ -733,7 +730,7 @@ discard block |
||
733 | 730 | </div>'; |
734 | 731 | } |
735 | 732 | |
736 | - if (!(isset($SETTINGS['enable_http_request_login']) === true && $SETTINGS['enable_http_request_login'] === '1' && isset($_SERVER['PHP_AUTH_USER']) === true && !(isset($SETTINGS['maintenance_mode']) === true && $SETTINGS['maintenance_mode'] === '1')) ) { |
|
733 | + if (!(isset($SETTINGS['enable_http_request_login']) === true && $SETTINGS['enable_http_request_login'] === '1' && isset($_SERVER['PHP_AUTH_USER']) === true && !(isset($SETTINGS['maintenance_mode']) === true && $SETTINGS['maintenance_mode'] === '1'))) { |
|
737 | 734 | echo ' |
738 | 735 | <div id="connect_pw" style="margin-bottom:3px;"> |
739 | 736 | <label for="pw" class="form_label" id="user_pwd">'.$LANG['index_password'].'</label> |
@@ -788,7 +785,7 @@ discard block |
||
788 | 785 | <script> |
789 | 786 | var seconds = 1; |
790 | 787 | function updateLogonButton(timeToGo){ |
791 | - document.getElementById("but_identify_user").value = "' . $LANG['duration_login_attempt'] . ' " + timeToGo; |
|
788 | + document.getElementById("but_identify_user").value = "' . $LANG['duration_login_attempt'].' " + timeToGo; |
|
792 | 789 | } |
793 | 790 | $( window ).on( "load", function() { |
794 | 791 | updateLogonButton(seconds); |
@@ -845,7 +842,7 @@ discard block |
||
845 | 842 | <a href="https://www.reddit.com/r/TeamPass/" target="_blank" style="color:#F0F0F0;" class="tip" title="'.addslashes($LANG['admin_help']).'"><i class="fa fa-reddit-alien"></i></a> |
846 | 843 | |
847 | 844 | ', ($session_user_id !== null && empty($session_user_id) === false) ? ' |
848 | - <a href="#" style="color:#F0F0F0;" class="tip" title="'.addslashes($LANG['bugs_page']).'" onclick="generateBugReport()"><i class="fa fa-bug"></i></a>' : '' ,' |
|
845 | + <a href="#" style="color:#F0F0F0;" class="tip" title="'.addslashes($LANG['bugs_page']).'" onclick="generateBugReport()"><i class="fa fa-bug"></i></a>' : '', ' |
|
849 | 846 | </div> |
850 | 847 | <div style="float:left;width:32%;text-align:center;"> |
851 | 848 | ', ($session_user_id !== null && empty($session_user_id) === false) ? '<i class="fa fa-users"></i> '.$session_nb_users_online.' '.$LANG['users_online'].' | <i class="fa fa-hourglass-end"></i> '.$LANG['index_expiration_in'].' <div style="display:inline;" id="countdown"></div>' : '', ' |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | $json[$inc]['nlevel'] = mb_convert_encoding($folder->nlevel, mb_detect_encoding($folder->nlevel), 'UTF-8'); |
634 | 634 | $json[$inc]['personal'] = mb_convert_encoding($folder->personal_folder, mb_detect_encoding($folder->personal_folder), 'UTF-8'); |
635 | 635 | |
636 | - $inc ++; |
|
636 | + $inc++; |
|
637 | 637 | } |
638 | 638 | } |
639 | 639 | } |
@@ -2099,7 +2099,7 @@ discard block |
||
2099 | 2099 | $tree = new Tree\NestedTree\NestedTree(prefix_table("nested_tree"), 'id', 'parent_id', 'title'); |
2100 | 2100 | $tree->rebuild(); |
2101 | 2101 | |
2102 | - echo json_encode(array('new_id' => $newID , 'err' => '')); |
|
2102 | + echo json_encode(array('new_id' => $newID, 'err' => '')); |
|
2103 | 2103 | } elseif ($GLOBALS['request'][1] === "edit") { |
2104 | 2104 | // Is this folder a personal one? |
2105 | 2105 | $fldData = DB::queryFirstRow( |
@@ -2166,7 +2166,7 @@ discard block |
||
2166 | 2166 | $item_definition['item_id'] |
2167 | 2167 | ); |
2168 | 2168 | |
2169 | - echo json_encode(array('new_id' => '' , 'err' => '')); |
|
2169 | + echo json_encode(array('new_id' => '', 'err' => '')); |
|
2170 | 2170 | } |
2171 | 2171 | } else { |
2172 | 2172 | rest_error('AUTH_NOT_GRANTED'); |
@@ -1635,7 +1635,7 @@ |
||
1635 | 1635 | rest_error('AUTH_NO_URL'); |
1636 | 1636 | } |
1637 | 1637 | } else { |
1638 | - rest_error('AUTH_NO_IDENTIFIER'); |
|
1638 | + rest_error('AUTH_NO_IDENTIFIER'); |
|
1639 | 1639 | } |
1640 | 1640 | } else { |
1641 | 1641 | rest_error('AUTH_NO_IDENTIFIER'); |