sendsms.php 712 B

1234567891011121314151617181920212223
  1. <?php
  2. define('IN_SMT', true);
  3. define('CURSCRIPT', 'sendsms');
  4. define('IN_MYMPS', true);
  5. define('CURROOT', dirname(__FILE__));
  6. require_once CURROOT . '/data/config.php';
  7. require_once CURROOT . '/data/config.db.php';
  8. require_once CURROOT . '/include/db.class.php';
  9. require_once CURROOT . '/include/global.php';
  10. require_once CURROOT . '/include/sms.fun.php';
  11. $phonenum = isset($phonenum) ? mhtmlspecialchars($_REQUEST['phonenum']) : '';
  12. if (!$phonenum) {
  13. exit();
  14. }
  15. $smsconfig = get_sms_config();
  16. $smsconfig['sms_service'] && include CURROOT . '/include/' . $smsconfig['sms_service'] . '/mymps.php';
  17. !send_regsms($smsconfig['sms_user'], $smsconfig['sms_pwd'], $phonenum, $smsconfig['sms_regtpl']) && exit();
  18. ?>