cloud4education
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| cloud4education [2012/11/04 13:00] – [Version 4.0.1] admin | cloud4education [2012/11/04 18:07] (aktuell) – admin | ||
|---|---|---|---|
| Zeile 3: | Zeile 3: | ||
| ===== Version 4.5.1 ===== | ===== Version 4.5.1 ===== | ||
| + | wget http:// | ||
| + | |||
| + | <code php apps/ | ||
| + | OCP\App:: | ||
| + | </ | ||
| + | |||
| + | <code php apps/ | ||
| + | <!--[if IE 8]>< | ||
| + | <div id=" | ||
| + | <h3> | ||
| + | <?php echo $l-> | ||
| + | </h3> | ||
| + | <p> | ||
| + | <?php echo $l-> | ||
| + | </p> | ||
| + | </ | ||
| + | <div id=" | ||
| + | <h3> | ||
| + | <?php echo $l-> | ||
| + | </h3> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | <code php lib/ | ||
| + | public static function login( $uid, $password ) { | ||
| + | $run = true; | ||
| + | OC_Hook:: | ||
| + | |||
| + | if( $run ) { | ||
| + | $uid = self:: | ||
| + | $enabled = self:: | ||
| + | if($uid && $enabled) { | ||
| + | session_regenerate_id(true); | ||
| + | self:: | ||
| + | OC_Hook:: | ||
| + | $_SESSION[' | ||
| + | return true; | ||
| + | } | ||
| + | } | ||
| + | return false; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | <code php lib/ | ||
| + | /*** server4education ***/ | ||
| + | |||
| + | /** | ||
| + | * Check if home folder is mounted, mount if not | ||
| + | */ | ||
| + | public static function checkHomeMounted(){ | ||
| + | // Check if home folder is mounted | ||
| + | if (!OC_Filesystem:: | ||
| + | OC_Filesystem:: | ||
| + | exec(" | ||
| + | } | ||
| + | |||
| + | foreach(self:: | ||
| + | if (!OC_Filesystem:: | ||
| + | OC_Filesystem:: | ||
| + | exec(" | ||
| + | } | ||
| + | } | ||
| + | exec(" | ||
| + | $_SESSION[' | ||
| + | } | ||
| + | |||
| + | /*** server4education ***/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | <code php apps/ | ||
| + | // Check if we are a user | ||
| + | OCP\User:: | ||
| + | OC_Util:: | ||
| + | </ | ||
| + | |||
| + | *Branding | ||
| + | * core/ | ||
| + | * core/ | ||
| + | * core/ | ||
| + | * core/ | ||
| + | * core/ | ||
| + | * core/ | ||
| + | |||
| + | <code php core/ | ||
| + | < | ||
| + | ... | ||
| + | <img src="<? | ||
| + | ... | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <code php core/ | ||
| + | < | ||
| + | </ | ||
| ===== Version 4.0.1 ===== | ===== Version 4.0.1 ===== | ||
| + | |||
| + | <code php files/ | ||
| + | // Check if we are a user | ||
| + | OC_Util:: | ||
| + | OC_Util:: | ||
| + | </ | ||
| + | |||
| + | <code php lib/ | ||
| + | // server4education shares | ||
| + | private static function getS4eShares() { | ||
| + | $shares = array(); | ||
| + | $fp = @fopen("/ | ||
| + | while($line = fgets($fp, 1024)) { | ||
| + | $line = trim($line); | ||
| + | if($line != "" | ||
| + | $shares[] = $line; | ||
| + | } | ||
| + | fclose($fp); | ||
| + | return $shares; | ||
| + | } | ||
| + | |||
| + | |||
| + | |||
| + | /** | ||
| + | * @brief Kick the user | ||
| + | * @returns true | ||
| + | * | ||
| + | * Logout, destroys session | ||
| + | */ | ||
| + | public static function logout(){ | ||
| + | OC_Hook:: | ||
| + | exec(" | ||
| + | foreach(self:: | ||
| + | exec(" | ||
| + | } | ||
| + | // BÖSE? | ||
| + | OC_Helper:: | ||
| + | $_SESSION[' | ||
| + | OC_User:: | ||
| + | return true; | ||
| + | } | ||
| + | </ | ||
| <code php lib/ | <code php lib/ | ||
| + | // server4education shares | ||
| + | private static function getS4eShares() { | ||
| + | $shares = array(); | ||
| + | $fp = @fopen("/ | ||
| + | while($line = fgets($fp, 1024)) { | ||
| + | $line = trim($line); | ||
| + | if($line != "" | ||
| + | $shares[] = $line; | ||
| + | } | ||
| + | fclose($fp); | ||
| + | return $shares; | ||
| + | } | ||
| + | |||
| + | |||
| + | |||
| /** | /** | ||
| Zeile 42: | Zeile 194: | ||
| /*** server4education ***/ | /*** server4education ***/ | ||
| + | </ | ||
| + | |||
| + | <code ini config/ | ||
| + | gemeinsam | ||
| + | material | ||
| + | abgabe | ||
| </ | </ | ||
| Zeile 84: | Zeile 242: | ||
| */15 * * * * / | */15 * * * * / | ||
| </ | </ | ||
| + | |||
| + | *Branding: | ||
| + | * core/ | ||
| + | * core/ | ||
| + | * core/ | ||
| + | * core/ | ||
| + | * core/ | ||
| + | |||
| + | <code php core/ | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <code php core/ | ||
| + | < | ||
| + | ... | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <code css core/ | ||
| + | #body-login p.info { width:26em; text-align: center; margin:2em auto; color:#777; text-shadow:# | ||
| + | </ | ||
| + | |||
| + | <code ini / | ||
| + | wwwrun ALL = NOPASSWD: / | ||
| + | wwwrun ALL = NOPASSWD: / | ||
| + | wwwrun ALL = NOPASSWD: /bin/umount | ||
| + | wwwrun ALL = NOPASSWD: /bin/mount | ||
| + | wwwrun ALL = NOPASSWD: / | ||
| + | </ | ||
| + | |||
| + | *Passwort und EMail Dialog abschalten: | ||
| + | *settings/ | ||
cloud4education.1352030435.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
