execute(); class atkp_external_cron { function execute() { $crontype = atkp_options::$loader->get_crontype(); $mode = ATKPTools::get_get_parameter( 'mode', 'string' ); switch ( $crontype ) { default: case 'wpcron': //wp cron? nothing todo... throw new exception( 'external cronjob deactivated' ); exit; case 'external': case 'externaloutput': $cronjob = new atkp_cronjob_new( $crontype == 'externaloutput' ); $cronjob->do_work( false, $mode ); break; } //exit the script exit; } } ?>