"0") { $config[$tempkey] = substr($tempvalue, 0, strlen($tempvalue) - 1); } } /* echo "
"; echo ""; reset ($config); for($x=0; $x <= count($config); $x++) { echo key($config).":".current($config)."
"; next($config); } echo "
"; reset($config); */ if ($config[showconfig] == "on") { if ($config[spamvault] == "spamvault") $spamvault_file_checked = "CHECKED"; if ($config[spamvault] != "/dev/null") { $config_link_to_spamvault='called: '.$pathtomail.$config[spamvault].''; } if(filesize($pathtomail."spamvault") <= "0") $spamvaultfilesize="0"; else $spamvaultfilesize=filesize($pathtomail."spamvault"); if ($config[spamvaultlog] == "yes") $spamvaultlogcheck = "CHECKED"; $blockedspams=""; $spamvaultlogdata = file($pathtomail."spamvault.log"); for ($x=0; $x <= count($spamvaultlogdata); $x++) { if (strstr(current($spamvaultlogdata), "/dev/null") OR strstr(current($spamvaultlogdata), "spamvault")) $blockedspams++; next($spamvaultlogdata); } if (!$blockedspams) { $blockedspams="0"; } echo '
Configuration Info
Send Spam to:
  By default SpamVault sends your spam into Never Never Land!
  Or check this box to save your spam to a repository file ' . $config_link_to_spamvault . '
  Current repository file size: ' . $spamvaultfilesize .' bytes
  Check box to clear this repository file so it doesn\'t use up too much disk space.
E-mail Log Info:
  Keep an e-mail log
  Current e-mail log file size: '. filesize($pathtomail."spamvault.log") . ' bytes
  Check box to clear this log file so it doesn\'t use up too much disk space.
  Blocked spams since the log was last cleared: '. $blockedspams .'
   
Total Spams Blocked: ' . ($config[totalblockedspams] + $blockedspams) . '
'; } else echo ' '; /* reset($config); for ($x=0; $x <= count($config); $x++) { if (strlen(current($config)) > "0") { echo "[".key($config)."=".current($config)."]"; } else echo "DONE"; next($config); } echo "

"; */ ?>