Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #!/usr/bin/php -q
  2. <?php
  3. set_time_limit(0);
  4.  
  5. $dbconn = pg_connect("host=10.50.50.110 port=5432 dbname=dialer user=dialer password=dialer1q2w3e4r") or die('Could not connect: ' . pg_last_error());
  6.  
  7.  
  8. if (is_numeric($id)) {
  9. $query = "";
  10. $ss = preg_split("/@/", $callid);
  11. $callid = $ss[0];
  12. ....
  13. ....
  14. if ($useamd == "1")
  15. {
  16. <------>if ($human == "MACHINE") {
  17. <------> $query = "update dialjob_record set human='F',isdrop='T',callid='" . $callid . "' where id=" . $id . "\n";
  18. <------>} else {
  19. <------> $query = "update dialjob_record set human='Y',isdrop='T',callid='" . $callid . "' where id=" . $id . "\n";
  20. <------>}....
  21. }
  22. else
  23. {
  24. <------>$query = "update dialjob_record set isdrop='T',callid='" . $callid . "' where id=" . $id . "\n";
  25. }
  26.  
  27. }.
  28.  
  29.  
  30. pg_free_result($result);
  31.  
  32. pg_close($dbconn);
  33.  
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement