/** * Retrieve the last time when the filesystem scan was ran. * * @param boolean $format Whether the timestamp must be formatted as date/time or not. * @return string The timestamp of the runtime, or an string with the date/time. */ public static function get_filesystem_runtime($format = false) { $runtime = SucuriScanOption::get_option(':runtime'); if ($runtime > 0) { if ($format) { return SucuriScan::datetime($runtime); } return $runtime; } if ($format) { return '<em>Unknown</em>'; } return false; }