| [ Index ] |
PHP Cross Reference of YOURLS |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Scenario: check whether yourls_restrict_remote_title_fetch() restricts the fetch, depending on 4 * whether we have and authenticated user 5 * 6 * Run by scripts/run-scenario.php, in a process where YOURLS_PRIVATE has been defined to the 7 * value under test 8 * 9 * (Credentials and nonce are needed so that the `YOURLS_PRIVATE = true` scenario actually completes a login.) 10 * 11 */ 12 13 if( !defined( 'YOURLS_ABSPATH' ) ) die(); 14 15 $_REQUEST['username'] = 'yourls'; 16 $_REQUEST['password'] = 'secret-ci-test'; 17 $_REQUEST['nonce'] = yourls_create_nonce( 'admin_login' ); 18 19 yourls_maybe_require_auth(); 20 21 define( 'YOURLS_TEST_RESTRICT_FETCH', yourls_restrict_remote_title_fetch() );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Aug 10 05:11:16 2026 | Cross-referenced by PHPXref 0.7.1 |