From 34e9549756102dccd9069fc6156f1c28839801e8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 8 Oct 2010 11:26:57 -0700 Subject: [PATCH] execution guard fixes in Facebook plugin files --- plugins/Facebook/FBConnectAuth.php | 4 ++++ plugins/Facebook/facebookutil.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/plugins/Facebook/FBConnectAuth.php b/plugins/Facebook/FBConnectAuth.php index f06dffaaab..d6d3786261 100644 --- a/plugins/Facebook/FBConnectAuth.php +++ b/plugins/Facebook/FBConnectAuth.php @@ -27,6 +27,10 @@ * @link http://status.net/ */ +if (!defined('STATUSNET')) { + exit(1); +} + require_once INSTALLDIR . '/plugins/Facebook/FacebookPlugin.php'; class FBConnectauthAction extends Action diff --git a/plugins/Facebook/facebookutil.php b/plugins/Facebook/facebookutil.php index e78856f7c4..fb70c51bc5 100644 --- a/plugins/Facebook/facebookutil.php +++ b/plugins/Facebook/facebookutil.php @@ -17,6 +17,10 @@ * along with this program. If not, see . */ +if (!defined('STATUSNET')) { + exit(1); +} + require_once INSTALLDIR . '/plugins/Facebook/facebook/facebook.php'; require_once INSTALLDIR . '/plugins/Facebook/facebookaction.php'; require_once INSTALLDIR . '/lib/noticelist.php'; -- 2.39.5