diff --git a/popup.php b/popup.php index 83f6479..37afb3c 100644 --- a/popup.php +++ b/popup.php @@ -3,9 +3,14 @@ Import Contacts - Popup -"; +} + if (array_key_exists('service', $_GET)) { // Step 1 $username = NULL; @@ -14,9 +19,13 @@ $username = $_GET['username']; if (array_key_exists('password', $_GET)) $password = $_GET['password']; - + // Call to the CloudSponge.com for the import_id and redirect url (if applicable) $output = CSImport::begin_import($_GET['service'], $username, $password, NULL, NULL, array('include' => "name,email,mailing_address")); + if ($verbose) { + print_r($output); + } + if (isset($output['import_id'])) { $import_id = $output['import_id']; @@ -30,7 +39,7 @@ } else { echo "trouble..."; } -} +} ?>

Contacts are being imported. Please do not close this popup window.