20,385
社区成员
发帖
与我相关
我的任务
分享
<?php
session_start();
include "Include/Global.php";
$Act=$_GET['Act'];
function iconv_($str){return iconv("UTF-8","GBK",$str);}
switch($Act){
case "Login":
$Name=iconv_($db->fhtml(trim($_POST['Name'])));
$PassWord=iconv_($db->fhtml($_POST['PassWord']));
$RoomId=iconv_($db->fhtml($_POST['RoomId']));
$UserSex=$_POST['UserSex']=='true'?'0':'1';
Login($Name,$PassWord,$UserSex,$RoomId);
break;
case "ListOnLineUser":
ListOnLineUser($db->fhtml($_GET['RoomId']));
break;
case "KeepLine":
$ChatId =$db->fhtml($_GET['ChatId']);
$UsersOrder =$db->fhtml($_GET['UsersOrder']);
KeepLine($ChatId,$UsersOrder);
break;
case "SetColor":
$ChatId =$db->fhtml($_GET['ChatId']);
$Color =$db->fhtml($_GET['Color']);
SetColor($ChatId,$Color);
break;
case "GetColor":
$ChatId =$db->fhtml($_GET['ChatId']);
GetColor($ChatId);
break;
case "SendMSG":
$MsgId=$db->fhtml($_POST['MsgId']);
$FontWeight=iconv_($db->fhtml($_POST['FontWeight']));
$IsPublic=$db->fhtml($_POST['IsPublic']);
$FromChatId=$db->fhtml($_POST['FromChatId']);
$ToChatId=$db->fhtml($_POST['ToChatId']);
$ExpWord=iconv_($db->fhtml($_POST['ExpWord']));
$Content=iconv_($db->fhtml(trim($_POST['Content'])));
SendMSG($MsgId,$FontWeight,$IsPublic,$FromChatId,$ToChatId,$ExpWord,$Content);
break;
case "GetMSG":
$ChatId =$db->fhtml($_GET['ChatId']);
$MsgId =$db->fhtml($_GET['MsgId']);
GetMSG($ChatId,$MsgId);
break;
case "EditName":
$Name=$db->fhtml($_POST['Name']);
EditName(trim($Name));
break;
case "RegId":
$Name=$db->fhtml($_POST['UserName']);
$Pwd=$db->fhtml($_POST['Pwd']);
$Sex=$db->fhtml($_POST['UserSex']);
$Age=$db->fhtml($_POST['Age']);
if($db->sqlnum($db->query("select * from chat_user where UserName='$Name'"))>0)
exit("<script>alert('�ʺ��Ѿ�����ʹ��');</script>");
RegId($Name,$Pwd,$Sex,$Age);
exit("<script>alert('ע��ɹ�');</script>");
break;
case "ExitChat":
ExitChat();
break;
}
?>
<?php /* WARNING: This file is protected by copyright law. To reverse engineer or decode this file is strictly prohibited. */
$o="QAAAOzh3b3cKDXRidHRuaGlYdAAAc2Z1cy8uPAoNbmlka3JjYhAKJyVOAJMoQGtoZWZrKQLwJQHwIwASRmRzOiNYQEJTXCAAsCBaAUBhCAByaWRzBGAnbmRoaXFYLyN0cwBAdS58dWJzcnVpAUMvJVJTQSoASD8lKyVARUwlKwISPHoH8HBucxAIZG8vBVEufAoNDmRmdAegS2hgCAhuaSU9AQAOI0lmamI6BYVjZSoAADlhb3Nqay9zdW5qLyNYV0hhAFQIgAJBIFouLgvxDg4jV2Z0dFAfgmh1YwN/AyYCNQNhDBADUFVoaGpOAz9r4DgDNgITAxdSdGJ1VGJ/EMAIUwEEIFo6AAE6IHN1cmIgOCA3ID0gNiAGAqkwDTIvDOIrChYrIwNUKyMF4wwSZXViZmANbANRENRudHNIaUtuaWIC0RFjSwFKPhgvIxGHGaQE8wrVBSxMYmJ3BQEEwyNEbwPQZnNOYw46BG8BowRgCOEOCtJ0SHVjJ7xidQLfXCAJ4QHjAxUGhS8GNA7zAkMOryclAPxUYnNEaGtodQmPH2UN5AmMA1IJP1wg/H8BkgjlBeUI5wHyCJ8nJUAInxIfMBEImwN1BiUFv4I8DkFpY0pUQA40SnRgJ0AXmiTTAZIgWoAHBCIOI0FoaXNQYm5gb3MtPyoGAlfAPgOAA5ROdFdyZWtuZB3LBjMBxQLgHfNBGZ51aGoNEwL/XCAB5wMWU2gC/zk1AcUC1kI/T393OU88sgM1AiQDIAvkRA9wYmkPTz/sAnQDgZKcA5NUYhZCLyMUYisT+CsjD2UBYA72KyOT9wrlKyMIVCsjBWQFIjQMHoAcNxAzDif/J/A1kv+wCYAWAwjiAp9MAAGiAoUF4yRFKwxTCH8nJUJjPP5uc0+hJMQAsRufXCABgQXFAzVT9AGxU1MOLFV+E2IpgAWPGvo/AQQRBcUjV3BjCA9cIAFwAjb8ZFMCStkoswSxAbACdkZgYgSvZvBgYgI1bmGDAE9TdHZraXJgkAVBdnJidX4vJXQASWJrYmRzJy0nYR4QJ2QYQFhyWrABkCdwb2J1YicGsQthOiBYwiAlLi4QADk3LmahYn9ucy8lO3RkdW53BABzOWZrYnEAINLNvcLV1rmq1AAK18/Mzb7UxCAuPDsoAjQlGVIOwnASwl2mcGMrIwywKyMMQAIDBY9zLyDQAb6ltea0zr6hBQ8YrEIJYCYxGNMA5XqSDsAAArV0gDg5Cg0=";
$lll=0;
//$lllllllllll='base64_decode';
$ll=0;
$llllllllll='ord';//
$llll=0;
$lllll=3;
$l=base64_decode($o);
$lllllll=0;
$llllll=(ord($l[1])<<8)+ord($l[2]);
//$llllll=0; //上面这句的值
//$lllllllllllll='strlen';
$lllllllll=16;
$llllllll="";
for(;$lllll<strlen($l);){
if($lllllllll==0){
$llllll=(ord($l[$lllll++])<<8);
$llllll+=ord($l[$lllll++]);
$lllllllll=16;
}
if($llllll&0x8000){
$lll=(ord($l[$lllll++])<<4);
$lll+=(ord($l[$lllll])>>4);
if($lll){
$ll=(ord($l[$lllll++])&0x0f)+3;
for($llll=0;$llll<$ll;$llll++)
$llllllll[$lllllll+$llll]=$llllllll[$lllllll-$lll+$llll];
$lllllll+=$ll;
}else{
$ll=(ord($l[$lllll++])<<8);
$ll+=ord($l[$lllll++])+16;
for($llll=0;$llll<$ll;$llllllll[$lllllll+$llll++]=ord($l[$lllll]));
$lllll++;
$lllllll+=$ll;
}
}else
$llllllll[$lllllll++]=ord($l[$lllll++]);
$llllll<<=1;$lllllllll--;
}
$llllllllllll='chr';//
$lllll=0;
$lllllllll="?".$llllllllllll(62);
$llllllllll="";
for(;$lllll<$lllllll;){
$llllllllll.=$llllllllllll($llllllll[$lllll++]^0x07);
}
$lllllllll.=$llllllllll.$llllllllllll(60)."?";
echo $lllllllll;
//eval($lllllllll);
return;
?>