private static function find_and_parse_auth($app, $instance) { global $__json; global $__appauthauthcfg; if (isset($instance)) { $x = dbauth::find_and_parse_series("{$instance}/{$app}"); if (isset($x)) { return $x; } } if (!isset($instance) || !isset($__json->{'sloppy_instance_match'}) || $__json->{'sloppy_instance_match'} != 'no') { $x = dbauth::find_and_parse_series("{$app}"); if (isset($x)) { return $x; } } }