X-Git-Url: https://git.cweiske.de/phancap.git/blobdiff_plain/17167be16e94cfcb86b7215598e08122dd26321f..09ad15fd2ed08bbfb4ed4d70ff21f774387aa204:/www/index.php diff --git a/www/index.php b/www/index.php index 1b57527..d2580be 100644 --- a/www/index.php +++ b/www/index.php @@ -1,8 +1,17 @@ + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @link http://cweiske.de/phancap.htm */ +namespace phancap; header('HTTP/1.0 500 Internal Server Error'); if (file_exists(__DIR__ . '/../src/phancap/Autoloader.php')) { @@ -12,50 +21,99 @@ if (file_exists(__DIR__ . '/../src/phancap/Autoloader.php')) { include_once 'phancap/Autoloader.php'; } header('HTTP/1.0 200 OK'); + +$options = new Options(); +$config = new Config(); +try { + $config->load(); + $options->setConfig($config); +} catch (\Exception $e) { +} ?>
- Web service to create website screenshots. -
- - -- The API is accessible at get.php. -
-Name | -Description | -Type | -Default | -
---|
Name | +Description | +Type | +Default | +
---|---|---|---|
' . $name . ' | ' @@ -71,15 +129,29 @@ foreach ($options->options as $name => $option) { . '
+ Ages can be given as ISO 8601 duration specification, for example: +
+