+if (file_exists(__DIR__ . '/../src/phancap/Autoloader.php')) {
+ include_once __DIR__ . '/../src/phancap/Autoloader.php';
+ Autoloader::register();
+} else {
+ include_once 'phancap/Autoloader.php';
+}
+header('HTTP/1.0 200 OK');
+?>
+<?xml version="1.0" encoding="utf-8"?>
+<html>
+ <head>
+ <title>phancap</title>
+ </head>
+ <body>
+ <h1>phancap</h1>
+ <p>
+ Web service to create website screenshots.
+ </p>
+
+ <h2>API</h2>
+ <p>
+ The API is accessible at <a href="get.php">get.php</a>.
+ </p>
+ <table border="1">
+ <caption>Available URL parameters</caption>
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Description</th>
+ <th>Type</th>
+ <th>Default</th>
+ </tr>
+ </thead>
+ <tbody>
+<?php
+$options = new Options();
+$config = new Config();
+try {
+ $config->load();
+ $options->setConfig($config);
+} catch (\Exception $e) {}