icqtalk.php
来自「The goal with this project was to make i」· PHP 代码 · 共 68 行
PHP
68 行
<?// Wapmess, originally developed by G鰎an (depeh) Johansson, Sweden
//
// Feel free to improve this program in any way you can, but please share your version!
// More info and the latest version is avaiable at:
// http://sourceforge.net/projects/wapmess/#$debug=1;require("icqlib.php");$my_uin=$_SERVER["argv"][1];# Koppla upp mot databasservern
$db = mysql_connect($db_server, $db_user, $db_pass);
# V鋖j DATABAS
mysql_select_db($db_name);$query="SELECT * FROM cookies WHERE uin='".$my_uin."'";$sqlres=mysql_query($query) or die("send_alive Invalid query: " . mysql_error());$num_rows = mysql_num_rows($sqlres);if ($num_rows==1) { $row = mysql_fetch_array($sqlres); print "i=".$row["ip"]."\n"; print "p=".$row["port"]."\n"; print "c=".$row["cookie"]."\n"; print "u=$my_uin<br>"; $srv_cookie_a["port"]=$row["port"]; $srv_cookie_a["ip"]=$row["ip"]; $srv_cookie_a["cookie"]=h2b($row["cookie"]); }else { print "KAN INTE HITTA COOKIE-UPPGIFTER!! FEL!!"; exit; }// Skicka bevis att "servern" lever f鰎 just ditt uinsend_alive($my_uin);// Logga in f鰎 andra g錸genicq_login_cookie($srv_cookie_a);// Skicka bevis att "servern" lever f鰎 just ditt uinsend_alive($my_uin);icq_receive_incoming(); icq_receive_incoming(); // Skicka bevis att "servern" lever f鰎 just ditt uinsend_alive($my_uin);// H鋗ta OFFLINE-meddelanden$msgs=icq_get_msgs($my_uin);icq_receive_incoming();icq_receive_incoming();// Resetta timern$nowtime=time();$timeend = $nowtime+$timeout_seconds;$ltimeleft=-1;// H錶l p
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?