Added globals.php and fixed doubles.

You can now select duplicate cameras without drastic side effects.