コード例 #1
0
ファイル: onez.php プロジェクト: shenhua4286/gxw
         if (!is_numeric($tid)) {
             echo '<font color=red>����ʧ��</font>';
         } else {
             $msg = '<span class="url" onclick="top.OpenUserDialog(\'' . $userid . '\')">' . $username . '</span> �����������ӣ�<a class="url" href="' . $url . '" target="_blank">' . $ti . '</a> [<span class="url" onclick="Re(' . $tid . ')">�ظ�</span>]';
             AddMsg_Public("1\t0\t{$msg}", $ChannelId);
             echo 'Y';
         }
     }
     break;
 case 're':
     if (!$ChannelId) {
         exit('Channel Error!');
     }
     $tid = Char_Cv('tid');
     $co = Char_Cv('co');
     $co = oiconv('utf-8', 'gbk', $co);
     $api = API_Re($tid, $co);
     if ($api != '1') {
         WriteLog($api);
     }
     if ($api == -1) {
         echo '<font color=red>�����Ч</font>';
     } elseif ($api == -2) {
         echo '<font color=red>���Ӳ�����</font>';
     } else {
         echo 'Y';
     }
     break;
 case 'tickout':
     $uid = Char_Cv('uid');
     if (!$uid) {
コード例 #2
0
ファイル: global.func.php プロジェクト: shenhua4286/gxw
function V($string, $encode = 0)
{
    global $thecharset, ${$string};
    $string = ${$string};
    if ($thecharset && $thecharset != 'gbk') {
        $str = oiconv('gbk', $thecharset, $string);
    } else {
        $str = $string;
    }
    $str = str_replace('&', '%26', $str);
    return $encode ? urlencode($str) : $str;
}
コード例 #3
0
ファイル: api.php プロジェクト: shenhua4286/gxw
<?php

include_once 'include/common.inc.php';
@(include_once 'plugins/robot/limit/config.php');
$action = Char_Cv('action', 'get');
if ($action) {
    //自动接收群信息
    $ChannelId = Char_Cv('ChannelId');
    //群编号
    $msg = Char_Cv('msg');
    //用户消息
    $msg = oiconv('utf-8', 'gbk', $msg);
    //用户消息
    $A = array();
    foreach (explode("\n", $BadWords) as $v) {
        $v = Trim($v);
        if ($v) {
            $A[] = $v;
        }
    }
    if (str_replace($A, '', $msg) != $msg) {
        echo $jsCode;
    }
    exit;
}
$step = intval(Char_Cv('step'));
$msg = Char_Cv('msg');
if ($msg == '?' || $msg == '?') {
    //如果用户输入问号,重新初始化
    $step = '0';
}