1234567891011121314151617181920212223 |
- <?php
- /* For licensing terms, see /license.txt */
- /**
- * Responses to AJAX calls
- */
- require_once '../global.inc.php';
- api_protect_admin_script();
- $action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;
- switch ($action) {
- case 'update_changeable_setting':
- if (api_is_global_platform_admin()) {
- if (isset($_GET['id']) && !empty($_GET['id'])) {
- $params = array('id' =>$_GET['id'], 'access_url_changeable' => $_GET['changeable']);
- api_set_setting_simple($params);
- echo '1';
- }
- }
- break;
- }
|