aboutsummaryrefslogtreecommitdiffstats
path: root/mod/uexport.php
blob: 3f7b300087eec5185fbb618b5ba3145e47ff0102 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

function uexport_init(&$a) {
	if(! local_user())
		killme();

	require_once('include/identity.php');

	if(argc() > 1 && argv(1) === 'basic')
		json_return_and_die(identity_basic_export(local_user()));

	if(argc() > 1 && argv(1) === 'complete')
		json_return_and_die('not yet implemented');
	
}