文件名:Service.php
找了很多方法都不解密成功,特到此来求援。谢谢
<?phpsession_start();//error_reporting(0);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;}?>
もっと見る。