PluginProbe
Depicter — Popup & Slider Builder / 1.5.2
Depicter — Popup & Slider Builder v1.5.2
4.8.1 trunk 1.0.0 1.1.0 1.1.2 1.1.4 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.5 1.3.8 1.5.0 1.5.1 1.5.2 1.5.5 1.6.0 1.6.1 1.6.2 1.7.0 All 76 releases
depicter / app / src / Security / CSRF.php

CSRF.php in Depicter — Popup & Slider Builder 1.5.2, at app/src/Security/CSRF.php

33 lines 674 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Depicter\Security;
3
4 use WPEmerge\Csrf\Csrf as CsrfBase;
5
6
7 class CSRF extends CsrfBase
8 {
9 const EDITOR_ACTION = 'depicter-editor';
10 const DASHBOARD_ACTION = 'depicter-dashboard';
11 const ASSET_ACTION = 'depicter-asset';
12 const REPORT_ACTION = 'depicter-report';
13
14 /**
15 * Convenience header to check for the token.
16 *
17 * @var string
18 */
19 protected $header = 'X-DEPICTER-CSRF';
20
21 /**
22 * Constructor.
23 *
24 * @codeCoverageIgnore
25 * @param string $key
26 * @param integer $maximum_lifetime
27 */
28 public function __construct( $key = 'depicter-csrf', $maximum_lifetime = 2 ) {
29 $this->key = $key;
30 $this->maximum_lifetime = $maximum_lifetime;
31 }
32 }
33