1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-12 09:57:41 +02:00
RaspAP/includes/about.php
billz b0ba029c66 Revert "Accept $token object, pass to renderTemplate()"
This reverts commit b3c61782749559ae710b2bcc608ecf6f000650f5.
2025-03-25 13:23:58 -07:00

25 lines
555 B
PHP
Executable File

<?php
require_once "app/lib/Parsedown.php";
/**
* Displays info about the RaspAP project
*/
function DisplayAbout()
{
$Parsedown = new Parsedown();
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/BACKERS.md');
$sponsorsHtml = $Parsedown->text($strContent);
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/CONTRIBUTING.md');
$contributingHtml = $Parsedown->text($strContent);
echo renderTemplate(
"about", compact(
'sponsorsHtml',
'contributingHtml'
)
);
}