D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
stage
/
public
/
Filename :
contracts.php
back
Copy
<?php $json = file_get_contents('https://tattooscalculator.com/contractsjson'); $arrs = json_decode($json); $arr = json_decode(json_encode($arrs[0]), true); $as = json_decode(json_encode($arrs[1]), true); foreach ($arr as $key => $value) { $href = 'https://tattooscalculator.com'; $href_yelp = 'https://tattooscalculator.com'; $id = $as[$key][2]; switch ($id) { case 1: $href = 'https://search.google.com/local/writereview?placeid=ChIJA9Rk7R5u5kcRuLjVIDV3Ojk'; $href_yelp = 'https://www.yelp.fr/writeareview/biz/05DeqRMiFYt-1ZDeOZJLbw?return_url=%2Fbiz%2F05DeqRMiFYt-1ZDeOZJLbw&source=biz_details_war_button'; break; case 3: $href = 'https://search.google.com/local/writereview?placeid=ChIJuwFmrTdu5kcRK43DLHX5rbA'; $href_yelp = 'https://www.yelp.fr/writeareview/biz/n3-XjYvaoqd0NDeeVHZcWA?return_url=%2Fbiz%2Fn3-XjYvaoqd0NDeeVHZcWA&source=biz_details_war_button'; break; case 6: $href = 'https://search.google.com/local/writereview?placeid=ChIJpxjOQBlu5kcRAMB5_i-8oK8'; $href_yelp = 'https://www.yelp.fr/writeareview/biz/9MRFtW10977ldysBSP-pNg?return_url=%2Fbiz%2F9MRFtW10977ldysBSP-pNg&source=biz_details_war_button'; break; case 4: $href = 'https://search.google.com/local/writereview?placeid=ChIJA9Rk7R5u5kcRWMEzYdAXmfs'; $href_yelp = 'https://www.yelp.fr/writeareview/biz/idLLDV53VJpfQfaCUeN4-A?return_url=%2Fbiz%2FidLLDV53VJpfQfaCUeN4-A&source=biz_details_war_button'; break; case 5: $href = 'https://search.google.com/local/writereview?placeid=ChIJ7fDf6B5u5kcRNYSfUWbPtZs'; $href_yelp = 'https://www.yelp.fr/writeareview/biz/45O50InORlQDyw-zCneRhg?return_url=%2Fbiz%2F45O50InORlQDyw-zCneRhg&source=biz_details_war_button'; break; case 7: $href = 'https://g.page/r/Cd3Nercmd72dEBM/review'; $href_yelp = 'https://www.yelp.fr/writeareview/biz/45O50InORlQDyw-zCneRhg?return_url=%2Fbiz%2F45O50InORlQDyw-zCneRhg&source=biz_details_war_button'; break; } $company = $as[$key][3]; $address = $as[$key][4]; $type = $as[$key][5]; $client_name = $as[$key][6]; $thema = 'Votre '.$type.' par '.$company.''; $body = ' <p>Cher '.$client_name.',<br /> Vous avez récemment fait un '.$type.' chez '.$company.' à <a href="'.$href.'">' . $address . '</a>. <br /> Votre opinion comptant pour nous, nous aimerions vous inviter à évaluer votre dernier échange avec nos services. Cette évaluation nous permettra d\'améliorer la qualité des services que nous offrons à nos clients. Pour ce faire, il vous suffit de cliquer sur le lien ci-dessous.<br /> Merci d\'avance.</p> <p><a href="' . $href . '">Cliquez ici pour partager votre expérience avec nos services via Google</a></p> <p>Service à la clientèle,<br /> <a href="https://tattooscalculator.com">TattoosCalculator</a></p> <p>***************************************************************</p> <p>Dear '.$client_name.',<br /> You recently made a tattoo at '.$company.' at <a href="' . $href . '">' . $address . '</a>.<br /> Your opinion counts for us, we would like to invite you to evaluate your last exchange with our services. This evaluation will allow us to improve the quality of the services we offer our clients. To do this, simply click on the link below.<br /> Thank you in advance.</p> <p><a href="' . $href . '">Click here to share your experience with our services via Google</a></p> <p>Customer service,<br /> <a href="https://tattooscalculator.com">TattoosCalculator</a></p> '; $headers = "From: noreply@tattooscalculator.com \r\n"; $headers .= "Reply-To: noreply@tattooscalculator.com\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; mail($key, $thema, $body, $headers); sleep(2); mail('contact@tattooscalculator.com', $thema, $body, $headers); //mail('katsiaryna.ghobeira@gmail.com', $thema, $body, $headers); sleep(2); }