7f815276981e366df7e6f3b6ccb92ebeca624fb3
bernd Webapp-Installer, erste Ver...

bernd authored 15 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 Webapp-Installer, erste Ver...

bernd authored 15 years ago

16) 
17) require_once('inc/base.php');
18) require_once('session/start.php');
19) 
20) require_once('modules/vhosts/include/vhosts.php');
21) 
22) require_role(ROLE_SYSTEMUSER);
23) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

24) title('Web-Anwendung installieren');
bernd Webapp-Installer, erste Ver...

bernd authored 15 years ago

25) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

26) output('<p>Richten Sie hiermit unkompliziert eine neue Web-Anwendung ein. Sie können dafür entweder eine vorhandene Domain bzw. Subdomain benutzen oder eine neue anlegen.</p>
bernd Webapp-Installer, erste Ver...

bernd authored 15 years ago

27) <p>Wählen Sie bitte auf dieser Seite aus, welche Anwendung Sie installieren möchten und unter welcher Domain/Subdomain dies geschehen soll. Nach dieser Seite werden noch ein paar Details zur betreffenden Anwendung erfasst.</p>
28) ');
29) 
30) 
31) $form = '<h4>Anwendung auswählen</h4>
32) <div style="margin-left: 2em;">
33)   <p><input checked="checked" type="radio" name="application" id="application_mediawiki" value="mediawiki" /> <label for="application_mediawiki">MediaWiki</label></p>
34)   <p style="margin-left: 2em;">MediaWiki ist eine Wiki-Software, mit der Seiteninhalte von Besuchern geändert werden können. MediaWiki ist u.A. die Grundlage der Online-Enzyklopädie »Wikipedia«.</p>
bernd Webapp-Installer für Drupal-7

bernd authored 13 years ago

35)   <p><input type="radio" name="application" id="application_drupal7" value="drupal7" /> <label for="application_drupal7">Drupal (Version 7.x)</label></p>
bernd Typo

bernd authored 12 years ago

36)   <p style="margin-left: 2em;">Drupal ist ein verbreitetes Content-Management-System. Als solches bietet es die Möglichkeit, Seiten-Inhalte im Web-Browser zu ändern, einzelne Seiten nur angemeldeten Benutzern freizugeben oder z.B. das Kommentieren einzelner Seiten.</p>
bernd Neue Webapp: OwnCloud

bernd authored 12 years ago

37)   <p><input type="radio" name="application" id="application_owncloud" value="owncloud" /> <label for="application_owncloud">OwnCloud</label></p>
38)   <p style="margin-left: 2em;">Mit OwnCloud können Sie Ihre Dateien, Adressbücher oder Kalenderdaten zentral ablegen und von überall nutzen.</p>
bernd Webapp-Installer, erste Ver...

bernd authored 15 years ago

39) </div>
40) ';
41) 
42) $form .= '<h4>Installationsort:</h4>
43) <div style="margin-left: 2em;">
44)   <p><input type="radio" name="target" value="new" id="radio_new" checked="checked" />&#160;<label for="radio_new">Neue Domain/Subdomain erstellen</label></p>
45) <div style="margin-left: 2em;">
46) <h5>Name</h5>
47) ';
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 14 years ago

48) $form .= "<div style=\"margin-left: 2em;\"><input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" onkeyup=\"document.getElementById('radio_new').checked=true\" /><strong>.</strong>".domainselect('', 'onchange="document.getElementById(\'radio_new\').checked=true"');
49) $form .= "<br /><input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" /> <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label></div>";
bernd Webapp-Installer, erste Ver...

bernd authored 15 years ago

50) $form .= "
51)     <h5>SSL-Verschlüsselung</h5>
52)     <div style=\"margin-left: 2em;\">
53)     <select name=\"ssl\" id=\"ssl\">
54)       <option value=\"none\" selected=\"selected\">SSL optional anbieten</option>
55)       <option value=\"forward\">Immer auf SSL umleiten</option>
56)     </select>
57)     </div>
58)     <h5>Logfiles</h5>
59)     <div style=\"margin-left: 2em;\">
60)       <select name=\"logtype\" id=\"logtype\">
61)         <option value=\"none\">keine Logfiles</option>
62)         <option value=\"anonymous\">anonymisiert</option>
63)         <option value=\"default\">vollständige Logfile</option>
64)       </select><br />
65)       <input type=\"checkbox\" id=\"errorlog\" name=\"errorlog\" value=\"1\" />&#160;<label for=\"errorlog\">Fehlerprotokoll (error_log) einschalten</label>
66)     </div>
67) </div>
68) </div>
69) ";
70) 
71) $vhosts = list_vhosts();
72) 
73) $options = array();
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

74) foreach ($vhosts as $vhost) {
75)     $options[$vhost['docroot']] = $vhost['fqdn'];