Benutzer-Werkzeuge

Webseiten-Werkzeuge


cloud4education

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Letzte Überarbeitung Beide Seiten der Revision
cloud4education [2012/11/04 13:40]
admin [Version 4.5.1]
cloud4education [2012/11/04 17:38]
admin [Version 4.0.1]
Zeile 2: Zeile 2:
  
 ===== Version 4.5.1 ===== ===== Version 4.5.1 =====
 +
 +<code php apps/​files/​index.php>​
 +// Check if we are a user
 +OCP\User::​checkLoggedIn();​
 +OCP\User::​checkHomeMounted();​
 +</​code>​
  
   *Branding   *Branding
Zeile 23: Zeile 29:
 </​code>​ </​code>​
 ===== Version 4.0.1 ===== ===== Version 4.0.1 =====
 +
 +<code php files/​index.php>​
 +// Check if we are a user
 +OC_Util::​checkLoggedIn();​
 +OC_Util::​checkHomeMounted();​
 +</​code>​
  
 <code php lib/​user.php>​ <code php lib/​user.php>​
 +        // server4education shares
 +        private static function getS4eShares() {
 +                $shares = array();
 +                $fp = @fopen("/​srv/​www/​htdocs/"​.OC::​$WEBROOT."/​config/​s4eshares.config",​ "​r"​);​
 +                while($line = fgets($fp, 1024)) {
 +                        $line = trim($line);​
 +                        if($line != ""​)
 +                                $shares[] = $line;
 +                }
 +                fclose($fp);​
 +                return $shares;
 +        }
 +
 +
 +
         /**         /**
          * @brief Kick the user          * @brief Kick the user
Zeile 46: Zeile 73:
  
 <code php lib/​util.php>​ <code php lib/​util.php>​
 +        // server4education shares
 +        private static function getS4eShares() {
 +                $shares = array();
 +                $fp = @fopen("/​srv/​www/​htdocs/"​.OC::​$WEBROOT."/​config/​s4eshares.config",​ "​r"​);​
 +                while($line = fgets($fp, 1024)) {
 +                        $line = trim($line);​
 +                        if($line != ""​)
 +                                $shares[] = $line;
 +                }
 +                fclose($fp);​
 +                return $shares;
 +        }
 +
 +
 +
  
         /**         /**
Zeile 82: Zeile 124:
 /*** server4education ***/ /*** server4education ***/
  
-</​code>​ 
- 
-<code php files/​index.php>​ 
-// Check if we are a user 
-OC_Util::​checkLoggedIn();​ 
-OC_Util::​checkHomeMounted();​ 
 </​code>​ </​code>​
  
Zeile 157: Zeile 193:
 #body-login p.info { width:26em; text-align: center; margin:2em auto; color:#777; text-shadow:#​fff 0 1px 0; } #body-login p.info { width:26em; text-align: center; margin:2em auto; color:#777; text-shadow:#​fff 0 1px 0; }
 </​code>​ </​code>​
 +
 +<code ini /​etc/​sudoers>​
 +wwwrun ALL = NOPASSWD: /​usr/​local/​bin/​mounthome
 +wwwrun ALL = NOPASSWD: /​usr/​local/​bin/​mountshare
 +wwwrun ALL = NOPASSWD: /bin/umount
 +wwwrun ALL = NOPASSWD: /bin/mount
 +wwwrun ALL = NOPASSWD: /​sbin/​mount.cifs
 +</​code>​
 +
 +  *Passwort und EMail Dialog abschalten:
 +    *settings/​templates/​personal.php
cloud4education.txt · Zuletzt geändert: 2012/11/04 18:07 von admin