Completed
Push — development ( 477849...8fd89f )
by Nils
07:48
created
roles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     !isset($_SESSION['CPM']) || $_SESSION['CPM'] != 1 ||
17 17
     !isset($_SESSION['user_id']) || empty($_SESSION['user_id']) ||
18 18
     !isset($_SESSION['key']) || empty($_SESSION['key'])
19
-){
19
+) {
20 20
     die('Hacking attempt...');
21 21
 }
22 22
 
Please login to merge, or discard this patch.
admin.settings.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                 <td>
197 197
                       <i class="fa fa-chevron-right mi-grey-1" style="margin-right: .3em;">&nbsp;</i>
198 198
                       <label>' .
199
-                          $LANG['settings_enable_sts'] . '
199
+                            $LANG['settings_enable_sts'] . '
200 200
                           &nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_enable_sts_tip']), ENT_QUOTES).'"></i>
201 201
                       </label>
202 202
                 </td>
@@ -1153,7 +1153,7 @@  discard block
 block discarded – undo
1153 1153
                 </tr>';
1154 1154
 
1155 1155
 // AD Port
1156
- echo '
1156
+    echo '
1157 1157
                 <tr>
1158 1158
                     <td><label for="ldap_port">'.$LANG['settings_ldap_port'].'&nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_ldap_port_tip']), ENT_QUOTES).'"></i></label></td>
1159 1159
                     <td><input type="text" size="50" id="ldap_port" name="ldap_port" class="text ui-widget-content" title="389" value="', isset($_SESSION['settings']['ldap_port']) ? $_SESSION['settings']['ldap_port'] : '389', '" onchange="updateSetting($(this).attr(\'id\'));" /></td>
Please login to merge, or discard this patch.
Spacing   +30 added lines, -33 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
                 <td>
197 197
                       <i class="fa fa-chevron-right mi-grey-1" style="margin-right: .3em;">&nbsp;</i>
198 198
                       <label>' .
199
-                          $LANG['settings_enable_sts'] . '
199
+                          $LANG['settings_enable_sts'].'
200 200
                           &nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_enable_sts_tip']), ENT_QUOTES).'"></i>
201 201
                       </label>
202 202
                 </td>
@@ -289,14 +289,14 @@  discard block
 block discarded – undo
289 289
                     </td>
290 290
                     <td>
291 291
                         <select id="date_format" name="date_format" class="text ui-widget-content" onchange="updateSetting($(this).attr(\'id\'));">
292
-                            <option value="d/m/Y"', !isset($_SESSION['settings']['date_format']) || $_SESSION['settings']['date_format'] == "d/m/Y" ? ' selected="selected"':"", '>d/m/Y</option>
293
-                            <option value="m/d/Y"', $_SESSION['settings']['date_format'] == "m/d/Y" ? ' selected="selected"':"", '>m/d/Y</option>
294
-                            <option value="d-M-Y"', $_SESSION['settings']['date_format'] == "d-M-Y" ? ' selected="selected"':"", '>d-M-Y</option>
295
-                            <option value="d/m/y"', $_SESSION['settings']['date_format'] == "d/m/y" ? ' selected="selected"':"", '>d/m/y</option>
296
-                            <option value="m/d/y"', $_SESSION['settings']['date_format'] == "m/d/y" ? ' selected="selected"':"", '>m/d/y</option>
297
-                            <option value="d-M-y"', $_SESSION['settings']['date_format'] == "d-M-y" ? ' selected="selected"':"", '>d-M-y</option>
298
-                            <option value="d-m-y"', $_SESSION['settings']['date_format'] == "d-m-y" ? ' selected="selected"':"", '>d-m-y</option>
299
-                            <option value="Y-m-d"', $_SESSION['settings']['date_format'] == "Y-m-d" ? ' selected="selected"':"", '>Y-m-d</option>
292
+                            <option value="d/m/Y"', !isset($_SESSION['settings']['date_format']) || $_SESSION['settings']['date_format'] == "d/m/Y" ? ' selected="selected"' : "", '>d/m/Y</option>
293
+                            <option value="m/d/Y"', $_SESSION['settings']['date_format'] == "m/d/Y" ? ' selected="selected"' : "", '>m/d/Y</option>
294
+                            <option value="d-M-Y"', $_SESSION['settings']['date_format'] == "d-M-Y" ? ' selected="selected"' : "", '>d-M-Y</option>
295
+                            <option value="d/m/y"', $_SESSION['settings']['date_format'] == "d/m/y" ? ' selected="selected"' : "", '>d/m/y</option>
296
+                            <option value="m/d/y"', $_SESSION['settings']['date_format'] == "m/d/y" ? ' selected="selected"' : "", '>m/d/y</option>
297
+                            <option value="d-M-y"', $_SESSION['settings']['date_format'] == "d-M-y" ? ' selected="selected"' : "", '>d-M-y</option>
298
+                            <option value="d-m-y"', $_SESSION['settings']['date_format'] == "d-m-y" ? ' selected="selected"' : "", '>d-m-y</option>
299
+                            <option value="Y-m-d"', $_SESSION['settings']['date_format'] == "Y-m-d" ? ' selected="selected"' : "", '>Y-m-d</option>
300 300
                         </select>
301 301
                     </td>
302 302
                 </tr>';
@@ -309,10 +309,10 @@  discard block
 block discarded – undo
309 309
                     </td>
310 310
                     <td>
311 311
                         <select id="time_format" name="time_format" class="text ui-widget-content" onchange="updateSetting($(this).attr(\'id\'));">
312
-                            <option value="H:i:s"', !isset($_SESSION['settings']['time_format']) || $_SESSION['settings']['time_format'] == "H:i:s" ? ' selected="selected"':"", '>H:i:s</option>
313
-                            <option value="h:m:s a"', $_SESSION['settings']['time_format'] == "h:i:s a" ? ' selected="selected"':"", '>h:i:s a</option>
314
-                            <option value="g:i:s a"', $_SESSION['settings']['time_format'] == "g:i:s a" ? ' selected="selected"':"", '>g:i:s a</option>
315
-                            <option value="G:i:s"', $_SESSION['settings']['time_format'] == "G:i:s" ? ' selected="selected"':"", '>G:i:s</option>
312
+                            <option value="H:i:s"', !isset($_SESSION['settings']['time_format']) || $_SESSION['settings']['time_format'] == "H:i:s" ? ' selected="selected"' : "", '>H:i:s</option>
313
+                            <option value="h:m:s a"', $_SESSION['settings']['time_format'] == "h:i:s a" ? ' selected="selected"' : "", '>h:i:s a</option>
314
+                            <option value="g:i:s a"', $_SESSION['settings']['time_format'] == "g:i:s a" ? ' selected="selected"' : "", '>g:i:s a</option>
315
+                            <option value="G:i:s"', $_SESSION['settings']['time_format'] == "G:i:s" ? ' selected="selected"' : "", '>G:i:s</option>
316 316
                         </select>
317 317
                     </td>
318 318
                 </tr>';
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
                 </td></tr>';
863 863
 // Enable Item modification by anyone by default
864 864
 echo '
865
-                <tr id="tr_option_anyone_can_modify_bydefault"', isset($_SESSION['settings']['anyone_can_modify']) && $_SESSION['settings']['anyone_can_modify'] == 1 ? '':' style="display:none;"', '><td>
865
+                <tr id="tr_option_anyone_can_modify_bydefault"', isset($_SESSION['settings']['anyone_can_modify']) && $_SESSION['settings']['anyone_can_modify'] == 1 ? '' : ' style="display:none;"', '><td>
866 866
                     <i class="fa fa-chevron-right mi-grey-1" style="margin-right: .3em;">&nbsp;</i>
867 867
                     <label>'.htmlentities(strip_tags($LANG['settings_anyone_can_modify_bydefault'])).'</label>
868 868
                     </td><td>
@@ -878,7 +878,7 @@  discard block
 block discarded – undo
878 878
                 </td></tr>';
879 879
 // enable restricted_to_roles
880 880
 echo '
881
-                <tr id="tr_option_restricted_to_roles" style="display:', isset($_SESSION['settings']['restricted_to']) && $_SESSION['settings']['restricted_to'] == 1 ? 'inline':'none', ';"><td>
881
+                <tr id="tr_option_restricted_to_roles" style="display:', isset($_SESSION['settings']['restricted_to']) && $_SESSION['settings']['restricted_to'] == 1 ? 'inline' : 'none', ';"><td>
882 882
                     <i class="fa fa-chevron-right mi-grey-1" style="margin-right: .3em;">&nbsp;</i>
883 883
                     <label>'.$LANG['restricted_to_roles'].'</label>
884 884
                     </td><td>
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
 }
1068 1068
 // LDAP inputs
1069 1069
 echo '
