cache_param('id_file'); cache_param('notepad'); cache_param('action'); cache_param('file_info'); cache_param('action'); } if ($explorerAPI->is_saved_file_info()) { $my_app->set_param('file_info', $explorerAPI->get_saved_file_info()); cache_param('file_info'); } if (form_submit('notepadform')) { if ($_POST['action'] == 'save_as') { $my_app->set_param('notepad', $_POST['txt']); cache_param('notepad'); $explorerAPI->set_action('save_as'); $explorerAPI->cache_data_to_save($_POST['txt']); $_POST['action'] = null; //echo '<script>'.$explorerAPI->savefile_dialog().'</script>'; } if ($_POST['action'] == 'save') { $my_app->set_param('notepad', $_POST['txt']); cache_param('notepad'); $explorerAPI->set_action('save'); $explorerAPI->cache_data_to_save($_POST['txt']); $_POST['action'] = null; //echo '<script>'.$explorerAPI->savefile_dialog().'</script>'; } } else { if ($explorerAPI->data_loaded() && $_POST['action'] === null) { if ($explorerAPI->get_file_data() !== null) { $my_app->set_param('notepad', $explorerAPI->get_file_data());