forked from GNUsocial/gnu-social
dont let the daemon get called from a web server
darcs-hash:20080623030523-84dde-d667f0e35b5719cee8496df4b0782dbb4afe5177.gz
This commit is contained in:
parent
47bc5562f6
commit
8ac3474361
@ -17,6 +17,12 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
# Abort if called from a web server
|
||||
if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
|
||||
print "This script must be run from the command line\n";
|
||||
exit();
|
||||
}
|
||||
|
||||
define('INSTALLDIR', dirname(__FILE__));
|
||||
define('LACONICA', true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user