15,15 → 15,15 |
inp.setAttribute('name', 'hashcash_value'); |
inp.setAttribute('value', '-1'); |
|
var e = document.getElementsByName('<?php echo HASHCASH_FORM_NAME; ?>'); |
e[0].appendChild(inp); |
var e = document.getElementById('<?php echo HASHCASH_FORM_ID; ?>'); |
e.appendChild(inp); |
} |
|
function addVerbage(){ |
var e = document.getElementById('<?php echo HASHCASH_FORM_ID; ?>'); |
var e = getElementsByClass('<?php echo HASHCASH_FORM_CLASS; ?>'); |
var p = document.createElement('p'); |
p.innerHTML = '<?php echo str_replace("'", "\'", hashcash_verbage()); ?>'; |
e.appendChild(p); |
e[0].appendChild(p); |
} |
|
function <?php echo $fn_enable_name;?>(){ |
31,6 → 31,7 |
addVerbage(); |
loadHashCashKey('<?php |
echo $_GET['siteurl']; ?>/client/integrateur_wikini/bibliotheque/hashcash/wp-hashcash-getkey.php', '<?php echo $field_id; ?>'); |
|
} |
|
function loadHashCashKey(fragment_url, e_id) { |