So.
oc-includes/osclass/model/Log.php
Add
}
/**
* Delete logs older than 2 weeks for users and older than 1 month for admins.
*
* @access public
* @return boolean
*/
public function deleteOldLogs()
{
return $this->dao->delete(DB_TABLE_PREFIX.'t_log', "(TIMESTAMPDIFF(WEEK, dt_date, NOW()) >= 2 AND s_who = 'user' ) OR (TIMESTAMPDIFF(MONTH, dt_date, NOW()) >= 1 AND s_who = 'admin')");
}
}
/* file end: ./oc-includes/osclass/model/Log.php */
?>
instead of
}
}
/* file end: ./oc-includes/osclass/model/Log.php */
?>
and
/oc-includes/osclass/cron.php
add
//DELETE OLD LOGS
Log::newInstance()->deleteOldLogs();
osc_run_hook('cron_weekly');
instead of
osc_run_hook('cron_weekly');