4 * Check if everything is setup
6 header('HTTP/1.0 500 Internal Server Error');
8 if (file_exists(__DIR__ . '/../src/phancap/Autoloader.php')) {
9 include_once __DIR__ . '/../src/phancap/Autoloader.php';
10 Autoloader::register();
12 include_once 'phancap/Autoloader.php';
14 header('HTTP/1.0 200 OK');
16 <?xml version="1.0" encoding="utf-8"?>
19 <title>phancap</title>
24 Web service to create website screenshots.
29 The API is accessible at <a href="get.php">get.php</a>.
32 <caption>Available URL parameters</caption>
43 $options = new Options();
44 $config = new Config();
47 $options->setConfig($config);
48 } catch (\Exception $e) {}
50 foreach ($options->options as $name => $option) {
52 . '<td><tt>' . $name . '</tt></td>'
53 . '<td>' . htmlspecialchars($option['title']) . '</td>'
56 is_array($option['type'])
57 ? ('One of: <tt>' . implode('</tt>, <tt>', $option['type']) . '</tt>')
58 : str_replace('skip', ' ', $option['type'])
61 . '<td> <tt>' . $option['default'] . '</tt></td>'
72 <a href="setup.php">Setup check</a> to test if everything is ok