SecurityToken::KeyParameter PHP Method

KeyParameter() public static method

Get the security key
public static KeyParameter ( ) : string
return string
    public static function KeyParameter()
    {
        return self::SECURITY_TOKEN;
    }

Usage Example

Exemplo n.º 1
0
			"article": "<?php 
    echo $f_article_number;
    ?>
",
			"language": "<?php 
    echo $f_language_selected;
    ?>
",
			"parent": "<?php 
    echo $f_comment_id;
    ?>
",
			"subject": $('#comment_subject').val(),
			"message": $('#comment_message').val(),
                        "<?php 
    echo SecurityToken::KeyParameter();
    ?>
": "<?php 
    echo SecurityToken::ValueParameter();
    ?>
"
		};

	    var call_url = '../../comment/reply/format/json';

		var res_handle = function(data) {
			window.location.href = "<?php 
    echo camp_html_article_url($articleObj, $f_language_id, "edit.php");
    ?>
";
		};