本帖最后由 1youcheng 于 2009-10-28 20:23 编辑
freeznet的帖子没有修改完,我补充
按照他的帖子修改https://discuz.dismall.com/thread-1455900-1-2.html 我就不复制在这里了
我贴上补充的
newmc.php
因为版本不同,我直接把改好的粘过来,你们参考自己改- $touarr = array( "1001" => 0, "1002" => 0, "1003" => 0, "1004" => 0, "1005" => 0, "1006" => 0, "1007" => 0,"1501" => 0, "1502" => 0, "1503" => 0, "1504" => 0 );
复制代码- $mc_log[help][$_SGLOBAL['timestamp']] = array(
- "uid" => $_SGLOBAL['supe_uid'],
- "name" => unicode_encodegb( $space[name] ),
- "1001" => 0,
- "1002" => 0,
- "1003" => 0,
- "1004" => 0,
- "1005" => 0,
- "1006" => 0,
- "1007" => 0,
- "1501" => 0,
- "1502" => 0,
- "1503" => 0,
- "1504" => 0,
- "40" => 0
- );
- ++$mc_log[help][$_SGLOBAL['timestamp']][$animal->animal[$_REQUEST['serial']]->cId];
- }
复制代码- $mc_log[scrounge][$_SGLOBAL['timestamp']] = array(
- "uid" => $_SGLOBAL['supe_uid'],
- "name" => unicode_encodegb( $space[name] ),
- "1001" => 0,
- "1002" => 0,
- "1003" => 0,
- "1004" => 0,
- "1005" => 0,
- "1006" => 0,
- "1007" => 0,
- "1501" => 0,
- "1502" => 0,
- "1503" => 0,
- "1504" => 0
- );
- $mc_log[scrounge][$_SGLOBAL['timestamp']][$_REQUEST['type']] = $tounum;
- }
复制代码- $mc_log[help][$_SGLOBAL['timestamp']] = array(
- "uid" => $_SGLOBAL['supe_uid'],
- "name" => unicode_encodegb( $space[name] ),
- "1001" => 0,
- "1002" => 0,
- "1003" => 0,
- "1004" => 0,
- "1005" => 0,
- "1006" => 0,
- "1007" => 0,
- "1501" => 0,
- "1502" => 0,
- "1503" => 0,
- "1504" => 0,
- "40" => $_REQUEST['foodnum']
- );
- }
复制代码- $logarr[$key] = "{"domain":2,"msg":"<font color=\\"#009900\\"><b>".$value[name]."</b></font> \\u6765\\u7267\\u573A\\u5077\\u8D70\\u4E86";
- if ( 0 < $value['1001'] )
- {
- $logarr[$key] .= $value['1001']."\\u4E2A\\u9E21\\u86CB";
- }
- if ( 0 < $value['1002'] )
- {
- $logarr[$key] .= $value['1002']."\\u53EA\\u5154\\u4ED4";
- }
- if ( 0 < $value['1003'] )
- {
- $logarr[$key] .= $value['1003']."\\u4E2A\\u9E45\\u86CB";
- }
- if ( 0 < $value['1004'] )
- {
- $logarr[$key] .= $value['1004']."\\u53EA\\u5C0F\\u732B\\u4ED4";
- }
- if ( 0 < $value['1005'] )
- {
- $logarr[$key] .= $value['1005']."\\u4E2A\\u5B54\\u96C0\\u86CB";
- }
- if ( 0 < $value['1006'] )
- {
- $logarr[$key] .= $value['1006']."\\u53EA\\u5C0F\\u4F01\\u9E45";
- }
- if ( 0 < $value['1007'] )
- {
- $logarr[$key] .= $value['1007']."\\u53EA\\u5C0F\\u4E4C\\u9F9F";
- }
- if ( 0 < $value['1501'] )
- {
- $logarr[$key] .= $value['1501']."\\u5377\\u7F8A\\u6BDB";
- }
- if ( 0 < $value['1502'] )
- {
- $logarr[$key] .= $value['1502']."\\u74F6\\u725B\\u5976";
- }
- if ( 0 < $value['1503'] )
- {
- $logarr[$key] .= $value['1503']."\\u53EA\\u5C0F\\u7334\\u4ED4";
- }
- if ( 0 < $value['1504'] )
- {
- $logarr[$key] .= $value['1504']."\\u53EA\\u5C0F\\u888B\\u9F20";
- }
复制代码- $logarr[$key] = "{"domain":2,"msg":"<font color=\\"#009900\\"><b>".$value[name]."</b></font> \\u5E2E\\u5FD9\\u628A";
- if ( 0 < $value['1001'] )
- {
- $logarr[$key] .= $value['1001']."\\u53EA\\u9E21\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1002'] )
- {
- $logarr[$key] .= $value['1002']."\\u53EA\\u5154\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1003'] )
- {
- $logarr[$key] .= $value['1003']."\\u53EA\\u9E45\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1004'] )
- {
- $logarr[$key] .= $value['1004']."\\u53EA\\u732B\\u4ED4\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1005'] )
- {
- $logarr[$key] .= $value['1005']."\\u53EA\\u5B54\\u96C0\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1006'] )
- {
- $logarr[$key] .= $value['1006']."\\u53EA\\u4F01\\u9E45\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1007'] )
- {
- $logarr[$key] .= $value['1007']."\\u53EA\\u4E4C\\u9F9F\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1501'] )
- {
- $logarr[$key] .= $value['1501']."\\u53EA\\u7F8A\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1502'] )
- {
- $logarr[$key] .= $value['1502']."\\u53EA\\u725B\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1503'] )
- {
- $logarr[$key] .= $value['1503']."\\u53EA\\u7334\\u4ED4\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1504'] )
- {
- $logarr[$key] .= $value['1504']."\\u53EA\\u888B\\u9F20\\u8D76\\u53BB\\u751F\\u4EA7";
- }
复制代码- $logarr[$key] = "{"domain":2,"msg":"<font color=\\"#009900\\"><b>".$value[name]."</b></font> \\u6765\\u7267\\u573A\\u5077\\u8D70\\u4E86";
- if ( 0 < $value['1001'] )
- {
- $logarr[$key] .= $value['1001']."\\u4E2A\\u9E21\\u86CB";
- }
- if ( 0 < $value['1002'] )
- {
- $logarr[$key] .= $value['1002']."\\u53EA\\u5154\\u4ED4";
- }
- if ( 0 < $value['1003'] )
- {
- $logarr[$key] .= $value['1003']."\\u4E2A\\u9E45\\u86CB";
- }
- if ( 0 < $value['1004'] )
- {
- $logarr[$key] .= $value['1004']."\\u53EA\\u5C0F\\u732B\\u4ED4";
- }
- if ( 0 < $value['1005'] )
- {
- $logarr[$key] .= $value['1005']."\\u4E2A\\u5B54\\u96C0\\u86CB";
- }
- if ( 0 < $value['1006'] )
- {
- $logarr[$key] .= $value['1006']."\\u53EA\\u5C0F\\u4F01\\u9E45";
- }
- if ( 0 < $value['1007'] )
- {
- $logarr[$key] .= $value['1007']."\\u53EA\\u5C0F\\u4E4C\\u9F9F";
- }
- if ( 0 < $value['1501'] )
- {
- $logarr[$key] .= $value['1501']."\\u5377\\u7F8A\\u6BDB";
- }
- if ( 0 < $value['1502'] )
- {
- $logarr[$key] .= $value['1502']."\\u74F6\\u725B\\u5976";
- }
- if ( 0 < $value['1503'] )
- {
- $logarr[$key] .= $value['1503']."\\u53EA\\u5C0F\\u7334\\u4ED4";
- }
- if ( 0 < $value['1504'] )
- {
- $logarr[$key] .= $value['1504']."\\u53EA\\u5C0F\\u888B\\u9F20";
- }
复制代码- $logarr[$key] = "{"domain":2,"msg":"<font color=\\"#009900\\"><b>".$value[name]."</b></font> \\u5E2E\\u5FD9\\u628A";
- if ( 0 < $value['1001'] )
- {
- $logarr[$key] .= $value['1001']."\\u53EA\\u9E21\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1002'] )
- {
- $logarr[$key] .= $value['1002']."\\u53EA\\u5154\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1003'] )
- {
- $logarr[$key] .= $value['1003']."\\u53EA\\u9E45\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1004'] )
- {
- $logarr[$key] .= $value['1004']."\\u53EA\\u732B\\u4ED4\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1005'] )
- {
- $logarr[$key] .= $value['1005']."\\u53EA\\u5B54\\u96C0\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1006'] )
- {
- $logarr[$key] .= $value['1006']."\\u53EA\\u4F01\\u9E45\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1007'] )
- {
- $logarr[$key] .= $value['1007']."\\u53EA\\u4E4C\\u9F9F\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1501'] )
- {
- $logarr[$key] .= $value['1501']."\\u53EA\\u7F8A\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1502'] )
- {
- $logarr[$key] .= $value['1502']."\\u53EA\\u725B\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1503'] )
- {
- $logarr[$key] .= $value['1503']."\\u53EA\\u7334\\u4ED4\\u8D76\\u53BB\\u751F\\u4EA7";
- }
- if ( 0 < $value['1504'] )
- {
- $logarr[$key] .= $value['1504']."\\u53EA\\u888B\\u9F20\\u8D76\\u53BB\\u751F\\u4EA7";
- }
复制代码 |