fix trim for input (no action for multidimensional array); fix delete .flg files in generallib.php