Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Nächste Überarbeitung Beide Seiten der Revision | ||
cloud4education [2012/11/04 14:52] admin |
cloud4education [2012/11/04 14:55] admin |
||
---|---|---|---|
Zeile 37: | Zeile 37: | ||
<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 58: | 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; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
/** | /** |