Can we mix php and bash in there? as currently I have the prevent public_html deletion php code in that file.I've created a guide here:
http://help.directadmin.com/item.php?id=273
#!/usr/local/bin/php
<?
$command = getenv("command");
$button = getenv("button");
if (preg_match("/CMD_FILE_MANAGER/", $command) && $button == "delete")
{
foreach ($_ENV as $path)
{
if ($path == "/public_html")
{
echo "You cannot delete your public_html link!\n";
exit(1);
}
}
}
exit(0);
?>