You've already forked joomla_test
first commit
This commit is contained in:
35
libraries/cms/html/form.php
Normal file
35
libraries/cms/html/form.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Libraries
|
||||
* @subpackage HTML
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 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
|
||||
*
|
||||
* @package Joomla.Libraries
|
||||
* @subpackage HTML
|
||||
* @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" />';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user