2019-03-15 12:31:02 +00:00
|
|
|
<?php
|
|
|
|
|
2021-02-02 12:26:14 +00:00
|
|
|
require_once "app/lib/Parsedown.php";
|
|
|
|
|
2019-03-15 12:31:02 +00:00
|
|
|
/**
|
|
|
|
* Displays info about the RaspAP project
|
|
|
|
*/
|
2019-08-18 22:20:47 +00:00
|
|
|
function DisplayAbout()
|
|
|
|
{
|
2021-02-02 12:26:14 +00:00
|
|
|
$Parsedown = new Parsedown();
|
|
|
|
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/BACKERS.md');
|
|
|
|
$sponsorsHtml = $Parsedown->text($strContent);
|
|
|
|
|
2023-11-06 06:38:35 +00:00
|
|
|
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/CONTRIBUTING.md');
|
|
|
|
$contributingHtml = $Parsedown->text($strContent);
|
|
|
|
|
|
|
|
echo renderTemplate(
|
|
|
|
"about", compact(
|
|
|
|
'sponsorsHtml',
|
|
|
|
'contributingHtml'
|
|
|
|
)
|
|
|
|
);
|
2019-03-15 12:31:02 +00:00
|
|
|
}
|
2021-02-02 12:26:14 +00:00
|
|
|
|