Passed
Push — development ( 73e070...4defef )
by Nils
05:38
created
sources/find.queries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -341,8 +341,8 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
admin.settings.load.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
api/functions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +30 added lines, -33 removed lines patch added patch discarded remove patch
@@ -91,34 +91,34 @@  discard block
 block discarded – undo
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
 block discarded – undo
239 239
         <div style="float:right; margin:-10px 5px 0 0; color:#FFF;">'
240 240
             .$LANG['index_welcome'].'&nbsp;<b>'.$session_name.'&nbsp;'.$session_lastname
241 241
             .'&nbsp;['.$session_login.']</b>&nbsp;-&nbsp;'
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
                 ), '&nbsp;'.strtolower($LANG['index_login']).'</div>';
248 245
 
@@ -709,7 +706,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             &nbsp;
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>&nbsp;'.$session_nb_users_online.'&nbsp;'.$LANG['users_online'].'&nbsp;|&nbsp;<i class="fa fa-hourglass-end"></i>&nbsp;'.$LANG['index_expiration_in'].'&nbsp;<div style="display:inline;" id="countdown"></div>' : '', '
Please login to merge, or discard this patch.
includes/language/french.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'report_a_bug' => 'Reporter un défaut',
18 18
     'user_profile_api_key' => 'Votre clé API',
19 19
     'settings_ldap_and_local_authentication' => 'Utilisateurs locaux et LDAP',
Please login to merge, or discard this patch.
includes/language/catalan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'report_a_bug' => 'Report a Bug',
18 18
     'user_profile_api_key' => 'Your API key',
19 19
     'settings_ldap_and_local_authentication' => 'Local and LDAP users',
Please login to merge, or discard this patch.
includes/language/dutch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'report_a_bug' => 'Report a Bug',
18 18
     'user_profile_api_key' => 'Your API key',
19 19
     'user_ga_code' => 'E-mail Google Authenticatie naar gebruiker',
Please login to merge, or discard this patch.
includes/language/portuguese_br.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'report_a_bug' => 'Report a Bug',
18 18
     'user_profile_api_key' => 'Your API key',
19 19
     'user_ga_code' => 'Enviar ao usuário o Código do Google Authenticator por e-mail',
Please login to merge, or discard this patch.
includes/language/spanish.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 14
  */
15 15
 global $LANG;
16
-$LANG = array (
16
+$LANG = array(
17 17
     'report_a_bug' => 'Report a Bug',
18 18
     'user_profile_api_key' => 'Your API key',
19 19
     'user_ga_code' => 'Enviar el código de GoogleAuthenticator por correo al usuario',
Please login to merge, or discard this patch.