Completed
Push — development ( 8b4e00...3f8e8f )
by Nils
08:22
created
index.php 1 patch
Spacing   +24 added lines, -26 removed lines patch added patch discarded remove patch
@@ -92,31 +92,31 @@  discard block
 block discarded – undo
92 92
 
93 93
 
94 94
 // Prepare POST variables
95
-$post_language =        filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING);
96
-$post_sig_response =    filter_input(INPUT_POST, 'sig_response', FILTER_SANITIZE_STRING);
97
-$post_duo_login =       filter_input(INPUT_POST, 'duo_login', FILTER_SANITIZE_STRING);
98
-$post_duo_data =        filter_input(INPUT_POST, 'duo_data', FILTER_SANITIZE_STRING);
95
+$post_language = filter_input(INPUT_POST, 'language', FILTER_SANITIZE_STRING);
96
+$post_sig_response = filter_input(INPUT_POST, 'sig_response', FILTER_SANITIZE_STRING);
97
+$post_duo_login = filter_input(INPUT_POST, 'duo_login', FILTER_SANITIZE_STRING);
98
+$post_duo_data = filter_input(INPUT_POST, 'duo_data', FILTER_SANITIZE_STRING);
99 99
 
100 100
 // Prepare superGlobal variables
101
-$session_user_language =        $superGlobal->get("user_language", "SESSION");
102
-$session_user_id =              $superGlobal->get("user_id", "SESSION");
103
-$session_user_flag =            $superGlobal->get("user_language_flag", "SESSION");
104
-$session_user_admin =           $superGlobal->get("user_admin", "SESSION");
105
-$session_user_avatar_thumb =    $superGlobal->get("user_avatar_thumb", "SESSION");
106
-$session_name =                 $superGlobal->get("name", "SESSION");
107
-$session_lastname =             $superGlobal->get("lastname", "SESSION");
108
-$session_user_manager =         $superGlobal->get("user_manager", "SESSION");
109
-$session_user_read_only =       $superGlobal->get("user_read_only", "SESSION");
110
-$session_is_admin =             $superGlobal->get("is_admin", "SESSION");
111
-$session_login =                $superGlobal->get("login", "SESSION");
112
-$session_validite_pw =          $superGlobal->get("validite_pw", "SESSION");
113
-$session_nb_folders =           $superGlobal->get("nb_folders", "SESSION");
114
-$session_nb_roles =             $superGlobal->get("nb_roles", "SESSION");
115
-$session_autoriser =            $superGlobal->get("autoriser", "SESSION");
116
-$session_hide_maintenance =     $superGlobal->get("hide_maintenance", "SESSION");
117
-$session_initial_url =          $superGlobal->get("initial_url", "SESSION");
118
-$server_request_uri =           $superGlobal->get("REQUEST_URI", "SERVER");
119
-$session_nb_users_online =      $superGlobal->get("nb_users_online", "SESSION");
101
+$session_user_language = $superGlobal->get("user_language", "SESSION");
102
+$session_user_id = $superGlobal->get("user_id", "SESSION");
103
+$session_user_flag = $superGlobal->get("user_language_flag", "SESSION");
104
+$session_user_admin = $superGlobal->get("user_admin", "SESSION");
105
+$session_user_avatar_thumb = $superGlobal->get("user_avatar_thumb", "SESSION");
106
+$session_name = $superGlobal->get("name", "SESSION");
107
+$session_lastname = $superGlobal->get("lastname", "SESSION");
108
+$session_user_manager = $superGlobal->get("user_manager", "SESSION");
109
+$session_user_read_only = $superGlobal->get("user_read_only", "SESSION");
110
+$session_is_admin = $superGlobal->get("is_admin", "SESSION");
111
+$session_login = $superGlobal->get("login", "SESSION");
112
+$session_validite_pw = $superGlobal->get("validite_pw", "SESSION");
113
+$session_nb_folders = $superGlobal->get("nb_folders", "SESSION");
114
+$session_nb_roles = $superGlobal->get("nb_roles", "SESSION");
115
+$session_autoriser = $superGlobal->get("autoriser", "SESSION");
116
+$session_hide_maintenance = $superGlobal->get("hide_maintenance", "SESSION");
117
+$session_initial_url = $superGlobal->get("initial_url", "SESSION");
118
+$server_request_uri = $superGlobal->get("REQUEST_URI", "SERVER");
119
+$session_nb_users_online = $superGlobal->get("nb_users_online", "SESSION");
120 120
 
121 121
 
122 122
 /* DEFINE WHAT LANGUAGE TO USE */
@@ -236,9 +236,7 @@  discard block
 block discarded – undo
236 236
         <div style="float:right; margin:-10px 5px 0 0; color:#FFF;">'
237 237
             .$LANG['index_welcome'].'&nbsp;<b>'.$session_name.'&nbsp;'.$session_lastname
238 238
             .'&nbsp;['.$session_login.']</b>&nbsp;-&nbsp;'
239
-            , $session_user_admin === '1' ? $LANG['god'] :
240
-                ($session_user_manager === '1' ? $LANG['gestionnaire'] :
241
-                    ($session_user_read_only === '1' ? $LANG['read_only_account'] : $LANG['user'])
239
+            , $session_user_admin === '1' ? $LANG['god'] : ($session_user_manager === '1' ? $LANG['gestionnaire'] : ($session_user_read_only === '1' ? $LANG['read_only_account'] : $LANG['user'])
242 240
                 ), '&nbsp;'.strtolower($LANG['index_login']).'</div>';
243 241
 
244 242
         echo '
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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
Please login to merge, or discard this patch.
includes/language/greek.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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
Please login to merge, or discard this patch.
includes/language/chinese.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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
Please login to merge, or discard this patch.
includes/language/english.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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
Please login to merge, or discard this patch.
includes/language/russian.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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
Please login to merge, or discard this patch.
includes/language/german.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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
Please login to merge, or discard this patch.
includes/language/czech.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
     'error_security_level_not_reached' => 'Expected level of security not reached!',
18 18
     'error_psk_should_be_changed' => 'Due to policy change, you may need change your personal saltkey.',
19 19
     'personal_saltkey_security_level' => 'Minimum Personal Saltkey security level',
Please login to merge, or discard this patch.