PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.18
VikAppointments Services Booking Calendar v1.2.18
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / libraries / adapter / html / classes / form.php
vikappointments / libraries / adapter / html / classes Last commit date
access.php 6 months ago behavior.php 6 months ago bootstrap.php 6 months ago contentlanguage.php 6 months ago date.php 6 months ago form.php 6 months ago formbehavior.php 6 months ago grid.php 6 months ago jquery.php 6 months ago list.php 6 months ago number.php 6 months ago select.php 6 months ago user.php 6 months ago
form.php
41 lines
1 <?php
2 /**
3 * @package VikWP - Libraries
4 * @subpackage adapter.html
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 /**
15 * Utility class for Form behaviors.
16 *
17 * @since 10.0
18 */
19 abstract class JHtmlForm
20 {
21 /**
22 * Generates an input hidden containing a form token.
23 *
24 * @return string The form token.
25 */
26 public static function token()
27 {
28 /**
29 * Make sure the session class is loaded.
30 *
31 * @since 10.1.33
32 */
33 JLoader::import('adapter.session.session');
34 $action = JSession::getFormTokenAction();
35 $name = JSession::getFormTokenName();
36
37 // display nonce field
38 return wp_nonce_field($action, $name, $referer = true, $echo = false);
39 }
40 }
41