Security line in all includes changed
[mailer.git] / inc / modules / guest / what-
index 0d00e62e84503b6552cb55da645ff5d807637728..0b024b4842d27fade12ab56b38809e0d897ed4a3 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
+
 // Add description as navigation point
 ADD_DESCR("guest", basename(__FILE__));
-OPEN_TABLE("100%", "", "center", "top");
+
+// Load default template
 LOAD_TEMPLATE(substr(basename(__FILE__), 5, -4));
-CLOSE_TABLE();
+
 //
 ?>