• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

How Update top10 dboor

Status
Not open for further replies.
Initiate Mage
Joined
May 4, 2012
Messages
4
Reaction score
0
Hello, how update top10 in dboor 1.5 Beta make medals for players and ally. when you want? I want give Medalls: Every 2 day so how do that what file is?
 
Joined
May 15, 2009
Messages
799
Reaction score
558
function 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();
}
}
app/models/queuejob.php

there is also another function called set weekly medals but this first one controlls when it is done
 
Status
Not open for further replies.
Back
Top