[Fusionforge-commits] r11702 - in trunk/src/plugins/wiki/www: lib/WikiUser themes/fusionforge

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Sat Dec 4 20:07:38 CET 2010


Author: vargenau
Date: 2010-12-04 20:07:38 +0100 (Sat, 04 Dec 2010)
New Revision: 11702

Modified:
   trunk/src/plugins/wiki/www/lib/WikiUser/FusionForge.php
   trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php
Log:
Whitespace only

Modified: trunk/src/plugins/wiki/www/lib/WikiUser/FusionForge.php
===================================================================
--- trunk/src/plugins/wiki/www/lib/WikiUser/FusionForge.php	2010-12-03 19:28:36 UTC (rev 11701)
+++ trunk/src/plugins/wiki/www/lib/WikiUser/FusionForge.php	2010-12-04 19:07:38 UTC (rev 11702)
@@ -1,5 +1,5 @@
 <?php //-*-php-*-
-// rcs_id('$Id: FusionForge.php 7715 2010-10-14 15:49:22Z vargenau $');
+// rcs_id('$Id: FusionForge.php 7750 2010-12-04 11:40:09Z vargenau $');
 /*
  * Copyright (C) 2006 Alain Peyrat
  *
@@ -43,13 +43,13 @@
     }
 
     function userExists() {
-            global $group_id;
+        global $group_id;
 
         // Mapping (PhpWiki vs FusionForge) performed is:
         //     ANON  for non logged or non member
         //     USER  for member of the project.
         //     ADMIN for member having admin rights
-        if (session_loggedin()){
+        if (session_loggedin()) {
 
             // Get project object (if error => ANON)
             $project = group_get_object($group_id);
@@ -83,8 +83,8 @@
                 return $this;
             }
         }
-               $this->_level = WIKIAUTH_ANON;
-               return false;
+        $this->_level = WIKIAUTH_ANON;
+        return false;
     }
 
     function checkPass($submitted_password) {

Modified: trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php
===================================================================
--- trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php	2010-12-03 19:28:36 UTC (rev 11701)
+++ trunk/src/plugins/wiki/www/themes/fusionforge/themeinfo.php	2010-12-04 19:07:38 UTC (rev 11702)
@@ -6,7 +6,7 @@
     exit;
 }
 
-// rcs_id('$Id: themeinfo.php 7671 2010-09-02 20:07:31Z vargenau $');
+// $Id: themeinfo.php 7751 2010-12-04 11:49:18Z vargenau $;
 
 require_once('lib/WikiTheme.php');
 require_once('themes/wikilens/themeinfo.php');
@@ -42,19 +42,19 @@
         // Display a warning banner for internal users when the wiki is opened
         // to external users.
         if (method_exists($project, 'getIsExternal') && $project->getIsExternal()) {
-        	$external_user = false;
-        	if (session_loggedin()) {
-        		$user = session_get_user();
-        		$external_user = $user->getIsExternal();
-        	}
-        	if (!$external_user) {
-	        	$page = $request->getPage();
-	        	if ($page->get('external')) {
-	    			$external_msg = _("This page is external.");
-	    		}
-	    		echo $HTML->warning_msg(_("This project is shared with third-party users (non Alcatel-Lucent users).") .
-	    								(isset($external_msg) ? ' ' . $external_msg : ''));
-			}
+            $external_user = false;
+            if (session_loggedin()) {
+               $user = session_get_user();
+               $external_user = $user->getIsExternal();
+            }
+            if (!$external_user) {
+                $page = $request->getPage();
+                if ($page->get('external')) {
+                    $external_msg = _("This page is external.");
+                }
+                echo $HTML->warning_msg(_("This project is shared with third-party users (non Alcatel-Lucent users).") .
+                                        (isset($external_msg) ? ' ' . $external_msg : ''));
+            }
         }
     }
 
@@ -67,7 +67,7 @@
 
     function initGlobals() {
         global $request;
-		static $already = 0;
+        static $already = 0;
         if (!$already) {
             $script_url = deduce_script_name();
             $script_url .= '/'. $GLOBALS['group_name'] ;
@@ -78,13 +78,13 @@
             $this->addMoreHeaders(JavaScript('', array('src' => $this->_findData("wikilens.js"))));
             $js = "var data_path = '". javascript_quote_string(DATA_PATH) ."';\n"
             // Temp remove pagename because of XSS warning
-            //	."var pagename  = '". javascript_quote_string($pagename) ."';\n"
+            //  ."var pagename  = '". javascript_quote_string($pagename) ."';\n"
                 ."var script_url= '". javascript_quote_string($script_url) ."';\n"
                 ."var stylepath = data_path+'/".javascript_quote_string($this->_theme)."/';\n"
                 ."var folderArrowPath = '".javascript_quote_string($folderArrowPath)."';\n"
                 ."var use_path_info = " . (USE_PATH_INFO ? "true" : "false") .";\n";
             $this->addMoreHeaders(JavaScript($js));
-	    $already = 1;
+            $already = 1;
         }
     }
     function load() {




More information about the Fusionforge-commits mailing list