예제 #1
0
     $toolbar->icon_list['save']['params'] = 'onclick="javascript:document.translator.submit()"';
     $include_template = 'template_install_step2.php';
     //save post data
     $_SESSION['release_options']['title'] = $_POST['title'];
     $_SESSION['release_options']['source_lang'] = $_POST['source_lang'];
     $_SESSION['release_options']['destination_lang'] = $_POST['destination_lang'];
     $_SESSION['release_options']['translated_only'] = $_POST['translated_only'];
     $_SESSION['release_options']['description'] = $_POST['description'];
     $_SESSION['translation_modules'] = array();
     if ($_POST['id'] != 'current_installation') {
         $translator->extractRelease($_POST['id']);
         $temproot = $translator->getTempRoot();
     } else {
         $temproot = $translator->getTempRoot(true);
     }
     $translator->searchModules($temproot, $_POST['source_lang']);
     break;
 case 'p_install':
     $translator->addRelease($_POST);
     if ($_POST['id'] != 'current_installation') {
         $translator->delete_directory(INSTALL_TEMP_DIR . session_id());
     }
     header('Location:index.php?cat=translator&module=main');
     exit;
 case 'mod':
     $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=releases', 'SSL') . '\'"';
     $toolbar->icon_list['save']['show'] = true;
     $toolbar->icon_list['save']['params'] = 'onclick="javascript:document.translator.submit()"';
     $toolbar->icon_list['delete']['params'] = 'onclick="document.translator.action.value=\'p_delete\'; document.translator.submit()"';
     $toolbar->icon_list['delete']['show'] = true;
     $include_template = 'template_mod.php';