admin.ajax.php 594 B

1234567891011121314151617181920212223
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Responses to AJAX calls
  5. */
  6. require_once '../global.inc.php';
  7. api_protect_admin_script();
  8. $action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;
  9. switch ($action) {
  10. case 'update_changeable_setting':
  11. if (api_is_global_platform_admin()) {
  12. if (isset($_GET['id']) && !empty($_GET['id'])) {
  13. $params = array('id' =>$_GET['id'], 'access_url_changeable' => $_GET['changeable']);
  14. api_set_setting_simple($params);
  15. echo '1';
  16. }
  17. }
  18. break;
  19. }