This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if(checkRecaptcha($_POST['g-recaptcha-response'])){ | |
| # Recaptcha OK | |
| }else{ | |
| # Recaptcha KO | |
| } | |
| function checkRecaptcha($recaptcha_response){ | |
| $url = 'https://www.google.com/recaptcha/api/siteverify'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function checkRecaptcha($recaptcha_response){ | |
| $url = 'https://www.google.com/recaptcha/api/siteverify'; | |
| $fields = array( | |
| 'secret' => 'YOUR_SECRET_KEY', | |
| 'response' => $recaptcha_response, | |
| ); | |
| $fields_string = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| date_default_timezone_set('Europe/Madrid'); | |
| require_once 'PHPMailer-5.2.16/PHPMailerAutoload.php'; | |
| $mail = new PHPMailer; | |
| $mail->isSMTP(); | |
| $mail->SMTPDebug = 2; # 0 off, 1 client, 2 client y server | |
| $mail->CharSet = 'UTF-8'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const int sensorPin = A0; | |
| const int ledGreenPin = 2; | |
| const int ledYellowPin = 3; | |
| const int ledRedPin = 4; | |
| const float temperatureCorrect = 19.0; | |
| const float temperatureRaised = 20.0; | |
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(ledGreenPin, OUTPUT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class MR { | |
| private $url = null; | |
| private $apikey = null; | |
| public $id_package = null; | |
| function __construct($url, $apikey){ | |
| $this->url = $url; |
OlderNewer