Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
67
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. $from = 'from@.com.br';
  8.  
  9. function host()
  10. {
  11.  
  12. return $host;
  13. }
  14. function port()
  15. {
  16. return $port;
  17. }
  18. function user()
  19. {
  20. return $username;
  21. }
  22. function secure()
  23. {
  24. return $secure;
  25. }
  26. function password()
  27. {
  28. return $password;
  29. }
  30. function from()
  31. {
  32. return $from;
  33. }
  34.  
  35. <?php
  36. $GLOBALS['host'] = "host";
  37. $GLOBALS['port'] = 587;
  38. $GLOBALS['username'] = 'usuario';
  39. $GLOBALS['password'] = 'senha';
  40. $GLOBALS['secure'] = 'tls';
  41. $GLOBALS['from'] = 'from@.com.br';
  42.  
  43. function host()
  44. {
  45.  
  46. return $GLOBALS['host'];
  47. }
  48. function port()
  49. {
  50. return $GLOBALS['port'];
  51. }
  52. function user()
  53. {
  54. return $GLOBALS['username'];
  55. }
  56. function secure()
  57. {
  58. return $GLOBALS['secure'];
  59. }
  60. function password()
  61. {
  62. return $GLOBALS['password'];
  63. }
  64. function from()
  65. {
  66. return $GLOBALS['from'];
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement