MantisBT: master-1.2.x c8d2b5f9

Author Committer Branch Timestamp Parent
dhx dhx master-1.2.x 2009-08-31 07:03 master-1.2.x 191b5c96
Affected Issues  0010886: Use php_sapi_name to determine if script is running in CLI environment
Changeset

Fix 0010886: Use more robust method of determining php-cgi

Use the php_sapi_name function to check if the script is being executed
from the command line. This is more robust than checking if the server
port variable is defined by PHP.

Thanks to ha17 for this suggestion.

mod - scripts/send_emails.php Diff File
mod - scripts/checkin.php Diff File