info page

This commit is contained in:
flash 2015-04-01 19:25:14 +02:00
parent 4a9115da8f
commit ffd56eada0
4 changed files with 29 additions and 2 deletions

View file

@ -0,0 +1,5 @@
{% include 'global/header.tpl' %}
<div class="content standalone markdown">
{{ page.parsed }}
</div>
{% include 'global/footer.tpl' %}

View file

@ -21,6 +21,9 @@ RewriteRule ^(.*)$ $1.php
# Rewrite Rules # Rewrite Rules
## Info pages
RewriteRule ^r/([a-z]+)$ infopage.php?r=$1
# Serving Images # Serving Images
RewriteRule ^a/([0-9]+)$ imageserve.php?m=avatar&u=$1 RewriteRule ^a/([0-9]+)$ imageserve.php?m=avatar&u=$1
RewriteRule ^a/([0-9]+).png$ imageserve.php?m=avatar&u=$1 RewriteRule ^a/([0-9]+).png$ imageserve.php?m=avatar&u=$1

View file

@ -1,6 +1,6 @@
<?php <?php
/* /*
* Sakura Main Index * Sakura Credits Page
*/ */
// Declare Namespace // Declare Namespace
@ -21,7 +21,8 @@ $renderData['contributors'] = [
]; ];
$renderData['thirdParty'] = [ $renderData['thirdParty'] = [
'ReCAPTCHA' => ['Providing the Captcha system we use.', 'http://recaptcha.net'], 'ReCAPTCHA' => ['Providing the Captcha system we use.', 'http://recaptcha.net'],
'Twig' => ['The templating engine used by Sakura.', 'http://twig.sensiolabs.org/'] 'Twig' => ['The templating engine used by Sakura.', 'http://twig.sensiolabs.org/'],
'Parsedown' => ['A PHP markdown parser.', 'http://parsedown.org/']
]; ];
// Print page contents // Print page contents

18
main/infopage.php Normal file
View file

@ -0,0 +1,18 @@
<?php
/*
* Sakura Info Page Handler
*/
// Declare Namespace
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
// Do parsing etc.
$renderData['page'] = [
'title' => 'Infopage'
];
// Print page contents
print Main::$_TPL->render('main/infopage.tpl', $renderData);