diff options
Diffstat (limited to 'util')
-rwxr-xr-x | util/connect | 4 | ||||
-rwxr-xr-x | util/dmkdir | 6 | ||||
-rwxr-xr-x | util/pconfig | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/util/connect b/util/connect index eed14961c..7ceda300f 100755 --- a/util/connect +++ b/util/connect @@ -1,6 +1,8 @@ #!/usr/bin/env php <?php +use Zotlabs\Lib\Libsync; + // connect utility if(! file_exists('include/cli_startup.php')) { @@ -51,7 +53,7 @@ cli_startup(); $abconfig = load_abconfig($c['channel_id'],$clone['abook_xchan']); if($abconfig) $clone['abconfig'] = $abconfig; - build_sync_packet($c['channel_id'], array('abook' => array($clone)), true); + Libsync::build_sync_packet($c['channel_id'], array('abook' => array($clone)), true); $can_view_stream = intval(get_abconfig($c['channel_id'],$clone['abook_xchan'],'their_perms','view_stream')); diff --git a/util/dmkdir b/util/dmkdir index 72ab22431..b939bc901 100755 --- a/util/dmkdir +++ b/util/dmkdir @@ -1,6 +1,8 @@ #!/usr/bin/env php <?php +use Zotlabs\Lib\Libsync; + // file import to DAV utility if(!file_exists('include/cli_startup.php')) { @@ -52,6 +54,6 @@ if($argc != 2) { $sync = attach_export_data($channel,$hash); if($sync) { - build_sync_packet($channel['channel_id'],array('file' => array($sync))); + Libsync::build_sync_packet($channel['channel_id'],array('file' => array($sync))); } - }
\ No newline at end of file + } diff --git a/util/pconfig b/util/pconfig index 36d894fb5..c2027adaf 100755 --- a/util/pconfig +++ b/util/pconfig @@ -1,6 +1,8 @@ #!/usr/bin/env php <?php +use Zotlabs\Lib\Libsync; + // Red pconfig utility @@ -63,7 +65,7 @@ if($argc > 2 && strpos($argv[2],'.')) { if($argc > 4) { set_pconfig($argv[1],$argv[2],$argv[3],$argv[4]); - build_sync_packet($argv[1]); + Libsync::build_sync_packet($argv[1]); echo "pconfig[{$argv[1]}][{$argv[2]}][{$argv[3]}] = " . get_pconfig($argv[1],$argv[2],$argv[3]) . "\n"; } |