Edit file File name : disable_cron Content :#!/usr/local/bin/php <? $username = trim(exec("whoami")); if($username == 'root'){ die("Please don't run this as root!"); } echo "Disabling Cron...\n"; require_once dirname(__FILE__).'/../app/classes/class.A2OptDrupal.php'; $app = new StdClass(); $app->path = getcwd(); $app->domain = ""; $drupal = new A2OptDrupal($app); $drupal->disable_cache_cron(); echo "Cron Disabled.\n"; Save