This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Make this script run in debug mode by default to prevent accidentally sending out a bunch of test SMSs. | |
| // Learn from our mistakes :P | |
| if (!isset($_REQUEST['live'])) { | |
| echo '<h1>Debug Mode</h1>'; | |
| echo '<p>Note: you are running a script in <strong>debug mode</strong> that could send a large number of SMSs. '; | |
| echo 'To actually run this script and send messages, <a href="'; | |
| echo $_SERVER['PHP_SELF'] . (parse_url($_SERVER['PHP_SELF'], PHP_URL_QUERY) ? '&' : '?') . 'live=true'; | |
| echo '"><strong>run for real</strong></a>'; | |
| } |