示例#1
0
require_once 'class.diff.php';
//////////////////////////////////////////////////////////////////
// Verify Session or Key
//////////////////////////////////////////////////////////////////
checkSession();
switch ($_GET['action']) {
    //////////////////////////////////////////////////////////////////////
    // Compare Files
    //////////////////////////////////////////////////////////////////////
    case 'compare':
        $Diff = new Diff();
        ?>
            <form>
            <label>Diff Viewer</label>
            <pre>First: <?php 
        if (!$Diff->isAbsPath($_GET['first'])) {
            echo '/';
        }
        echo $_GET['first'];
        ?>
 - Second: <?php 
        if (!$Diff->isAbsPath($_GET['second'])) {
            echo '/';
        }
        echo $_GET['second'];
        ?>
</pre>
            <table class="diff"><tr><th class="firstcolumns">F</th><th class="firstcolumns">S</th><th>Second File Output</th></tr></table>
            <div class="scrollingArea">
            <table class="diff">
            <?php