OwnCloud-5 braucht keinerlei Daten vom Installer
Bernd Wurst

Bernd Wurst commited on 2013-03-14 17:10:49
Zeige 2 geänderte Dateien mit 5 Einfügungen und 46 Löschungen.

... ...
@@ -1,38 +0,0 @@
1
-<?php
2
-/*
3
-This file belongs to the Webinterface of schokokeks.org Hosting
4
-
5
-Written 2008-2013 by schokokeks.org Hosting, namely
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
-
11
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
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
-*/
16
-
17
-require_once('inc/debug.php');
18
-
19
-require_once('webapp-installer.php');
20
-
21
-
22
-function validate_data($post)
23
-{
24
-  DEBUG('Validating Data:');
25
-  DEBUG($post);
26
-  $fields = array('adminpass');
27
-  foreach ($fields AS $field)
28
-    if ((! isset($post[$field])) || $post[$field] == '')
29
-      system_failure('Nicht alle Werte angegeben ('.$field.')');
30
-
31
-  $adminpass = sha1($post['adminpass']);
32
-  
33
-  $data = "adminpass={$adminpass}";
34
-  DEBUG($data);
35
-  return $data;
36
-}
37
-
38
-
... ...
@@ -34,16 +34,13 @@ if (! $docroot)
34 34
 
35 35
 if (isset($_POST['submit']))
36 36
 {
37
-  require_once('install-owncloud.php');
38 37
   require_once('webapp-installer.php');
39 38
   
40 39
   check_form_token('install_owncloud');
41 40
 
42
-  $data = validate_data($_POST);
43
-  if (! $data)
44
-    system_failure('wtf?!');
45
-  create_new_webapp('owncloud', $docroot, $url, $data); 
41
+  create_new_webapp('owncloud', $docroot, $url, ''); 
46 42
   
43
+  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!');
47 44
   title("OwnCloud wird installiert");
48 45
   output('<p>Ihre OwnCloud wird in Kürze installiert. Sie erhalten eine E-Mail, sobald die Anwendung betriebsbereit ist.</p>
49 46
 ');
... ...
@@ -62,9 +59,9 @@ else
62 59
   <p>Die Cloud wird im Verzeichnis <strong>'.$docroot.'</strong> installiert und wird später voraussichtlich unter <strong>'.$url.'</strong> abrufbar sein.</p>
63 60
   <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>
64 61
   
65
-  <h5>Administrator</h5>
66
-  <p>Ihre OwnCloud wird mit lediglich einem Administrator-benutzer installiert. Der Benutzername ist <strong>admin</strong>.</p>
67
-  <p><label for="adminpass">Administrator-Passwort:</label> <input type="password" id="adminpass" name="adminpass" /></p>
62
+  <h4>Administrator-Konto</h4>
63
+  <p>Der Benutzername und das Passwort des Administrator-Benutzers werden beim ersten Besuch Ihrer neuen OwnCloud festgelegt.</p>
64
+
68 65
 </div>
69 66
 
70 67
 <p><input type="submit" name="submit" value="OwnCloud installieren!" /></p>
71 68