diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-27 11:23:55 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-27 11:23:55 -0500 |
commit | fb0380f48203a11584773f3db335eaadd9cc6fdf (patch) | |
tree | 98f7eb36ed8a3ec99c1cba5c9c0742af8931783b /shell/bin/chmod.php | |
parent | 3d6790614bb0dc776e02a95835e5c274263d1d1a (diff) |
This zip file was identified as ltshell-3.5.zip
Diffstat (limited to 'shell/bin/chmod.php')
-rw-r--r-- | shell/bin/chmod.php | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/shell/bin/chmod.php b/shell/bin/chmod.php index ca66f56..b74a9ca 100644 --- a/shell/bin/chmod.php +++ b/shell/bin/chmod.php @@ -1,13 +1,16 @@ <?php -function main($args) { - $me = array_shift($args); - if (count($args)<2) { - echo $me.': usage: '.$me.' MODE FILE1 [FILE2 [FILE2]]'."\n"; - return 1; - } else { - $mode = array_shift($args); - foreach ($args as $file) { - chmod($file,octdec($mode)); +class p_chmod extends prog { + public static function main($args, $env) { + $me = array_shift($args); + if (count($args)<2) { + echo $me.': usage: '.$me.' MODE FILE1 [FILE2 [FILE2]]'."\n"; + return 1; + } else { + $mode = array_shift($args); + foreach ($args as $file) { + chmod($file,octdec($mode)); + } } } -}
\ No newline at end of file +} + |