aboutsummaryrefslogtreecommitdiff
path: root/views/installation/input/securitytoken.php
blob: 9a8cb1ebe44465114828ebbc14ef3099f3ec2bad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * CSRF security token view for use with secure forms.
 *
 * It is still recommended that you use input/form.
 *
 * @package Elgg
 * @subpackage Core
 */

$ts = time();
$token = generate_action_token($ts);

echo elgg_view('input/hidden', array('internalname' => '__elgg_token', 'value' => $token));
echo elgg_view('input/hidden', array('internalname' => '__elgg_ts', 'value' => $ts));