Add ability to provide a link or comment about x-face in configuration page.

This commit is contained in:
Retro_Guy 2024-05-11 08:11:02 -07:00
parent 6e91cb4807
commit 14eb6e3ae6
1 changed files with 4 additions and 0 deletions

View File

@ -411,6 +411,10 @@ if (isset($_REQUEST['command']) && $_REQUEST['command'] == 'Configuration') {
// X-Face
if ($OVERRIDES['disable_xface'] != true) {
echo '<td class="np_result_line1" style="word-wrap:break-word";><h3>X-Face:</h3></td>';
$xflink = $config_dir . 'xface.txt';
if(file_exists($xflink)) {
echo '</tr><td class="np_result_line1" style="word-wrap:break-word";>' . file_get_contents($xflink) . '</td><tr>';
}
echo '</tr><tr><td class="np_result_line1" style="word-wrap:break-word";><textarea class="configuration" id="xface" name="xface" rows="4" cols="80">' . $user_config['xface'];
echo '</textarea></td>';
}