Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/php -q
- <?php
- set_time_limit(0);
- $dbconn = pg_connect("host=10.50.50.110 port=5432 dbname=dialer user=dialer password=dialer1q2w3e4r") or die('Could not connect: ' . pg_last_error());
- if (is_numeric($id)) {
- $query = "";
- $ss = preg_split("/@/", $callid);
- $callid = $ss[0];
- ....
- ....
- if ($useamd == "1")
- {
- <------>if ($human == "MACHINE") {
- <------> $query = "update dialjob_record set human='F',isdrop='T',callid='" . $callid . "' where id=" . $id . "\n";
- <------>} else {
- <------> $query = "update dialjob_record set human='Y',isdrop='T',callid='" . $callid . "' where id=" . $id . "\n";
- <------>}....
- }
- else
- {
- <------>$query = "update dialjob_record set isdrop='T',callid='" . $callid . "' where id=" . $id . "\n";
- }
- }.
- pg_free_result($result);
- pg_close($dbconn);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement