ginatrapani/ThinkUp — pull request #1185 by pushingit (2011-11-23 18:40:07+00:00)
Title: issue #959 - configurable write directory

making for a single directory under which the webserver needs to write to
making sure not to default to tmp as that gets auto-cleaned on some systems

- using $THINKUP_CFG["datadir_path"], defaults to 'data' under the thinkup root

- directories moved under 'data': 'compiled_view', 'cache', 'logs'

- added helper functions:
-- Utils::getDataPath($str) - absolute path to data - if $str given, data/$str
-- Utils::getBackupPath($str) - data/backup/$str
-- Plugin->getDataPath($str) - data/plugins/$plugin_folder_name/$str