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.
... ...
@@ -18,89 +18,82 @@ require_once('inc/base.php');
18 18
 
19 19
 function icon_warning($title = '')
20 20
 {
21
-  global $prefix;
22
-  return "<img src=\"{$prefix}images/warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
21
+    global $prefix;
22
+    return "<img src=\"{$prefix}images/warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
23 23
 }
24 24
 
25 25
 function icon_enabled_phpxx($title = '', $major, $minor)
26 26
 {
27
-  global $prefix;
28
-  return "<img src=\"{$prefix}images/ok-php$major$minor.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
27
+    global $prefix;
28
+    return "<img src=\"{$prefix}images/ok-php$major$minor.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
29 29
 }
30 30
 
31 31
 function icon_enabled_warning($title = '')
32 32
 {
33
-  global $prefix;
34
-  return "<img src=\"{$prefix}images/ok-warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
33
+    global $prefix;
34
+    return "<img src=\"{$prefix}images/ok-warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
35 35
 }
36 36
 
37 37
 function icon_enabled($title = '')
38 38
 {
39
-  global $prefix;
40
-  return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
39
+    global $prefix;
40
+    return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
41 41
 }
42 42
 
43 43
 
44 44
 function icon_disabled($title = '')
45 45
 {
46
-  global $prefix;
47
-  //return "";
48
-  return "<img src=\"{$prefix}images/disabled.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
46
+    global $prefix;
47
+    //return "";
48
+    return "<img src=\"{$prefix}images/disabled.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
49 49
 }
50 50
 
51 51
 
52 52
 function icon_ok($title = '')
53 53
 {
54
-  global $prefix;
55
-  return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
54
+    global $prefix;
55
+    return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
56 56
 }
57 57
 
58 58
 
59 59
 
60 60
 function icon_error($title = '')
61 61
 {
62
-  global $prefix;
63
-  return "<img src=\"{$prefix}images/error.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
62
+    global $prefix;
63
+    return "<img src=\"{$prefix}images/error.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
64 64
 }
65 65
 
66 66
 function icon_edit($title = '')
67 67
 {
68
-  global $prefix;
69
-  return "<img src=\"{$prefix}images/edit.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
68
+    global $prefix;
69
+    return "<img src=\"{$prefix}images/edit.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
70 70
 }
71 71
 
72 72
 function icon_pwchange($title = '')
73 73
 {
74
-  global $prefix;
75
-  return "<img src=\"{$prefix}images/pwchange.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
74
+    global $prefix;
75
+    return "<img src=\"{$prefix}images/pwchange.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
76 76
 }
77 77
 
78 78
 
79 79
 function icon_add($title = '')
80 80
 {
81
-  global $prefix;
82
-  return "<img src=\"{$prefix}images/add.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
81
+    global $prefix;
82
+    return "<img src=\"{$prefix}images/add.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
83 83
 }
84 84
 
85 85
 
86 86
 
87 87
 function icon_delete($title = '')
88 88
 {
89
-  global $prefix;
90
-  return "<img src=\"{$prefix}images/delete.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
89
+    global $prefix;
90
+    return "<img src=\"{$prefix}images/delete.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
91 91
 }
92 92
 
93 93
 
94 94
 
95 95
 function other_icon($filename, $title = '')
96 96
 {
97
-  global $prefix;
98
-  return "<img src=\"{$prefix}images/{$filename}\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
97
+    global $prefix;
98
+    return "<img src=\"{$prefix}images/{$filename}\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
99 99
 }
100
-
101
-
102
-
103
-
104
-
105
-
106
-
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

php 5.6 logo, reorganize logo-functions

Hanno Böck authored on01/09/2014 08:49:13
Showing1 changed files
... ...
@@ -22,24 +22,10 @@ function icon_warning($title = '')
22 22
   return "<img src=\"{$prefix}images/warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
23 23
 }
24 24
 
25
-
26
-
27
-function icon_enabled_php53($title = '')
28
-{
29
-  global $prefix;
30
-  return "<img src=\"{$prefix}images/ok-php53.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
31
-}
32
-
33
-function icon_enabled_php54($title = '')
34
-{
35
-  global $prefix;
36
-  return "<img src=\"{$prefix}images/ok-php54.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
37
-}
38
-
39
-function icon_enabled_php55($title = '')
25
+function icon_enabled_phpxx($title = '', $major, $minor)
40 26
 {
41 27
   global $prefix;
42
-  return "<img src=\"{$prefix}images/ok-php55.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
28
+  return "<img src=\"{$prefix}images/ok-php$major$minor.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
43 29
 }
44 30
 
45 31
 function icon_enabled_warning($title = '')
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

übrige Änderungen für php55

Hanno Böck authored on28/07/2013 11:51:25
Showing1 changed files
... ...
@@ -36,6 +36,12 @@ function icon_enabled_php54($title = '')
36 36
   return "<img src=\"{$prefix}images/ok-php54.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
37 37
 }
38 38
 
39
+function icon_enabled_php55($title = '')
40
+{
41
+  global $prefix;
42
+  return "<img src=\"{$prefix}images/ok-php55.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
43
+}
44
+
39 45
 function icon_enabled_warning($title = '')
