本文整理匯總了PHP中Translator::updateRelease方法的典型用法代碼示例。如果您正苦於以下問題:PHP Translator::updateRelease方法的具體用法?PHP Translator::updateRelease怎麽用?PHP Translator::updateRelease使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Translator
的用法示例。
在下文中一共展示了Translator::updateRelease方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: header
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';
$release = $translator->getReleaseData($_GET['id']);
break;
case 'p_mod':
$translator->updateRelease($_POST);
header('Location:index.php?cat=translator&module=main');
exit;
case 'p_delete':
if (strstr($_POST['remove'], 'm_') !== false) {
$id = str_replace('m_', '', $_POST['remove']);
//exit;
$translator->deleteLangModule($id);
} else {
if (strstr($_POST['remove'], 'f_') !== false) {
$id = str_replace('f_', '', $_POST['remove']);
$translator->deleteLangFile($id);
}
}
header('Location:index.php?cat=translator&module=main&action=mod&id=' . $_POST['id']);
exit;