* adjust sn.
This commit is contained in:
@@ -19,8 +19,8 @@ class misc extends control
|
||||
*/
|
||||
public function ping()
|
||||
{
|
||||
if(mt_rand(0, 10) == 5) $this->loadModel('setting')->setSN();
|
||||
die("<html><head><meta http-equiv='refresh' content='300' /></head><body></body></html>");
|
||||
if(mt_rand(0, 1) == 1) $this->loadModel('setting')->setSN();
|
||||
die("<html><head><meta http-equiv='refresh' content='60' /></head><body></body></html>");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -119,7 +119,10 @@ class settingModel extends model
|
||||
{
|
||||
$this->dao->insert(TABLE_CONFIG)->data($item)->exec($autoCompany = false);
|
||||
}
|
||||
elseif($config->value == '281602d8ff5ee7533eeafd26eda4e776' or $config->value == '9bed3108092c94a0db2b934a46268b4a')
|
||||
elseif($config->value == '281602d8ff5ee7533eeafd26eda4e776' or
|
||||
$config->value == '9bed3108092c94a0db2b934a46268b4a' or
|
||||
$config->value == '8522dd4d76762a49d02261ddbe4ad432' or
|
||||
$config->value == '13593e340ee2bdffed640d0c4eed8bec')
|
||||
{
|
||||
$this->dao->update(TABLE_CONFIG)->data($item)->where('id')->eq($config->id)->exec($autoCompany = false);
|
||||
}
|
||||
|
||||
+1
-1
@@ -800,7 +800,7 @@ $(document).ready(function()
|
||||
saveWindowSize();
|
||||
loadFixedCSS();
|
||||
$(window).resize(function(){saveWindowSize()}); // When window resized, call it again.
|
||||
if(needPing) setTimeout('setPing()', 1000 * 60 * 5); // After 5 minutes, begin ping.
|
||||
if(needPing) setTimeout('setPing()', 1000 * 60); // After 5 minutes, begin ping.
|
||||
if($('#productID')) $('#productID').focus();
|
||||
if($('#projectID')) $('#projectID').focus();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user