* move the notify link to common model.

This commit is contained in:
wangchunsheng
2013-01-17 07:10:46 +00:00
parent 9e468efa69
commit 55fed43318
2 changed files with 21 additions and 3 deletions

View File

@@ -429,6 +429,24 @@ class commonModel extends model
}
}
/**
* Print the link for notify file.
*
* @static
* @access public
* @return void
*/
public static function printNotifyLink()
{
if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows') !== false)
{
global $app, $lang;
$notifyFile = $app->getBasePath() . 'www/data/notify/notify.zip';
if(!file_exists($notifyFile)) return false;
echo html::a(helper::createLink('misc', 'downNotify'), $lang->downNotify);
}
}
/**
* Diff two string. (see phpt)