// 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();
+}
+
// NOTE: Plugin & Database versions are defined in "/glm-member-db.php".
define('GLM_MEMBERS_SERVERSTATS_PLUGIN_NAME', 'Gaslight Media Members Database ServerStats (serverstats)');
* @version 1.2.0
*/
+// 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
*
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-
-// 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