1070
-            <div id="div_ldap_configuration" ', (isset($_SESSION['settings']['ldap_mode']) && $_SESSION['settings']['ldap_mode'] == 1) ? '':' style="display:none;"' , '>
1070
+            <div id="div_ldap_configuration" ', (isset($_SESSION['settings']['ldap_mode']) && $_SESSION['settings']['ldap_mode'] == 1) ? '' : ' style="display:none;"', '>
1071 1071
                 <div style="font-weight:bold;font-size:14px;margin:15px 0px 8px 0px;">'.$LANG['admin_ldap_configuration'].'</div>
1072 1072
                 <table id="ldap_config_values">';
1073 1073
 // Type
@@ -1086,14 +1086,14 @@  discard block
 block discarded – undo
1086 1086
                     </tr>';
1087 1087
 // Domain
1088 1088
 echo '
1089
-                    <tr style="display:', (isset($ldap_type)) ? '' : 'none' , '" class="tr-windows tr-ldap tr-posix tr-posix-search">
1089
+                    <tr style="display:', (isset($ldap_type)) ? '' : 'none', '" class="tr-windows tr-ldap tr-posix tr-posix-search">
1090 1090
                         <td><label for="ldap_suffix">'.$LANG['settings_ldap_domain'].'</label></td>
1091 1091
                         <td><input type="text" size="50" id="ldap_suffix" name="ldap_suffix" class="text ui-widget-content" title="@dc=example,dc=com" value="', isset($_SESSION['settings']['ldap_suffix']) ? $_SESSION['settings']['ldap_suffix'] : '', '" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1092 1092
                     </tr>';
1093 1093
 
1094 1094
 // Domain DN
1095 1095
 echo '
1096
-                    <tr style="display:', (isset($ldap_type) && $ldap_type != 'posix-search') ? '' : 'none' , '" class="tr-windows tr-posix tr-ldap">
1096
+                    <tr style="display:', (isset($ldap_type) && $ldap_type != 'posix-search') ? '' : 'none', '" class="tr-windows tr-posix tr-ldap">
1097 1097
                         <td><label for="ldap_domain_dn">'.$LANG['settings_ldap_domain_dn'].'</label></td>
1098 1098
                         <td><input type="text" size="50" id="ldap_domain_dn" name="ldap_domain_dn" class="text ui-widget-content" title="dc=example,dc=com" value="', isset($_SESSION['settings']['ldap_domain_dn']) ? $_SESSION['settings']['ldap_domain_dn'] : '', '" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1099 1099
                     </tr>';
@@ -1108,39 +1108,39 @@  discard block
 block discarded – undo
1108 1108
 // LDAP username attribute
1109 1109
         // LDAP Object Class
1110 1110
         echo '
1111
-                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none' , '" class="tr-posix-search tr-ldap">
1111
+                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none', '" class="tr-posix-search tr-ldap">
1112 1112
                     <td><label for="ldap_object_class">'.$LANG['settings_ldap_object_class'].'&nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_ldap_object_class_tip']), ENT_QUOTES).'"></i></label></td>
1113 1113
                     <td><input type="text" size="50" id="ldap_object_class" name="ldap_object_class" class="text ui-widget-content" title="Person" value="',
1114 1114
                     isset($_SESSION['settings']['ldap_object_class']) ? $_SESSION['settings']['ldap_object_class'] : 'posixAccount', '" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1115 1115
                 </tr>';
1116 1116
         echo '
1117
-                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none' , '" class="tr-posix-search tr-ldap">
1117
+                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none', '" class="tr-posix-search tr-ldap">
1118 1118
                     <td><label for="ldap_user_attribute">'.$LANG['settings_ldap_user_attribute'].'&nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_ldap_user_attribute_tip']), ENT_QUOTES).'"></i></label></td>
1119 1119
                     <td><input type="text" size="50" id="ldap_user_attribute" name="ldap_user_attribute" class="text ui-widget-content" title="uid" value="',
1120 1120
                         isset($_SESSION['settings']['ldap_user_attribute']) ? $_SESSION['settings']['ldap_user_attribute'] : 'uid', '" class="text ui-widget-content" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1121 1121
                 </tr>';
1122 1122
                 // LDAP
1123 1123
                 echo '
1124
-                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none' , '" class="tr-posix-search tr-ldap">
1124
+                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none', '" class="tr-posix-search tr-ldap">
1125 1125
                     <td><label for="ldap_usergroup">'.$LANG['settings_ldap_usergroup'].'&nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_ldap_usergroup_tip']), ENT_QUOTES).'"></i></label></td>
1126 1126
                     <td><input type="text" size="50" id="ldap_usergroup" name="ldap_usergroup" class="text ui-widget-content" title="uid" value="',
1127 1127
                         isset($_SESSION['settings']['ldap_usergroup']) ? $_SESSION['settings']['ldap_usergroup'] : '', '" class="text ui-widget-content" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1128 1128
                 </tr>';
1129 1129
                 // LDAP BIND DN for search
1130 1130
                 echo '
1131
-                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none' , '" class="tr-posix-search tr-ldap">
1131
+                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none', '" class="tr-posix-search tr-ldap">
1132 1132
                     <td><label for="ldap_bind_dn">'.$LANG['settings_ldap_bind_dn'].'&nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_ldap_bind_dn_tip']), ENT_QUOTES).'"></i></label></td>
1133 1133
                     <td><input type="text" size="50" id="ldap_bind_dn" name="ldap_bind_dn" class="text ui-widget-content" title="uid=teampass,ou=people,dc=mydomain,dc=local" value="', isset($_SESSION['settings']['ldap_bind_dn']) ? $_SESSION['settings']['ldap_bind_dn'] : '', '" class="text ui-widget-content" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1134 1134
                 </tr>';
1135 1135
                 // LDAP BIND PASSWD for search
1136 1136
                 echo '
1137
-                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none' , '" class="tr-posix-search tr-ldap">
1137
+                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none', '" class="tr-posix-search tr-ldap">
1138 1138
                     <td><label for="ldap_bind_passwd">'.$LANG['settings_ldap_bind_passwd'].'&nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_ldap_bind_passwd_tip']), ENT_QUOTES).'"></i></label></td>
1139 1139
                     <td><input type="text" size="50" id="ldap_bind_passwd" name="ldap_bind_passwd" class="text ui-widget-content" title="123password456" value="', isset($_SESSION['settings']['ldap_bind_passwd']) ? $_SESSION['settings']['ldap_bind_passwd'] : '', '" class="text ui-widget-content" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1140 1140
                 </tr>';
1141 1141
                 // LDAP BASE for search
1142 1142
                 echo '
1143
-                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none' , '" class="tr-posix-search tr-ldap">
1143
+                <tr style="display:', (isset($ldap_type) && $ldap_type === 'posix-search') ? '' : 'none', '" class="tr-posix-search tr-ldap">
1144 1144
                     <td><label for="ldap_search_base">'.$LANG['settings_ldap_search_base'].'&nbsp;<i class="fa fa-question-circle tip" title="'.htmlentities(strip_tags($LANG['settings_ldap_search_base_tip']), ENT_QUOTES).'"></i></label></td>
1145 1145
                     <td><input type="text" size="50" id="ldap_search_base" name="ldap_search_base" class="text ui-widget-content" title="ou=people,dc=octopoos,dc=local" value="', isset($_SESSION['settings']['ldap_search_base']) ? $_SESSION['settings']['ldap_search_base'] : '', '" onchange="updateSetting($(this).attr(\'id\'));" /></td>
1146 1146
                 </tr>';
@@ -1440,9 +1440,9 @@  discard block
 block discarded – undo
1440 1440
                         </td>
1441 1441
                         <td>
1442 1442
                             <select id="email_security" name="email_security" class="text ui-widget-content" onchange="updateSetting($(this).attr(\'id\'));">
1443
-                            <option value="none"', !isset($_SESSION['settings']['email_security']) || $_SESSION['settings']['email_security'] == "none" ? ' selected="selected"':"", '>None</option>
1444
-                            <option value="ssl"', isset($_SESSION['settings']['email_security']) && $_SESSION['settings']['email_security'] == "ssl" ? ' selected="selected"':"", '>SSL</option>
1445
-                            <option value="tls"', isset($_SESSION['settings']['email_security']) && $_SESSION['settings']['email_security'] == "tls" ? ' selected="selected"':"", '>TLS</option>
1443
+                            <option value="none"', !isset($_SESSION['settings']['email_security']) || $_SESSION['settings']['email_security'] == "none" ? ' selected="selected"' : "", '>None</option>
1444
+                            <option value="ssl"', isset($_SESSION['settings']['email_security']) && $_SESSION['settings']['email_security'] == "ssl" ? ' selected="selected"' : "", '>SSL</option>
1445
+                            <option value="tls"', isset($_SESSION['settings']['email_security']) && $_SESSION['settings']['email_security'] == "tls" ? ' selected="selected"' : "", '>TLS</option>
1446 1446
                         </select>
