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:27] admin [Version 4.0.1] |
cloud4education [2012/11/04 14:55] admin |
||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
===== Version 4.5.1 ===== | ===== Version 4.5.1 ===== | ||
- | <code php templates/layout.user.php> | + | <code php apps/files/index.php> |
+ | // Check if we are a user | ||
+ | OCP\User::checkLoggedIn(); | ||
+ | OCP\User::checkHomeMounted(); | ||
+ | </code> | ||
+ | |||
+ | *Branding | ||
+ | * core/img/logo.svg | ||
+ | * core/img/logo.png | ||
+ | * core/img/favicon.svg | ||
+ | * core/img/favicon.png | ||
+ | * core/img/favicon-touch.svg | ||
+ | * core/img/favicon-touch.png | ||
+ | |||
+ | <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> | <title><?php echo isset($_['application']) && !empty($_['application'])?$_['application'].' | ':'' ?>cloud4education <?php echo OC_User::getUser()?' ('.OC_User::getUser().') ':'' ?></title> | ||
</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 30: | 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 66: | 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 123: | Zeile 175: | ||
*Branding: | *Branding: | ||
* core/img/owncloud-logo-medium-white.png | * core/img/owncloud-logo-medium-white.png | ||
+ | * core/img/logo.svg | ||
+ | * core/img/logo.png | ||
* core/img/logo-wide.svg | * core/img/logo-wide.svg | ||
+ | * core/img/logo-wide.png | ||
<code php core/templates/layout.user.php> | <code php core/templates/layout.user.php> | ||
Zeile 137: | Zeile 192: | ||
<code css core/templates/css/styles.css> | <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; } | #body-login p.info { width:26em; text-align: center; margin:2em auto; color:#777; text-shadow:#fff 0 1px 0; } | ||
+ | </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> | </code> |