Файл: EasyHost v2.0/system/htdocs/manager/files/file/default.pl
Строк: 23
<?php
foreach my $config ( qw ( disable_wysiwyg wrap ) )
{
if ( $system->param( $config ) == 1 && $login->user->config( $config ) != 1 )
{
$system->db->do( 'INSERT INTO users_config VALUES (?,?,?)', undef, $login->user->id, $config, 1 );
}
elsif ( $system->param( $config ) != 1 && $login->user->config( $config ) == 1 )
{
$system->db->do( 'DELETE FROM users_config WHERE id = ? AND name = ?', undef, $login->user->id, $config );
}
}
my $text = $system->param('input');
$text =~ s/<base href=[^>]+>//i;
$file->write($text);
$login->user->notice('file_modify','modified a file ('.$file->path.')');
$system->redirect('/manager/files');
?>