Esempio n. 1
0
                break;
            case 2:
                $files = $this->GetCSIMFiles();
                break;
            default:
                die('Panic: Unknown type of test');
                break;
        }
        $n = count($files);
        echo "<h2>Visual test suit for JpGraph</h2>";
        echo "Testtype: " . ($this->iType == 1 ? ' Standard images ' : ' Image map tests ');
        echo "<br>Number of tests: {$n}<p>";
        echo "<ol>";
        for ($i = 0; $i < $n; ++$i) {
            if ($this->iType == 1) {
                echo '<li><a href="show-example.php?target=' . urlencode($files[$i]) . '"><img src="' . $files[$i] . '" border=0 align=top></a><br><strong>Filename:</strong> <i>' . basename($files[$i]) . "</i>\n";
            } else {
                echo '<li><a href="show-example.php?target=' . urlencode($files[$i]) . '">' . $files[$i] . "</a>\n";
            }
        }
        echo "</ol>";
        echo "<p>Done.</p>";
    }
}
$type = @$HTTP_GET_VARS['t'];
if (empty($type)) {
    $type = 1;
}
$driver = new TestDriver($type);
$driver->Run();