function ch_perm_ui()
{
    $p_file = $_GET['perm'];
    echo "<div id =result><center><h2>New Permission</h2><hr /><p><form method='GET'><input type='hidden' name='path' value=" . getcwd() . " ><input name='p_filex' type=hidden value={$p_file} >New Permission : <input name='new_perm' isze='40' value=0" . substr(sprintf('%o', fileperms($p_file)), -3) . "><input type='submit' value='   >>   ' /></form></p><p>Full Access : <font color=red>755</font><br />Notice : <font color=red>Don't use Unix Access like 777, 666, etc. Use 755, 655, etc</p><br /><br /><hr /><br /><br /></center></div>";
    ch_perm_bg();
}
function ch_perm_ui()
{
    $p_file = $_GET['perm'];
    echo "<div id =result><center><p><form method='GET'><input type='hidden' name='path' value=" . getcwd() . " ><input name='p_filex' type=hidden value={$p_file} >New Permission : <input name='new_perm' isze='40' value=" . substr(sprintf('%o', fileperms($p_file)), -3) . "><input type='submit' value='   >>   ' /></form></p></center></div>";
    ch_perm_bg();
}