mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 13:35:12 +00:00
22 lines
496 B
PHP
22 lines
496 B
PHP
<?php
|
|
namespace Code\Module;
|
|
|
|
use App;
|
|
use Code\Lib\PConfig;
|
|
use Code\Web\Controller;
|
|
|
|
class Legal extends Controller
|
|
{
|
|
const LEGAL_SOURCE = 'doc/en/TermsOfService.mc';
|
|
|
|
public function get() {
|
|
$sys_channel = App::$sys_channel;
|
|
$site_document = PConfig::Get($sys_channel['channel_id'],'system', 'legal');
|
|
if (!$site_document) {
|
|
$site_document = file_get_contents($this::LEGAL_SOURCE);
|
|
}
|
|
$html = bbcode($site_document);
|
|
return $html;
|
|
}
|
|
|
|
}
|