354c05a4ddd678c49bcbba458bffa7d13482139a
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) 
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 Webapp-Installer, erste Ver...

bernd authored 15 years ago

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

bernd authored 13 years ago

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

bernd authored 15 years ago

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

bernd authored 13 years ago

23) 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

24) <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>
25) ');
26) 
27) 
28) $form = '<h4>Anwendung auswählen</h4>
29) <div style="margin-left: 2em;">
30)   <p><input checked="checked" type="radio" name="application" id="application_mediawiki" value="mediawiki" /> <label for="application_mediawiki">MediaWiki</label></p>
31)   <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

32)   <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

33)   <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

34)   <p><input type="radio" name="application" id="application_owncloud" value="owncloud" /> <label for="application_owncloud">OwnCloud</label></p>
35)   <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

36) </div>
37) ';
38) 
39) $form .= '<h4>Installationsort:</h4>
40) <div style="margin-left: 2em;">
41)   <p><input type="radio" name="target" value="new" id="radio_new" checked="checked" />&#160;<label for="radio_new">Neue Domain/Subdomain erstellen</label></p>
42) <div style="margin-left: 2em;">
43) <h5>Name</h5>
44) ';
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

45) $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"');
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 14 years ago

46) $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

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

Hanno Böck authored 2 years ago

70) $options = [];
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

71) foreach ($vhosts as $vhost) {
72)     $options[$vhost['docroot']] = $vhost['fqdn'];
bernd Webapp-Installer, erste Ver...

bernd authored 15 years ago

73) }
74) 
75) $form .= '
76) <div style="margin-left: 2em;">
77)   <p><input type="radio" name="target" value="vhost" id="radio_vhost" />&#160;<label for="radio_vhost">Vorhandene Domain/Subdomain benutzen</label></p>
78)   <div style="margin-left: 2em;">
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

79)   ' . html_select('vhost', $options, '', 'onchange="document.getElementById(\'docroot\').firstChild.textContent=document.getElementById(\'vhost\').options.item(document.getElementById(\'vhost\').options.selectedIndex).value ; document.getElementById(\'radio_vhost\').checked=true"') . '
80)   <p>Datei-Verzeichnis: <strong id="docroot">' . $vhosts[0]['docroot'] . '</strong></p>