Exemplo n.º 1
0
	<td>
		<input type="text" name="thm_pspell_lang" value="<?php 
echo htmlspecialchars($thm_pspell_lang);
?>
" size=4>
		[<a href="javascript://" onClick="javascript: document.admthm.thm_pspell_lang.value=''">disable</a>]
	</td>
</tr>

<tr class="field">
	<td colspan=2>
	<?php 
draw_checkbox('thm_t_default', '2', $thm_t_default);
?>
 Default <?php 
draw_checkbox('thm_enabled', '1', $thm_enabled);
?>
 Enabled
	</td>
</tr>
<tr class="fieldaction">
<?php 
if (!$edit) {
    ?>
		<td colspan=2 align=right><input type="submit" name="btn_submit" value="Add"></td>
<?php 
} else {
    ?>
	<td colspan=2 align=right>
		<input type="submit" name="btn_cancel" value="Cancel">
		<input type="submit" name="btn_update" value="Update">
Exemplo n.º 2
0
    ?>
</td>
			<td><?php 
    draw_checkbox('wexec', 01, bit_test($st[2], 01));
    ?>
</td></tr>
		<tr><td colspan=4><?php 
    draw_checkbox('setuid', 04000, bit_test($st[2], 04000));
    ?>
 setuid</td></tr>
		<tr><td colspan=4><?php 
    draw_checkbox('setgid', 02000, bit_test($st[2], 02000));
    ?>
 setgid</td></tr>
		<tr><td colspan=4><?php 
    draw_checkbox('sticky', 01000, bit_test($st[2], 01000));
    ?>
 sticky</td></tr>
		<tr><td colspan=4 align=right><input type="submit" name="btn_submit" value="Apply"> <input type="submit" name="btn_mini_cancel" value="Cancel"></td></tr>
		</table>
		</form>
	</html>
<?php 
    exit;
}
/* change file/directory permissions */
if (isset($_POST['chmod'])) {
    $file = $cur_dir . '/' . $dest;
    $perm_bits = array('oread', 'owrite', 'oexec', 'gread', 'gwrite', 'gexec', 'wread', 'wwrite', 'wexec', 'setuid', 'setgid', 'sticky');
    $new_mode = 0;
    foreach ($perm_bits as $v) {