MantisBT: master 8a1f1d0a

Author Committer Branch Timestamp Parent
dhx dhx master 2009-08-31 07:03 master 7b794dfc
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