mirror of
https://github.com/kremalicious/krtmn.git
synced 2024-12-22 01:03:28 +01:00
22 lines
409 B
PHP
Executable File
22 lines
409 B
PHP
Executable File
<?php
|
|
|
|
// Make sure we're in YOURLS context
|
|
if( !defined( 'YOURLS_ABSPATH' ) ) {
|
|
echo "Try using a URL without the /pages/ part";
|
|
die();
|
|
}
|
|
|
|
// Display page content. Any PHP, HTML and YOURLS function can go here.
|
|
$url = YOURLS_SITE . '/examplepage';
|
|
|
|
yourls_html_head( 'examplepage', 'Example page' );
|
|
|
|
?>
|
|
|
|
<p>This is an example page. Its URL is simply <?php echo $url; ?></p>
|
|
|
|
<?php
|
|
|
|
yourls_html_footer();
|
|
|