[Dehs-devel] r132 - trunk
atomo64-guest at alioth.debian.org
atomo64-guest at alioth.debian.org
Sat Apr 19 00:28:33 UTC 2008
Author: atomo64-guest
Date: 2008-04-19 00:28:32 +0000 (Sat, 19 Apr 2008)
New Revision: 132
Modified:
trunk/dehs_pg.php
Log:
Allow dir_ctrl to take a string as an argument
Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php 2008-04-18 23:47:44 UTC (rev 131)
+++ trunk/dehs_pg.php 2008-04-19 00:28:32 UTC (rev 132)
@@ -82,6 +82,9 @@
else print "Command $argv[1] not found\n";
#stat_up_error();
function dir_ctrl($dirs) {
+ if (!is_array($dirs)) {
+ $dirs = array($dirs);
+ }
foreach ($dirs as $dir) {
if (!is_dir($dir)) exec("mkdir -m 0740 -p " . escapeshellarg($dir), $output, $res);
if ($res != 0) die_status("Error creating basic dir: $dir\n");
More information about the Dehs-devel
mailing list