dont let the daemon get called from a web server

darcs-hash:20080623030523-84dde-d667f0e35b5719cee8496df4b0782dbb4afe5177.gz
This commit is contained in:
Evan Prodromou 2008-06-22 23:05:23 -04:00
parent 47bc5562f6
commit 8ac3474361

View File

@ -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);