Skip to content

Commit

Permalink
dev: tried to port export_responses changes from master, still not fu…
Browse files Browse the repository at this point in the history
…nctional because question modules not fulle ported yet

new feature: allow publishing of remotecontrol api with switch in general settings
  • Loading branch information
mennodekker committed Nov 23, 2012
1 parent 30f08ed commit ad899b0
Show file tree
Hide file tree
Showing 6 changed files with 783 additions and 699 deletions.
7 changes: 7 additions & 0 deletions application/config/config-defaults.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,13 @@ function hook_get_auth_webserver_profile($user_name)
*/
$config['rpc_interface'] = 'off';

/**
* rpc_publish_api (boolean)
* This parameter enables/disables publishing the API of the RPC interface
* when one visits the admin/remotecontrol page
*/
$config['rpc_publish_api'] = 0;


/**
* session_expiration_time (integer)
Expand Down
1 change: 1 addition & 0 deletions application/controllers/admin/globalsettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ private function _saveSettings()
setGlobalSetting('force_ssl', $_POST['force_ssl']);
setGlobalSetting('survey_preview_admin_only', $_POST['survey_preview_admin_only']);
setGlobalSetting('rpc_interface', $_POST['rpc_interface']);
setGlobalSetting('rpc_publish_api', (bool) $_POST['rpc_publish_api']);
$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 ad899b0

Please sign in to comment.