$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()); } $my_app->set_param('file_info', $explorerAPI->get_file_info()); cache_param('file_info'); $explorerAPI->clear_data(); } else { if ($my_app->get_param('id_file') != null) { if ($explorerAPI->have_db_content($my_app->get_param('id_file'))) { $content = $explorerAPI->get_db_content($my_app->get_param('id_file')); $info = $explorerAPI->get_db_info($my_app->get_param('id_file')); $info['fs'] = 'db_mysql'; $my_app->set_param('file_info', $info); cache_param('file_info'); $my_app->set_param('notepad', $content); cache_param('notepad'); } } } } cache_param('notepad'); $js = " \$('textarea#editor').ckeditor();"; $my_app->jquery_onready($js); $my_app->using('menu'); $html['menu'] = $my_app->window->get_layout_menu_html();