simplify $_GET usage (move to beginning for easy escape if need be).
simplify orientation reading from big case to two small arrays.
use built-in is_dir() function
clean up spacing
Merge branch 'cleanup' of github.com:bifek/MinigalNano into cleanup