9086c9ad77db90633e0629e9e86a88366265ded0
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
15) */
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

16) 
17) require_once('inc/base.php');
18) require_once('session/start.php');
19) 
20) require_role(ROLE_SYSTEMUSER);
21) 
22) title('OwnCloud einrichten');
23) $section = 'webapps_install';
24) 
25) // Wurde beim Schreiben in die Session schon verifiziert
26) $docroot = $_SESSION['webapp_docroot'];
27) $url = $_SESSION['webapp_url'];
28) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

29) if (! $docroot) {
30)     system_failure('Kann die Session-Daten nicht auslesen. So geht das nicht.');
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

31) }
32) 
33) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

34) if (isset($_POST['submit'])) {
35)     require_once('webapp-installer.php');
Hanno remove whitespace in empty...

Hanno authored 5 years ago

36) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

37)     check_form_token('install_owncloud');
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

38) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

39)     create_new_webapp('owncloud', $docroot, $url, '');
Hanno remove whitespace in empty...

Hanno authored 5 years ago

40) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

41)     warning('Beachten Sie bitte, dass der erste Besucher Ihrer neuen Owncloud-Instanz den Namen und das Passwort des Administrators festlegen kann. Führen Sie die Inbetriebnahme daher bitte zeitnah durch!');
42)     title("OwnCloud wird installiert");
43)     output('<p>Ihre OwnCloud wird in Kürze installiert. Sie erhalten eine E-Mail, sobald die Anwendung betriebsbereit ist.</p>
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

44) ');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

45) } else {
46)     require_once('modules/vhosts/include/vhosts.php');
47)     $vhosts = list_vhosts();
Hanno remove whitespace in empty...

Hanno authored 5 years ago

48) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

49)     $form = '
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

50) <h4>Basisdaten</h4>
51) <div style="margin-left: 2em;">
52)   <h5>Speicherort</h5>
53)   <p>Die Cloud wird im Verzeichnis <strong>'.$docroot.'</strong> installiert und wird später voraussichtlich unter <strong>'.$url.'</strong> abrufbar sein.</p>
54)   <p>Beachten Sie bitte: Die Installation wird in Ihrem Home-Verzeichnis durchgeführt und es wird ein normaler Host im Webinterface dafür angelegt. Sie können diese Einstellungen also jederzeit verändern.</p>
55)   
Bernd Wurst OwnCloud-5 braucht keinerle...

Bernd Wurst authored 11 years ago

56)   <h4>Administrator-Konto</h4>
57)   <p>Der Benutzername und das Passwort des Administrator-Benutzers werden beim ersten Besuch Ihrer neuen OwnCloud festgelegt.</p>
58) 
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

59) </div>
60) 
61) <p><input type="submit" name="submit" value="OwnCloud installieren!" /></p>
62) ';
63) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

64)     output(html_form('install_owncloud', '', '', $form));