mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 02:16:03 +01:00
fix a notice; increase waiting time for dns
This commit is contained in:
parent
a779b96370
commit
0b19051891
@ -892,7 +892,7 @@ function displayBan($ban) {
|
|||||||
Element('page.html', array(
|
Element('page.html', array(
|
||||||
'title' => _('Banned!'),
|
'title' => _('Banned!'),
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'boardlist' => createBoardlist($mod),
|
'boardlist' => createBoardlist(isset($mod) ? $mod : false),
|
||||||
'body' => Element('banned.html', array(
|
'body' => Element('banned.html', array(
|
||||||
'config' => $config,
|
'config' => $config,
|
||||||
'ban' => $ban,
|
'ban' => $ban,
|
||||||
@ -2514,7 +2514,7 @@ function rDNS($ip_addr) {
|
|||||||
if (!$config['dns_system']) {
|
if (!$config['dns_system']) {
|
||||||
$host = gethostbyaddr($ip_addr);
|
$host = gethostbyaddr($ip_addr);
|
||||||
} else {
|
} else {
|
||||||
$resp = shell_exec_error('host -W 1 ' . $ip_addr);
|
$resp = shell_exec_error('host -W 3 ' . $ip_addr);
|
||||||
if (preg_match('/domain name pointer ([^\s]+)$/', $resp, $m))
|
if (preg_match('/domain name pointer ([^\s]+)$/', $resp, $m))
|
||||||
$host = $m[1];
|
$host = $m[1];
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user