edit_record.php
changeset 126 cb06e3e29ed8
parent 120 982f722376b4
child 127 e2c54e888f7e
equal deleted inserted replaced
125:700a3674b72e 126:cb06e3e29ed8
    20  */
    20  */
    21 
    21 
    22 require_once("inc/toolkit.inc.php");
    22 require_once("inc/toolkit.inc.php");
    23 include_once("inc/header.inc.php");
    23 include_once("inc/header.inc.php");
    24 
    24 
    25 if (verify_permission(zone_content_view_others)) { $perm_view = "all" ; }
    25 if (verify_permission('zone_content_view_others')) { $perm_view = "all" ; }
    26 elseif (verify_permission(zone_content_view_own)) { $perm_view = "own" ; }
    26 elseif (verify_permission('zone_content_view_own')) { $perm_view = "own" ; }
    27 else { $perm_view = "none" ; }
    27 else { $perm_view = "none" ; }
    28 
    28 
    29 if (verify_permission(zone_content_edit_others)) { $perm_content_edit = "all" ; }
    29 if (verify_permission('zone_content_edit_others')) { $perm_content_edit = "all" ; }
    30 elseif (verify_permission(zone_content_edit_own)) { $perm_content_edit = "own" ; }
    30 elseif (verify_permission('zone_content_edit_own')) { $perm_content_edit = "own" ; }
    31 else { $perm_content_edit = "none" ; }
    31 else { $perm_content_edit = "none" ; }
    32 
    32 
    33 if (verify_permission(zone_meta_edit_others)) { $perm_meta_edit = "all" ; }
    33 if (verify_permission('zone_meta_edit_others')) { $perm_meta_edit = "all" ; }
    34 elseif (verify_permission(zone_meta_edit_own)) { $perm_meta_edit = "own" ; }
    34 elseif (verify_permission('zone_meta_edit_own')) { $perm_meta_edit = "own" ; }
    35 else { $perm_meta_edit = "none" ; }
    35 else { $perm_meta_edit = "none" ; }
    36 
    36 
    37 $zid = get_zone_id_from_record_id($_GET["id"]);
    37 $zid = get_zone_id_from_record_id($_GET["id"]);
    38 
    38 
    39 $user_is_zone_owner = verify_user_is_owner_zoneid($zid);
    39 $user_is_zone_owner = verify_user_is_owner_zoneid($zid);