Файл: EasyHost v2.0/system/htdocs/manager/mysql/init.pl
Строк: 20
<?php
$system->error ( 'You do not have MySQL access' ) if ( $login->user->config ( 'mysql_allow' ) != 1 );
use Sys::Hostname 'hostname';
my $hostname = ( $system->config ( 'mysql_hostname' ) eq 'localhost' or ! hostname () ) ? 'localhost' : inet_ntoa ( scalar gethostbyname hostname );
$system->error ( 'Sorry, your username is a reserved MySQL account' ) if ( $system->mysql->selectrow_array ( 'SELECT Select_priv FROM user WHERE User = ? AND Host = ?', undef, $login->user->name, $hostname ) eq 'Y' );
?>