sendsms.php 339 B

12345678910111213141516
  1. #!/usr/bin/php
  2. <?php
  3. require_once "lib/ssms_su.php";
  4. if (count($argv) < 6) {
  5. print 'Not enough arguments, syntax: '.$argv[0].' login password destination message sender_name'."\n";
  6. exit(7);
  7. }
  8. $rc = reset(smsapi_push_msg_nologin($argv[1], $argv[2], $argv[3], $argv[4], array("sender_name"=> $argv[5])));
  9. print $rc."\n";
  10. exit($rc);
  11. ?>