PHP对接笔记

以360平台为例。游戏链接目录为fireweb,平台上面是从webgame的login360.php进入的,包括了用户,md5的加密。再转到game.php

../configuration/config.inc360.php 杂乱的配置
GameConfigwan.xml  这是进游戏的配置

再转到 s1.php
最终进入的游戏


date_default_timezone_set('PRC');
$username=$_GET['uid'];
$spid=$_GET['platform'];
$gkey=$_GET['gkey'];
$LoginVerify=isset($_GET['password']) ? $_GET['password'] : '123456';
$ServerId=addslashes(trim(urldecode($_GET['skey'])));
$Adut=addslashes(trim(urldecode($_GET['is_adult'])));
$pFlag=addslashes(trim(urldecode($_GET['sign'])));
$client=addslashes(trim(urlencode($_GET['type'])));
//$exts=base64_decode(json_decode ($_GET['exts']));
$exts= isset($_GET['exts']) ? $_GET['exts'] : ''; 
$time=$_GET['time'];
$pTime=time();


if (!$username || !$ServerId || ($Adut == NULL) || !$pTime || !$pFlag) {
    die('param error');
}

include('../configuration/config.inc360.php');  

$lkey='ARfPNq99nV07sqlGmRZ1FFd9wDIecexC';
$flag_plant=md5($username.$spid.$gkey.$ServerId.$time.$Adut.$exts.'#'.$lkey); 


if($pFlag !=$flag_plant){
    header("Location: http://open.wan.360.cn/yzrcaynfxlo");
    die;    
}    



MD5的加密,平台和自己的一致才让进来
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值