Файл: EasyHost v2.0/system/htdocs/manager/mysql/remove.pl
Строк: 17
<?php
$system->error ( 'You must select a database' ) if ( length $system->param ( 'name' ) == 0 );
$system->error ( 'Invalid database' ) if ( substr ( $system->param ( 'name' ), 0, length ( $login->user->name ) + 1 ) ne $login->user->name.'_' or $system->param ( 'name' ) !~ /^[w_]+$/ );
$system->mysql->do ( 'DROP DATABASE '.$system->param ( 'name' ) );
$system->mysql->do ( 'REVOKE ALL PRIVILEGES ON '.$system->param ( 'name' ).'.* FROM '.$login->user->name.'@'.$hostname );
$system->redirect;
?>