Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2. $host = "host";
  3. $port = 587;
  4. $username= 'usuario';
  5. $password = 'senha';
  6. $secure = 'tls';
  7.  
  8. function host()
  9. {
  10.  
  11. return $host;
  12. }
  13. function port()
  14. {
  15. return $port;
  16. }
  17. function user()
  18. {
  19. return $username;
  20. }
  21. function secure()
  22. {
  23. return $secure;
  24. }
  25. function password()
  26. {
  27. return $password;
  28. }
  29. function from()
  30. {
  31. return $from;
  32. }
  33.  
  34. <?php
  35. $GLOBALS['host'] = "host";
  36. $GLOBALS['port'] = 587;
  37. $GLOBALS['username'] = 'usuario';
  38. $GLOBALS['password'] = 'senha';
  39. $GLOBALS['secure'] = 'tls';
  40. $GLOBALS['from'] = '[email protected]';
  41.  
  42. function host()
  43. {
  44.  
  45. return $GLOBALS['host'];
  46. }
  47. function port()
  48. {
  49. return $GLOBALS['port'];
  50. }
  51. function user()
  52. {
  53. return $GLOBALS['username'];
  54. }
  55. function secure()
  56. {
  57. return $GLOBALS['secure'];
  58. }
  59. function password()
  60. {
  61. return $GLOBALS['password'];
  62. }
  63. function from()
  64. {
  65. return $GLOBALS['from'];
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement