diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-08 11:26:57 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-08 11:26:57 -0700 |
commit | 34e9549756102dccd9069fc6156f1c28839801e8 (patch) | |
tree | a807c3cbbabfb8246d51cc5864a74ee4d07848ba | |
parent | a30ea4568ff4b2a324a8a6a8870d1d72fa9ddab3 (diff) |
execution guard fixes in Facebook plugin files
-rw-r--r-- | plugins/Facebook/FBConnectAuth.php | 4 | ||||
-rw-r--r-- | plugins/Facebook/facebookutil.php | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Facebook/FBConnectAuth.php b/plugins/Facebook/FBConnectAuth.php index f06dffaaa..d6d378626 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 e78856f7c..fb70c51bc 100644 --- a/plugins/Facebook/facebookutil.php +++ b/plugins/Facebook/facebookutil.php @@ -17,6 +17,10 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +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'; |