40 46
 {
41 47
   global $prefix;
Browse code

Löschen-Symbol durch Mülleimer ersetzt, rotes Kreuz ist jetzt "deaktiviert"

Bernd Wurst authored on28/02/2013 15:49:24
Showing1 changed files
... ...
@@ -52,8 +52,8 @@ function icon_enabled($title = '')
52 52
 function icon_disabled($title = '')
53 53
 {
54 54
   global $prefix;
55
-  return "";
56
-  //return "<img src=\"{$prefix}images/disabled.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
55
+  //return "";
56
+  return "<img src=\"{$prefix}images/disabled.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
57 57
 }
58 58
 
59 59
 
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

PHP 5.4 ist nicht mehr experimentell

Bernd Wurst authored on11/01/2013 13:58:24
Showing1 changed files
... ...
@@ -24,6 +24,18 @@ function icon_warning($title = '')
24 24
 
25 25
 
26 26
 
27
+function icon_enabled_php53($title = '')
28
+{
29
+  global $prefix;
30
+  return "<img src=\"{$prefix}images/ok-php53.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
31
+}
32
+
33
+function icon_enabled_php54($title = '')
34
+{
35
+  global $prefix;
36
+  return "<img src=\"{$prefix}images/ok-php54.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
37
+}
38
+
27 39
 function icon_enabled_warning($title = '')
28 40
 {
29 41
   global $prefix;
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/base.php');
4 18
 
Browse code

Neue Icons für PHP 5.2 und 5.3

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

bernd authored on15/11/2010 15:28:22
Showing1 changed files
... ...
@@ -10,10 +10,10 @@ function icon_warning($title = '')
10 10
 
11 11
 
12 12
 
13
-function icon_enabled_php53($title = '')
13
+function icon_enabled_warning($title = '')
14 14
 {
15 15
   global $prefix;
16
-  return "<img src=\"{$prefix}images/ok-php53.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
16
+  return "<img src=\"{$prefix}images/ok-warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
17 17
 }
18 18
 
19 19
 function icon_enabled($title = '')
Browse code

Überarbeitetes Systemuser-Modul, mit dem man Quotas, Realname und Shell selbst setzen kann.

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

bernd authored on12/04/2010 15:46:40
Showing1 changed files
... ...
@@ -45,6 +45,12 @@ function icon_error($title = '')
45 45
   return "<img src=\"{$prefix}images/error.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
46 46
 }
47 47
 
48
+function icon_edit($title = '')
49
+{
50
+  global $prefix;
51
+  return "<img src=\"{$prefix}images/edit.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
52
+}
53
+
48 54
 function icon_pwchange($title = '')
49 55
 {
50 56
   global $prefix;
Browse code

Webalizer/Statistik-Funktionalität

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

bernd authored on22/01/2010 07:48:35
Showing1 changed files
... ...
@@ -68,3 +68,15 @@ function icon_delete($title = '')
68 68
 
69 69
 
70 70
 
71
+function other_icon($filename, $title = '')
72
+{
73
+  global $prefix;
74
+  return "<img src=\"{$prefix}images/{$filename}\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
75
+}
76
+
77
+
78
+
79
+
80
+
81
+
82
+
Browse code

Separates Icon für PHP 5.3

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

bernd authored on27/11/2009 08:38:39
Showing1 changed files
... ...
@@ -10,6 +10,12 @@ function icon_warning($title = '')
10 10
 
11 11
 
12 12
 
13
+function icon_enabled_php53($title = '')
14
+{
15
+  global $prefix;
16
+  return "<img src=\"{$prefix}images/ok-php53.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
17
+}
18
+
13 19
 function icon_enabled($title = '')
14 20
 {
15 21
   global $prefix;
Browse code

neue Bilder, mehr SSL-Zertifikate-Verwaltung

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

bernd authored on29/08/2009 17:08:03
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,64 @@
1
+<?php
2
+
3
+require_once('inc/base.php');
4
+
5
+function icon_warning($title = '')
6
+{
7
+  global $prefix;
8
+  return "<img src=\"{$prefix}images/warning.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
9
+}
10
+
11
+
12
+
13
+function icon_enabled($title = '')
14
+{
15
+  global $prefix;
16
+  return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
17
+}
18
+
19
+
20
+function icon_disabled($title = '')
21
+{
22
+  global $prefix;
23
+  return "";
24
+  //return "<img src=\"{$prefix}images/disabled.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
25
+}
26
+
27
+
28
+function icon_ok($title = '')
29
+{
30
+  global $prefix;
31
+  return "<img src=\"{$prefix}images/ok.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
32
+}
33
+
34
+
35
+
36
+function icon_error($title = '')
37
+{
38
+  global $prefix;
39
+  return "<img src=\"{$prefix}images/error.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
40
+}
41
+
42
+function icon_pwchange($title = '')
43
+{
44
+  global $prefix;
45
+  return "<img src=\"{$prefix}images/pwchange.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
46
+}
47
+
48
+
49
+function icon_add($title = '')
50
+{
51
+  global $prefix;
52
+  return "<img src=\"{$prefix}images/add.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
53
+}
54
+
55
+
56
+
57
+function icon_delete($title = '')
58
+{
59
+  global $prefix;
60
+  return "<img src=\"{$prefix}images/delete.png\" style=\"height: 16px; width: 16px;\" alt=\"{$title}\" title=\"{$title}\" />";
61
+}
62
+
63
+
64
+