コード例 #1
0
ファイル: index.php プロジェクト: sdgdsffdsfff/Queen
    $query .= "({$clientId},'{$a}','{$flag}'),";
}
$query = substr($query, 0, -1);
$db->query($query);
$query = 'insert into ' . $mysql_ini['prefix'] . 'online_module values ';
foreach ($module as $a) {
    $a = strtoupper($a);
    $query .= "({$clientId},'{$a}'),";
}
$query = substr($query, 0, -1);
$db->query($query);
$db->close();
$hexCID = pack("V", $clientId);
repond_breath(0, $hexCID, false);
include "{$IPC_mod_path}" . 'IPC_' . HYP_IPC_MODE . '.php';
HYP_IPC::KeepAlive();
exit;
function mylog($str)
{
    $fp = fopen('./abort.txt', 'a');
    $str = date('Y-m-d H:i:s') . " { {$str} } " . "\r\n";
    fwrite($fp, $str);
    fclose($fp);
}
function repond_breath($cmd, $src = "", $die = true)
{
    $len = strlen($src);
    $out = pack("Cx15CCx31CV", 1, 255, $cmd, 255, $len);
    echo "" . "{$out}" . "{$src}";
    ob_flush();
    flush();