add_record.php
changeset 126 cb06e3e29ed8
parent 119 f74e4f88b680
child 132 155178ad24e4
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 $zone_id = "-1";
    37 $zone_id = "-1";
    38 if ((isset($_GET['id'])) && (v_num($_GET['id']))) {
    38 if ((isset($_GET['id'])) && (v_num($_GET['id']))) {
    39 	$zone_id = $_GET['id'];
    39 	$zone_id = $_GET['id'];