$email . ':' . $password); $url = $scheme . $servername . $api_path; $ret = z_fetch_url($url, $binary, $redirects, $opts); if(! $ret['success']) $ret = z_fetch_url('http://' . $servername . $api_path, $binary, $redirects, $opts); if($ret['success']) $data = $ret['body']; else notice( t('Unable to download data from old server') . EOL); } if(! $data) { logger('mod_import: empty file.'); notice( t('Imported file is empty.') . EOL); return; } // logger('import: data: ' . print_r($data,true)); // print_r($data); // import channel // import contacts if($seize) { // notify old server that it is no longer primary. } // send out refresh requests } function import_content(&$a) { /* * Pass in a channel name and desired channel_address * Check this for validity and duplication * The page template should have a place to change it and check again */ $o .= <<< EOT
EOT; return $o; }