From 624efe71963e5c91c7d6188eed204fccdef1f233 Mon Sep 17 00:00:00 2001 From: Wojciech Rygielski Date: Sat, 27 Oct 2012 15:24:48 +0200 Subject: [PATCH] Added okapi_settings.php for OCDE Recent versions of OKAPI (since r438) are indepentant - OKAPI does NOT include OC code at all, not even the settings file (since various OC installations had the settings file in various locations). Instead, OKAPI requires one new file present in the root path - okapi_settings.php file. More information: [1] http://code.google.com/p/opencaching-pl/source/browse/trunk/okapi_settings.php [2] http://code.google.com/p/opencaching-api/source/browse/trunk/okapi/settings.php [3] http://code.google.com/p/opencaching-api/issues/detail?id=132 --- htdocs/okapi_settings.php | 1 + 1 file changed, 1 insertion(+) create mode 100644 htdocs/okapi_settings.php diff --git a/htdocs/okapi_settings.php b/htdocs/okapi_settings.php new file mode 100644 index 00000000..ab3cff77 --- /dev/null +++ b/htdocs/okapi_settings.php @@ -0,0 +1 @@ + 'oc.de', # Tell OKAPI to work in "OCDE mode". 'SUPPORTS_LOGTYPE_NEEDS_MAINTENANCE' => false, # OCDE doesn't support it, see [2] for more info. 'DATA_LICENSE_URL' => null, # TODO! # Settings which ARE present in settings.inc.php: 'ADMINS' => array($sql_errormail), 'FROM_FIELD' => $emailaddr, 'DEBUG' => $debug_page, 'DB_SERVER' => $dbserver, 'DB_NAME' => $dbname, 'DB_USERNAME' => $dbusername, 'DB_PASSWORD' => $dbpasswd, 'SITELANG' => $lang, 'SITE_URL' => $absolute_server_URI, 'VAR_DIR' => $GLOBALS['rootpath'].'var', 'IMAGES_DIR' => rtrim($picdir, '/'), 'OC_NODE_ID' => $oc_nodeid, 'OC_COOKIE_NAME' => $opt['cookie']['name'].'data', ); } \ No newline at end of file