This commit is contained in:
Steven Mondji-Lerider 2013-04-22 08:06:48 +00:00
parent 97f5570326
commit 4d8bb1d4de
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,7 @@ while ($r=$action->get_action()){
exec("su ".$r["user"]);
switch ($r["type"]){
case "CREATE_FILE" :
$return=file_put_contents($params["file"],$params["contents"]);
$return=file_put_contents($params["file"],$params["content"]);
break;
case "CREATE_DIR" :
$return=mkdir($params["dir"]));
@ -81,6 +81,9 @@ while ($r=$action->get_action()){
case "MOVE" :
$return=rename($params["src"],$params["dst"]);
break;
case "PERMFIX" :
// TODO
break;
default :
break;
}