* finish task#1425.

* finish task#1426.
 * finish task#1427.
 * finish task#1428.
This commit is contained in:
chencongzhi520@gmail.com
2013-06-26 06:27:16 +00:00
parent d9a4efdf23
commit c0cb5aaed3
24 changed files with 6794 additions and 0 deletions
+15
View File
@@ -144,6 +144,8 @@ class commonModel extends model
if(stripos($method, 'downnotify') !== false) return true;
}
if($module == 'misc' and $method == 'showqrcode') return true;
if($module == 'misc' and $method == 'deleteqrcode') return true;
if($module == 'misc' and $method == 'about') return true;
if($module == 'misc' and $method == 'checkupdate') return true;
return false;
@@ -502,6 +504,19 @@ class commonModel extends model
}
}
/**
* Print QR code Link.
*
* @static
* @access public
* @return void
*/
public static function printQRCodeLink($color = '')
{
global $lang;
if(extension_loaded('gd')) echo html::a(helper::createLink('misc', 'showQRCode'), $lang->user->mobileLogin, '', "class='qrCode $color'");
}
/**
* Diff two string. (see phpt)
*