4 provides the 'quickdiff' through multiple (all) page versions,
5 available from the info/ page; depends upon 'stupid diff' module
8 $ewiki_plugins["action"]["qdiff"] = "ewiki_action_info_qdiff";
9 $ewiki_config["action_links"]["summary"]["qdiff"] = "quick diff (history overview)";
12 function ewiki_action_info_qdiff($id, &$data, $action) {
15 $o = ewiki_make_title($id, "history of '$id'", 2);
17 #-- walk through versions
19 $ver = $data["version"] + 1;
20 while ((--$ver) >= 2) {
23 if ($d = ewiki_db::GET($id, $ver-1)) {
33 $o .= '<table border="1">' . "\n" . '<tr class="qdiff-header"><td>'
34 . '<b><a href="' . ewiki_script("", $id, "version=$ver") . "\">version $ver</a></b>"
35 . '</td><td>' . ewiki_author_html($curr["author"])
36 . '</td><td>' . strftime($CLK, $curr["lastmodified"])
40 $diff = ewiki_stupid_diff($curr["content"], $prev["content"], $show_unchanged=0, $magic_notes=1);
41 $o .= '<td colspan="3">' . $diff;
42 $o .= "\n</td></tr>\n</table>\n<br />\n";