2 $auth = yourls_is_valid_user();
6 $format = ( isset($_REQUEST['format']) ? $_REQUEST['format'] : null );
9 if ( defined('YOURLS_API') && YOURLS_API == true ) {
10 yourls_api_output( $format, array('shorturl' => $auth) );
14 yourls_login_screen( $auth );