per-user settings can be stored in a more or less standard way using hook_user and/or user_save
something strange in PHP. It seems that global arrays defined in an INCLUDED files are local to the included file and their range disappears in the including file: