public static function generate_hidden_field() { return '<input type="hidden" name="security_token" id="security_token" value="' . CSRF::generate_token() . '" />'; }
</a> </li> </ul> <ul class="navbar-form nav pull-right"> <?php if ($recipe->recipe_version !== $head->recipe_version) { ?> <li> <a href="/actions/edit_recipe_head.php?id=<?php echo $recipe->id; ?> &version=<?php echo $recipe->recipe_version; ?> &security_token=<?php echo CSRF::generate_token(); ?> " rel="tooltip" class="tip" data-placement="top" data-original-title="Promote this version to head."><i class="icon-chevron-up"></i> Make Head</a> </li> <li class="divider-vertical"></li> <?php } ?> <li> <select name="versions" id="recipe-versions" class="span2" data-placeholder=""> <?php foreach ($recipe_versions as $recipe_version) { ?> <option value=" <?php
public static function generate_get_parameter() { $token = CSRF::generate_token(); return 'security_token_' . CSRF::$count . '=' . $token; }