X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fguest%2Fwhat-wernis_portal.php;h=994bd8d72dcbd9190b0fe8cc396d45c0316c6945;hb=5e4fd904c6045b66540a4e8fd77bf4f2f04537eb;hp=567fe1a2b6b29bc292308a68868f7b5451531d52;hpb=424d3ebc6d41515f73540310802e88423175678a;p=mailer.git diff --git a/inc/modules/guest/what-wernis_portal.php b/inc/modules/guest/what-wernis_portal.php index 567fe1a2b6..994bd8d72d 100644 --- a/inc/modules/guest/what-wernis_portal.php +++ b/inc/modules/guest/what-wernis_portal.php @@ -17,7 +17,7 @@ * Needs to be in all Files and every File needs "svn propset * * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * - * Copyright (c) 2003 - 2008 by Roland Haeder * + * Copyright (c) 2003 - 2009 by Roland Haeder * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -38,23 +38,24 @@ // Some security stuff... if (!defined('__SECURITY')) { - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; - require($INC); -} elseif ((!EXT_IS_ACTIVE('wernis')) && (!IS_ADMIN())) { - addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('wernis')); - return; -} + die(); +} // END - if // Special file -loadIncludeOnce('inc/rdf.class.php'); +loadIncludeOnce('inc/classes/rdf.class.php'); // Add description as navigation point -ADD_DESCR('guest', __FILE__); +addMenuDescription('guest', __FILE__); + +if ((!isExtensionActive('wernis')) && (!isAdmin())) { + loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('wernis')); + return; +} // END - if -OUTPUT_HTML('