Skip to content
Permalink
Browse files

[12] Small fix for autocheck system.

Signed-off-by: Ivan <Dfyztimy@list.ru>
  • Loading branch information...
Hantet committed Jul 5, 2010
1 parent 75934b3 commit 0f57975542d22318ccc058c6b9bb95b87ada88ee
Showing with 5 additions and 2 deletions.
  1. +1 −1 config.php
  2. +4 −1 lib/html.php
@@ -42,7 +42,7 @@ function get($id)
## defaultdate: Current php time-zone of server.
##################################################################################################*/
"CheckVersion" => true,
"version" => "11",
"version" => "12",
"checkdiff" => 2,
"defaultdate" => date_default_timezone_set('Europe/Moscow'));
@@ -484,14 +484,17 @@ public function CheckVersion()
$cfg->get("defaultdate");
$created = true;
$fp = @fopen("lib/lastupdate", 'r');
if(!$fp)
$created = false;
$str = @fgets($fp, 1024);
@fclose($fp);
if($str == date("d"))
return;
if(date("d") % $cfg->get("checkdiff") != 0)
if(date("d") % $cfg->get("checkdiff") != 0 || !$created)
{
$current = $cfg->get("version");
$fp = fopen("http://github.com/Hantet/BugTracker/", "r");

0 comments on commit 0f57975

Please sign in to comment.
You can’t perform that action at this time.