Файл: EasyHost v2.0/system/htdocs/admin/system/config.pl
Строк: 50
<?php
$system->error('This feature has been disabled in demo mode') if $system->config('demo');
if ($system->param('conf_mail_method') eq 'sendmail')
{
$system->error('The sendmail path is required') if (length($system->param('conf_mail_sendmail')) == 0);
$system->error('The sendmail path you entered doesn't exist') if (!-e $system->param('conf_mail_sendmail'));
}
else
{
$system->error('The SMTP server hostname is required') if (length($system->param('conf_mail_smtp')) == 0);
$system->error('The SMTP server hostname contains invalid characters') if ($system->param('conf_mail_smtp') !~ /^[w.]+$/);
}
$system->error('The username min. limit is required') if ($system->param('conf_username_min') < 1);
$system->error('The username max. limit is required') if ($system->param('conf_username_max') < 1);
$system->error('The username max. limit must be greater then the min. limit') if ($system->param('conf_username_max') < $system->param('conf_username_min'));
$system->error('The password min. limit is required') if ($system->param('conf_password_min') < 1);
$system->error('The password max. limit is required') if ($system->param('conf_password_max') < 1);
$system->error('The password max. limit must be greater then the min. limit') if ($system->param('conf_password_max') < $system->param('conf_password_min'));
$system->config_modify;
$system->redirect('finish');
?>