* @link http://dev.gaslightmedia.com/
*/
-/**********************************************************************
- * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to social, Social, or SOCIAL to a name
- * appropriate for your new Add-On.
- *
- * This file activates this add-on. Other than replacing the various
- * versions of the work "Social", this code should not need editing.
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
// 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();
}
/*
* @link http://dev.gaslightmedia.com/
*/
-/**********************************************************************
- * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to social, Social, or SOCIAL to a name
- * appropriate for your new Add-On.
- *
- * This file deactivates this add-on. Other than replacing the various
- * versions of the work "Social", this code should not need editing.
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
// 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_SOCIAL_PLUGIN_NAME', 'Gaslight Media Members Database Social (social)');
* License: GPL2
*/
-/**********************************************************************
- * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to social, Social, or SOCIAL to a name
- * appropriate for your new Add-On.
- *
- * This is the main file for this add-on. It is the file called by
- * WordPress to run aspects of this add-on.
- *
- * NOTE: Versions in this file must be reset as appropriate when
- * creating a new add-on. Be sure to preserve the versions listed
- * for "...MIN_MEMBERS_REQUIRED_VERSION".
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
/**
* Gaslight Media Members Database Social Add-On
* Index
* @version 1.1.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
*/
* @link http://dev.gaslightmedia.com/
*/
-/**********************************************************************
- * NOTE: THIS IS A SOCIAL FILE - DO NOT USE UNMODIFIED
- *
- * Please change all references to social, Social, or SOCIAL to a name
- * appropriate for your new Add-On.
- *
- * Remove this message before using this file in production!
- **********************************************************************/
-
// 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