From 4198cb96a74175ebd99edd6097636abfba559c8d Mon Sep 17 00:00:00 2001 From: conradverm Date: Tue, 18 Sep 2007 21:03:07 +0000 Subject: [PATCH] WSA-6 "validate configuration of examples is correct so developers can easily evaluate webservices" Implemented. Checks if caching is disabled and that required folders are installed. --- ktwebservice/checkup.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+), 0 deletions(-) create mode 100644 ktwebservice/checkup.php diff --git a/ktwebservice/checkup.php b/ktwebservice/checkup.php new file mode 100644 index 0000000..ac9fd62 --- /dev/null +++ b/ktwebservice/checkup.php @@ -0,0 +1,35 @@ +get('cache/cacheEnabled')?'The cache appears to be enabled. This is known to cause problems with the webservice. Please disable it.':'OK'; + +$uploadsDir = $config->get('webservice/uploadDirectory'); + +if (empty($uploadsDir)) $uploadsDir = 'The webservice/uploadDirectory setting is blank in the config.ini. Please configure it to an appropriate setting.'; + +$uploadsExists = !is_dir($uploadsDir)?'The upload directory does not exist.':'OK'; +$uploadsWritable = !is_writable($uploadsDir)?'The upload directory is not writable.':'OK'; + +?> +Basic Web Service Diagnosis + + + + + + + + + + + + + + + + + + +
KnowledgeTree Cache
Upload Directory
Upload Directory Exists
Upload Directory Writable
\ No newline at end of file -- libgit2 0.21.4