Файл: EasyHost v2.0/system/htdocs/manager/files/directory/create.pl
Строк: 30
<?php
$system->error('You have reached the maximum amount of directories you can store') if ($login->user->config('space_max_directories') > 0 && $login->user->config('space_max_directories') <= $login->user->usage('directories'));
$system->error('Not enough space available to store this directory') if ($login->user->config('space_quota') > 0 && ($login->user->config('space_method') == 1 && $login->user->config('space_quota') <= $login->user->usage('space') + 512 || $login->user->config('space_quota') <= $login->user->usage('space')));
$system->error('The directory name field is required') if (!$system->param('new_directory'));
$system->error('The directory name field contains invalid characters') if ($system->param('new_directory') =~ /[\/]+|^.+$/);
mkdir($login->directory->real->path.$system->param('new_directory'),0755) || $system->error('Couldn't create directory: '.$!);
$system->argv('&dir_reload=on');
$system->redirect;
?>