Add ability to provide a link or comment about x-face in configuration page.
This commit is contained in:
parent
6e91cb4807
commit
14eb6e3ae6
|
@ -411,6 +411,10 @@ if (isset($_REQUEST['command']) && $_REQUEST['command'] == 'Configuration') {
|
||||||
// X-Face
|
// X-Face
|
||||||
if ($OVERRIDES['disable_xface'] != true) {
|
if ($OVERRIDES['disable_xface'] != true) {
|
||||||
echo '<td class="np_result_line1" style="word-wrap:break-word";><h3>X-Face:</h3></td>';
|
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 '</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>';
|
echo '</textarea></td>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue