Most visitors online was 8830 , on 6 Feb 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!app/models/queuejob.phpfunction processQueue()
{
$mutex = new MutexModel();
$mutex->releaseOnTimeout();
if ($mutex->lock())
{
$this->processTaskQueue();
if (date('w') == 5)
{
$row = $this->provider->fetchRow('SELECT gs.cur_week w1, CEIL((TO_DAYS(NOW())-TO_DAYS(gs.start_date))/7) w2 FROM g_settings gs');
if ($row['w1'] < $row['w2'])
{
$this->provider->executeQuery('UPDATE g_settings gs SET gs.cur_week=%s', array(
intval($row['w2'])
));
$this->setWeeklyMedals(intval($row['w2']));
}
}
$mutex->release();
}
}