First public release of MyAAC

This commit is contained in:
slawkens1
2017-05-01 20:02:45 +02:00
parent 31172b4883
commit b5362d0654
2016 changed files with 114481 additions and 0 deletions

28
system/pages/custom.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
/**
* Custom pages loader
*
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.0.1
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
$query = $db->query('SELECT `title`, `body`, `php` FROM `' . TABLE_PREFIX . 'pages` WHERE `name` LIKE ' . $db->quote($page) . ' AND `hidden` != 1');
if($query->rowCount() > 0) // found page
{
$query = $query->fetch();
$title = $query['title'];
if($query['php'] == '1') // execute it as php code
eval($query['body']);
else
echo $query['body']; // plain html
return true;
}
return false;
?>