Changeset 681
- Timestamp:
- 12/15/09 15:51:52 (2 years ago)
- Location:
- trunk/phpbms
- Files:
-
- 5 added
- 2 modified
-
common/stylesheet/mozilla/pages/mailchimp (added)
-
common/stylesheet/mozilla/pages/mailchimp/manual_sync.css (added)
-
modules/mailchimp/include/list_sync.php (modified) (6 diffs)
-
modules/mailchimp/javascript/manual_list_sync.js (added)
-
modules/mailchimp/manual_list_sync_ajax.php (added)
-
modules/mailchimp/maunal_list_sync.php (added)
-
modules/mailchimp/scheduler_list_sync.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/mailchimp/include/list_sync.php
r680 r681 261 261 262 262 /** 263 * Get rid of the temorary table. 264 */ 265 $dropTableStatement = " 266 DROP TABLE IF EXISTS 267 `tempEmail` 268 "; 269 $this->db->query($dropTableStatement); 270 271 /** 263 272 * Create a temporary table 264 273 */ … … 275 284 * pull all the subscribed 276 285 */ 277 $ i= 0;286 $start = 0; 278 287 do{ 279 288 $valuesClause = ""; 280 281 $members = $this->api->listMembers($this->listId, 'subscribed', NULL, $ i*$this->batchLimit, $this->batchLimit*($i+1));289 290 $members = $this->api->listMembers($this->listId, 'subscribed', NULL, $start, $this->batchLimit); 282 291 283 292 if($this->api->errorCode){ … … 290 299 291 300 $valuesClause = substr($valuesClause, 1); 301 292 302 293 303 /** … … 305 315 }//end if 306 316 307 $ i++;317 $start++; 308 318 }while(count($members) == $this->batchLimit); 309 319 … … 332 342 while($therecord = $this->db->fetchArray($selectresult)) 333 343 $unsubscribeList[] = $therecord["email"]; 334 335 336 /** 337 * If there are records to unsubscribe, do so. 344 345 /** 346 * If there are records to unsubscribe (deleted), do so. 338 347 */ 339 348 if(count($unsubscribeList)){ … … 353 362 */ 354 363 $dropTableStatement = " 355 DROP TABLE 364 DROP TABLE IF EXISTS 356 365 `tempEmail` 357 366 "; -
trunk/phpbms/modules/mailchimp/scheduler_list_sync.php
r677 r681 18 18 $response = $listSync->process(); 19 19 var_dump($response); 20 echo "<br/><br/>";21 20 exit; 21 22 22 if(isset($response["type"])){ 23 23