354c05a4ddd678c49bcbba458bffa7d13482139a
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) 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.
12) */
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

13) 
14) require_once('inc/base.php');
15) require_once('session/start.php');
16) 
17) require_role(ROLE_SYSTEMUSER);
18) 
19) title('OwnCloud einrichten');
20) $section = 'webapps_install';
21) 
22) // Wurde beim Schreiben in die Session schon verifiziert
23) $docroot = $_SESSION['webapp_docroot'];
24) $url = $_SESSION['webapp_url'];
25) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

26) if (!$docroot) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

27)     system_failure('Kann die Session-Daten nicht auslesen. So geht das nicht.');
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

28) }
29) 
30) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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

Hanno authored 5 years ago

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

Hanno authored 5 years ago

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

bernd authored 12 years ago

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

Hanno authored 5 years ago

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

Hanno authored 5 years ago

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

Hanno authored 5 years ago

38)     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!');
39)     title("OwnCloud wird installiert");
40)     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

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

Hanno authored 5 years ago

42) } else {
43)     require_once('modules/vhosts/include/vhosts.php');
44)     $vhosts = list_vhosts();
Hanno remove whitespace in empty...

Hanno authored 5 years ago

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

Hanno authored 5 years ago

46)     $form = '
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

47) <h4>Basisdaten</h4>
48) <div style="margin-left: 2em;">
49)   <h5>Speicherort</h5>
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

50)   <p>Die Cloud wird im Verzeichnis <strong>' . $docroot . '</strong> installiert und wird später voraussichtlich unter <strong>' . $url . '</strong> abrufbar sein.</p>
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

51)   <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>
52)   
Bernd Wurst OwnCloud-5 braucht keinerle...

Bernd Wurst authored 11 years ago

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

bernd authored 12 years ago

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

Hanno authored 5 years ago

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