You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
369 B

  1. <?php
  2. function ajax_options_save($get_param, $postdata) {
  3. $post_param = json_decode($postdata, true);
  4. call_hooks('options_save', $post_param);
  5. $_SESSION['options'] = $post_param;
  6. return array('success' => true);
  7. }
  8. if (!array_key_exists('options', $_SESSION)) {
  9. $_SESSION['options'] = array();
  10. }
  11. html_export_var(array('options' => $_SESSION['options']));