Browse code

Beschriftung im VHosts-Modul einheitlich als "Website"

Bernd Wurst authored on15/03/2019 09:57:21
Showing1 changed files
... ...
@@ -19,7 +19,7 @@ require_once('inc/security.php');
19 19
 
20 20
 require_once('vhosts.php');
21 21
 
22
-title("Aliasnamen für Subdomain bearbeiten");
22
+title("Aliasnamen für Website bearbeiten");
23 23
 $section = 'vhosts_vhosts';
24 24
 
25 25
 require_role(ROLE_SYSTEMUSER);
Browse code

remove whitespace in empty lines

Hanno authored on26/06/2018 23:36:40
Showing1 changed files
... ...
@@ -54,7 +54,7 @@ foreach ($aliases as $alias) {
54 54
     $remove_forward = internal_link('aliasoptions', 'In zusätzliche Adresse umwandeln', "alias={$alias['id']}&forward=0&formtoken={$formtoken}");
55 55
     $typetoggle = (strstr($alias['options'], 'forward') ? $remove_forward : $to_forward);
56 56
 
57
-    
57
+
58 58
     $form .= "<tr>
59 59
     <td>{$alias['fqdn']}{$wwwalias}</td>
60 60
     <td>{$aliastype}<br />{$typetoggle}</td>
... ...
@@ -84,7 +84,7 @@ $form .= "
84 84
 </table>";
85 85
 
86 86
 output(html_form('vhosts_add_alias', 'save', 'action=addalias&vhost='.$vhost['id'], $form));
87
-    
87
+
88 88
 output("<p>
89 89
   ".internal_link("vhosts", "Zurück zur Übersicht")."
90 90
 </p>");
Browse code

Fix coding style with php-cs-checker, see https://cs.sensiolabs.org/

Hanno authored on26/06/2018 13:58:19
Showing1 changed files
... ...
@@ -8,7 +8,7 @@ Written 2008-2018 by schokokeks.org Hosting, namely
8 8
 
9 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 10
 
11
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
11
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
12 12
 http://creativecommons.org/publicdomain/zero/1.0/
13 13
 
14 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.
... ...
@@ -40,22 +40,22 @@ $form = "
40 40
     <tr><td><strong>{$vhost['fqdn']}</strong>{$mainalias}</td><td>Haupt-Adresse</td><td>&#160;</td></tr>
41 41
 ";
42 42
 
43
-foreach ($aliases AS $alias) {
44
-  $aliastype = 'Zusätzliche Adresse';
45
-  if (strstr($alias['options'], 'forward')) {
46
-    $aliastype = 'Umleitung auf Haupt-Adresse';
47
-  }
48
-  $formtoken = generate_form_token('aliases_toggle');
49
-  $havewww = '<br />www.'.$alias['fqdn'].' &#160; ('.internal_link('aliasoptions', 'WWW-Alias entfernen', "alias={$alias['id']}&aliaswww=0&formtoken={$formtoken}").')';
50
-  $nowww = '<br />'.internal_link('aliasoptions', 'Auch mit WWW', "alias={$alias['id']}&aliaswww=1&formtoken={$formtoken}");
51
-  $wwwalias = (strstr($alias['options'], 'aliaswww') ? $havewww : $nowww);
43
+foreach ($aliases as $alias) {
44
+    $aliastype = 'Zusätzliche Adresse';
45
+    if (strstr($alias['options'], 'forward')) {
46
+        $aliastype = 'Umleitung auf Haupt-Adresse';
47
+    }
48
+    $formtoken = generate_form_token('aliases_toggle');
49
+    $havewww = '<br />www.'.$alias['fqdn'].' &#160; ('.internal_link('aliasoptions', 'WWW-Alias entfernen', "alias={$alias['id']}&aliaswww=0&formtoken={$formtoken}").')';
50
+    $nowww = '<br />'.internal_link('aliasoptions', 'Auch mit WWW', "alias={$alias['id']}&aliaswww=1&formtoken={$formtoken}");
51
+    $wwwalias = (strstr($alias['options'], 'aliaswww') ? $havewww : $nowww);
52 52
 
53
-  $to_forward = internal_link('aliasoptions', 'In Umleitung umwandeln', "alias={$alias['id']}&forward=1&formtoken={$formtoken}");
54
-  $remove_forward = internal_link('aliasoptions', 'In zusätzliche Adresse umwandeln', "alias={$alias['id']}&forward=0&formtoken={$formtoken}");
55
-  $typetoggle = (strstr($alias['options'], 'forward') ? $remove_forward : $to_forward);
53
+    $to_forward = internal_link('aliasoptions', 'In Umleitung umwandeln', "alias={$alias['id']}&forward=1&formtoken={$formtoken}");
54
+    $remove_forward = internal_link('aliasoptions', 'In zusätzliche Adresse umwandeln', "alias={$alias['id']}&forward=0&formtoken={$formtoken}");
55
+    $typetoggle = (strstr($alias['options'], 'forward') ? $remove_forward : $to_forward);
56 56
 
57 57
     
58
-  $form .= "<tr>
58
+    $form .= "<tr>
59 59
     <td>{$alias['fqdn']}{$wwwalias}</td>
60 60
     <td>{$aliastype}<br />{$typetoggle}</td>
61 61
     <td>".internal_link('save', 'Aliasname löschen', "action=deletealias&alias={$alias['id']}")."</td></tr>
... ...
@@ -88,6 +88,3 @@ output(html_form('vhosts_add_alias', 'save', 'action=addalias&vhost='.$vhost['id
88 88
 output("<p>
89 89
   ".internal_link("vhosts", "Zurück zur Übersicht")."
90 90
 </p>");
91
-
92
-
93
-?>
Browse code

Copyright year update

Bernd Wurst authored on13/01/2018 06:07:05
Showing1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2014 by schokokeks.org Hosting, namely
5
+Written 2008-2018 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Lizenzinfos in eigenes Modul ausgelagert und Copyright auf 2014 angepasst

Bernd Wurst authored on08/02/2014 05:45:07
Showing1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2013 by schokokeks.org Hosting, namely
5
+Written 2008-2014 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Updated copyright notice (2012 => 2013)

Bernd Wurst authored on19/01/2013 10:49:50
Showing1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2012 by schokokeks.org Hosting, namely
5
+Written 2008-2013 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Added license tags for CC0, README and COPYING

Bernd Wurst authored on11/03/2012 15:40:04
Showing1 changed files
... ...
@@ -1,4 +1,18 @@
1 1
 <?php
2
+/*
3
+This file belongs to the Webinterface of schokokeks.org Hosting
4
+
5
+Written 2008-2012 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
+*/
2 16
 
3 17
 require_once('inc/debug.php');
4 18
 require_once('inc/security.php');
Browse code

Benutze überall title() statt output("<h3>...</h3>")

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1812 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on18/09/2010 13:35:15
Showing1 changed files
... ...
@@ -5,7 +5,7 @@ require_once('inc/security.php');
5 5
 
6 6
 require_once('vhosts.php');
7 7
 
8
-$title = "Aliasnamen für Subdomain bearbeiten";
8
+title("Aliasnamen für Subdomain bearbeiten");
9 9
 $section = 'vhosts_vhosts';
10 10
 
11 11
 require_role(ROLE_SYSTEMUSER);
... ...
@@ -18,8 +18,6 @@ DEBUG($vhost);
18 18
 $aliases = get_aliases($id);
19 19
 DEBUG($aliases);
20 20
 
21
-output("<h3>Aliasnamen für Subdomain bearbeiten</h3>");
22
-
23 21
 $mainalias = (strstr($vhost['options'], 'aliaswww') ? '<br /><strong>www.'.$vhost['fqdn'].'</strong>' : '');
24 22
 
25 23
 $form = "
Browse code

eliminate .php extensions for URLs

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1128 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on08/08/2008 19:32:32
Showing1 changed files
... ...
@@ -34,19 +34,19 @@ foreach ($aliases AS $alias) {
34 34
     $aliastype = 'Umleitung auf Haupt-Adresse';
35 35
   }
36 36
   $formtoken = generate_form_token('aliases_toggle');
37
-  $havewww = '<br />www.'.$alias['fqdn'].' &#160; ('.internal_link('aliasoptions.php', 'WWW-Alias entfernen', "alias={$alias['id']}&aliaswww=0&formtoken={$formtoken}").')';
38
-  $nowww = '<br />'.internal_link('aliasoptions.php', 'Auch mit WWW', "alias={$alias['id']}&aliaswww=1&formtoken={$formtoken}");
37
+  $havewww = '<br />www.'.$alias['fqdn'].' &#160; ('.internal_link('aliasoptions', 'WWW-Alias entfernen', "alias={$alias['id']}&aliaswww=0&formtoken={$formtoken}").')';
38
+  $nowww = '<br />'.internal_link('aliasoptions', 'Auch mit WWW', "alias={$alias['id']}&aliaswww=1&formtoken={$formtoken}");
39 39
   $wwwalias = (strstr($alias['options'], 'aliaswww') ? $havewww : $nowww);
40 40
 
41
-  $to_forward = internal_link('aliasoptions.php', 'In Umleitung umwandeln', "alias={$alias['id']}&forward=1&formtoken={$formtoken}");
42
-  $remove_forward = internal_link('aliasoptions.php', 'In zusätzliche Adresse umwandeln', "alias={$alias['id']}&forward=0&formtoken={$formtoken}");
41
+  $to_forward = internal_link('aliasoptions', 'In Umleitung umwandeln', "alias={$alias['id']}&forward=1&formtoken={$formtoken}");
42
+  $remove_forward = internal_link('aliasoptions', 'In zusätzliche Adresse umwandeln', "alias={$alias['id']}&forward=0&formtoken={$formtoken}");
43 43
   $typetoggle = (strstr($alias['options'], 'forward') ? $remove_forward : $to_forward);
44 44
 
45 45
     
46 46
   $form .= "<tr>
47 47
     <td>{$alias['fqdn']}{$wwwalias}</td>
48 48
     <td>{$aliastype}<br />{$typetoggle}</td>
49
-    <td>".internal_link('save.php', 'Aliasname löschen', "action=deletealias&alias={$alias['id']}")."</td></tr>
49
+    <td>".internal_link('save', 'Aliasname löschen', "action=deletealias&alias={$alias['id']}")."</td></tr>
50 50
   ";
51 51
 }
52 52
 
... ...
@@ -71,10 +71,10 @@ $form .= "
71 71
 </tr>
72 72
 </table>";
73 73
 
74
-output(html_form('vhosts_add_alias', 'save.php', 'action=addalias&vhost='.$vhost['id'], $form));
74
+output(html_form('vhosts_add_alias', 'save', 'action=addalias&vhost='.$vhost['id'], $form));
75 75
     
76 76
 output("<p>
77
-  <a href=\"vhosts.php\">Zurück zur Übersicht</a>
77
+  ".internal_link("vhosts", "Zurück zur Übersicht")."
78 78
 </p>");
79 79
 
80 80
 
Browse code

Entities repariert

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@744 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on02/11/2007 13:06:25
Showing1 changed files
... ...
@@ -24,8 +24,8 @@ $mainalias = (strstr($vhost['options'], 'aliaswww') ? '<br /><strong>www.'.$vhos
24 24
 
25 25
 $form = "
26 26
   <table>
27
-    <tr><th>Adresse</th><th>Verhalten</th><th>&nbsp;</th></tr>
28
-    <tr><td><strong>{$vhost['fqdn']}</strong>{$mainalias}</td><td>Haupt-Adresse</td><td>&nbsp;</td></tr>
27
+    <tr><th>Adresse</th><th>Verhalten</th><th>&#160;</th></tr>
28
+    <tr><td><strong>{$vhost['fqdn']}</strong>{$mainalias}</td><td>Haupt-Adresse</td><td>&#160;</td></tr>
29 29
 ";
30 30
 
31 31
 foreach ($aliases AS $alias) {
... ...
@@ -34,7 +34,7 @@ foreach ($aliases AS $alias) {
34 34
     $aliastype = 'Umleitung auf Haupt-Adresse';
35 35
   }
36 36
   $formtoken = generate_form_token('aliases_toggle');
37
-  $havewww = '<br />www.'.$alias['fqdn'].' &nbsp; ('.internal_link('aliasoptions.php', 'WWW-Alias entfernen', "alias={$alias['id']}&aliaswww=0&formtoken={$formtoken}").')';
37
+  $havewww = '<br />www.'.$alias['fqdn'].' &#160; ('.internal_link('aliasoptions.php', 'WWW-Alias entfernen', "alias={$alias['id']}&aliaswww=0&formtoken={$formtoken}").')';
38 38
   $nowww = '<br />'.internal_link('aliasoptions.php', 'Auch mit WWW', "alias={$alias['id']}&aliaswww=1&formtoken={$formtoken}");
39 39
   $wwwalias = (strstr($alias['options'], 'aliaswww') ? $havewww : $nowww);
40 40
 
Browse code

Usability fix

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@627 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on13/08/2007 13:16:31
Showing1 changed files
... ...
@@ -22,11 +22,11 @@ output("<h3>Aliasnamen für Subdomain bearbeiten</h3>");
22 22
 
23 23
 $mainalias = (strstr($vhost['options'], 'aliaswww') ? '<br /><strong>www.'.$vhost['fqdn'].'</strong>' : '');
24 24
 
25
-output("
25
+$form = "
26 26
   <table>
27 27
     <tr><th>Adresse</th><th>Verhalten</th><th>&nbsp;</th></tr>
28 28
     <tr><td><strong>{$vhost['fqdn']}</strong>{$mainalias}</td><td>Haupt-Adresse</td><td>&nbsp;</td></tr>
29
-");
29
+";
30 30
 
31 31
 foreach ($aliases AS $alias) {
32 32
   $aliastype = 'Zusätzliche Adresse';
... ...
@@ -43,33 +43,39 @@ foreach ($aliases AS $alias) {
43 43
   $typetoggle = (strstr($alias['options'], 'forward') ? $remove_forward : $to_forward);
44 44
 
45 45
     
46
-  output("<tr>
46
+  $form .= "<tr>
47 47
     <td>{$alias['fqdn']}{$wwwalias}</td>
48 48
     <td>{$aliastype}<br />{$typetoggle}</td>
49 49
     <td>".internal_link('save.php', 'Aliasname löschen', "action=deletealias&alias={$alias['id']}")."</td></tr>
50
-  ");
50
+  ";
51 51
 }
52 52
 
53
-output('</table>');
54
-
55
-
56
-output(html_form('vhosts_add_alias', 'save.php', 'action=addalias&vhost='.$vhost['id'], "
57
-<div style=\"margin-top: 1em; padding: 1em;\">
58
-<h4>Neuen Aliasnamen hinzufügen</h4>
59
-<p>
60
-  <input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"\" />
61
-    <strong>.</strong>".domainselect()."<br />
62
-  <input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" />
63
-    <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label><br />
64
-  Modus: <select name=\"options[]\">
65
-    <option value=\"\">zusätzliche Adresse</option>
66
-    <option value=\"forward\">Umleitung auf Haupt-Adresse</option>
67
-  </select>
68
-</p>
69
-<p>
70
-  <input type=\"submit\" value=\"Hinzufügen\" /></p>
71
-</div>
72
-"));
53
+$form .= "
54
+<tr>
55
+  <td>
56
+    <strong>Neuen Aliasnamen hinzufügen</strong><br />
57
+    <input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"\" />
58
+      <strong>.</strong>".domainselect()."<br />
59
+    <input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" />
60
+      <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label>
61
+  </td>
62
+  <td>
63
+    <select name=\"options[]\">
64
+      <option value=\"\">zusätzliche Adresse</option>
65
+      <option value=\"forward\">Umleitung auf Haupt-Adresse</option>
66
+    </select>
67
+  </td>
68
+  <td>
69
+    <input type=\"submit\" value=\"Hinzufügen\" />
70
+  </td>
71
+</tr>
72
+</table>";
73
+
74
+output(html_form('vhosts_add_alias', 'save.php', 'action=addalias&vhost='.$vhost['id'], $form));
75
+    
76
+output("<p>
77
+  <a href=\"vhosts.php\">Zurück zur Übersicht</a>
78
+</p>");
73 79
 
74 80
 
75 81
 ?>
Browse code

Neue Dateien für Alias-Editor vergessen

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@611 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on09/08/2007 19:30:02
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,75 @@
1
+<?php
2
+
3
+require_once('inc/debug.php');
4
+require_once('inc/security.php');
5
+
6
+require_once('vhosts.php');
7
+
8
+$title = "Aliasnamen für Subdomain bearbeiten";
9
+$section = 'vhosts_vhosts';
10
+
11
+require_role(ROLE_SYSTEMUSER);
12
+
13
+$id = (int) $_GET['vhost'];
14
+
15
+$vhost = get_vhost_details($id);
16
+DEBUG($vhost);
17
+
18
+$aliases = get_aliases($id);
19
+DEBUG($aliases);
20
+
21
+output("<h3>Aliasnamen für Subdomain bearbeiten</h3>");
22
+
23
+$mainalias = (strstr($vhost['options'], 'aliaswww') ? '<br /><strong>www.'.$vhost['fqdn'].'</strong>' : '');
24
+
25
+output("
26
+  <table>
27
+    <tr><th>Adresse</th><th>Verhalten</th><th>&nbsp;</th></tr>
28
+    <tr><td><strong>{$vhost['fqdn']}</strong>{$mainalias}</td><td>Haupt-Adresse</td><td>&nbsp;</td></tr>
29
+");
30
+
31
+foreach ($aliases AS $alias) {
32
+  $aliastype = 'Zusätzliche Adresse';
33
+  if (strstr($alias['options'], 'forward')) {
34
+    $aliastype = 'Umleitung auf Haupt-Adresse';
35
+  }
36
+  $formtoken = generate_form_token('aliases_toggle');
37
+  $havewww = '<br />www.'.$alias['fqdn'].' &nbsp; ('.internal_link('aliasoptions.php', 'WWW-Alias entfernen', "alias={$alias['id']}&aliaswww=0&formtoken={$formtoken}").')';
38
+  $nowww = '<br />'.internal_link('aliasoptions.php', 'Auch mit WWW', "alias={$alias['id']}&aliaswww=1&formtoken={$formtoken}");
39
+  $wwwalias = (strstr($alias['options'], 'aliaswww') ? $havewww : $nowww);
40
+
41
+  $to_forward = internal_link('aliasoptions.php', 'In Umleitung umwandeln', "alias={$alias['id']}&forward=1&formtoken={$formtoken}");
42
+  $remove_forward = internal_link('aliasoptions.php', 'In zusätzliche Adresse umwandeln', "alias={$alias['id']}&forward=0&formtoken={$formtoken}");
43
+  $typetoggle = (strstr($alias['options'], 'forward') ? $remove_forward : $to_forward);
44
+
45
+    
46
+  output("<tr>
47
+    <td>{$alias['fqdn']}{$wwwalias}</td>
48
+    <td>{$aliastype}<br />{$typetoggle}</td>
49
+    <td>".internal_link('save.php', 'Aliasname löschen', "action=deletealias&alias={$alias['id']}")."</td></tr>
50
+  ");
51
+}
52
+
53
+output('</table>');
54
+
55
+
56
+output(html_form('vhosts_add_alias', 'save.php', 'action=addalias&vhost='.$vhost['id'], "
57
+<div style=\"margin-top: 1em; padding: 1em;\">
58
+<h4>Neuen Aliasnamen hinzufügen</h4>
59
+<p>
60
+  <input type=\"text\" name=\"hostname\" id=\"hostname\" size=\"10\" value=\"\" />
61
+    <strong>.</strong>".domainselect()."<br />
62
+  <input type=\"checkbox\" name=\"options[]\" id=\"aliaswww\" value=\"aliaswww\" />
63
+    <label for=\"aliaswww\">Auch mit <strong>www</strong> davor.</label><br />
64
+  Modus: <select name=\"options[]\">
65
+    <option value=\"\">zusätzliche Adresse</option>
66
+    <option value=\"forward\">Umleitung auf Haupt-Adresse</option>
67
+  </select>
68
+</p>
69
+<p>
70
+  <input type=\"submit\" value=\"Hinzufügen\" /></p>
71
+</div>
72
+"));
73
+
74
+
75
+?>