Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste Überarbeitung Beide Seiten der Revision | ||
cloud4education [2012/11/04 13:00] admin [Version 4.0.1] |
cloud4education [2012/11/04 13:39] admin [Version 4.5.1] |
||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
===== Version 4.5.1 ===== | ===== Version 4.5.1 ===== | ||
+ | <code php core/templates/layout.guest.php> | ||
+ | <title>cloud4education</title> | ||
+ | ... | ||
+ | <img src="<?php echo image_path('', 'logo.png'); ?>" alt="cloud4education" style="width: 22em" /> | ||
+ | ... | ||
+ | <footer><p class="info"><a href="http://www.cloud4education.at/">cloud4education</a> – <?php echo $l->t( 'eine freie Cloud-Lösung für Schulen' ); ?></p></footer> | ||
+ | </code> | ||
+ | |||
+ | <code php core/templates/layout.user.php> | ||
+ | <title><?php echo isset($_['application']) && !empty($_['application'])?$_['application'].' | ':'' ?>cloud4education <?php echo OC_User::getUser()?' ('.OC_User::getUser().') ':'' ?></title> | ||
+ | </code> | ||
===== Version 4.0.1 ===== | ===== Version 4.0.1 ===== | ||
+ | |||
+ | <code php lib/user.php> | ||
+ | /** | ||
+ | * @brief Kick the user | ||
+ | * @returns true | ||
+ | * | ||
+ | * Logout, destroys session | ||
+ | */ | ||
+ | public static function logout(){ | ||
+ | OC_Hook::emit( "OC_User", "logout", array()); | ||
+ | exec("sudo umount /srv/www/htdocs/".OC::$WEBROOT."/data/".OC_User::getUser()."/files/Home"); | ||
+ | foreach(self::getS4eShares() as $share) { | ||
+ | exec("sudo umount /srv/www/htdocs/".OC::$WEBROOT."/data/".OC_User::getUser()."/files/".$share); | ||
+ | } | ||
+ | // BÖSE? OC_Helper::rmdirr("/srv/www/htdocs/".OC::$WEBROOT."/data/".OC_User::getUser()); | ||
+ | OC_Helper::rmdirr("/srv/www/htdocs/".OC::$WEBROOT."/data/".OC_User::getUser()); | ||
+ | $_SESSION['user_id'] = false; | ||
+ | OC_User::unsetMagicInCookie(); | ||
+ | return true; | ||
+ | } | ||
+ | </code> | ||
<code php lib/util.php> | <code php lib/util.php> | ||
Zeile 42: | Zeile 74: | ||
/*** server4education ***/ | /*** server4education ***/ | ||
+ | </code> | ||
+ | |||
+ | <code php files/index.php> | ||
+ | // Check if we are a user | ||
+ | OC_Util::checkLoggedIn(); | ||
+ | OC_Util::checkHomeMounted(); | ||
+ | </code> | ||
+ | |||
+ | <code ini config/s4eshares.config> | ||
+ | gemeinsam | ||
+ | material | ||
+ | abgabe | ||
</code> | </code> | ||
Zeile 80: | Zeile 124: | ||
</code> | </code> | ||
- | crontab -e | + | <code bash crontab> |
- | + | ||
- | <code bash> | + | |
# Umount lost cloud4education connections | # Umount lost cloud4education connections | ||
*/15 * * * * /usr/local/bin/cloud4education > /dev/null 2>&1 | */15 * * * * /usr/local/bin/cloud4education > /dev/null 2>&1 | ||
+ | </code> | ||
+ | |||
+ | *Branding: | ||
+ | * core/img/owncloud-logo-medium-white.png | ||
+ | * core/img/logo.svg | ||
+ | * core/img/logo.png | ||
+ | * core/img/logo-wide.svg | ||
+ | * core/img/logo-wide.png | ||
+ | |||
+ | <code php core/templates/layout.user.php> | ||
+ | <title>cloud4education</title> | ||
+ | </code> | ||
+ | |||
+ | <code php core/templates/layout.guest.php> | ||
+ | <title>cloud4education</title> | ||
+ | ... | ||
+ | <footer><p class="info"><a href="http://www.cloud4education.at/">cloud4education</a> – <?php echo $l->t( 'eine freie Cloud-Lösung für Schulen' ); ?></p></footer> | ||
+ | </code> | ||
+ | |||
+ | <code css core/templates/css/styles.css> | ||
+ | #body-login p.info { width:26em; text-align: center; margin:2em auto; color:#777; text-shadow:#fff 0 1px 0; } | ||
</code> | </code> |