options.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. chdir ("..");
  3. require_once('../src/validate.php');
  4. displayPageHeader($color, "None");
  5. if (! isset($action))
  6. $action = '';
  7. if ($action == 'enable')
  8. setPref($data_dir, $username, 'spamcop_enabled', 1);
  9. elseif ($action == 'disable')
  10. setPref($data_dir, $username, 'spamcop_enabled', '');
  11. elseif ($action == 'save')
  12. setPref($data_dir, $username, 'spamcop_delete', '');
  13. elseif ($action == 'delete')
  14. setPref($data_dir, $username, 'spamcop_delete', 1);
  15. elseif ($action == 'meth' && isset($meth))
  16. setPref($data_dir, $username, 'spamcop_method', $meth);
  17. elseif ($action == 'save_id' && isset($ID))
  18. setPref($data_dir, $username, 'spamcop_id', $ID);
  19. global $spamcop_enabled, $spamcop_delete;
  20. spamcop_load();
  21. ?>
  22. <br>
  23. <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr><td bgcolor="<?php echo $color[0] ?>">
  24. <center><b><?php echo _("Options") ?> - Message Filtering</b></center>
  25. </td></tr></table>
  26. <br>
  27. <table align=center>
  28. <tr>
  29. <td align=right>SpamCop link is:</td>
  30. <td><?PHP if ($spamcop_enabled) {
  31. ?>Enabled (<a href="options.php?action=disable">Disable it</a>)
  32. <?PHP } else {
  33. ?>Disabled (<a href="options.php?action=enable">Enable it</a>)
  34. <?PHP }
  35. ?></td>
  36. </tr>
  37. <tr>
  38. <td align=right valign=top>Delete spam when reported:<br>
  39. <font size="-2">(Only works with email-based reporting)</font>
  40. </td>
  41. <td valign=top><?PHP if ($spamcop_delete) {
  42. ?>Enabled (<a href="options.php?action=save">Disable it</a>)
  43. <?PHP } else {
  44. ?>Disabled (<a href="options.php?action=delete">Enable it</a>)
  45. <?PHP }
  46. ?></td>
  47. </tr>
  48. <tr>
  49. <td align=right>Spam Reporting Method:</td>
  50. <form method=post action=options.php><td>
  51. <select name=meth>
  52. <option value="quick_email"<?PHP
  53. if ($spamcop_method == 'quick_email') echo ' SELECTED'
  54. ?>>Quick email-based reporting</option>
  55. <option value="thorough_email"<?PHP
  56. if ($spamcop_method == 'thorough_email') echo ' SELECTED'
  57. ?>>Thorough email-based reporting</option>
  58. <option value="web_form"<?PHP
  59. if ($spamcop_method == 'web_form') echo ' SELECTED'
  60. ?>>Web-based form</option>
  61. </select>
  62. <input type=hidden name=action value=meth>
  63. <input type=submit value="Save Method">
  64. </td></form>
  65. </tr>
  66. <tr>
  67. <td valign=top align=right>Your SpamCop authorization code:<br>
  68. <font size="-2">(see below)</font>
  69. </td>
  70. <form method=post action=options.php><td valign=top>
  71. <input type=text size=30 name="ID" value="<?PHP
  72. echo htmlspecialchars($spamcop_id) ?>">
  73. <input type=hidden name=action value=save_id>
  74. <input type=submit value="Save ID">
  75. </td></form>
  76. </tr>
  77. </table>
  78. <p>SpamCop is a free service that greatly assists in finding the true source
  79. of the spam and helps in letting the proper people know about the abuse.</p>
  80. <p>To use it, you must get a SpamCop authorization code. There is a free <a
  81. href="http://spamcop.net/anonsignup.shtml">sign up page</a> so you can use
  82. SpamCop.</p>
  83. <p><b>Before you sign up, be warned:</b> Some users have reported that the
  84. email addresses used with SpamCop find their way onto spam lists. To be
  85. safe, you can just create an email forwarding account and have all SpamCop
  86. reports get sent to there. Also, if it gets flooded with spam, you can then
  87. just delete that account with no worries about losing your real email address.
  88. Just go create an email forwarder somewhere (<a
  89. href="http://www.yahoo.com/">Yahoo!</a> has a <a
  90. href="http://dir.yahoo.com/Business_and_Economy/Business_to_Business/Communications_and_Networking/Internet_and_World_Wide_Web/Email_Providers/Forwarding_Services/Free_Forwarding/">list
  91. of places</a>) so that messages from system administrators and whatnot can
  92. be sent to you.</p>
  93. <p>Once you have signed up with SpamCop and have received your SpamCop
  94. authorization code, you need to enable this plugin -- just click the link
  95. above. Once enabled, you go about your normal life. If you encounter a
  96. spam message in your mailbox, just view it. On the right-hand side, near
  97. the top of where the message is displayed, you will see a link to report
  98. this message as spam. Clicking on it brings you to a confirmation page.
  99. Confirming that you want the spam report sent will do different things with
  100. different reporting methods.</p>
  101. <p><b>Email-based Reporting</b><br>
  102. Pressing the button forwards the message to the SpamCop service and will
  103. optionally delete the message. From there, you just need to go to your
  104. INBOX and quite soon a message should appear from SpamCop. (It gets sent to
  105. the account you registered with, so make sure that your mail forwarder works!)
  106. Open it up, click on the appropriate link at the top, and a new browser
  107. window will open.</p>
  108. <p>Currently, the quick reporting just forwards the request to the thorough
  109. reporting. Also, it appears that this is for members (non-free) only.
  110. Hopefully this will change soon.</p>
  111. <p><b>Web-based Reporting</b><br>
  112. When you press the button on the confirmation page, this will pop open a new
  113. browser window and the SpamCop service should appear inside. The message
  114. will not be deleted (working on that part), but you won't need to wait for a
  115. response email to start the spam reporting.</p>
  116. <p>The SpamCop service will display information as it finds it, so scroll
  117. down until you see a form button. It might pause a little while it is
  118. looking up information, so be a little patient. Read what it says, and
  119. submit the spam. Close the browser window. Press Cancel or click on the
  120. appropriate mail folder to see messages and/or delete the spam.</p>
  121. <p><b>For more information</b> about SpamCop, it's services, spam in general,
  122. and many related topics, try reading through SpamCop's <a
  123. href="http://spamcop.net/help.shtml">Help and Feedback</a> section.</p>
  124. </body></html>