$info .= '<h3>' . sprintf(T_("Comparing %s for %s"), '<a title="' . sprintf(T_("Display the revision list for %s"), $pageA['tag']) . '" href="' . $this->Href('revisions') . '">' . T_("revisions") . '</a>', '<a title="' . T_("Return to the latest version of this page") . '" href="' . $this->Href() . '">' . $pageA['tag'] . '</a>') . '</h3>' . "\n"; $info .= '<ul style="margin: 10px 0">' . "\n"; $info .= ' <li><a href="' . $this->Href('show', '', 'time=' . urlencode($pageA['time'])) . '">[' . $pageA['id'] . ']</a> ' . sprintf(T_("%s by %s"), '<a class="datetime" href="' . $this->Href('show', '', 'time=' . urlencode($pageA["time"])) . '">' . $pageA['time'] . '</a>', $pageA_edited_by) . ' <span class="pagenote smaller">' . $noteA . '</span></li>' . "\n"; $info .= ' <li><a href="' . $this->Href('show', '', 'time=' . urlencode($pageB['time'])) . '">[' . $pageB['id'] . ']</a> ' . sprintf(T_("%s by %s"), '<a class="datetime" href="' . $this->Href('show', '', 'time=' . urlencode($pageB["time"])) . '">' . $pageB['time'] . '</a>', $pageB_edited_by) . ' <span class="pagenote smaller">' . $noteB . '</span></li>' . "\n"; $info .= '</ul>' . "\n"; $info .= $this->FormOpen('diff', '', 'GET'); $info .= '<input type="hidden" name="fastdiff" value="1" />' . "\n"; $info .= '<input type="hidden" name="a" value="' . $this->GetSafeVar('a', 'get') . '" />' . "\n"; $info .= '<input type="hidden" name="b" value="' . $this->GetSafeVar('b', 'get') . '" />' . "\n"; $info .= '<input type="submit" value="' . T_("Simple Diff") . '" />'; $info .= $this->FormClose(); $info .= '</div>' . "\n"; $info .= '<strong>' . T_("Highlighting Guide:") . '</strong> <ins><tt>' . T_("addition") . '</tt></ins> <del><tt>' . T_("deletion") . '</tt></del></p>' . "\n"; #i18n while (1) { $sideO->skip_line(); if ($sideO->isend()) { break; } if ($sideO->decode_directive_line()) { $argument = $sideO->getargument(); $letter = $sideO->getdirective(); switch ($letter) { case 'a': $resync_left = $argument[0]; $resync_right = $argument[2] - 1; break; case 'd': $resync_left = $argument[0] - 1; $resync_right = $argument[2]; break;