37 foreach ($_POST['record'] as $record) { |
37 foreach ($_POST['record'] as $record) { |
38 edit_record($record); |
38 edit_record($record); |
39 } |
39 } |
40 } |
40 } |
41 |
41 |
42 if (verify_permission(zone_content_view_others)) { $perm_view = "all" ; } |
42 if (verify_permission('zone_content_view_others')) { $perm_view = "all" ; } |
43 elseif (verify_permission(zone_content_view_own)) { $perm_view = "own" ; } |
43 elseif (verify_permission('zone_content_view_own')) { $perm_view = "own" ; } |
44 else { $perm_view = "none" ; } |
44 else { $perm_view = "none" ; } |
45 |
45 |
46 if (verify_permission(zone_content_edit_others)) { $perm_content_edit = "all" ; } |
46 if (verify_permission('zone_content_edit_others')) { $perm_content_edit = "all" ; } |
47 elseif (verify_permission(zone_content_edit_own)) { $perm_content_edit = "own" ; } |
47 elseif (verify_permission('zone_content_edit_own')) { $perm_content_edit = "own" ; } |
48 else { $perm_content_edit = "none" ; } |
48 else { $perm_content_edit = "none" ; } |
49 |
49 |
50 if (verify_permission(zone_meta_edit_others)) { $perm_meta_edit = "all" ; } |
50 if (verify_permission('zone_meta_edit_others')) { $perm_meta_edit = "all" ; } |
51 elseif (verify_permission(zone_meta_edit_own)) { $perm_meta_edit = "own" ; } |
51 elseif (verify_permission('zone_meta_edit_own')) { $perm_meta_edit = "own" ; } |
52 else { $perm_meta_edit = "none" ; } |
52 else { $perm_meta_edit = "none" ; } |
53 |
53 |
54 $user_is_zone_owner = verify_user_is_owner_zoneid($zone_id); |
54 $user_is_zone_owner = verify_user_is_owner_zoneid($zone_id); |
55 if ( $perm_meta_edit == "all" || ( $perm_meta_edit == "own" && $user_is_zone_owner == "1") ) { |
55 if ( $perm_meta_edit == "all" || ( $perm_meta_edit == "own" && $user_is_zone_owner == "1") ) { |
56 $meta_edit = "1"; |
56 $meta_edit = "1"; |
179 echo " <tr>\n"; |
179 echo " <tr>\n"; |
180 echo " <td>\n"; |
180 echo " <td>\n"; |
181 echo " <select name=\"newowner\">\n"; |
181 echo " <select name=\"newowner\">\n"; |
182 $users = show_users(); |
182 $users = show_users(); |
183 foreach ($users as $user) { |
183 foreach ($users as $user) { |
184 unset($add); |
184 $add = ''; |
185 if ($user["id"] == $_SESSION["userid"]) { |
185 if ($user["id"] == $_SESSION["userid"]) { |
186 $add = " SELECTED"; |
186 $add = " SELECTED"; |
187 } |
187 } |
188 echo " <option" . $add . " value=\"" . $user["id"] . "\">" . $user["fullname"] . "</option>\n"; |
188 echo " <option" . $add . " value=\"" . $user["id"] . "\">" . $user["fullname"] . "</option>\n"; |
189 } |
189 } |
204 echo " <input type=\"hidden\" name=\"domain\" value=\"" . $zone_id . "\">\n"; |
204 echo " <input type=\"hidden\" name=\"domain\" value=\"" . $zone_id . "\">\n"; |
205 echo " <tr>\n"; |
205 echo " <tr>\n"; |
206 echo " <td>\n"; |
206 echo " <td>\n"; |
207 echo " <select name=\"newtype\">\n"; |
207 echo " <select name=\"newtype\">\n"; |
208 foreach($server_types as $type) { |
208 foreach($server_types as $type) { |
209 unset($add); |
209 $add = ''; |
210 if ($type == $domain_type) { |
210 if ($type == $domain_type) { |
211 $add = " SELECTED"; |
211 $add = " SELECTED"; |
212 } |
212 } |
213 echo " <option" . $add . " value=\"" . $type . "\">" . strtolower($type) . "</option>\n"; |
213 echo " <option" . $add . " value=\"" . $type . "\">" . strtolower($type) . "</option>\n"; |
214 } |
214 } |