-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstep_3_contacts.php
More file actions
41 lines (40 loc) · 943 Bytes
/
step_3_contacts.php
File metadata and controls
41 lines (40 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<head>
<title>Import Contacts - Step 3</title>
</head>
<body>
<a href='step_1_start.php'>Start Again</a>
<?php
require_once 'csimport.php';
if (array_key_exists('import_id', $_GET)) {
// Step 2
$import_id = $_GET['import_id'];
retrieve_contacts($import_id, 2000);
}
function retrieve_contacts($import_id, $timeout) {
$contacts_result = CSImport::get_contacts($import_id);
$contacts = $contacts_result['contacts'];
$contacts_owner = $contacts_result['contacts_owner'];
if(!is_null($contacts_owner)) {
echo "<p><strong>Contacts Owner</strong>:";
echo $contacts_owner->name();
echo "<".$contacts_owner->email().">";
echo "</p>";
}
if(!is_null($contacts)) {
echo "<pre>";
print_r($contacts);
echo "</pre>";
?>
<script type="text/javascript">
popup = window.open('', '_popupWindow');
if (undefined != popup) {
popup.close();
}
</script>
<?php
}
}
?>
</body>
</html>