turt2live

meaMail - v1.0 PHP Side

Dec 29th, 2011
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.38 KB | None | 0 0
  1. <?php
  2. date_default_timezone_set("America/Edmonton");
  3. session_start();
  4.  
  5. $loggedin = isset($_SESSION['username']);
  6. $serveraccount = isset($_SESSION['server_account']);
  7.  
  8. //SETUP
  9. define("HOME",          "http://68.148.10.71/meaMail/");
  10. define("INBOX",         "http://68.148.10.71/meaMail/pages/inbox/");
  11. define("SERVERINBOX",   "http://68.148.10.71/meaMail/pages/serverinbox/");
  12. define("LOGIN",         "http://68.148.10.71/meaMail/pages/login/");
  13. define("REGISTER",      "http://68.148.10.71/meaMail/pages/register/");
  14. define("ADDSERVER",     "http://68.148.10.71/meaMail/pages/newserver/");
  15. define("SERVERLIST",    "http://68.148.10.71/meaMail/pages/servers/");
  16. define("ABOUT",         "http://68.148.10.71/meaMail/pages/about/");
  17. define("CONTACT",       "http://68.148.10.71/meaMail/pages/contact/");
  18. define("PRIVACY",       "http://68.148.10.71/meaMail/pages/privacypolicy/");
  19. define("TERMS",         "http://68.148.10.71/meaMail/pages/termsofservice/");
  20. define("PLUGIN",        "http://68.148.10.71/meaMail/pages/plugin/");
  21. define("FAQ",           "http://68.148.10.71/meaMail/pages/help/");
  22. define("FEEDBACK",      "http://68.148.10.71/meaMail/pages/feedback/");
  23. define("TIMESTAMP",     date("h:i:s A")." MST");
  24. define("DATESTAMP",     date("l, F d, Y"));
  25.  
  26. //Server Setup (meaMail Plugin)
  27. define("MAILSERVER",    "68.148.10.71:4481");
  28. define("MAILCONTACT",   "http://68.148.10.71/meaMail/pages/contact/index.php?mode=mea");
  29.  
  30. //FAQ portion (bottom center of pages)
  31. define("FAQ1",          "http://68.148.10.71/meaMail/pages/help/index.php?issue=1");
  32. define("FAQ2",          "http://68.148.10.71/meaMail/pages/help/index.php?issue=2");
  33. define("FAQ3",          "http://68.148.10.71/meaMail/pages/help/index.php?issue=3");
  34. define("FAQ4",          "http://68.148.10.71/meaMail/pages/help/index.php?issue=4");
  35. define("FAQ5",          "http://68.148.10.71/meaMail/pages/help/index.php?issue=5");
  36. define("FAQ_LABEL1",    "How do I use it?");
  37. define("FAQ_LABEL2",    "How do I use the web-interface?");
  38. define("FAQ_LABEL3",    "How can I get it on my server?");
  39. define("FAQ_LABEL4",    "How do I register my server?");
  40. define("FAQ_LABEL5",    "How long does it take to send?");
  41.  
  42. function getFAQ(){
  43.     return "
  44.     <li><a href=\"".FAQ1."\">".FAQ_LABEL1."</a></li>
  45.     <li><a href=\"".FAQ2."\">".FAQ_LABEL2."</a></li>
  46.     <li><a href=\"".FAQ3."\">".FAQ_LABEL3."</a></li>
  47.     <li><a href=\"".FAQ4."\">".FAQ_LABEL4."</a></li>
  48.     <li><a href=\"".FAQ5."\">".FAQ_LABEL5."</a></li>
  49.     ";
  50. }
  51.  
  52. function getDonate(){
  53.     return "<div style='margin-bottom:1px;'>&nbsp;</div><form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">
  54.             <input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">
  55.             <input type=\"hidden\" name=\"hosted_button_id\" value=\"AC68Z4RXNK8QN\">
  56.             <input type=\"image\" src=\"https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif\" border=\"0\" name=\"submit\" alt=\"PayPal - The safer, easier way to pay online!\">
  57.             <img alt=\"\" border=\"0\" src=\"https://www.paypalobjects.com/en_US/i/scr/pixel.gif\" width=\"1\" height=\"1\">
  58.             </form>";
  59. }
  60.  
  61. function getContact(){
  62.     return "<p>If you want to contact us click <a href='".CONTACT."'>here</a> or send us a fancy in-game mail by clicking <a href='".MAILCONTACT."'>here</a>. Or if you want to send your own mail, see below:</p>
  63.             <strong>E-mail:</strong> <a href=\"mailto:[email protected]\">[email protected]</a></p>";
  64. }
  65.  
  66. //Start other stuff
  67. include "communication.php";
  68. include "users.php";
  69. include "plugin.php";
  70. include "mail.php";
  71. ?>
Advertisement
Add Comment
Please, Sign In to add comment