19 if (!file_exists(
$dir)) {
20 if (!file_exists(dirname(
$dir)))
create_dir(dirname(
$dir) ,
"$access", $owner, $group);
21 $cmd =
"mkdir(\"" .
$dir .
"\"," . $access .
");";
23 if ($owner !=
"") chown(
$dir, $owner);
24 if ($group !=
"") chgrp(
$dir, $group);
31 if (!file_exists(
$file)) {
34 if ($owner !=
"") chown(
$file, $owner);
35 if ($group !=
"") chgrp(
$file, $group);
42 if (file_exists(
$from)) {
45 $cmd =
"chmod(\"" .
$to .
"\"," . $access .
");";
48 if ($owner !=
"") chown(
$dir, $owner);
49 if ($group !=
"") chgrp(
$dir, $group);
55 $cmd = sprintf(
"rm -rf %s", escapeshellarg(
$dir));
create_file($file, $access, $owner="", $group="")
foreach($argv as $arg) $cmd
install_file($from, $to, $access, $owner="", $group="")
create_dir($dir, $access, $owner="", $group="")