missing include, plus change to new red api path for basic export
This commit is contained in:
parent
2493770af9
commit
e65449ee11
@ -4,7 +4,7 @@
|
|||||||
// connection to original server.
|
// connection to original server.
|
||||||
|
|
||||||
require_once('include/Contact.php');
|
require_once('include/Contact.php');
|
||||||
|
require_once('include/zot.php');
|
||||||
|
|
||||||
function import_post(&$a) {
|
function import_post(&$a) {
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ function import_post(&$a) {
|
|||||||
$servername = substr($old_address,strpos($old_address,'@')+1);
|
$servername = substr($old_address,strpos($old_address,'@')+1);
|
||||||
|
|
||||||
$scheme = 'https://';
|
$scheme = 'https://';
|
||||||
$api_path = '/api/export/basic?f=&channel=' . $channelname;
|
$api_path = '/api/red/channel/export/basic?f=&channel=' . $channelname;
|
||||||
$binary = false;
|
$binary = false;
|
||||||
$redirects = 0;
|
$redirects = 0;
|
||||||
$opts = array('http_auth' => $email . ':' . $password);
|
$opts = array('http_auth' => $email . ':' . $password);
|
||||||
|
Reference in New Issue
Block a user