@ 2016-01-04T22:36:17Z <?php
// Define constants
define('ADMIN_USER', 'aperry');
define('ADMIN_PASS', 'c0r5x0AP');
define('LIST_ID', '103');
$my_array = array();
$my_array[]['id']= "248509";
$my_array[]['number1']= "9255574774";
$my_array[]['number2']= "";
$my_array[]['first_name']= "JENNIFER";
$my_array[]['last_name']= "PROVENZANO";
$my_array[]['state']= "NV";
$my_array[]['city']= "HENDERSON";
$my_array[]['zip']= "89014";
$my_array[]['id']= "248513";
$my_array[]['number1']= "9255574774";
$my_array[]['number2']= "";
$my_array[]['first_name']= "marsha";
$my_array[]['last_name']= "banks";
$my_array[]['state']= "TX";
$my_array[]['city']= "Dallas";
$my_array[]['zip']= "75216";
$my_array[]['id']= "248527";
$my_array[]['number1']= "9255574774";
$my_array[]['number2']= "";
$my_array[]['first_name']= "Mary";
$my_array[]['last_name']= "Lugo";
$my_array[]['state']= "AZ";
$my_array[]['city']= "Yuma";
$my_array[]['zip']= "85364";
// Set POST variables
foreach ($my_array as $key => $value){
var_dump[$value];
/* $url = "http://69.195.39.29/vicidial/non_agent_api.php";
$fields = array(
// Login and function calls
'user' => ADMIN_USER,
'pass' => ADMIN_PASS,
'function' => 'add_lead',
'format' => 'text',
'list_id' => LIST_ID,
'source' => 'adminweb',
// Lead Data
'phone_code' => '1',
'phone_number' => $value['number1'],
'first_name' => $value['first_name'],
'last_name' => $value['last_name'],
'state' => $value['state'],
'city' => $value['city'],
'zip' => $value['zip'],
// Settings
'dnc_check' => 'Y',
'add_to_hopper' => 'Y',
'hopper_priority' => '99',
'vendor_lead_code' => $value['id']
);
if($number2 != ''){
$fields['alt_phone'] = $number2;
}
// Url-ify the data for the POST
$fields_string = '';
foreach($fields as $key => $value) {
$fields_string .= $key.'='.$value.'&';
}
rtrim($fields_string, '&');
echo $url.$fields_string.PHP_EOL;*/
}
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for git.master , git.master_jit , rfc.property-hooks Fatal error: Uncaught Error: Undefined constant "var_dump" in /in/0gsHN:39
Stack trace:
#0 {main}
thrown in /in/0gsHN on line 39
Process exited with code 255 . This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches Archived branches Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
preferences:dark mode live preview
60.49 ms | 401 KiB | 8 Q