bernd commited on 2010-05-06 14:49:17
Zeige 9 geänderte Dateien mit 13 Einfügungen und 14 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1731 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -5,14 +5,14 @@ require_once('inc/security.php'); |
5 | 5 |
|
6 | 6 |
require_once('class/domain.php'); |
7 | 7 |
|
8 |
-require_role(ROLE_CUSTOMER); |
|
8 |
+require_role(ROLE_SYSTEMUSER); |
|
9 | 9 |
|
10 | 10 |
require_once('dnsinclude.php'); |
11 | 11 |
|
12 | 12 |
$section = 'dns_dns'; |
13 | 13 |
|
14 | 14 |
$domain = new Domain((int) $_REQUEST['dom']); |
15 |
-$domain->ensure_customerdomain(); |
|
15 |
+$domain->ensure_userdomain(); |
|
16 | 16 |
|
17 | 17 |
DEBUG($domain); |
18 | 18 |
|
... | ... |
@@ -5,7 +5,7 @@ require_once('inc/security.php'); |
5 | 5 |
|
6 | 6 |
require_once('class/domain.php'); |
7 | 7 |
|
8 |
-require_role(ROLE_CUSTOMER); |
|
8 |
+require_role(ROLE_SYSTEMUSER); |
|
9 | 9 |
|
10 | 10 |
require_once('dnsinclude.php'); |
11 | 11 |
|
... | ... |
@@ -33,7 +33,7 @@ if ($_REQUEST['id'] == 'new') |
33 | 33 |
$new = true; |
34 | 34 |
$data = blank_dns_record($_REQUEST['type']); |
35 | 35 |
$domain = new Domain((int) $_REQUEST['domain']); |
36 |
- $domain->ensure_customerdomain(); |
|
36 |
+ $domain->ensure_userdomain(); |
|
37 | 37 |
$type = $_REQUEST['type']; |
38 | 38 |
if (! in_array($type, $valid_record_types)) |
39 | 39 |
system_failure('Ungültiger Record-Typ!'); |
... | ... |
@@ -48,7 +48,7 @@ if (! $new) |
48 | 48 |
$type = $data['type']; |
49 | 49 |
$dyndns = isset($data['dyndns']); |
50 | 50 |
$domain = new Domain((int) $data['domain']); |
51 |
- $domain->ensure_customerdomain(); |
|
51 |
+ $domain->ensure_userdomain(); |
|
52 | 52 |
if (! in_array($type, $valid_record_types)) |
53 | 53 |
system_failure('Ungültiger Record-Typ!'); |
54 | 54 |
} |
... | ... |
@@ -7,7 +7,7 @@ require_once('inc/security.php'); |
7 | 7 |
|
8 | 8 |
require_once('class/domain.php'); |
9 | 9 |
|
10 |
-require_role(ROLE_CUSTOMER); |
|
10 |
+require_role(ROLE_SYSTEMUSER); |
|
11 | 11 |
|
12 | 12 |
require_once('dnsinclude.php'); |
13 | 13 |
|
... | ... |
@@ -18,7 +18,7 @@ if ($_GET['type'] == 'autodns') |
18 | 18 |
if ($_GET['action'] == 'enable') |
19 | 19 |
{ |
20 | 20 |
$dom = new Domain( (int) $_GET['dom'] ); |
21 |
- $dom->ensure_customerdomain(); |
|
21 |
+ $dom->ensure_userdomain(); |
|
22 | 22 |
|
23 | 23 |
$sure = user_is_sure(); |
24 | 24 |
if ($sure === NULL) |
... | ... |
@@ -41,7 +41,7 @@ if ($_GET['type'] == 'autodns') |
41 | 41 |
elseif ($_GET['action'] == 'disable') |
42 | 42 |
{ |
43 | 43 |
$dom = new Domain( (int) $_GET['dom'] ); |
44 |
- $dom->ensure_customerdomain(); |
|
44 |
+ $dom->ensure_userdomain(); |
|
45 | 45 |
|
46 | 46 |
$sure = user_is_sure(); |
47 | 47 |
if ($sure === NULL) |
... | ... |
@@ -3,7 +3,7 @@ |
3 | 3 |
$role = $_SESSION['role']; |
4 | 4 |
|
5 | 5 |
|
6 |
-if ($role & ROLE_SYSTEMUSER && $role & ROLE_CUSTOMER) |
|
6 |
+if ($role & ROLE_SYSTEMUSER) |
|
7 | 7 |
{ |
8 | 8 |
$menu["dns_dns"] = array("label" => "DNS-Einträge", "file" => "dns", "weight" => 10, "submenu" => "domains_domains"); |
9 | 9 |
$menu["dns_dyndns"] = array("label" => "DynDNS", "file" => "dyndns", "weight" => 11, "submenu" => "domains_domains"); |