Файл: EasyHost v2.0/system/htdocs/manager/files/directory/default_init.pl
Строк: 24
<?php
if ($system->param('directory'))
{
$system->error('The directory you selected wasn't found') if (!$login->user->directory($system->param('directory'))->exists);
$system->error('Invalid directory name') if (substr($system->param('directory'),0,1) ne '/' || substr($system->param('directory'),-1) ne '/' || $system->param('directory') =~ /[\/].+[\/]/);
}
my $directory = $login->set_directory($system->param('directory'));
if ($system->param('disable_wysiwyg') == 1 && $login->user->config('disable_wysiwyg') == 0)
{
$login->user->{'config'}{'disable_wysiwyg'} = 1;
$system->db->do('REPLACE INTO users_config VALUES (?,?,?)',undef,$login->user->id,'disable_wysiwyg',1);
}
elsif ($system->param('temp') && $system->param('disable_wysiwyg') == 0 && $login->user->config('disable_wysiwyg') == 1)
{
delete $login->user->{'config'}{'disable_wysiwyg'};
$system->db->do('DELETE FROM users_config WHERE id = ? AND name = ?',undef,$login->user->id,'disable_wysiwyg');
}
?>