Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $infoRecaptcha = MySql::conectar()->prepare("SELECT `tb_site.config`.`r_s_pulic_v3` FROM `tb_site.config` LIMIT 1");
- $infoRecaptcha->execute();
- $infoRecaptcha = $infoRecaptcha->fetch();
- if(!empty($infoRecaptcha)){
- echo '<script src="https://www.google.com/recaptcha/api.js?render='.$infoRecaptcha['r_s_pulic_v3'].'"></script>' ;
- echo '<script>
- grecaptcha.ready(function() {
- grecaptcha.execute(\''.$infoRecaptcha['r_s_pulic_v3'].'\', {action: \'homepage\'}).then(function(token) {
- // pass the token to the backend script for verification
- });
- });
- </script>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement