2 require(dirname(__FILE__).'/functions-auth.php');
4 $auth = yourls_is_valid_user();
8 $format = ( isset($_REQUEST['format']) ? $_REQUEST['format'] : null );
11 if ( defined('YOURLS_API') && YOURLS_API == true ) {
12 yourls_api_output( $format, array('shorturl' => $auth) );
16 yourls_login_screen( $auth );