Centralize code that sets many constants and variables into functions.php to aid in code maintenance.
Replace hard-coded "/home/pi/allsky" with placeholders that are updated by "allsky/gui/install.sh".
Added is_valid_directory() to validate a directory name is valid.
Perform additional error checking.
Centralize code that sets many constants and variables into functions.php to aid in code maintenance. Replace hard-coded "/home/pi/allsky" with placeholders that are updated by "allsky/gui/install.sh". Added is_valid_directory() to validate a directory name is valid. Perform additional error checking.