관리-도구
편집 파일: contracts.php
<?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'; $review_link = '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'; $review_link = 'https://www.pagesjaunes.fr/contribution/votre-avis/09006365?codeRubrique=72257700'; 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'; $review_link = 'https://www.pagesjaunes.fr/contribution/votre-avis/55058953?codeRubrique=72257700'; 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'; $review_link = '#'; 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'; $review_link = 'https://www.pagesjaunes.fr/contribution/votre-avis/08447814?codeRubrique=72257700'; 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'; $review_link = '#'; 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'; $review_link = 'https://www.pagesjaunes.fr/contribution/votre-avis/63544153?codeRubrique=72257700'; 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.<br /> Merci d\'avance.</p> <p><a href="' . $href . '">Cliquez ici pour partager votre expérience de notre service 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. <br /> Thank you in advance.</p> <p><a href="' . $href . '">Click here to share your experience of our service 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); }