Code Duplication    Length = 6-6 lines in 4 locations

src/projects/fcreate.php 1 location

@@ 61-66 (lines=6) @@
58
    exit;
59
}
60
61
if (!$state['is_locked'])
62
{
63
    debug_write_log(DEBUG_NOTICE, 'Template must be locked.');
64
    header('HTTP/1.1 307 findex.php?id=' . $id);
65
    exit;
66
}
67
68
// 1st step of new field has been submitted
69

src/projects/fmodify.php 1 location

@@ 58-63 (lines=6) @@
55
    exit;
56
}
57
58
if (!$field['is_locked'])
59
{
60
    debug_write_log(DEBUG_NOTICE, 'Template must be locked.');
61
    header('HTTP/1.1 307 fview.php?id=' . $id);
62
    exit;
63
}
64
65
// changed field has been submitted
66

src/projects/screate.php 1 location

@@ 60-65 (lines=6) @@
57
    exit;
58
}
59
60
if (!$template['is_locked'])
61
{
62
    debug_write_log(DEBUG_NOTICE, 'Template must be locked.');
63
    header('HTTP/1.1 307 sindex.php?id=' . $id);
64
    exit;
65
}
66
67
$is_final = ustr2int(try_request('final', 0), 0, 1);
68

src/projects/smodify.php 1 location

@@ 59-64 (lines=6) @@
56
    exit;
57
}
58
59
if (!$state['is_locked'])
60
{
61
    debug_write_log(DEBUG_NOTICE, 'Template must be locked.');
62
    header('HTTP/1.1 307 sview.php?id=' . $id);
63
    exit;
64
}
65
66
// changed state has been submitted
67