// Check that we're being called by WordPress.
if (!defined('ABSPATH')) {
- die("Please do not call this code directly!");
+ header("Location: http://".$_SERVER['SERVER_NAME']."/error/404.html");
+ die();
}
// Load glmPluginSupport class
* Get plugin configuration
*/
+// Check that we're being called by WordPress.
+if (!defined('ABSPATH')) {
+ header("Location: http://".$_SERVER['SERVER_NAME']."/error/404.html");
+ die();
+}
+
// Get plugin configuration
$configData = parse_ini_file(GLM_MEMBERS_PLUGIN_PATH.'/config/plugin.ini', true);
$config = $configData['common'];
// Check that we're being called by WordPress.
if (!defined('ABSPATH')) {
- die("Please do not call this code directly!");
+ header("Location: http://".$_SERVER['SERVER_NAME']."/error/404.html");
+ die();
}
// Load glmPluginSupport class
* Set standard defined parameters
*/
+// Check that we're being called by WordPress.
+if (!defined('ABSPATH')) {
+ header("Location: http://".$_SERVER['SERVER_NAME']."/error/404.html");
+ die();
+}
+
// NOTE: Plugin & Database versions are defined in "/glm-member-db.php".
define('GLM_MEMBERS_SITE_TITLE', get_bloginfo( 'name' ));
* @version 2.10.7
*/
+// Check that we're being called by WordPress.
+if (!defined('ABSPATH')) {
+ header("Location: http://".$_SERVER['SERVER_NAME']."/error/404.html");
+ die();
+}
+
/*
* Plugin and Database Versions
*
* ********************************************************************************
*/
-// Check that we're being called by WordPress.
-if (!defined('ABSPATH')) {
- die("Please do not call this code directly!");
-}
-
/*
*
* Some initial setup and tests
// Check that we're being called by WordPress.
if (!defined('ABSPATH')) {
- die("Please do not call this code directly!");
+ header("Location: http://".$_SERVER['SERVER_NAME']."/error/404.html");
+ die();
}
//if uninstall not called from WordPress exit