// 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();
}
/*
// 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();
}
/*
* 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();
+}
+
define('GLM_SERVERSTATS_SITE_TITLE', get_bloginfo( 'name' ));
define('GLM_SERVERSTATS_PLUGIN_NAME', 'Gaslight Media ServerStats (serverstats)');
define('GLM_SERVERSTATS_PLUGIN_SHORT_NAME', 'ServerStats');
* @version 1.1.1
*/
-define('GLM_SERVERSTATS_PLUGIN_VERSION', '1.1.1');
-
// 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();
}
+define('GLM_SERVERSTATS_PLUGIN_VERSION', '1.1.1');
// Required to be able to get user capabilities when being called as a filter from the main plugin
require_once ABSPATH . 'wp-includes/pluggable.php';
// 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