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.
... ...
@@ -29,9 +29,8 @@ $jabberdomains = get_jabberable_domains();
29 29
 DEBUG($jabberdomains);
30 30
 
31 31
 $options = '';
32
-foreach ($jabberdomains as $dom)
33
-{
34
-  $options .= '<option value="'.$dom->id.'">'.$dom->fqdn.'</option>'."\n";
32
+foreach ($jabberdomains as $dom) {
33
+    $options .= '<option value="'.$dom->id.'">'.$dom->fqdn.'</option>'."\n";
35 34
 }
36 35
 
37 36
 
... ...
@@ -47,6 +46,3 @@ output('<p>Erstellen Sie hier ein neues Jabber-Konto. Ihre Änderungen werden na
47 46
 <br />
48 47
 <input type="submit" name="submit" value="Anlegen" />
49 48
 '));
50
-
51
-
52
-?>
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('session/start.php');
4 18
 
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
... ...
@@ -8,7 +8,7 @@ require_once('jabberaccounts.php');
8 8
 require_role(ROLE_CUSTOMER);
9 9
 
10 10
 $section = 'jabber_accounts';
11
-$title = "Neues Jabber-Konto erstellen";
11
+title("Neues Jabber-Konto erstellen");
12 12
 
13 13
 $jabberdomains = get_jabberable_domains();
14 14
 
... ...
@@ -21,8 +21,6 @@ foreach ($jabberdomains as $dom)
21 21
 }
22 22
 
23 23
 
24
-output("<h3>Neuen Jabber-Account erstellen</h3>");
25
-
26 24
 output('<p>Erstellen Sie hier ein neues Jabber-Konto. Ihre Änderungen werden nach ca. 10 Minuten automatisch in das System übertragen. Accounts funktionieren also nicht unmittelbar nach dem Anlegen.</p>
27 25
 
28 26
 '.html_form('jabber_new_account', 'save', 'action=new', '
Browse code

Neue Jabber-Domains selbst eintragen.

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

bernd authored on01/10/2009 03:32:52
Showing1 changed files
... ...
@@ -7,6 +7,7 @@ require_once('jabberaccounts.php');
7 7
 
8 8
 require_role(ROLE_CUSTOMER);
9 9
 
10
+$section = 'jabber_accounts';
10 11
 $title = "Neues Jabber-Konto erstellen";
11 12
 
12 13
 $jabberdomains = get_jabberable_domains();
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
... ...
@@ -24,7 +24,7 @@ output("<h3>Neuen Jabber-Account erstellen</h3>");
24 24
 
25 25
 output('<p>Erstellen Sie hier ein neues Jabber-Konto. Ihre Änderungen werden nach ca. 10 Minuten automatisch in das System übertragen. Accounts funktionieren also nicht unmittelbar nach dem Anlegen.</p>
26 26
 
27
-'.html_form('jabber_new_account', 'save.php', 'action=new', '
27
+'.html_form('jabber_new_account', 'save', 'action=new', '
28 28
 <table>
29 29
 <tr><td>Account-Name:</td><td><input type="text" name="local" value="" />&#160;@&#160;<select name="domain" size="1">
30 30
 '.$options.'
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
... ...
@@ -26,7 +26,7 @@ output('<p>Erstellen Sie hier ein neues Jabber-Konto. Ihre Änderungen werden na
26 26
 
27 27
 '.html_form('jabber_new_account', 'save.php', 'action=new', '
28 28
 <table>
29
-<tr><td>Account-Name:</td><td><input type="text" name="local" value="" />&nbsp;@&nbsp;<select name="domain" size="1">
29
+<tr><td>Account-Name:</td><td><input type="text" name="local" value="" />&#160;@&#160;<select name="domain" size="1">
30 30
 '.$options.'
31 31
 </select></td></tr>
32 32
 <tr><td>Passwort:</td><td><input type="password" name="password" value="" /></td></tr>
Browse code

Jabber-Sync-intervall höher

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

bernd authored on30/09/2007 11:37:18
Showing1 changed files
... ...
@@ -22,7 +22,7 @@ foreach ($jabberdomains as $dom)
22 22
 
23 23
 output("<h3>Neuen Jabber-Account erstellen</h3>");
24 24
 
25
-output('<p>Erstellen Sie hier ein neues Jabber-Konto.</p>
25
+output('<p>Erstellen Sie hier ein neues Jabber-Konto. Ihre Änderungen werden nach ca. 10 Minuten automatisch in das System übertragen. Accounts funktionieren also nicht unmittelbar nach dem Anlegen.</p>
26 26
 
27 27
 '.html_form('jabber_new_account', 'save.php', 'action=new', '
28 28
 <table>
Browse code

schokokeks.org-Domain ist wieder benutzbar

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

bernd authored on16/08/2007 20:08:27
Showing1 changed files
... ...
@@ -11,6 +11,8 @@ $title = "Neues Jabber-Konto erstellen";
11 11
 
12 12
 $jabberdomains = get_jabberable_domains();
13 13
 
14
+DEBUG($jabberdomains);
15
+
14 16
 $options = '';
15 17
 foreach ($jabberdomains as $dom)
16 18
 {
Browse code

Parse Error, hatte ich gar nicht bemerkt...

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

bernd authored on28/07/2007 17:20:15
Showing1 changed files
... ...
@@ -9,8 +9,6 @@ require_role(ROLE_CUSTOMER);
9 9
 
10 10
 $title = "Neues Jabber-Konto erstellen";
11 11
 
12
-DEBUG("GET: ".htmlentities(print_r($_GET, true))." / POST: ".htmlentities(print_r($_POST, true)));
13
-
14 12
 $jabberdomains = get_jabberable_domains();
15 13
 
16 14
 $options = '';
Browse code

Domain-Klasse benutzen

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

bernd authored on05/07/2007 18:43:18
Showing1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 
3 3
 require_once('session/start.php');
4 4
 
5
-require_once('domains.php');
5
+require_once('class/domain.php');
6 6
 require_once('jabberaccounts.php');
7 7
 
8 8
 require_role(ROLE_CUSTOMER);
... ...
@@ -16,7 +16,7 @@ $jabberdomains = get_jabberable_domains();
16 16
 $options = '';
17 17
 foreach ($jabberdomains as $dom)
18 18
 {
19
-  $options .= '<option value="'.$dom['id'].'">'.$dom['name'].'</option>'."\n";
19
+  $options .= '<option value="'.$dom->id.'">'.$dom->fqdn.'</option>'."\n";
20 20
 }
21 21
 
22 22
 
Browse code

@ nachgereicht

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

bernd authored on02/06/2007 12:51:46
Showing1 changed files
... ...
@@ -26,7 +26,7 @@ output('<p>Erstellen Sie hier ein neues Jabber-Konto.</p>
26 26
 
27 27
 '.html_form('jabber_new_account', 'save.php', 'action=new', '
28 28
 <table>
29
-<tr><td>Account-Name:</td><td><input type="text" name="local" value="" />&nbsp;&nbsp;&nbsp;<select name="domain" size="1">
29
+<tr><td>Account-Name:</td><td><input type="text" name="local" value="" />&nbsp;@&nbsp;<select name="domain" size="1">
30 30
 '.$options.'
31 31
 </select></td></tr>
32 32
 <tr><td>Passwort:</td><td><input type="password" name="password" value="" /></td></tr>
Browse code

Neues Jabber-Modul (noch nicht ganz fertig) und Formular-Framework

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

bernd authored on01/06/2007 16:53:03
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+require_once('session/start.php');
4
+
5
+require_once('domains.php');
6
+require_once('jabberaccounts.php');
7
+
8
+require_role(ROLE_CUSTOMER);
9
+
10
+$title = "Neues Jabber-Konto erstellen";
11
+
12
+DEBUG("GET: ".htmlentities(print_r($_GET, true))." / POST: ".htmlentities(print_r($_POST, true)));
13
+
14
+$jabberdomains = get_jabberable_domains();
15
+
16
+$options = '';
17
+foreach ($jabberdomains as $dom)
18
+{
19
+  $options .= '<option value="'.$dom['id'].'">'.$dom['name'].'</option>'."\n";
20
+}
21
+
22
+
23
+output("<h3>Neuen Jabber-Account erstellen</h3>");
24
+
25
+output('<p>Erstellen Sie hier ein neues Jabber-Konto.</p>
26
+
27
+'.html_form('jabber_new_account', 'save.php', 'action=new', '
28
+<table>
29
+<tr><td>Account-Name:</td><td><input type="text" name="local" value="" />&nbsp;&nbsp;&nbsp;<select name="domain" size="1">
30
+'.$options.'
31
+</select></td></tr>
32
+<tr><td>Passwort:</td><td><input type="password" name="password" value="" /></td></tr>
33
+</table>
34
+<br />
35
+<input type="submit" name="submit" value="Anlegen" />
36
+'));
37
+
38
+
39
+?>