<?php
use Sys::Hostname 'hostname';
my $hostname = ( $system->config ( 'mysql_hostname' ) eq 'localhost' or ! hostname () ) ? 'localhost' : inet_ntoa ( scalar gethostbyname hostname );
$html .= $system->mysql->selectrow_array ( 'SELECT COUNT(*) FROM db WHERE User = ? AND Host = ?', undef, $login->user->name, $hostname );
?>