Text Formatted Code
/**
* Main
*/
$display = COM_siteHeader ('menu', $LANG_SX00['plugin_name']);
$display .= COM_startBlock ('Spam-X'); // <-- added
$T = new Template ($_CONF['path'] . 'plugins/spamx/templates');
(...)
$display .= COM_endBlock (); // <-- added
$display .= COM_siteFooter (true);
echo $display;
Add the two lines marked "added" and see if that helps.