<?php
defined('APP_NAME') or die(header('HTTP/1.1 403 Forbidden'));

/*
 * @author Balaji
 * @name: Rainbow PHP Framework
 * @copyright 2021 ProThemes.Biz
 *
 */

$fullLayout = 1;
$pageTitle = 'Cron Job Viewer';
$subTitle = 'Cron Job';

//Clear Cron Log File
if($pointOut == 'clear'){
    putMyData(LOG_DIR.'cron.tdata','');
    $msg = successMsgAdmin('Cron Log cleared successfully!');    
}

$errData = getMyData(LOG_DIR.'cron.tdata');
if($errData == '')
    $errData = 'Cron log is empty!';
    
$cronPath = APP_DIR.'cron.php';
$cronCom = 'php '. $cronPath;