You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.4 KiB
PHP
42 lines
1.4 KiB
PHP
# aboutpage_a = '<hr><a href="%s">%s</a>: %s'
|
|
# aboutpage_b = 'running v%s'
|
|
# aboutpage_ca = 'if there are problems with this page or any other page, contact'
|
|
# aboutpage_cb = 'if there are problems with this page or any other page, contact either'
|
|
# aboutpage_d = ' %s (<a href="mailto:%s">email</a>)'
|
|
<?php
|
|
function &genAbout($language): ?string{
|
|
$strings=array_merge(
|
|
parse_ini_file(__DIR__.'/../../data/locale/'.$language.'/strings/aboutpage.ini'),
|
|
parse_ini_file(__DIR__.'/../../data/locale/'.$language.'/strings/main.ini')
|
|
);
|
|
$conf=parse_ini_file(__DIR__.'./../../serve.ini',true);
|
|
$output="<h1 title=\"".$strings['misc_stslogohover']."\">".file_get_contents(__DIR__."/../../data/misc/icon/html.html")."</h1>";
|
|
$output=$output.sprintf(
|
|
$strings['a'],
|
|
$conf['META']['svn'],
|
|
$strings['meta_project_name'],
|
|
$strings['meta_project_desc']
|
|
).
|
|
'<br>'.
|
|
sprintf(
|
|
$strings['b'],
|
|
sprintf(
|
|
'%d.%d.%d',
|
|
$conf['META']['version'][0],
|
|
$conf['META']['version'][1],
|
|
$conf['META']['version'][2]
|
|
)
|
|
).
|
|
'<hr>'.
|
|
$strings['ca'].
|
|
'<br>'.
|
|
sprintf(
|
|
$strings['d'],
|
|
$conf['MAINTAINERS_0']['name'],
|
|
$conf['MAINTAINERS_0']['email'],
|
|
$conf['MAINTAINERS_0']['email']
|
|
);
|
|
|
|
return $output;
|
|
}
|
|
?>
|