Файл: EasyHost v2.0/system/htdocs/admin/restrictions/extensions.pl
Строк: 24
<?php
$system->error('This feature has been disabled in demo mode') if $system->config('demo');
$system->db->do('REPLACE config VALUES (?,?)',undef,'extensions_method',$system->param('extensions_method'));
$system->db->do('DELETE FROM extensions WHERE package_id = ?',undef,$system->param('package') || '0');
my $insert = $system->db->prepare('INSERT INTO extensions VALUES (?,?)');
foreach my $name (split /s*,s*/,$system->param('extensions'))
{
$insert->execute($system->param('package') || '0',lc($name));
}
$insert->finish;
$system->redirect('finish');
?>