Add script 'get-openssl-version.sh'.

This commit is contained in:
2023-06-21 11:09:08 +02:00
parent 0a7a61049a
commit 14056b44dd
5032 changed files with 340126 additions and 0 deletions

View File

@ -0,0 +1,29 @@
<?php
namespace dokuwiki\Menu\Item;
/**
* Class Revert
*
* Quick revert to the currently shown page revision
*/
class Revert extends AbstractItem
{
/** @inheritdoc */
public function __construct()
{
global $REV;
global $INFO;
global $INPUT;
parent::__construct();
if (!$REV || !$INFO['writable'] || $INPUT->server->str('REMOTE_USER') === '') {
throw new \RuntimeException('revert not available');
}
$this->params['rev'] = $REV;
$this->params['sectok'] = getSecurityToken();
$this->svg = DOKU_INC . 'lib/images/menu/06-revert_replay.svg';
}
}