-
Notifications
You must be signed in to change notification settings - Fork 1
reference:(root):page.php
File (root)
/page.php
This page displays content pages to the user.
The (root)
/.htaccess
redirects all not found pages to here.
The currently logged in user needs the permission Pages
to access this document. If the user doesn't have this permission a error message is displayed.
The file works in the following order:
If the URL begins with /raw
$raw
is set to True
and the page gets displayed raw. And steps 2-3 and 6 get skipped.
If the URL begins with /amp
$amp
is set to True
and the page gets displayed amp compatible.
After that this prefixes get removed from the URL
The <head>
tag.
If amp is activated (root)
/includes
/amp
/head.php
gets included. If not (root)
/siteelements
/head.php
gets included.
Additional if cookie Check
isn't set the HTML check gets executed.
(root)
/siteelements
/header.php
gets included.
The script proceeds in the following order:
This is a fallback for compatibility reasons.
If the GET parameter URL
is set it displays blog or normal pages.
For example:
-
page.php?URL=/blog/test
=> Pagetest
from databaseBlog
gets displayed. -
page.php?URL=/test
=> Pagetest
from databaseSites
gets displayed.
If the requested resource is /index.php
or /index.html
or just /
page index
from database Sites
gets displayed.
If the requested resource is /error
and GET parameter E
is set an error page for error E
is displayed.
If the requested resource is /blogsite
or /blogsite.php
the overview page for all Blog pages is shown.
If non of the above is true a content page is displayed from the URL with following functionality: /{Content name URL prefix}/{Page name}
.
If no page could be found a 404 error gets displayed.
The prefixes like %img
get replaced.
(root)
/siteelements
/footer.php
gets included.
Manuals
- manual:Download-and-install-USOC
- manual:How to install USOC manually
- manual:plugins
- manual:Set-up-oAuth-with-google
Github Manuals
Reference Index