aboutsummaryrefslogtreecommitdiff
path: root/pages/examplepage.php
diff options
context:
space:
mode:
authors1n <[email protected]>2020-03-28 10:36:41 -0700
committers1n <[email protected]>2020-03-28 10:36:41 -0700
commit25b7d2aab61ae6421398d3abae5da6ffe590333d (patch)
tree611985ec78bb2d94099c9fd5dd687f5c9cee6f3e /pages/examplepage.php
parentInitial commit (diff)
downloadcrack.cf-backup-master.tar.xz
crack.cf-backup-master.zip
3/28/2020, 10:36HEADmaster
Diffstat (limited to 'pages/examplepage.php')
-rw-r--r--pages/examplepage.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/pages/examplepage.php b/pages/examplepage.php
new file mode 100644
index 0000000..f02d6ec
--- /dev/null
+++ b/pages/examplepage.php
@@ -0,0 +1,21 @@
+<?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();
+