tiki-rollback.php ¿¡¼ ¼öÁ¤ÇÑ´Ù.
if (isset($_REQUEST["rollback"])) {
$area = 'delrollbackpage';
if (isset($_POST['daconfirm']) and isset($_SESSION["ticket_$area"])) {
key_check($area);
$histlib->use_version($_REQUEST["page"], $_REQUEST["version"]);
} else {
key_get($area);
}
header ("location: tiki-index.php");
die;
}
À§ ±¸¹®À» ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ÇÑ´Ù.
if (isset($_REQUEST["rollback"])) {
$histlib->use_version($_REQUEST["page"], $_REQUEST["version"]);
header ("location: tiki-index.php");
die;
}
tiki-rollback.tpl ¿¡¼ ¼öÁ¤ÇÑ´Ù.
<form action="tiki-rollback.php" method="post">
<input type="hidden" name="page" value="{&page|escape}" />
<input type="hidden" name="version" value="{&version|escape}" />
<input type="submit" name="rollback" value="{tr}rollback{/tr}" />
</form>
À» ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ÇÑ´Ù.
<a class="link" href="tiki-rollback.php?page={&page}&version={&version}&
rollback"><h2>Rollback to This Page</h2></a>