Normalize execution guards on OStatus php files; mostly helps cut down on annoying 'class not found' errors when something spiders the dirs. :P

This commit is contained in:
Brion Vibber 2010-10-08 10:42:59 -07:00
parent f62e7c461f
commit 69b13cb279
22 changed files with 78 additions and 11 deletions

View File

@ -22,7 +22,9 @@
* @maintainer Brion Vibber <brion@status.net> * @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/'); set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/extlib/');

View File

@ -22,7 +22,9 @@
* @maintainer James Walker <james@status.net> * @maintainer James Walker <james@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
class HostMetaAction extends Action class HostMetaAction extends Action
{ {

View File

@ -22,7 +22,9 @@
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* Key UI methods: * Key UI methods:

View File

@ -22,8 +22,9 @@
* @maintainer James Walker <james@status.net> * @maintainer James Walker <james@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
class OStatusInitAction extends Action class OStatusInitAction extends Action
{ {

View File

@ -22,7 +22,9 @@
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* Key UI methods: * Key UI methods:

View File

@ -22,7 +22,9 @@
* @maintainer James Walker <james@status.net> * @maintainer James Walker <james@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
class OwnerxrdAction extends XrdAction class OwnerxrdAction extends XrdAction
{ {

View File

@ -22,7 +22,9 @@
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
class PushCallbackAction extends Action class PushCallbackAction extends Action
{ {

View File

@ -23,6 +23,10 @@
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>
*/ */
if (!defined('STATUSNET')) {
exit(1);
}
/** /**

View File

@ -17,7 +17,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
if (!defined('STATUSNET')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* @package OStatusPlugin * @package OStatusPlugin

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* @package OStatusPlugin * @package OStatusPlugin
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* PuSH feed subscription record * PuSH feed subscription record
* @package Hub * @package Hub

View File

@ -27,6 +27,10 @@
* @link http://status.net/ * @link http://status.net/
*/ */
if (!defined('STATUSNET')) {
exit(1);
}
require_once 'Crypt/RSA.php'; require_once 'Crypt/RSA.php';
class Magicsig extends Memcached_DataObject class Magicsig extends Memcached_DataObject

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* @package OStatusPlugin * @package OStatusPlugin
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* @package OStatusPlugin * @package OStatusPlugin
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>

View File

@ -22,7 +22,9 @@
* @maintainer Brion Vibber <brion@status.net> * @maintainer Brion Vibber <brion@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
class FeedSubBadURLException extends FeedSubException class FeedSubBadURLException extends FeedSubException
{ {

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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. * Send a PuSH subscription verification from our internal hub.
* @package Hub * @package Hub

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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. * Send a raw PuSH atom update from our internal hub.
* @package Hub * @package Hub

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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 * When we have a large batch of PuSH consumers, we break the data set
* into smaller chunks. Enqueue final destinations... * into smaller chunks. Enqueue final destinations...

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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. * Prepare PuSH and Salmon distributions for an outgoing message.
* *

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * 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. * Process a feed distribution POST from a PuSH hub.
* @package FeedSub * @package FeedSub

View File

@ -17,6 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
if (!defined('STATUSNET')) {
exit(1);
}
/** /**
* Send a Salmon notification in the background. * Send a Salmon notification in the background.
* @package OStatusPlugin * @package OStatusPlugin

View File

@ -22,7 +22,9 @@
* @maintainer James Walker <james@status.net> * @maintainer James Walker <james@status.net>
*/ */
if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } if (!defined('STATUSNET')) {
exit(1);
}
class XrdAction extends Action class XrdAction extends Action
{ {