|
|
@ -307,6 +307,29 @@ $server->setHandler( |
|
|
|
// Append about info |
|
|
|
// Append about info |
|
|
|
$lines[] = $config->string->about; |
|
|
|
$lines[] = $config->string->about; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Append about info |
|
|
|
|
|
|
|
$lines[] = $config->string->about; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Append aliases |
|
|
|
|
|
|
|
if ($config->dokuwiki->url->alias) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lines[] = sprintf( |
|
|
|
|
|
|
|
'## %s', |
|
|
|
|
|
|
|
$config->string->alias |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($config->dokuwiki->url->alias as $base => $name) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lines[] = sprintf( |
|
|
|
|
|
|
|
'=> %s/%s %s', |
|
|
|
|
|
|
|
$base, |
|
|
|
|
|
|
|
$matches[1], |
|
|
|
|
|
|
|
$name |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Build content |
|
|
|
$response->setContent( |
|
|
|
$response->setContent( |
|
|
|
implode( |
|
|
|
implode( |
|
|
|
PHP_EOL, |
|
|
|
PHP_EOL, |
|
|
@ -456,6 +479,25 @@ $server->setHandler( |
|
|
|
// Append about info |
|
|
|
// Append about info |
|
|
|
$lines[] = $config->string->about; |
|
|
|
$lines[] = $config->string->about; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Append aliases |
|
|
|
|
|
|
|
if ($config->dokuwiki->url->alias) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lines[] = sprintf( |
|
|
|
|
|
|
|
'## %s', |
|
|
|
|
|
|
|
$config->string->alias |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($config->dokuwiki->url->alias as $base => $name) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lines[] = sprintf( |
|
|
|
|
|
|
|
'=> %s/%s %s', |
|
|
|
|
|
|
|
$base, |
|
|
|
|
|
|
|
$matches[1], |
|
|
|
|
|
|
|
$name |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Merge lines |
|
|
|
// Merge lines |
|
|
|
$content = implode( |
|
|
|
$content = implode( |
|
|
|
PHP_EOL, |
|
|
|
PHP_EOL, |
|
|
@ -578,7 +620,7 @@ $server->setHandler( |
|
|
|
// Append about info |
|
|
|
// Append about info |
|
|
|
$lines[] = sprintf( |
|
|
|
$lines[] = sprintf( |
|
|
|
'## %s', |
|
|
|
'## %s', |
|
|
|
$config->string->resources |
|
|
|
$config->string->actions |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Append search link |
|
|
|
// Append search link |
|
|
@ -597,6 +639,25 @@ $server->setHandler( |
|
|
|
// Append about info |
|
|
|
// Append about info |
|
|
|
$lines[] = $config->string->about; |
|
|
|
$lines[] = $config->string->about; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Append aliases |
|
|
|
|
|
|
|
if ($config->dokuwiki->url->alias) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lines[] = sprintf( |
|
|
|
|
|
|
|
'## %s', |
|
|
|
|
|
|
|
$config->string->alias |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($config->dokuwiki->url->alias as $base => $name) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$lines[] = sprintf( |
|
|
|
|
|
|
|
'=> %s/%s %s', |
|
|
|
|
|
|
|
$base, |
|
|
|
|
|
|
|
$matches[1], |
|
|
|
|
|
|
|
$name |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Merge lines |
|
|
|
// Merge lines |
|
|
|
$content = implode( |
|
|
|
$content = implode( |
|
|
|
PHP_EOL, |
|
|
|
PHP_EOL, |
|
|
|