1447 1447
                         </td>
1448 1448
                     </tr>';
@@ -1594,8 +1594,7 @@  discard block
 block discarded – undo
1594 1594
                     '</label>
1595 1595
                     </td><td>
1596 1596
                     <input type="text" size="5" id="upload_imageresize_width" name="upload_imageresize_width" value="',
1597
-                        isset($_SESSION['settings']['upload_imageresize_width']) ? $_SESSION['settings']['upload_imageresize_width'] :
1598
-                        '800', '" class="text ui-widget-content upl_img_opt" onchange="updateSetting($(this).attr(\'id\'));" />
1597
+                        isset($_SESSION['settings']['upload_imageresize_width']) ? $_SESSION['settings']['upload_imageresize_width'] : '800', '" class="text ui-widget-content upl_img_opt" onchange="updateSetting($(this).attr(\'id\'));" />
1599 1598
                     </td>
1600 1599
                 </tr>
1601 1600
                 <tr><td>
@@ -1604,8 +1603,7 @@  discard block
 block discarded – undo
1604 1603
                     '</label>
1605 1604
                     </td><td>
1606 1605
                     <input type="text" size="5" id="upload_imageresize_height" name="upload_imageresize_height" value="',
1607
-                        isset($_SESSION['settings']['upload_imageresize_height']) ? $_SESSION['settings']['upload_imageresize_height'] :
1608
-                        '600', '" class="text ui-widget-content upl_img_opt" onchange="updateSetting($(this).attr(\'id\'));" />
1606
+                        isset($_SESSION['settings']['upload_imageresize_height']) ? $_SESSION['settings']['upload_imageresize_height'] : '600', '" class="text ui-widget-content upl_img_opt" onchange="updateSetting($(this).attr(\'id\'));" />
1609 1607
                     </td>
1610 1608
                 </tr>
1611 1609
                 <tr><td>
@@ -1614,8 +1612,7 @@  discard block
 block discarded – undo
1614 1612
                     '</label>
1615 1613
                     </td><td>
1616 1614
                     <input type="text" size="5" id="upload_imageresize_quality" name="upload_imageresize_quality" value="',
1617
-                        isset($_SESSION['settings']['upload_imageresize_quality']) ? $_SESSION['settings']['upload_imageresize_quality'] :
1618
-                        '90', '" class="text ui-widget-content upl_img_opt" onchange="updateSetting($(this).attr(\'id\'));" />
1615
+                        isset($_SESSION['settings']['upload_imageresize_quality']) ? $_SESSION['settings']['upload_imageresize_quality'] : '90', '" class="text ui-widget-content upl_img_opt" onchange="updateSetting($(this).attr(\'id\'));" />
1619 1616
                 </td></tr>';
1620 1617
 echo '
1621 1618
                 <tr><td colspan="3"><hr /></td></tr>';
Please login to merge, or discard this patch.
views_logs.load.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             "sAjaxSource": "sources/datatable/datatable.logs.php?action=connections",
66 66
             "bJQueryUI": true,
67 67
             "oLanguage": {
68
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
68
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
69 69
             },
