``true`` to allow access to anyone, ``false`` to disable it completely.
``array`` of username - secret key combinations otherwise.
+``$cutycapt['parameters']``
+ Additional command line parameters for cutycapt.
+ Can be used to e.g. enable browser plugins:
+
+ ``$cutycapt['parameters'] = '--plugins=on';``
+``$cutycapt['maxWaitTime']``
+ Maximal time in seconds to wait for cutycapt to finish rendering.
+ Defaults to 30 seconds.
``$disableSetup``
Disable ``setup.php`` which will leak file system paths
``$redirect``
if ($format == 'jpg') {
$format = 'jpeg';
}
+
$maxWaitTime = 30;//seconds
+ if (isset($this->config->cutycapt['maxWaitTime'])) {
+ $maxWaitTime = (int) $this->config->cutycapt['maxWaitTime'];
+ }
+
+ $parameters = '';
+ if (isset($this->config->cutycapt['parameters'])) {
+ $parameters = $this->config->cutycapt['parameters'];
+ }
$serverNumber = $this->getServerNumber($options);
$tmpPath = $img->getPath() . '-tmp';
if ($options->values['bheight'] !== null) {
$cmd .= ' --min-height=' . $options->values['bheight'];
}
+ if (strlen($parameters) > 0) {
+ $cmd .= ' ' . $parameters;
+ }
$xvfbcmd = 'xvfb-run'
. ' -e /dev/stdout'
*/
public $screenshotMinAge = 'PT1H';
+ /**
+ * Cutycapt adapter options
+ */
+ public $cutycapt = array();
+
/**
* Initialize default values and loads configuration file paths