Falsche Umleitung
bernd

bernd commited on 2010-11-28 10:24:03
Zeige 1 geänderte Dateien mit 5 Einfügungen und 8 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1846 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -28,7 +28,7 @@ if ($_GET['action'] == 'new')
28 28
   {
29 29
     create_jabber_account($_POST['local'], $_POST['domain'], $_POST['password']);
30 30
     if (! $debugmode)
31
-      header('Location: accounts');
31
+      header('Location: account');
32 32
   }
33 33
   */
34 34
 }
... ...
@@ -57,7 +57,7 @@ elseif ($_GET['action'] == 'pwchange')
57 57
     set_systemuser_password($user['uid'], $_POST['newpass1']);
58 58
   }
59 59
   if (! ($debugmode || $error))
60
-    header('Location: accounts');
60
+    header('Location: account');
61 61
 }
62 62
 elseif ($_GET['action'] == 'edit')
63 63
 {
... ...
@@ -92,11 +92,8 @@ elseif ($_GET['action'] == 'edit')
92 92
       system_failure('Ungültige Shell');
93 93
 
94 94
   set_account_details($account);
95
-  $target = 'accounts';
96
-  if (! ($role & ROLE_CUSTOMER))
97
-    $target = 'myaccount';
98 95
   if (! ($debugmode || $error))
99
-    header('Location: '.$target);
96
+    header('Location: account');
100 97
   
101 98
 }
102 99
 elseif ($_GET['action'] == 'delete')
... ...
@@ -113,12 +110,12 @@ elseif ($_GET['action'] == 'delete')
113 110
   {
114 111
     delete_jabber_account($account['id']);
115 112
     if (! $debugmode)
116
-      header("Location: accounts");
113
+      header("Location: account");
117 114
   }
118 115
   elseif ($sure === false)
119 116
   {
120 117
     if (! $debugmode)
121
-      header("Location: accounts");
118
+      header("Location: account");
122 119
   }
123 120
   */
124 121
 }
125 122