<?php
include('../db.php');
if(is_numeric($cronCleanupDays) && $cronCleanupDays > 0) {
$date = date('Y-m-d',strtotime("-".$cronCleanupDays." days"));
dbQuery("DELETE FROM performers WHERE last_online < '".$date."'");
}
exit("Deleted performers that were offline for the last ".$cronCleanupDays." days");