Файл: EasyHost v2.0/system/htdocs/admin/restrictions/signup.pl
Строк: 15
<?php
$system->error('This feature has been disabled in demo mode') if $system->config('demo');
my $replace = $system->db->prepare('REPLACE INTO config VALUES (?,?)');
my $delete = $system->db->prepare('DELETE FROM config WHERE name = ?');
foreach ('package_default','category_required','approval_method','distinct_email','terms_url','data_website','data_contact','data_address')
{
if (length $system->param('conf_'.$_) > 0)
{
$replace->execute($_,$system->param('conf_'.$_));
}
else
{
$delete->execute($_);
}
}
$replace->finish;
$delete->finish;
$system->redirect('finish');
?>