This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/main/infopage.php

22 lines
472 B
PHP
Raw Normal View History

2015-04-01 17:25:14 +00:00
<?php
/*
* Sakura Info Page Handler
*/
// Declare Namespace
namespace Sakura;
// Include components
require_once '/var/www/flashii.net/_sakura/sakura.php';
2015-04-01 17:34:36 +00:00
// Set default variables
2015-04-01 17:25:14 +00:00
$renderData['page'] = [
2015-04-01 17:27:42 +00:00
'title' => 'Info pages',
'content' => 'Unable to load the requested info page.'
2015-04-01 17:25:14 +00:00
];
2015-04-01 17:34:36 +00:00
$ipData = Main::loadInfoPage(isset($_GET['r']) ? strtolower($_GET['r']) : '');
2015-04-01 17:25:14 +00:00
// Print page contents
print Main::$_TPL->render('main/infopage.tpl', $renderData);