CoreFiles by mySites.guru
form.php33 lines, 736 bytes, from Joomla_3.4.5-Stable-Full_Package.zip
Raw History Compare with 3.4.4
md5
10ba647ec3e612cde3d2d0d3bbfe6e96
sha1
1861fc1edbb736eaa334913dad4950c99939ca6c
sha256
fc8597b634bfe951c020519cef07f759ef48b2bbb9ee8fd520cd4b526543539d
<?php
/**
 * @package     Joomla.Libraries
 * @subpackage  HTML
 *
 * @copyright   Copyright (C) 2005 - 2015 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 20 releases, Joomla 3.4.0-beta1 to 3.5.0-beta. See them all, or every version of this file.