Completed
Push — master ( 31f800...a85a13 )
by cam
04:13
created
ecrire/action/etre_webmestre.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 
19 19
 if (!defined('_ECRIRE_INC_VERSION')) {
20
-	return;
20
+    return;
21 21
 }
22 22
 
23 23
 include_spip('inc/actions');
@@ -29,22 +29,22 @@  discard block
 block discarded – undo
29 29
  * @return void
30 30
  */
31 31
 function action_etre_webmestre_dist() {
32
-	$securiser_action = charger_fonction('securiser_action', 'inc');
33
-	$time = $securiser_action();
34
-
35
-	if (time() - $time < 15 * 60
36
-		and $GLOBALS['visiteur_session']['statut'] == '0minirezo'
37
-		and $GLOBALS['visiteur_session']['webmestre'] !== 'oui'
38
-	) {
39
-		$action = _T('info_admin_etre_webmestre');
40
-		$admin = charger_fonction('admin', 'inc');
41
-		// lance la verif par ftp et l'appel
42
-		// a base_etre_webmestre_dist quand c'est OK
43
-		if ($r = $admin('etre_webmestre', $action)) {
44
-			echo $r;
45
-			exit;
46
-		}
47
-	}
32
+    $securiser_action = charger_fonction('securiser_action', 'inc');
33
+    $time = $securiser_action();
34
+
35
+    if (time() - $time < 15 * 60
36
+        and $GLOBALS['visiteur_session']['statut'] == '0minirezo'
37
+        and $GLOBALS['visiteur_session']['webmestre'] !== 'oui'
38
+    ) {
39
+        $action = _T('info_admin_etre_webmestre');
40
+        $admin = charger_fonction('admin', 'inc');
41
+        // lance la verif par ftp et l'appel
42
+        // a base_etre_webmestre_dist quand c'est OK
43
+        if ($r = $admin('etre_webmestre', $action)) {
44
+            echo $r;
45
+            exit;
46
+        }
47
+    }
48 48
 
49 49
 }
50 50
 
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
  * @return void
55 55
  */
56 56
 function base_etre_webmestre_dist() {
57
-	if ($GLOBALS['visiteur_session']['statut'] == '0minirezo' and $GLOBALS['visiteur_session']['webmestre'] !== 'oui') {
58
-		include_spip('action/editer_auteur');
59
-		auteur_instituer($GLOBALS['visiteur_session']['id_auteur'], array('webmestre' => 'oui'), true);
60
-	}
57
+    if ($GLOBALS['visiteur_session']['statut'] == '0minirezo' and $GLOBALS['visiteur_session']['webmestre'] !== 'oui') {
58
+        include_spip('action/editer_auteur');
59
+        auteur_instituer($GLOBALS['visiteur_session']['id_auteur'], array('webmestre' => 'oui'), true);
60
+    }
61 61
 }
Please login to merge, or discard this patch.