同步 细节

This commit is contained in:
Comsenz 2017-08-01 10:41:16 +08:00
parent ca464ed59a
commit d7ec4030d5
9 changed files with 11 additions and 10 deletions

View File

@ -235,7 +235,7 @@ class credit {
} }
} }
function fequencycheck($uids) { function frequencycheck($uids) {
global $_G; global $_G;
if(empty($_G['config']['security']['creditsafe']['second']) || empty($_G['config']['security']['creditsafe']['times'])) { if(empty($_G['config']['security']['creditsafe']['second']) || empty($_G['config']['security']['creditsafe']['times'])) {
return true; return true;
@ -245,7 +245,7 @@ class credit {
$v = intval(memory('get', $key)); $v = intval(memory('get', $key));
memory('set', $key, ++$v, $_G['config']['security']['creditsafe']['second']); memory('set', $key, ++$v, $_G['config']['security']['creditsafe']['second']);
if($v > $_G['config']['security']['creditsafe']['times']) { if($v > $_G['config']['security']['creditsafe']['times']) {
system_error('credit fequency limit', true); system_error('credit frequency limit', true);
return false; return false;
} }
} }
@ -257,7 +257,7 @@ class credit {
if(!$uids) $uids = intval($_G['uid']); if(!$uids) $uids = intval($_G['uid']);
$uids = is_array($uids) ? $uids : array($uids); $uids = is_array($uids) ? $uids : array($uids);
$this->fequencycheck($uids); $this->frequencycheck($uids);
if($uids && ($creditarr || $this->extrasql)) { if($uids && ($creditarr || $this->extrasql)) {
if($this->extrasql) $creditarr = array_merge($creditarr, $this->extrasql); if($this->extrasql) $creditarr = array_merge($creditarr, $this->extrasql);
$sql = array(); $sql = array();

View File

@ -13,7 +13,7 @@ if(!defined('IN_DISCUZ')) {
if(!defined('DISCUZ_VERSION')) { if(!defined('DISCUZ_VERSION')) {
define('DISCUZ_VERSION', 'X3.4'); define('DISCUZ_VERSION', 'X3.4');
define('DISCUZ_RELEASE', '20170701'); define('DISCUZ_RELEASE', '20170801');
define('DISCUZ_FIXBUG', '34000000'); define('DISCUZ_FIXBUG', '34000000');
} }

View File

@ -66,6 +66,7 @@ if($_GET['op'] == 'delete') {
} }
showmessage('do_success', dreferer(), array('feedid' => $feedid), array('showdialog'=>1, 'showmsg' => true, 'closetime' => true)); showmessage('do_success', dreferer(), array('feedid' => $feedid), array('showdialog'=>1, 'showmsg' => true, 'closetime' => true));
} }
} elseif($_GET['op'] == 'getapp') {
} elseif($_GET['op'] == 'getcomment') { } elseif($_GET['op'] == 'getcomment') {

View File

@ -39,7 +39,7 @@
</item> </item>
</item> </item>
</item> </item>
<item id="version"><![CDATA[X2.5,X3,X3.1,X3.2]]></item> <item id="version"><![CDATA[X2.5,X3,X3.1,X3.2,X3.3,X3.4]]></item>
<item id="language"> <item id="language">
<item id="scriptlang"> <item id="scriptlang">
<item id="mobile_tip_ios"><![CDATA[<a href="http://www.discuz.net/mobile.php?platform=ios">用掌上论坛访问本站,拥有更好阅读体验</a>]]></item> <item id="mobile_tip_ios"><![CDATA[<a href="http://www.discuz.net/mobile.php?platform=ios">用掌上论坛访问本站,拥有更好阅读体验</a>]]></item>

View File

@ -39,7 +39,7 @@
</item> </item>
</item> </item>
</item> </item>
<item id="version"><![CDATA[X3.2]]></item> <item id="version"><![CDATA[X3.2,X3.3,X3.4]]></item>
<item id="var"> <item id="var">
<item id="0"> <item id="0">
<item id="displayorder"><![CDATA[0]]></item> <item id="displayorder"><![CDATA[0]]></item>

View File

@ -67,7 +67,7 @@
</item> </item>
</item> </item>
</item> </item>
<item id="version"><![CDATA[X3.2,X3.3]]></item> <item id="version"><![CDATA[X3.2,X3.3,X3.4]]></item>
<item id="installfile"><![CDATA[install.php]]></item> <item id="installfile"><![CDATA[install.php]]></item>
<item id="upgradefile"><![CDATA[upgrade.php]]></item> <item id="upgradefile"><![CDATA[upgrade.php]]></item>
<item id="language"> <item id="language">

View File

@ -184,7 +184,7 @@
</item> </item>
</item> </item>
</item> </item>
<item id="version"><![CDATA[X2.5,X3,X3.1,X3.2]]></item> <item id="version"><![CDATA[X2.5,X3,X3.1,X3.2,X3.3,X3.4]]></item>
<item id="language"> <item id="language">
<item id="scriptlang"> <item id="scriptlang">
<item id="wechat_undefined"><![CDATA[此链接已过期,请重新在微信中生成此链接]]></item> <item id="wechat_undefined"><![CDATA[此链接已过期,请重新在微信中生成此链接]]></item>

View File

@ -54,6 +54,6 @@
<item id="contentseparate"><![CDATA[#C2D5E3]]></item> <item id="contentseparate"><![CDATA[#C2D5E3]]></item>
<item id="inputborder"><![CDATA[#E0E0E0]]></item> <item id="inputborder"><![CDATA[#E0E0E0]]></item>
</item> </item>
<item id="version"><![CDATA[X3.1]]></item> <item id="version"><![CDATA[X3.1,X3,2,X3.3,X3.4]]></item>
</item> </item>
</root> </root>