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"?>
17 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
18 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
20 <title>phancap</title>
22 <link rel="stylesheet" href="css/bootstrap.min.css"/>
23 <link rel="stylesheet" href="css/bootstrap-theme.min.css"/>
24 <link rel="stylesheet" href="css/phancap.css"/>
25 <meta name="viewport" content="width=device-width, initial-scale=1"/>
28 <div class="container">
30 <div class="col-md-2"></div>
31 <div class="col-md-8">
33 <div class="page-header">
37 Web service to create website screenshots.
40 <div class="panel panel-default">
41 <div class="panel-heading">Create website screenshot</div>
42 <div class="panel-body">
43 <form method="get" action="./get.php" class="form-inline" role="form">
44 <div class="form-group">
45 <label for="url">URL:</label>
46 <input type="text" name="url" id="url" size="30" class="form-control"/>
48 <button type="submit" class="btn btn-default">Go</button>
56 The API is accessible at <a href="get.php">get.php</a>.
59 <div class="panel panel-default">
60 <div class="panel-heading">Available URL parameters</div>
61 <table class="table table-striped table-bordered table-condensed">
72 $options = new Options();
73 $config = new Config();
76 $options->setConfig($config);
77 } catch (\Exception $e) {}
79 foreach ($options->options as $name => $option) {
81 . '<td><tt>' . $name . '</tt></td>'
82 . '<td>' . htmlspecialchars($option['title']) . '</td>'
85 is_array($option['type'])
86 ? ('One of: <tt>' . implode('</tt>, <tt>', $option['type']) . '</tt>')
87 : str_replace('skip', ' ', $option['type'])
90 . '<td> <tt>' . $option['default'] . '</tt></td>'
99 <h2 id="tools">Tools</h2>
100 <ul class="list-group">
101 <li class="list-group-item">
102 <a href="setup.php">Setup check</a> to test if everything is ok