Файл: EasyHost v2.0/system/htdocs/admin/system/defaults.pl
Строк: 15
<?php
$system->error('This feature has been disabled in demo mode') if $system->config('demo');
if (length $system->param('username') > 0)
{
my ($user,$service) = $system->db->selectrow_array('SELECT id FROM users WHERE name = ?',undef,$system->param('username'));
$system->error('The username you entered doesn't exist') if ($user < 1);
$system->db->do('REPLACE INTO defaults VALUES (?,?)',undef,$system->param('category') || '0',$user);
}
else
{
$system->db->do('DELETE FROM defaults WHERE category_id = ?',undef,$system->param('category') || '0');
}
$system->redirect('finish');
?>