22 lines
498 B
PHP
22 lines
498 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shimmie2;
|
|
|
|
class TacPage extends Extension
|
|
{
|
|
public function onPageRequest(PageRequestEvent $event)
|
|
{
|
|
global $page;
|
|
global $config;
|
|
if ($event->page_matches("tac")) {
|
|
$tac = $config->get_string("login_tac", "");
|
|
$page->set_title("Terms & Conditions");
|
|
$page->set_heading("Terms & Conditions Page");
|
|
$page->add_block(new Block("Terms & Conditions", $tac));
|
|
}
|
|
}
|
|
|
|
}
|