forked from ulovliglogning/ulovliglogning.dk
36 lines
842 B
PHP
36 lines
842 B
PHP
<?php
|
|
|
|
$email = $_GET["email"];
|
|
$lang = "da";
|
|
|
|
$to = "rasmusulovliglogning.dk";
|
|
$subject = "signup";
|
|
$body = "email: ".$email."\nlang: ".$lang;
|
|
// Report all PHP errors
|
|
error_reporting(E_ALL);
|
|
|
|
$fi = file_get_contents("signup.csv");
|
|
$fi.= $email;
|
|
file_put_contents("signup.csv",$fi);
|
|
|
|
//$a = mail($to, $subject, $body);
|
|
//print_r($email);
|
|
//print_r($a);
|
|
//
|
|
// if (mail($to, $subject, $body)) {
|
|
// if ($lang == "da") {
|
|
// $redirect = "https://ulovliglogning.dk/redirect/success/";
|
|
// } else {
|
|
// $redirect = "https://ulovliglogning.dk/".$lang."/redirect/success/";
|
|
// }
|
|
// } else {
|
|
// if ($lang == "da") {
|
|
// $redirect = "https://ulovliglogning.dk/redirect/fail/";
|
|
// } else {
|
|
// $redirect = "https://ulovliglogning.dk/".$lang."/redirect/fail/";
|
|
// }
|
|
// }
|
|
|
|
# header('Location: '.$redirect);
|
|
# die();
|
|
?>
|