Пример #1
0
            $smarty->display("error.tpl");
            die;
        }
        global $multilinguallib;
        include_once "lib/multilingual/multilinguallib.php";
        $sourceInfo = $tikilib->get_page_info($editlib->sourcePageName);
        if ($multilinguallib->getTranslation('wiki page', $sourceInfo['page_id'], $_REQUEST['lang'])) {
            // Display an error if the page already exists
            $smarty->assign('msg', tra("The translation set already contains a page in this language."));
            $smarty->display("error.tpl");
            die;
        }
    }
    if ($editlib->isTranslationMode()) {
        include_once 'lib/wiki/histlib.php';
        histlib_helper_setup_diff($editlib->sourcePageName, $editlib->oldSourceVersion, $editlib->newSourceVersion);
        $smarty->assign('diff_oldver', (int) $editlib->oldSourceVersion);
        $smarty->assign('diff_newver', (int) $editlib->newSourceVersion);
        $smarty->assign('update_translation', 'y');
    }
}
$cat_type = 'wiki page';
$cat_objid = $_REQUEST["page"];
$cat_lang = $pageLang;
$cat_object_exists = $tikilib->page_exists($_REQUEST['page']);
if (!$cat_object_exists) {
    $cookietab = 1;
}
$smarty->assign('section', $section);
include_once 'tiki-section_options.php';
if ($prefs['feature_freetags'] === 'y') {
Пример #2
0
\t\t\tif (ver2 == 0) { ver2 = {$current_version}; }
\t\t\t\$(this).attr("disabled", (ver2 >= ver));
\t\t});
\t}
});
if (\$("input[name=newver][checked=checked]").length) {
\t\$("input[name=newver][checked=checked]").change();
\t\$("input[name=oldver][checked=checked]").change();
} else if ({$not_comparing}) {
\t\$("input[name=newver]:eq(0)").prop("checked", "checked").change();
\t\$("input[name=oldver]:eq(1)").prop("checked", "checked").change();
}
JS
);
if (isset($_REQUEST["compare"])) {
    histlib_helper_setup_diff($page, $oldver, $newver);
    if (isset($approved_versions)) {
        $smarty->assign('flaggedrev_compare_approve', !in_array($newver, $approved_versions));
    }
} else {
    $smarty->assign('diff_style', $info['is_html'] === '1' ? 'htmldiff' : $prefs['default_wiki_diff_style']);
}
if ($info["flag"] == 'L') {
    $smarty->assign('lock', true);
} else {
    $smarty->assign('lock', false);
}
if (isset($_REQUEST['nohistory'])) {
    $smarty->assign('noHistory', true);
}
ask_ticket('page-history');
Пример #3
0
            $smarty->assign('msg', tra("Page already exists. Go back and choose a different name."));
            $smarty->display("error.tpl");
            die;
        }
        include_once "lib/multilingual/multilinguallib.php";
        $sourceInfo = $tikilib->get_page_info($_REQUEST['translationOf']);
        if ($multilinguallib->getTranslation('wiki page', $sourceInfo['page_id'], $_REQUEST['lang'])) {
            // Display an error if the page already exists
            $smarty->assign('msg', tra("The translation set already contains a page in this language."));
            $smarty->display("error.tpl");
            die;
        }
    }
    if (isUpdateTranslationMode()) {
        include_once 'lib/wiki/histlib.php';
        histlib_helper_setup_diff($_REQUEST['source_page'], $_REQUEST['oldver'], $_REQUEST['newver']);
        $smarty->assign('diff_oldver', (int) $_REQUEST['oldver']);
        $smarty->assign('diff_newver', (int) $_REQUEST['newver']);
        $smarty->assign('source_page', $_REQUEST['source_page']);
    }
}
$cat_type = 'wiki page';
$cat_objid = $_REQUEST["page"];
$cat_lang = $pageLang;
$smarty->assign('section', $section);
include_once 'tiki-section_options.php';
if ($prefs['feature_freetags'] == 'y') {
    include_once 'freetag_list.php';
    // if given in the request, set the freetag list (used for preview mode, when coming back from zoom mode, ...)
    if (isset($_REQUEST['freetag_string'])) {
        $smarty->assign('taglist', $_REQUEST['freetag_string']);