输入banner图图片脚本导航/分类

phpmailer实现的简单openvpn用户认证的代码

  1. /**
  2. *PHPMailer 示例
  3. */
  4. require_once('class.phpmailer.php');
  5. require_once('class.pop3.php');
  6. $username = getenv('username');
  7. $password = getenv('password');
  8. $pop = new POP3();
  9. $auth = $pop->Authorise('your.mailserver.com', 110, 30, "$username", "$password", 1);
  10. if ($auth){
  11. # echo OK;
  12. exit(0);
  13. } else {
  14. # echo "FAIL";
  15. exit(255);
  16. }
  17. ?>