mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-31 22:09:27 +02:00
26 lines
582 B
PHP
Executable File
26 lines
582 B
PHP
Executable File
<?php
|
|
|
|
require_once "app/lib/Parsedown.php";
|
|
|
|
/**
|
|
* Displays info about the RaspAP project
|
|
*/
|
|
function DisplayAbout($token)
|
|
{
|
|
$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',
|
|
'token'
|
|
)
|
|
);
|
|
}
|
|
|