70 70
             "fnInitComplete": function() {
71 71
                 $("#t_connections_page input").focus();
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             "sAjaxSource": "sources/datatable/datatable.logs.php?action=errors",
83 83
             "bJQueryUI": true,
84 84
             "oLanguage": {
85
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
85
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
86 86
             },
87 87
             "fnInitComplete": function() {
88 88
                 $("#t_errors_page input").focus();
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             "sAjaxSource": "sources/datatable/datatable.logs.php?action=access",
100 100
             "bJQueryUI": true,
101 101
             "oLanguage": {
102
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
102
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
103 103
             },
104 104
             "fnInitComplete": function() {
105 105
                 $("#t_access_page input").focus();
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             "sAjaxSource": "sources/datatable/datatable.logs.php?action=copy",
117 117
             "bJQueryUI": true,
118 118
             "oLanguage": {
119
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
119
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
120 120
             },
121 121
             "fnInitComplete": function() {
122 122
                 $("#t_copy_page input").focus();
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             "sAjaxSource": "sources/datatable/datatable.logs.php?action=admin",
134 134
             "bJQueryUI": true,
135 135
             "oLanguage": {
136
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
136
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
137 137
             },
138 138
             "fnInitComplete": function() {
139 139
                 $("#t_admin_page input").focus();
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             "sAjaxSource": "sources/datatable/datatable.logs.php?action=items",
151 151
             "bJQueryUI": true,
152 152
             "oLanguage": {
153
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
153
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
154 154
             },
155 155
             "fnInitComplete": function() {
156 156
                 $("#t_items_page input").focus();
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             "sAjaxSource": "sources/datatable/datatable.logs.php?action=failed_auth",
168 168
             "bJQueryUI": true,
169 169
             "oLanguage": {
170
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
170
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
171 171
             },
172 172
             "fnInitComplete": function() {
173 173
                 $("#t_items_page input").focus();
@@ -194,14 +194,14 @@  discard block
 block discarded – undo
194 194
         autoOpen: false,
195 195
         width: 400,
196 196
         height: 150,
197
-        title: "<?php echo $LANG["admin_action"];?>",
197
+        title: "<?php echo $LANG["admin_action"]; ?>",
198 198
         buttons: {
199
-            "<?php echo $LANG["ok"];?>": function() {
199
+            "<?php echo $LANG["ok"]; ?>": function() {
200 200
                 $.post(
201 201
                     "sources/users.queries.php",
202 202
                     {
203 203
                         type   : "disconnect_all_users",
204
-                        key    : "<?php echo $_SESSION["key"];?>"
204
+                        key    : "<?php echo $_SESSION["key"]; ?>"
205 205
                     },
206 206
                     function(data) {
207 207
                         oTable2.fnDraw(false);
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                     }
210 210
                 );
211 211
             },
212
-            "<?php echo $LANG["cancel_button"];?>": function() {
212
+            "<?php echo $LANG["cancel_button"]; ?>": function() {
213 213
                 $(this).dialog("close");
214 214
             }
215 215
         }
@@ -220,9 +220,9 @@  discard block
 block discarded – undo
220 220
     */
221 221
     $("#butPurge").button().click(function(e) {
222 222
         // prepare dialogbox
223
-        $("#div_dialog_message").dialog("option", "title", "<?php echo $LANG['admin_main'];?>");
223
+        $("#div_dialog_message").dialog("option", "title", "<?php echo $LANG['admin_main']; ?>");
224 224
         $("#div_dialog_message").dialog("option", "buttons", {
225
-            "<?php echo $LANG['ok'];?>": function() {
225
+            "<?php echo $LANG['ok']; ?>": function() {
226 226
                 $(this).dialog("close");
227 227
             }
228 228
         });
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
             },
239 239
             function(data) {
240 240
                 if (data[0].status == "ok") {
241
-                    $("#div_dialog_message_text").html("<?php echo $LANG['purge_done'];?> "+data[0].nb);
241
+                    $("#div_dialog_message_text").html("<?php echo $LANG['purge_done']; ?> "+data[0].nb);
242 242
                     $("#div_dialog_message").dialog("open");
243 243
                     // refresh table
244 244
                     if ($("#type_log_displayed").val() == "connections_logs") oTable0.api().ajax.reload();
Please login to merge, or discard this patch.
folders.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
 
160 160
     <label for="edit_parent_id" class="label_cpm">'.$LANG['group_parent'].'</label>
161 161
     <select id="edit_parent_id" class="input_text text ui-widget-content ui-corner-all">'.
162
-		$droplist.'
162
+        $droplist.'
163 163
     </select>
164 164
 
165 165
     <label for="edit_folder_complexite" class="label_cpm">'.$LANG['complex_asked'].'</label>
Please login to merge, or discard this patch.
admin.settings_duo.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -56,9 +56,9 @@  discard block
 block discarded – undo
56 56
 if (file_exists($filename)) {
57 57
     //copy some constants from this existing file
58 58
     $settingsFile = file($filename);
59
-    while (list($key,$val) = each($settingsFile)) {
60
-        if (substr_count($val, 'require_once "')>0 && substr_count($val, 'sk.php')>0) {
61
-            $tmp_skfile = substr($val, 14, strpos($val, '";')-14);
59
+    while (list($key, $val) = each($settingsFile)) {
60
+        if (substr_count($val, 'require_once "') > 0 && substr_count($val, 'sk.php') > 0) {
61
+            $tmp_skfile = substr($val, 14, strpos($val, '";') - 14);
62 62
         }
63 63
     }
64 64
 }
@@ -66,18 +66,18 @@  discard block
 block discarded – undo
66 66
 // read SK.PHP file
67 67
 $tmp_akey = $tmp_ikey = $tmp_skey = $tmp_host = "";
68 68
 $skFile = file($tmp_skfile);
69
-while (list($key,$val) = each($skFile)) {
70
-    if (substr_count($val, "@define('AKEY'")>0) {
71
-        $tmp_akey = substr($val, 17, strpos($val, '")')-17);
69
+while (list($key, $val) = each($skFile)) {
70
+    if (substr_count($val, "@define('AKEY'") > 0) {
71
+        $tmp_akey = substr($val, 17, strpos($val, '")') - 17);
72 72
     } else
73
-    if (substr_count($val, "@define('IKEY'")>0) {
74
-        $tmp_ikey = substr($val, 17, strpos($val, '")')-17);
73
+    if (substr_count($val, "@define('IKEY'") > 0) {
74
+        $tmp_ikey = substr($val, 17, strpos($val, '")') - 17);
75 75
     } else
76
-    if (substr_count($val, "@define('SKEY'")>0) {
77
-        $tmp_skey = substr($val, 17, strpos($val, '")')-17);
76
+    if (substr_count($val, "@define('SKEY'") > 0) {
77
+        $tmp_skey = substr($val, 17, strpos($val, '")') - 17);
78 78
     } else
79
-    if (substr_count($val, "@define('HOST'")>0) {
80
-        $tmp_host = substr($val, 17, strpos($val, '")')-17);
79
+    if (substr_count($val, "@define('HOST'") > 0) {
80
+        $tmp_host = substr($val, 17, strpos($val, '")') - 17);
81 81
     }
82 82
 }
83 83
 echo '
Please login to merge, or discard this patch.
favorites.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         </tr></thead>
36 36
         <tbody>';
37 37
     //Get favourites
38
-    $cpt= 0 ;
38
+    $cpt = 0;
39 39
     foreach ($_SESSION['favourites'] as $fav) {
40 40
         if (!empty($fav)) {
41 41
             $data = DB::queryFirstRow(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             );
48 48
             if (!empty($data['label'])) {
49 49
                 echo '
50
-                    <tr class="ligne'.($cpt%2).'" id="row-'.$data['id'].'">
50
+                    <tr class="ligne'.($cpt % 2).'" id="row-'.$data['id'].'">
51 51
                         <td>
52 52
                             <i class="fa fa-external-link" onClick="javascript:window.location.href = \'index.php?page=items&amp;group='.$data['id_tree'].'&amp;id='.$data['id'].'\';" style="cursor:pointer; font-size:18px;"></i>
53 53
                             &nbsp;
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                         </td>
56 56
                         <td align="left">'.stripslashes($data['label']).'</td>
57 57
                         <td align="center">'.stripslashes($data['description']).'</td>
58
-                        <td align="center">',$data['title'] == $_SESSION['user_id']?$_SESSION['login']:$data['title'],'</td>
58
+                        <td align="center">',$data['title'] == $_SESSION['user_id'] ? $_SESSION['login'] : $data['title'], '</td>
59 59
                     </tr>';
60 60
                 $cpt++;
61 61
             }
Please login to merge, or discard this patch.
views_database.load.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             {
35 35
                 type    : "free_item_for_edition",
36 36
                 id      : id,
37
-                key     : "<?php echo $_SESSION["key"];?>"
37
+                key     : "<?php echo $_SESSION["key"]; ?>"
38 38
             },
39 39
             function(data) {
40 40
                 oTable1.fnDraw(false);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 {
47 47
                     type    : "disconnect_user",
48 48
                     user_id : id,
49
-                    key     : "<?php echo $_SESSION["key"];?>"
49
+                    key     : "<?php echo $_SESSION["key"]; ?>"
50 50
                 },
51 51
                 function(data) {
52 52
                     oTable2.fnDraw(false);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             "sAjaxSource": "sources/datatable/datatable.item_edition.php",
87 87
             "bJQueryUI": true,
88 88
             "oLanguage": {
89
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
89
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
90 90
             },
91 91
             "fnInitComplete": function() {
92 92
                 $("#items_edited_page input").focus();
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             "sAjaxSource": "sources/datatable/datatable.users_logged.php",
103 103
             "bJQueryUI": true,
104 104
             "oLanguage": {
105
-                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
105
+                "sUrl": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
106 106
             },
107 107
             "fnInitComplete": function() {
108 108
                 $("#t_users_logged_page input").focus();
@@ -121,14 +121,14 @@  discard block
 block discarded – undo
121 121
         autoOpen: false,
122 122
         width: 400,
123 123
         height: 150,
124
-        title: "<?php echo $LANG["admin_action"];?>",
124
+        title: "<?php echo $LANG["admin_action"]; ?>",
125 125
         buttons: {
126
-            "<?php echo $LANG["ok"];?>": function() {
126
+            "<?php echo $LANG["ok"]; ?>": function() {
127 127
                 $.post(
128 128
                     "sources/users.queries.php",
129 129
                     {
130 130
                         type   : "disconnect_all_users",
131
-                        key    : "<?php echo $_SESSION["key"];?>"
131
+                        key    : "<?php echo $_SESSION["key"]; ?>"
132 132
                     },
133 133
                     function(data) {
134 134
                         oTable2.fnDraw(false);
@@ -136,14 +136,14 @@  discard block
 block discarded – undo
136 136
                     }
137 137
                 );
138 138
             },
139
-            "<?php echo $LANG["cancel_button"];?>": function() {
139
+            "<?php echo $LANG["cancel_button"]; ?>": function() {
140 140
                 $(this).dialog("close");
141 141
             }
142 142
         }
143 143
     });
144 144
 
145 145
     $("#but_disconnect_all_users").click(function() {
146
-        $("#div_dialog_message_text").html("<?php echo $LANG["disconnect_all_users_sure"];?>");
146
+        $("#div_dialog_message_text").html("<?php echo $LANG["disconnect_all_users_sure"]; ?>");
147 147
         $("#div_dialog_message").dialog("open");
148 148
     });
149 149
 });
Please login to merge, or discard this patch.
api/index.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,38 +19,38 @@
 block discarded – undo
19 19
 header('Content-Type: application/json');
20 20
 
21 21
 if (teampass_api_enabled() != "1") {
22
-  echo '{"err":"API access not allowed."}';
23
-  exit;
22
+    echo '{"err":"API access not allowed."}';
23
+    exit;
24 24
 }
25 25
 
26 26
 teampass_whitelist();
27 27
 
28 28
 if (!isset($_GET['apikey'])) {
29
-  rest_error('UNKNOWN');
29
+    rest_error('UNKNOWN');
30 30
 } else {
31
-  $GLOBALS['apikey'] = $_GET['apikey'];
31
+    $GLOBALS['apikey'] = $_GET['apikey'];
32 32
 }
33 33
 
34 34
 $method = $_SERVER['REQUEST_METHOD'];
35 35
 $request = explode("/", substr(@$_SERVER['PATH_INFO'], 1));
36 36
 
37 37
 switch ($method) {
38
-  case 'GET':
38
+    case 'GET':
39 39
     rest_get();
40 40
     break;
41
-  case 'PUT':
41
+    case 'PUT':
42 42
     rest_put();
43 43
     break;
44
-  case 'DELETE':
44
+    case 'DELETE':
45 45
     rest_delete();
46 46
     break;
47
-  case 'HEAD':
47
+    case 'HEAD':
48 48
     rest_head();
49 49
     break;
50
-  case 'NEWUSER':
50
+    case 'NEWUSER':
51 51
     rest_newuser();
52 52
     break;
53
-  default:
53
+    default:
54 54
     rest_error('UNKNOWN');
55 55
     break;
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
users.load.php 1 patch
Spacing   +109 added lines, -109 removed lines patch added patch discarded remove patch
@@ -47,24 +47,24 @@  discard block
 block discarded – undo
47 47
         selectedList: 7,
48 48
         minWidth: 550,
49 49
         height: 145,
50
-        checkAllText: "<?php echo $LANG['check_all_text'];?>",
51
-        uncheckAllText: "<?php echo $LANG['uncheck_all_text'];?>"
50
+        checkAllText: "<?php echo $LANG['check_all_text']; ?>",
51
+        uncheckAllText: "<?php echo $LANG['uncheck_all_text']; ?>"
52 52
     });
53 53
     $("#new_is_admin_by").multiselect({
54 54
         selectedList: 7,
55 55
         multiple:false,
56 56
         minWidth: 550,
57 57
         height: 145,
58
-        checkAllText: "<?php echo $LANG['check_all_text'];?>",
59
-        uncheckAllText: "<?php echo $LANG['uncheck_all_text'];?>"
58
+        checkAllText: "<?php echo $LANG['check_all_text']; ?>",
59
+        uncheckAllText: "<?php echo $LANG['uncheck_all_text']; ?>"
60 60
     });
61 61
     $("#share_rights_from, #share_rights_to").multiselect({
62 62
         selectedList: 7,
63 63
         multiple:false,
64 64
         minWidth: 350,
65 65
         height: 145,
66
-        checkAllText: "<?php echo $LANG['check_all_text'];?>",
67
-        uncheckAllText: "<?php echo $LANG['uncheck_all_text'];?>"
66
+        checkAllText: "<?php echo $LANG['check_all_text']; ?>",
67
+        uncheckAllText: "<?php echo $LANG['uncheck_all_text']; ?>"
68 68
     });
69 69
 
70 70
     //Launch the datatables pluggin
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
             }
82 82
         },
83 83
         "language": {
84
-            "url": "includes/language/datatables.<?php echo $_SESSION['user_language'];?>.txt"
84
+            "url": "includes/language/datatables.<?php echo $_SESSION['user_language']; ?>.txt"
85 85
         },
86 86
         "columns": [
87 87
             {"width": "13%", className: "dt-body-left"},
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
                     type    : tmp[1],
140 140
                     value   : tmp[2],
141 141
                     id      : tmp[0],
142
-                    key        : "<?php echo $_SESSION['key'];?>"
142
+                    key        : "<?php echo $_SESSION['key']; ?>"
143 143
                 },
144 144
                 function(data) {
145
-                    data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key'];?>");
145
+                    data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key']; ?>");
146 146
                     $("#div_loading").hide();
147 147
 
148 148
                     // manage not allowed
@@ -170,35 +170,35 @@  discard block
 block discarded – undo
170 170
     $("#change_user_pw_newpw").simplePassMeter({
171 171
         "requirements": {},
172 172
           "container": "#pw_strength",
173
-          "defaultText" : "<?php echo $LANG['index_pw_level_txt'];?>",
173
+          "defaultText" : "<?php echo $LANG['index_pw_level_txt']; ?>",
174 174
         "ratings": [
175 175
             {"minScore": 0,
176 176
                 "className": "meterFail",
177
-                "text": "<?php echo $LANG['complex_level0'];?>"
177
+                "text": "<?php echo $LANG['complex_level0']; ?>"
178 178
             },
179 179
             {"minScore": 25,
180 180
                 "className": "meterWarn",
181
-                "text": "<?php echo $LANG['complex_level1'];?>"
181
+                "text": "<?php echo $LANG['complex_level1']; ?>"
182 182
             },
183 183
             {"minScore": 50,
184 184
                 "className": "meterWarn",
185
-                "text": "<?php echo $LANG['complex_level2'];?>"
185
+                "text": "<?php echo $LANG['complex_level2']; ?>"
186 186
             },
187 187
             {"minScore": 60,
188 188
                 "className": "meterGood",
189
-                "text": "<?php echo $LANG['complex_level3'];?>"
189
+                "text": "<?php echo $LANG['complex_level3']; ?>"
190 190
             },
191 191
             {"minScore": 70,
192 192
                 "className": "meterGood",
193
-                "text": "<?php echo $LANG['complex_level4'];?>"
193
+                "text": "<?php echo $LANG['complex_level4']; ?>"
194 194
             },
195 195
             {"minScore": 80,
196 196
                 "className": "meterExcel",
197
-                "text": "<?php echo $LANG['complex_level5'];?>"
197
+                "text": "<?php echo $LANG['complex_level5']; ?>"
198 198
             },
199 199
             {"minScore": 90,
200 200
                 "className": "meterExcel",
201
-                "text": "<?php echo $LANG['complex_level6'];?>"
201
+                "text": "<?php echo $LANG['complex_level6']; ?>"
202 202
             }
203 203
         ]
204 204
     });
@@ -214,13 +214,13 @@  discard block
 block discarded – undo
214 214
         autoOpen: false,
215 215
         width: 400,
216 216
         height: 400,
217
-        title: "<?php echo $LANG['change_user_functions_title'];?>",
217
+        title: "<?php echo $LANG['change_user_functions_title']; ?>",
218 218
         buttons: {
219
-            "<?php echo $LANG['save_button'];?>": function() {
219
+            "<?php echo $LANG['save_button']; ?>": function() {
220 220
                 Change_user_rights(document.getElementById("selected_user").value,"functions");
221 221
                 $(this).dialog("close");
222 222
             },
223
-            "<?php echo $LANG['cancel_button'];?>": function() {
223
+            "<?php echo $LANG['cancel_button']; ?>": function() {
224 224
                 $(this).dialog("close");
225 225
             }
226 226
         }
@@ -232,13 +232,13 @@  discard block
 block discarded – undo
232 232
         autoOpen: false,
233 233
         width: 400,
234 234
         height: 400,
235
-        title: "<?php echo $LANG['change_user_autgroups_title'];?>",
235
+        title: "<?php echo $LANG['change_user_autgroups_title']; ?>",
236 236
         buttons: {
237
-            "<?php echo $LANG['save_button'];?>": function() {
237
+            "<?php echo $LANG['save_button']; ?>": function() {
238 238
                 Change_user_rights(document.getElementById("selected_user").value,"autgroups");
239 239
                 $(this).dialog("close");
240 240
             },
241
-            "<?php echo $LANG['cancel_button'];?>": function() {
241
+            "<?php echo $LANG['cancel_button']; ?>": function() {
242 242
                 $(this).dialog("close");
243 243
             }
244 244
         }
@@ -250,13 +250,13 @@  discard block
 block discarded – undo
250 250
         autoOpen: false,
251 251
         width: 400,
252 252
         height: 400,
253
-        title: "<?php echo $LANG['change_user_forgroups_title'];?>",
253
+        title: "<?php echo $LANG['change_user_forgroups_title']; ?>",
254 254
         buttons: {
255
-            "<?php echo $LANG['save_button'];?>": function() {
255
+            "<?php echo $LANG['save_button']; ?>": function() {
256 256
                 Change_user_rights(document.getElementById("selected_user").value,"forgroups");
257 257
                 $(this).dialog("close");
258 258
             },
259
-            "<?php echo $LANG['cancel_button'];?>": function() {
259
+            "<?php echo $LANG['cancel_button']; ?>": function() {
260 260
                 $(this).dialog("close");
261 261
             }
262 262
         }
@@ -268,21 +268,21 @@  discard block
 block discarded – undo
268 268
         autoOpen: false,
269 269
         width: 400,
270 270
         height: 200,
271
-        title: "<?php echo $LANG['is_administrated_by_role'];?>",
271
+        title: "<?php echo $LANG['is_administrated_by_role']; ?>",
272 272
         buttons: {
273
-            "<?php echo $LANG['save_button'];?>": function() {
273
+            "<?php echo $LANG['save_button']; ?>": function() {
274 274
                 $.post(
275 275
                     "sources/users.queries.php",
276 276
                     {
277 277
                         type    :"change_user_adminby",
278 278
                         userId : $("#selected_user").val(),
279 279
                         isAdministratedByRole : $("#user_admin_by").val(),
280
-                        key    : "<?php echo $_SESSION['key'];?>"
280
+                        key    : "<?php echo $_SESSION['key']; ?>"
281 281
                     },
282 282
                     function(data) {
283 283
                         if ($("#user_admin_by").val() == "0") {
284 284
                             $("#list_adminby_"+$("#selected_user").val()).
285
-                            html("<?php echo $LANG['admin_small'];?>");
285
+                            html("<?php echo $LANG['admin_small']; ?>");
286 286
                         } else {
287 287
                             $("#list_adminby_"+$("#selected_user").val()).
288 288
                             html($("#user_admin_by option:selected").text().match(/"([^"]+)"/)[1]);
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
                     }
292 292
                )
293 293
             },
294
-            "<?php echo $LANG['cancel_button'];?>": function() {
294
+            "<?php echo $LANG['cancel_button']; ?>": function() {
295 295
                 $(this).dialog("close");
296 296
             }
297 297
         }
@@ -303,13 +303,13 @@  discard block
 block discarded – undo
303 303
         autoOpen: false,
304 304
         width: 590,
305 305
         height: 620,
306
-        title: "<?php echo $LANG['new_user_title'];?>",
306
+        title: "<?php echo $LANG['new_user_title']; ?>",
307 307
         buttons: {
308
-            "<?php echo $LANG['save_button'];?>": function() {
308
+            "<?php echo $LANG['save_button']; ?>": function() {
309 309
                 if ($("#new_login").val() == "" || $("#new_pwd").val()=="" || $("#new_email").val()=="") {
310
-                    $("#add_new_user_error").show(1).html("<?php echo $LANG['error_must_enter_all_fields'];?>").delay(1000).fadeOut(1000);
310
+                    $("#add_new_user_error").show(1).html("<?php echo $LANG['error_must_enter_all_fields']; ?>").delay(1000).fadeOut(1000);
311 311
                 } else {
312
-                    $("#add_new_user_info").show().html("<span class=\'fa fa-cog fa-spin fa-lg\'></span>&nbsp;<?php echo $LANG['please_wait'];?>");
312
+                    $("#add_new_user_info").show().html("<span class=\'fa fa-cog fa-spin fa-lg\'></span>&nbsp;<?php echo $LANG['please_wait']; ?>");
313 313
 
314 314
                     // get lists
315 315
                     var forbidFld = "", authFld = "", groups = "";
@@ -344,8 +344,8 @@  discard block
 block discarded – undo
344 344
                         "sources/users.queries.php",
345 345
                         {
346 346
                             type    :"add_new_user",
347
-                            data     : prepareExchangedData(data, "encode", "<?php echo $_SESSION['key'];?>"),
348
-                            key    : "<?php echo $_SESSION['key'];?>"
347
+                            data     : prepareExchangedData(data, "encode", "<?php echo $_SESSION['key']; ?>"),
348
+                            key    : "<?php echo $_SESSION['key']; ?>"
349 349
                         },
350 350
                         function(data) {
351 351
                             $("#add_new_user_info").hide().html("");
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
                    )
367 367
                 }
368 368
             },
369
-            "<?php echo $LANG['cancel_button'];?>": function() {
369
+            "<?php echo $LANG['cancel_button']; ?>": function() {
370 370
                 $(this).dialog("close");
371 371
             }
372 372
         }
@@ -378,16 +378,16 @@  discard block
 block discarded – undo
378 378
         autoOpen: false,
379 379
         width: 400,
380 380
         height: 150,
381
-        title: "<?php echo $LANG['admin_action'];?>",
381
+        title: "<?php echo $LANG['admin_action']; ?>",
382 382
         buttons: {
383
-            "<?php echo $LANG['ok'];?>": function() {
383
+            "<?php echo $LANG['ok']; ?>": function() {
384 384
                 $.post(
385 385
                     "sources/users.queries.php",
386 386
                     {
387 387
                         type    : "delete_user",
388 388
                         id        : $("#delete_user_id").val(),
389 389
                         action    : $("#delete_user_action").val(),
390
-                        key        : "<?php echo $_SESSION['key'];?>"
390
+                        key        : "<?php echo $_SESSION['key']; ?>"
391 391
                     },
392 392
                     function(data) {
393 393
                         window.location.href = "index.php?page=manage_users";
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
                     "json"
396 396
                );
397 397
             },
398
-            "<?php echo $LANG['cancel_button'];?>": function() {
398
+            "<?php echo $LANG['cancel_button']; ?>": function() {
399 399
                 $(this).dialog("close");
400 400
             }
401 401
         }
@@ -407,9 +407,9 @@  discard block
 block discarded – undo
407 407
         autoOpen: false,
408 408
         width: 380,
409 409
         height: 300,
410
-        title: "<?php echo $LANG['admin_action'];?>",
410
+        title: "<?php echo $LANG['admin_action']; ?>",
411 411
         buttons: {
412
-            "<?php echo $LANG['pw_generate'];?>": function() {
412
+            "<?php echo $LANG['pw_generate']; ?>": function() {
413 413
                 $("#generated_user_pw").html("");
414 414
                 $("#change_user_pw_wait").show();
415 415
                 $.post(
@@ -437,19 +437,19 @@  discard block
 block discarded – undo
437 437
                         }
438 438
                    );
439 439
             },
440
-            "<?php echo $LANG['save_button'];?>": function() {
440
+            "<?php echo $LANG['save_button']; ?>": function() {
441 441
                 if ($("#change_user_pw_newpw_confirm").val() === "" || $("#change_user_pw_newpw").val() === "") {
442 442
                 // check if empty
443
-                    $("#change_user_pw_error").html("<?php echo $LANG['error_must_enter_all_fields'];?>").show(1).delay(1000).fadeOut(1000);
443
+                    $("#change_user_pw_error").html("<?php echo $LANG['error_must_enter_all_fields']; ?>").show(1).delay(1000).fadeOut(1000);
444 444
                 } else if ($("#change_user_pw_newpw").val() === $("#change_user_pw_newpw_confirm").val()) {
445 445
                 // check if egual
446
-                    var data = "{\"new_pw\":\""+sanitizeString($("#change_user_pw_newpw").val())+"\" , \"user_id\":\""+$("#change_user_pw_id").val()+"\" , \"key\":\"<?php echo $_SESSION['key'];?>\"}";
446
+                    var data = "{\"new_pw\":\""+sanitizeString($("#change_user_pw_newpw").val())+"\" , \"user_id\":\""+$("#change_user_pw_id").val()+"\" , \"key\":\"<?php echo $_SESSION['key']; ?>\"}";
447 447
                     $.post(
448 448
                         "sources/main.queries.php",
449 449
                         {
450 450
                             type    : "change_pw",
451 451
                             change_pw_origine    : "admin_change",
452
-                            data    : prepareExchangedData(data, "encode", "<?php echo $_SESSION['key'];?>")
452
+                            data    : prepareExchangedData(data, "encode", "<?php echo $_SESSION['key']; ?>")
453 453
                         },
454 454
                         function(data) {
455 455
                             if (data[0].error == "none") {
@@ -465,10 +465,10 @@  discard block
 block discarded – undo
465 465
                         "json"
466 466
                    );
467 467
                 } else {
468
-                    $("#change_user_pw_error").html("<?php echo $LANG['error_password_confirmation'];?>").show(1).delay(1000).fadeOut(1000);
468
+                    $("#change_user_pw_error").html("<?php echo $LANG['error_password_confirmation']; ?>").show(1).delay(1000).fadeOut(1000);
469 469
                 }
470 470
             },
471
-            "<?php echo $LANG['cancel_button'];?>": function() {
471
+            "<?php echo $LANG['cancel_button']; ?>": function() {
472 472
                 $("#change_user_pw_newpw_confirm, #change_user_pw_newpw").val("");
473 473
                 $(this).dialog("close");
474 474
             }
@@ -485,9 +485,9 @@  discard block
 block discarded – undo
485 485
         autoOpen: false,
486 486
         width: 850,
487 487
         height: 500,
488
-        title: "<?php echo $LANG["logs"];?>",
488
+        title: "<?php echo $LANG["logs"]; ?>",
489 489
         buttons: {
490
-            "<?php echo $LANG['cancel_button'];?>": function() {
490
+            "<?php echo $LANG['cancel_button']; ?>": function() {
491 491
                 $("#span_user_activity_option").hide();
492 492
                 $("#activity").val(0);
493 493
                 $("#tbody_logs").empty();
@@ -522,9 +522,9 @@  discard block
 block discarded – undo
522 522
         autoOpen: false,
523 523
         width: 400,
524 524
         height: 200,
525
-        title: "<?php echo $LANG['admin_action'];?>",
525
+        title: "<?php echo $LANG['admin_action']; ?>",
526 526
         buttons: {
527
-            "<?php echo $LANG['cancel_button'];?>": function() {
527
+            "<?php echo $LANG['cancel_button']; ?>": function() {
528 528
                 $(this).dialog("close");
529 529
             }
530 530
         }
@@ -536,10 +536,10 @@  discard block
 block discarded – undo
536 536
         autoOpen: false,
537 537
         width: 400,
538 538
         height: 280,
539
-        title: "<?php echo $LANG['admin_action'];?>",
539
+        title: "<?php echo $LANG['admin_action']; ?>",
540 540
         buttons: {
541
-            "<?php echo $LANG['save_button'];?>": function() {
542
-                $("#user_edit_login_dialog_message").html("<?php echo $LANG['please_wait'];?>");
541
+            "<?php echo $LANG['save_button']; ?>": function() {
542
+                $("#user_edit_login_dialog_message").html("<?php echo $LANG['please_wait']; ?>");
543 543
                 $.post(
544 544
                     "sources/users.queries.php",
545 545
                     {
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
                         login   : $("#edit_login").val(),
549 549
                         name    : $("#edit_name").val(),
550 550
                         lastname: $("#edit_lastname").val(),
551
-                        key     : "<?php echo $_SESSION['key'];?>"
551
+                        key     : "<?php echo $_SESSION['key']; ?>"
552 552
                     },
553 553
                     function(data) {
554 554
                         $("#name_"+$("#selected_user").html()).html($("#edit_name").val());
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
                     }
559 559
                 );
560 560
             },
561
-            "<?php echo $LANG['cancel_button'];?>": function() {
561
+            "<?php echo $LANG['cancel_button']; ?>": function() {
562 562
                 $(this).dialog("close");
563 563
             }
564 564
         },
@@ -611,9 +611,9 @@  discard block
 block discarded – undo
611 611
         autoOpen: false,
612 612
         width: 400,
613 613
         height: 200,
614
-        title: "<?php echo $LANG['admin_action'];?>",
614
+        title: "<?php echo $LANG['admin_action']; ?>",
615 615
         buttons: {
616
-            "<?php echo $LANG['cancel_button'];?>": function() {
616
+            "<?php echo $LANG['cancel_button']; ?>": function() {
617 617
                 $(this).dialog("close");
618 618
             }
619 619
         }
@@ -625,20 +625,20 @@  discard block
 block discarded – undo
625 625
         autoOpen: false,
626 626
         width: 600,
627 627
         height: 550,
628
-        title: "<?php echo $LANG['dialog_admin_user_edit_title'];?>",
628
+        title: "<?php echo $LANG['dialog_admin_user_edit_title']; ?>",
629 629
         open:  function() {
630 630
             $("#user_edit_functions_list, #user_edit_managedby, #user_edit_auth, #user_edit_forbid").empty();
631
-            $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button'];?>')").button("disable");
631
+            $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button']; ?>')").button("disable");
632 632
             $.post(
633 633
                 "sources/users.queries.php",
634 634
                 {
635 635
                     type : "get_user_info",
636 636
                     id   : $('#user_edit_id').val(),
637
-                    key  : "<?php echo $_SESSION['key'];?>"
637
+                    key  : "<?php echo $_SESSION['key']; ?>"
638 638
                 },
639 639
                 function(data) {
640 640
                     if (data.error == "no") {
641
-                        $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button'];?>')").button("enable");
641
+                        $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button']; ?>')").button("enable");
642 642
 
643 643
                         $("#user_edit_login").val(data.log);
644 644
                         $("#user_edit_name").val(data.name);
@@ -652,8 +652,8 @@  discard block
 block discarded – undo
652 652
                         $("#user_edit_managedby").append(data.managedby);
653 653
                         $("#user_edit_managedby").multiselect({
654 654
                             multiple: false,
655
-                            header: "<?php echo $LANG['select'];?>",
656
-                            noneSelectedText: "<?php echo $LANG['select'];?>",
655
+                            header: "<?php echo $LANG['select']; ?>",
656
+                            noneSelectedText: "<?php echo $LANG['select']; ?>",
657 657
                             selectedList: 1
658 658
                         }, 'refresh');
659 659
 
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
                         $("#user_edit_wait").hide();
667 667
                         $("#user_edit_div").show();
668 668
                     } else {
669
-                        $("#user_edit_error").html("<?php echo $LANG['error_unknown'];?>")
669
+                        $("#user_edit_error").html("<?php echo $LANG['error_unknown']; ?>")
670 670
                         $("#user_edit_wait").hide();
671 671
                         $("#user_edit_div").show();
672 672
                     }
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
             $("#user_edit_error, #user_edit_warning_bottom").hide().html("");
678 678
         },
679 679
         buttons: {
680
-            "<?php echo $LANG['save_button'];?>": function() {
680
+            "<?php echo $LANG['save_button']; ?>": function() {
681 681
                 var functions = managedby = allowFld = forbidFld = action_on_user = "";
682 682
                 // manage the multiselect boxes
683 683
                 $("#user_edit_functions_list option:selected").each(function () {
@@ -718,8 +718,8 @@  discard block
 block discarded – undo
718 718
                     {
719 719
                         type    : "store_user_changes",
720 720
                         id      : $('#user_edit_id').val(),
721
-                        data    : prepareExchangedData(data, "encode", "<?php echo $_SESSION['key'];?>"),
722
-                        key     : "<?php echo $_SESSION['key'];?>"
721
+                        data    : prepareExchangedData(data, "encode", "<?php echo $_SESSION['key']; ?>"),
722
+                        key     : "<?php echo $_SESSION['key']; ?>"
723 723
                     },
724 724
                     function(data) {
725 725
                         if (data[0].error == "no") {
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
                     "json"
733 733
                 );
734 734
             },
735
-            "<?php echo $LANG['cancel_button'];?>": function() {
735
+            "<?php echo $LANG['cancel_button']; ?>": function() {
736 736
                 $("#user_edit_error, #user_edit_warning_bottom").hide().html("");
737 737
                 $(this).dialog("close");
738 738
             }
@@ -746,25 +746,25 @@  discard block
 block discarded – undo
746 746
         autoOpen: false,
747 747
         width: 600,
748 748
         height: 400,
749
-        title: "<?php echo $LANG['share_user_rights'];?>",
749
+        title: "<?php echo $LANG['share_user_rights']; ?>",
750 750
         open:  function() {
751
-            $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button'];?>')").button("disable");
751
+            $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button']; ?>')").button("disable");
752 752
             $.post(
753 753
                 "sources/users.queries.php",
754 754
                 {
755 755
                     type : "get_list_of_users_for_sharing",
756
-                    key  : "<?php echo $_SESSION['key'];?>"
756
+                    key  : "<?php echo $_SESSION['key']; ?>"
757 757
                 },
758 758
                 function(data) {
759
-                    data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key'];?>");
759
+                    data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key']; ?>");
760 760
                     if (data.error === "") {
761
-                        $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button'];?>')").button("enable");
761
+                        $(".ui-dialog-buttonpane button:contains('<?php echo $LANG['save_button']; ?>')").button("enable");
762 762
 
763 763
                         $("#share_rights_from").append(data.users_list_from);
764 764
                         $("#share_rights_from").multiselect({
765 765
                             multiple: false,
766
-                            header: "<?php echo $LANG['select'];?>",
767
-                            noneSelectedText: "<?php echo $LANG['select'];?>",
766
+                            header: "<?php echo $LANG['select']; ?>",
767
+                            noneSelectedText: "<?php echo $LANG['select']; ?>",
768 768
                             selectedList: 1,
769 769
                             maxWidth: "300px;"
770 770
                         }, 'refresh');
@@ -772,15 +772,15 @@  discard block
 block discarded – undo
772 772
                         $("#share_rights_to").append(data.users_list_to);
773 773
                         $("#share_rights_to").multiselect({
774 774
                             multiple: true,
775
-                            header: "<?php echo $LANG['select'];?>",
776
-                            noneSelectedText: "<?php echo $LANG['select'];?>",
775
+                            header: "<?php echo $LANG['select']; ?>",
776
+                            noneSelectedText: "<?php echo $LANG['select']; ?>",
777 777
                             selectedList: 7,
778 778
                             maxWidth: "300px;"
779 779
                         }, 'refresh');
780 780
 
781 781
                         get_user_rights();
782 782
                     } else {
783
-                        $("#share_rights_dialog_error").html("<?php echo $LANG['error_unknown'];?>");
783
+                        $("#share_rights_dialog_error").html("<?php echo $LANG['error_unknown']; ?>");
784 784
                     }
785 785
                 }
786 786
             );
@@ -791,8 +791,8 @@  discard block
 block discarded – undo
791 791
             $("#share_rights_details_ids_1, #share_rights_details_ids_2, #share_rights_details_ids_3, #share_rights_details_ids_4").val("");
792 792
         },
793 793
         buttons: {
794
-            "<?php echo $LANG['save_button'];?>": function() {
795
-                $("#share_rights_dialog_msg").html("<?php echo '<i class=\"fa fa-cog fa-spin fa-2x\"></i>&nbsp;'.$LANG['please_wait'];?>").show();
794
+            "<?php echo $LANG['save_button']; ?>": function() {
795
+                $("#share_rights_dialog_msg").html("<?php echo '<i class=\"fa fa-cog fa-spin fa-2x\"></i>&nbsp;'.$LANG['please_wait']; ?>").show();
796 796
 
797 797
                 // destination users
798 798
                 var destination_ids = '';
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
                         user_fldallowed : $("#share_rights_details_ids_3").val(),
823 823
                         user_fldforbid  : $("#share_rights_details_ids_4").val(),
824 824
                         user_otherrights: $("#share_rights_details_other").val(),
825
-                        key             : "<?php echo $_SESSION['key'];?>"
825
+                        key             : "<?php echo $_SESSION['key']; ?>"
826 826
                     },
827 827
                     function(data) {
828 828
                         $("#share_rights_dialog_msg").hide();
@@ -835,11 +835,11 @@  discard block
 block discarded – undo
835 835
                         // unselect destination users
836 836
                         $("#share_rights_to").multiselect("uncheckAll");
837 837
 
838
-                        $("#share_rights_dialog_msg").html("<?php echo '<i class=\"fa fa-check-circle fa-2x mi-green\"></i>&nbsp;'.$LANG['alert_message_done'];?>").show(0).delay(2000).hide(0);
838
+                        $("#share_rights_dialog_msg").html("<?php echo '<i class=\"fa fa-check-circle fa-2x mi-green\"></i>&nbsp;'.$LANG['alert_message_done']; ?>").show(0).delay(2000).hide(0);
839 839
                     }
840 840
                 );
841 841
             },
842
-            "<?php echo $LANG['cancel_button'];?>": function() {
842
+            "<?php echo $LANG['cancel_button']; ?>": function() {
843 843
                 $(this).dialog("close");
844 844
             }
845 845
         }
@@ -852,9 +852,9 @@  discard block
 block discarded – undo
852 852
         autoOpen: false,
853 853
         width: 380,
854 854
         height: 600,
855
-        title: "<?php echo $LANG['user_s_rights_on_folders'];?>",
855
+        title: "<?php echo $LANG['user_s_rights_on_folders']; ?>",
856 856
         buttons: {
857
-            "<?php echo $LANG['close'];?>": function() {
857
+            "<?php echo $LANG['close']; ?>": function() {
858 858
                 $(this).dialog("close");
859 859
             }
860 860
         },
@@ -866,10 +866,10 @@  discard block
 block discarded – undo
866 866
                 {
867 867
                     type    : "user_folders_rights",
868 868
                     id      : $('#user_folders_rights_dialog_id').val(),
869
-                    key     : "<?php echo $_SESSION['key'];?>"
869
+                    key     : "<?php echo $_SESSION['key']; ?>"
870 870
                 },
871 871
                 function(data) {
872
-                    data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key'];?>");
872
+                    data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key']; ?>");
873 873
                     $("#user_folders_rights_dialog_txt").html(data.html);
874 874
                     $("#user_folders_rights_dialog_wait").hide();
875 875
                 }
@@ -887,10 +887,10 @@  discard block
 block discarded – undo
887 887
         if ($("#confirm_deletion").val() == "") {
888 888
             $("#account_delete").prop("checked", false);
889 889
             $("#confirm_deletion").val("1");
890
-            $("#user_edit_error").show().html("<?php echo $LANG['user_info_delete'];?>");
890
+            $("#user_edit_error").show().html("<?php echo $LANG['user_info_delete']; ?>");
891 891
         } else {
892 892
             $("#user_edit_error").hide().html("");
893
-            $("#user_edit_warning_bottom").show().html("<?php echo $LANG['user_info_delete_warning'];?>");
893
+            $("#user_edit_warning_bottom").show().html("<?php echo $LANG['user_info_delete_warning']; ?>");
894 894
         }
895 895
     } else {
896 896
         $("#confirm_deletion").val("");
@@ -914,7 +914,7 @@  discard block
 block discarded – undo
914 914
             force    : false
915 915
         },
916 916
         function(data) {
917
-            data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key'];?>");
917
+            data = prepareExchangedData(data, "decode", "<?php echo $_SESSION['key']; ?>");
918 918
             if (data.error == "true") {
919 919
                 $("#div_dialog_message_text").html(data.error_msg);
920 920
                 $("#div_dialog_message").dialog("open");
@@ -928,9 +928,9 @@  discard block
 block discarded – undo
928 928
 function action_on_user(id, action)
929 929
 {
930 930
     if (action == "lock") {
931
-        $("#user_action_html").html("<?php echo $LANG['confirm_lock_account'];?>");
931
+        $("#user_action_html").html("<?php echo $LANG['confirm_lock_account']; ?>");
932 932
     } else {
933
-        $("#user_action_html").html("<?php echo $LANG['confirm_del_account'];?>");
933
+        $("#user_action_html").html("<?php echo $LANG['confirm_del_account']; ?>");
934 934
     }
935 935
     $("#delete_user_action").val(action);
936 936
     $("#delete_user_login").val($("#login_"+id).text());
@@ -954,10 +954,10 @@  discard block
 block discarded – undo
954 954
             type    : parameter,
955 955
             value   : new_value,
956 956
             id      : id,
957
-            key        : "<?php echo $_SESSION['key'];?>"
957
+            key        : "<?php echo $_SESSION['key']; ?>"
958 958
         },
959 959
         function(data) {
960
-            $("#div_dialog_message_text").html("<div style=\"font-size:16px; text-align:center;\"><span class=\"ui-icon ui-icon-info\" style=\"float: left; margin-right: .3em;\"></span><?php echo $LANG['alert_message_done'];?></div>");$("#div_dialog_message").dialog("open");
960
+            $("#div_dialog_message_text").html("<div style=\"font-size:16px; text-align:center;\"><span class=\"ui-icon ui-icon-info\" style=\"float: left; margin-right: .3em;\"></span><?php echo $LANG['alert_message_done']; ?></div>");$("#div_dialog_message").dialog("open");
961 961
 
962 962
         }
963 963
    );
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
         {
971 971
             type    : "open_div_"+type,
972 972
             id      : id,
973
-            key        : "<?php echo $_SESSION['key'];?>"
973
+            key        : "<?php echo $_SESSION['key']; ?>"
974 974
         },
975 975
         function(data) {
976 976
             data = $.parseJSON(data);
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
             type    : "change_user_"+type,
1021 1021
             id      : id,
1022 1022
             list    : list,
1023
-            key     : "<?php echo $_SESSION['key'];?>"
1023
+            key     : "<?php echo $_SESSION['key']; ?>"
1024 1024
         },
1025 1025
         function(data) {
1026 1026
             if (type == "functions") {
@@ -1042,7 +1042,7 @@  discard block
 block discarded – undo
1042 1042
         {
1043 1043
             type    : "unlock_account",
1044 1044
             id      : id,
1045
-            key        : "<?php echo $_SESSION['key'];?>"
1045
+            key        : "<?php echo $_SESSION['key']; ?>"
1046 1046
         },
1047 1047
         function(data) {
1048 1048
             document.form_utilisateurs.submit();
@@ -1120,12 +1120,12 @@  discard block
 block discarded – undo
1120 1120
     },
1121 1121
     function(data) {
1122 1122
         if (data[0].error == "0") {
1123
-            $("#manager_dialog_error").html("<div><?php echo $LANG['share_sent_ok'];?></div>");
1123
+            $("#manager_dialog_error").html("<div><?php echo $LANG['share_sent_ok']; ?></div>");
1124 1124
         } else {
1125 1125
             if (data[0].error == "no_email") {
1126
-                $("#manager_dialog_error").html("<?php echo $LANG['error_no_email'];?>");
1126
+                $("#manager_dialog_error").html("<?php echo $LANG['error_no_email']; ?>");
1127 1127
             } else if (data[0].error == "no_user") {
1128
-                $("#manager_dialog_error").html("<?php echo $LANG['error_no_user'];?>");
1128
+                $("#manager_dialog_error").html("<?php echo $LANG['error_no_user']; ?>");
1129 1129
             }
1130 1130
         }
1131 1131
         $("#manager_dialog").dialog('open');
@@ -1178,7 +1178,7 @@  discard block
 block discarded – undo
1178 1178
         {
1179 1179
             type : "get_user_info",
1180 1180
             id   : user_id,
1181
-            key  : "<?php echo $_SESSION['key'];?>"
1181
+            key  : "<?php echo $_SESSION['key']; ?>"
1182 1182
         },
1183 1183
         function(data) {
1184 1184
             if (data.error == "no") {
@@ -1234,7 +1234,7 @@  discard block
 block discarded – undo
1234 1234
                         }
1235 1235
                     }
1236 1236
                 });
1237
-                $("#share_rights_details_3").html(tmp === "" ? "<?php echo $LANG['none'];?>" : tmp);
1237
+                $("#share_rights_details_3").html(tmp === "" ? "<?php echo $LANG['none']; ?>" : tmp);
1238 1238
                 $("#share_rights_details_ids_3").val(tmp2);
1239 1239
 
1240 1240
                 // allowed
@@ -1252,7 +1252,7 @@  discard block
 block discarded – undo
1252 1252
                         }
1253 1253
                     }
1254 1254
                 });
1255
-                $("#share_rights_details_4").html(tmp === "" ? "<?php echo $LANG['none'];?>" : tmp);
1255
+                $("#share_rights_details_4").html(tmp === "" ? "<?php echo $LANG['none']; ?>" : tmp);
1256 1256
                 $("#share_rights_details_ids_4").val(tmp2);
1257 1257
 
1258 1258
                 $("#share_rights_details_other").val(data.gestionnaire + ";" + data.read_only + ";" + data.can_create_root_folder + ";" + data.personal_folder + ";" + data.can_manage_all_users + ";" + data.admin);
@@ -1303,7 +1303,7 @@  discard block
 block discarded – undo
1303 1303
         {
1304 1304
             type    : "is_login_available",
1305 1305
             login   : text,
1306
-            key     : "<?php echo $_SESSION['key'];?>"
1306
+            key     : "<?php echo $_SESSION['key']; ?>"
1307 1307
         },
1308 1308
         function(data) {
1309 1309
             if (data[0].error === "") {
@@ -1320,7 +1320,7 @@  discard block
 block discarded – undo
1320 1320
 
1321 1321
 function aes_decrypt(text)
1322 1322
 {
1323
-    return Aes.Ctr.decrypt(text, "<?php echo $_SESSION['key'];?>", 256);
1323
+    return Aes.Ctr.decrypt(text, "<?php echo $_SESSION['key']; ?>", 256);
1324 1324
 }
1325 1325
 
1326 1326
 function htmlspecialchars_decode (string, quote_style)
Please login to merge, or discard this patch.