Beispiel #1
0
<?php

require "rcs.php";
if (succeeds($f = rcs_load("testfile", "Current"))) {
    print $f;
} else {
    print errmsg();
}
if (succeeds($f = rcs_load("testfile", "1.1"))) {
    print $f;
} else {
    print errmsg() . "\n";
}
Beispiel #2
0
function wiki_load($pagename, $version = 'Current')
{
    global $WIKI_PAGEDIR;
    if (succeeds($page = rcs_load($WIKI_PAGEDIR . "{$pagename}", $version))) {
        $page = mime_parse($page);
    }
    if ($version == 'Current') {
        $page['stat'] = stat($WIKI_PAGEDIR . $pagename);
        $page['mtime'] = $page['stat'][9];
    }
    return $page;
}