<?php require "tests.php"; require "using2.php"; if (!class_exists("_fooimpl")) { die("_fooimpl class not found\n"); } if (!3 == spam(3)) { die("spam function not working right\n"); } check::done();
} elseif (file_exists($dir . "/pv_core.php")) { $pivot_dir = $dir; $pivot_url = "."; } else { die("Didn't find the Pivot directory!"); } // removing lots of spam can take quite a while.. set_time_limit(0); if ($_REQUEST["submit"] == "Remove Spam") { printheader("Removed"); spam(); } else { if ($_REQUEST["submit"] == "List Spam") { printheader("Listing"); echo form("Remove Spam"); spam(); } elseif ($_REQUEST["action"] == "help") { $link = sprintf("index.php?session=%s&menu=admin&func=admin&do=spamwasher", $Pivot_Vars['session']); echo ' <h2>Help</h2> <p>This tool helps you remove spam from comments and trackbacks in your Pivot.</p> <p>It has it\'s <a href="http://forum.pivotlog.net/viewtopic.php?t=9572">own thread</a> in the Pivot forum. If you still have any questions after reading this page, ask your questions there.</p> <br /> <h3>A warning</h3> <p class="warn"><b>The script has no undo-function.</b><br /> So if you are paranoid or just want to be on the safe side: <em>Back-up the db-folder.</em> This script is still a work in progress. </p>