CoreFiles by mySites.guru
form.php33 lines, 736 bytes, from Joomla_3.7.1-Stable-Full_Package.zip
Raw History Compare with 3.7.0
md5
db898f14bd8c7080749843e396a318fc
sha1
e7135dc4df740dcc969bdcb829e0396a5f5faa12
sha256
f895315d6d7c8dec9f81774e6911a4f23087e90d3126ca70154711958c1ede16
<?php
/**
 * @package     Joomla.Libraries
 * @subpackage  HTML
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */

defined('JPATH_PLATFORM') or die;

/**
 * Utility class for form elements
 *
 * @since  1.5
 */
abstract class JHtmlForm
{
	/**
	 * Displays a hidden token field to reduce the risk of CSRF exploits
	 *
	 * Use in conjunction with JSession::checkToken()
	 *
	 * @return  string  A hidden input field with a token
	 *
	 * @see     JSession::checkToken()
	 * @since   1.5
	 */
	public static function token()
	{
		return '<input type="hidden" name="' . JSession::getFormToken() . '" value="1" />';
	}
}

The same content is in 14 releases, Joomla 3.7.0-alpha2 to 3.7.2. See them all, or every version of this file.