Skip to content

Commit

Permalink
New feature: RemoteControl RPC API can now be switched to Off,JSON-RP…
Browse files Browse the repository at this point in the history
…C or XML-RPC

New feature: RemoteControl Import survey function
  • Loading branch information
c-schmitz committed Jul 10, 2012
1 parent 2bca7f5 commit 89eb91b
Show file tree
Hide file tree
Showing 6 changed files with 463 additions and 172 deletions.
8 changes: 4 additions & 4 deletions application/config/config-defaults.php
Expand Up @@ -474,11 +474,11 @@
$config['restrictToLanguages'] = '';

/**
* This parameter enables/disables the XML-RPC interface
* Set 1 to enable and 0 to disable
* @var integer
* This parameter enables/disables the RPC interface
* Set to 'json' (for JSON-RPC) )or 'xml' (for XML-RPC) to enable and 'off' to disable
* @var string
*/
$config['enableXMLRPCInterface'] = 0;
$config['RPCInterface'] = 'off';


/**
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/admin/globalsettings.php
Expand Up @@ -163,7 +163,7 @@ private function _saveSettings()
setGlobalSetting('googletranslateapikey',$_POST['googletranslateapikey']);
setGlobalSetting('force_ssl', $_POST['force_ssl']);
setGlobalSetting('surveyPreview_require_Auth', $_POST['surveyPreview_require_Auth']);
setGlobalSetting('enableXMLRPCInterface', $_POST['enableXMLRPCInterface']);
setGlobalSetting('RPCInterface', $_POST['RPCInterface']);
$savetime = trim(strip_tags((float)$_POST['timeadjust']) . ' hours'); //makes sure it is a number, at least 0
if ((substr($savetime, 0, 1) != '-') && (substr($savetime, 0, 1) != '+')) {
$savetime = '+' . $savetime;
Expand Down

0 comments on commit 89eb91b

Please sign in to comment.