diff --git a/module/common/model.php b/module/common/model.php index abb32d5b43..451c4d414e 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -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) diff --git a/module/common/view/footer.html.php b/module/common/view/footer.html.php index d487475b46..3e19f6bd3c 100644 --- a/module/common/view/footer.html.php +++ b/module/common/view/footer.html.php @@ -1,8 +1,8 @@ getExtViewFile(__FILE__)){include $extView; return helper::cd();}?> - +
- +