streams/mod/uexport.php
2013-01-16 21:34:36 -08:00

15 lines
No EOL
300 B
PHP

<?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');
}