Project Reorganization

0 views
Skip to first unread message

Loren M. Lang

unread,
Jan 29, 2011, 12:38:05 AM1/29/11
to Life Logger
Feedback requested.

I am considering reorganizing the source for PhotoCatalog. Currently,
nearly everything including all the perl scripts are in the top level of
the project. A few files are now under lib. Most of the files are
scripts that can be run from the command-line or cron job, but a few
files are designed to be accessible from the web. live.kml, in
particular, needs to be accessible to view the map overlay on-line with
Google Maps. Some files like locations.csv should probably not be
accessible. More importantly, upload.html and upload.pl, which are used
to upload status updates and photos from a webpage need to be protected
as they provide no authentication currently. upload.pl is also used by
PhotoCatalog for Android for pushing up GPS, status and photo updates.
Also, if settings.pl is accessible, people might be able to download it
and retrieve API keys and other sensitive data. API keys would allow
them to submit their own data to your InstaMapper account. Here is a
possible organization:

photocatalog/
settings.pl
locations.csv
bin/ (or src/) (for various executable non-CGI Perl scripts)
updatelocation.pl
...
lib/ (for Perl modules)
Facebook.pm
tmp/
www/ (for CGI Perl scripts)
index.html
live.kml
admin/ (for protected CGI Perl scripts)
.htaccess (contains directives to Apache to require
HTTP Authentication for accessing files)
upload.html
update.pl
icons/
images/

Only the www/ subdirectory would need to be directly accessible to
Apache keeping everything else hidden.
--
Loren M. Lang
lor...@north-winds.org
http://www.north-winds.org/


Public Key: ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc
Fingerprint: 10A0 7AE2 DAF5 4780 888A 3FA4 DCEE BB39 7654 DE5B

signature.asc
Reply all
Reply to author
Forward
0 new messages