Passed
Push — master ( d89a5c...7e50cd )
by Nils
04:50
created
pages/items.js.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 }
43 43
 
44 44
 /* do checks */
45
-require_once $SETTINGS['cpassman_dir'] . '/sources/checks.php';
46
-if (! checkUser($_SESSION['user_id'], $_SESSION['key'], curPage($SETTINGS), $SETTINGS)) {
45
+require_once $SETTINGS['cpassman_dir'].'/sources/checks.php';
46
+if (!checkUser($_SESSION['user_id'], $_SESSION['key'], curPage($SETTINGS), $SETTINGS)) {
47 47
     $_SESSION['error']['code'] = ERR_NOT_ALLOWED;
48 48
     //not allowed page
49
-    include $SETTINGS['cpassman_dir'] . '/error.php';
49
+    include $SETTINGS['cpassman_dir'].'/error.php';
50 50
     exit;
51 51
 }
52 52
 
@@ -2430,7 +2430,7 @@  discard block
 block discarded – undo
2430 2430
                 progress: "#form-item-password-strength",
2431 2431
                 score: "#form-item-password-strength"
2432 2432
             },
2433
-            scores: [<?php echo TP_PW_STRENGTH_1;?>, <?php echo TP_PW_STRENGTH_2;?>, <?php echo TP_PW_STRENGTH_3;?>, <?php echo TP_PW_STRENGTH_4;?>, <?php echo TP_PW_STRENGTH_5;?>],
2433
+            scores: [<?php echo TP_PW_STRENGTH_1; ?>, <?php echo TP_PW_STRENGTH_2; ?>, <?php echo TP_PW_STRENGTH_3; ?>, <?php echo TP_PW_STRENGTH_4; ?>, <?php echo TP_PW_STRENGTH_5; ?>],
2434 2434
         },
2435 2435
         i18n : {
2436 2436
             t: function (key) {
@@ -2460,7 +2460,7 @@  discard block
 block discarded – undo
2460 2460
         container: 'form-item-upload-zone',
2461 2461
         max_file_size: '<?php
2462 2462
             if (strrpos($SETTINGS['upload_maxfilesize'], 'mb') === false) {
2463
-                echo $SETTINGS['upload_maxfilesize'] . 'mb';
2463
+                echo $SETTINGS['upload_maxfilesize'].'mb';
2464 2464
             } else {
2465 2465
                 echo $SETTINGS['upload_maxfilesize'];
2466 2466
             }
@@ -4439,7 +4439,7 @@  discard block
 block discarded – undo
4439 4439
 
4440 4440
                         // Show passwords inputs and form
4441 4441
                         $('#dialog-ldap-user-change-password-info')
4442
-                            .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo langHdl('ldap_user_has_changed_his_password');?>')
4442
+                            .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo langHdl('ldap_user_has_changed_his_password'); ?>')
4443 4443
                             .removeClass('hidden');
4444 4444
                         $('#dialog-ldap-user-change-password').removeClass('hidden');
4445 4445
                     } else if (data.error_type !== 'undefined') {
@@ -4458,7 +4458,7 @@  discard block
 block discarded – undo
4458 4458
 
4459 4459
                             // Show passwords inputs and form
4460 4460
                             $('#dialog-ldap-user-change-password-info')
4461
-                                .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo langHdl('ldap_user_has_changed_his_password');?>')
4461
+                                .html('<i class="icon fa-solid fa-info mr-2"></i><?php echo langHdl('ldap_user_has_changed_his_password'); ?>')
4462 4462
                                 .removeClass('hidden');
4463 4463
                             $('#dialog-ldap-user-change-password').removeClass('hidden');
4464 4464
                         });
@@ -4814,7 +4814,7 @@  discard block
 block discarded – undo
4814 4814
                     '#get_item_link',
4815 4815
                     {
4816 4816
                         text: function(e) {
4817
-                            return ("<?php echo $SETTINGS['cpassman_url'];?>/index.php?page=items&group="+store.get('teampassItem').folderId+"&id="+store.get('teampassItem').id);
4817
+                            return ("<?php echo $SETTINGS['cpassman_url']; ?>/index.php?page=items&group="+store.get('teampassItem').folderId+"&id="+store.get('teampassItem').id);
4818 4818
                         }
4819 4819
                     })
4820 4820
                     .on('success', function(e) {
Please login to merge, or discard this patch.