Disable backup

arazit

Verified User
Joined
Aug 20, 2008
Messages
184
I want to disable create backup form 8:00AM to 1:00 night
please help me
 
what backup there are tons of them. admin reseller user system? what!
 
Can we mix php and bash in there? as currently I have the prevent public_html deletion php code in that file.
Code:
#!/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);
?>
 
Why wanna use php when you can write it easier in bash? You cant mix php and bash in the same file.
 
scsi, are you always like this in real life too? I sense a real bad attitude..... gotta always put ppl down
 
But you can use php and bash together, by calling a php program from the bash script.

Jeff
 
Back
Top