Normalize execution guards on OStatus php files; mostly helps cut down on annoying...
authorBrion Vibber <brion@pobox.com>
Fri, 8 Oct 2010 17:42:59 +0000 (10:42 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 8 Oct 2010 17:42:59 +0000 (10:42 -0700)
22 files changed:
plugins/OStatus/OStatusPlugin.php
plugins/OStatus/actions/hostmeta.php
plugins/OStatus/actions/ostatusgroup.php
plugins/OStatus/actions/ostatusinit.php
plugins/OStatus/actions/ostatussub.php
plugins/OStatus/actions/ownerxrd.php
plugins/OStatus/actions/pushcallback.php
plugins/OStatus/actions/pushhub.php
plugins/OStatus/actions/userxrd.php
plugins/OStatus/classes/FeedSub.php
plugins/OStatus/classes/HubSub.php
plugins/OStatus/classes/Magicsig.php
plugins/OStatus/classes/Ostatus_profile.php
plugins/OStatus/classes/Ostatus_source.php
plugins/OStatus/lib/feeddiscovery.php
plugins/OStatus/lib/hubconfqueuehandler.php
plugins/OStatus/lib/huboutqueuehandler.php
plugins/OStatus/lib/hubprepqueuehandler.php
plugins/OStatus/lib/ostatusqueuehandler.php
plugins/OStatus/lib/pushinqueuehandler.php
plugins/OStatus/lib/salmonqueuehandler.php
plugins/OStatus/lib/xrdaction.php

index 9c6696439ae4db3cdd87a03aaa173b24fd0770b6..4ab2023cbee77d6d48212aed41aa306279c39e09 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer Brion Vibber <brion@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/extlib/');
 
index db4c913e166ee142496f19284aa58c5ea56d9f3a..14f69ac1924f0d4be4861024f4d5a0a822ddd408 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer James Walker <james@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 class HostMetaAction extends Action
 {
index 7db00ffbef1997591548d6964c2b0e03389a5a72..24fbaac9ca3ffb532e5de38d01a40f05a48f46d3 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer Brion Vibber <brion@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 /**
  * Key UI methods:
index f576823e314f831e866d98eacf4080b5e2dec12d..91c36203c88ff8d0d6accae6a6f482f7a031177e 100644 (file)
@@ -22,8 +22,9 @@
  * @maintainer James Walker <james@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
-
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 class OStatusInitAction extends Action
 {
index 493b519657de346ad64991d97390b9fe76ad300c..a293fda5dba7d3863dcfc6afc094920f049518e7 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer Brion Vibber <brion@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 /**
  * Key UI methods:
index 9e84f72ecb968642d7897ea4400be9cff904b568..3f99e1cbd0d2c50df24bd06a5b54c506df47e70f 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer James Walker <james@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 class OwnerxrdAction extends XrdAction
 {
index 6eec1ad16ec945f971d6643891e8cff53f647bdb..9b83d43c4ddd7528fc41aedc5c728895c3b4a65b 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer Brion Vibber <brion@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 class PushCallbackAction extends Action
 {
index 68035ab5cc20aaad6e6a760e0aeb6154e18e8a2c..bfd51ec02f65b1d5ce17dc7d537f3c3528aaf9ad 100644 (file)
  * @maintainer Brion Vibber <brion@status.net>
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
 
 
index 8179505a55d6b7ce108cb5d5c82c4a2949435651..c9b1d0a5be4effca2c12eb8024059f4f2aa52856 100644 (file)
@@ -17,7 +17,9 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-if (!defined('STATUSNET')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 /**
  * @package OStatusPlugin
index 58beec673836460912729c9b70e091c8c072ac51..140f323846498c91817d6dc59a20d083dbebd04d 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * @package OStatusPlugin
  * @maintainer Brion Vibber <brion@status.net>
index 825d36ebd64c656367a79c9a64bb1d686b04e53f..e7ac23af5821ee5dfdfa4e480d0ddc1c4b301b94 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * PuSH feed subscription record
  * @package Hub
index 20025c37a6a8c0e3a8aa7ba9afa80d4c778b8e3d..e057deb144d981611face4b6eb00c8c6d76586a6 100644 (file)
  * @link      http://status.net/
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 require_once 'Crypt/RSA.php';
 
 class Magicsig extends Memcached_DataObject
index 10cee917e1163a906d94b8d3a25ce7749c794a1a..47aee15f8a2d3011e18266d6c8cfe039a7a141f9 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * @package OStatusPlugin
  * @maintainer Brion Vibber <brion@status.net>
index b76bbce56ceb35e33ca3823b30086961d8a2cd17..0fd74e48ba6aa44042f27dbf8efa052cdbf48e73 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * @package OStatusPlugin
  * @maintainer Brion Vibber <brion@status.net>
index 8a166a0be56f339d0aeb54cfb08629aef15ae83c..d978cc6745c12550567fc703e3878d9c4fc5f0f1 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer Brion Vibber <brion@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 class FeedSubBadURLException extends FeedSubException
 {
index 8219f8420e79b4cec4c44766da2829a9087384c7..d26c45be04a3461b44372b934c46c0231d8d97e1 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * Send a PuSH subscription verification from our internal hub.
  * @package Hub
index 3ad94646e6ddd98e51b0674b1b3536cd69a3e619..67a9d9e36b8aee0d167d79efe5c8e9864c219fb8 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * Send a raw PuSH atom update from our internal hub.
  * @package Hub
index 0d585938f462c8fc568c13b58a943e70b265a043..0ed6a3ec57ac686eb4b663d001c132d3c67e7a45 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * When we have a large batch of PuSH consumers, we break the data set
  * into smaller chunks. Enqueue final destinations...
index 5e0ab46a5b842657afd760b04226141f36e15e44..d5ee0c50417295a191f4ffa03542a30f8bda273a 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * Prepare PuSH and Salmon distributions for an outgoing message.
  *
index 965d042668b461c7b97a18751d2e9601efa41b8c..ec1911653a9c7611f97d492cbe28d0c8a7a49a5b 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * Process a feed distribution POST from a PuSH hub.
  * @package FeedSub
index 56d3c9eff2e21a702e45787d30300da27292baa7..e70d5ff521d9e4793c458eef4772856785a4326b 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+if (!defined('STATUSNET')) {
+    exit(1);
+}
+
 /**
  * Send a Salmon notification in the background.
  * @package OStatusPlugin
index c8b5beff379732d7bee653324071558e9035ffd2..d1488dbdec73441147456724f2148f08ba5125cd 100644 (file)
@@ -22,7 +22,9 @@
  * @maintainer James Walker <james@status.net>
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) {
+    exit(1);
+}
 
 class XrdAction extends Action
 {