use SORT_ASC/DESC directly in config. simplifies array_multisort.
Merge pull request #62 from bifek/fixsorting

use SORT_ASC/DESC directly in config. simplifies array_multisort.
Merge pull request #64 from Lucas-C/master

Do not escape slashes in images href URLs
rewrite code to not have warnings about not defined indexes, variables,
or not being able to write files
Slashes unescaping seemed overcomplicated.
Merge pull request #65 from Aldarone/simple-unescaped-slashes

Slashes unescaping seemed overcomplicated.
Merge pull request #63 from bifek/thumbwarnings

quiesce warnings
rename config.php to config-default.php and include (new) config.php
that contains only settings that are different than default ones.
also add config.php to gitignore.

all this will make it easier for users to sync with repo.
simplify $_GET usage (move to beginning for easy escape if need be).
simplify orientation reading from big case to two small arrays.
Merge pull request #69 from bifek/configdefault

rename config.php to config-default.php
use built-in is_dir() function
Merge pull request #72 from bifek/functions

use built-in is_dir() function
Merge pull request #70 from bifek/cleangetvars

simplify $_GET usage (move to beginning for easy escape if need be).
simplify sanitize() function
clean up spacing
Merge pull request #74 from bifek/cleanup

clean up spacing and bracing according to PSR-2
Merge pull request #75 from bifek/sanitize

simplify sanitize() function
use built-in is_readable()
Merge pull request #76 from bifek/tinyfixes

use built-in is_readable()
clean up spacing and braces according to PSR-2 rules