<?php
if ($system->param('showfiles') == 1)
{
$system->db->do('REPLACE INTO users_config VALUES (?,?,?)',undef,$login->user->id,'showfiles',1);
$system->redirect('files');
}
else
{
$system->db->do('DELETE FROM users_config WHERE id = ? AND name = ?',undef,$login->user->id,'showfiles');
$system->redirect('main');
}
?>