Advertisement
P22DX

a3.php

Jan 15th, 2020
958
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.45 KB | None | 0 0
  1. <?php
  2. /**
  3.  * File: a.php
  4.  * @author: Cvar1984 <gedzsarjuncomuniti@gmail.com>
  5.  * Date: 15.01.2020
  6.  * Last Modified Date: 16.01.2020
  7.  * Last Modified By: Cvar1984 <gedzsarjuncomuniti@gmail.com>
  8.  */
  9. if (isset($_POST['text'])) {
  10.     if (!empty($_POST['text'])) {
  11.         $text = $_POST['text'];
  12.         $fileName = 'log.json';
  13.         $text = [
  14.             'from' => $_SERVER['REMOTE_ADDR'],
  15.             'userAgent' => $_SERVER['HTTP_USER_AGENT'],
  16.             'message' => $text
  17.         ];
  18.         $textJson = json_encode(
  19.             $text,
  20.             JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT
  21.         );
  22.         $write = fopen($fileName, 'a+');
  23.         fprintf($write, $textJson . PHP_EOL);
  24.         fclose($write);
  25.     }
  26. } ?>
  27. <html lang="en">
  28.   <head>
  29.     <meta charset="utf-8" />
  30.  
  31.     <title>YOLO</title>
  32.  
  33.     <meta name="robots" content="noindex,nofollow" />
  34.  
  35.     <meta name="description" content="Send anonymous messages to Kyle Stokes" />
  36.  
  37.     <meta
  38.       name="og:image"
  39.       content="https://d1efvhlbiqueiq.cloudfront.net/favicon.png"
  40.     />
  41.  
  42.     <link
  43.       rel="stylesheet"
  44.       href="https://d1efvhlbiqueiq.cloudfront.net/css/style.min.css?v=1.0"
  45.     />
  46.  
  47.     <meta name="viewport" content="width=device-width, initial-scale=1" />
  48.  
  49.     <link
  50.       rel="shortcut icon"
  51.       type="image/x-icon"
  52.       href="https://d1efvhlbiqueiq.cloudfront.net/favicon.png"
  53.     />
  54.   </head>
  55.  
  56.   <body>
  57.     <div class="policy">
  58.       ⚠️ YOLO is for positive feedback only. No bullying. If you send harassing
  59.       messages to our users, you will be banned from the service. Happy Yoloing!
  60.       🤘
  61.     </div>
  62.  
  63.     <div class="send-message" id="send-message">Send me honest messages</div>
  64.  
  65.     <div
  66.       class="bitmoji"
  67.       style="background: url('https://sdk.bitmoji.com/render/panel/3b30dba0-fdfc-494d-ab47-49d361fecc30-AS1tcjanhKw2qU3UHJT7f5AKDg_w-v1.png?transparent=1&amp;palette=1'); background-size: cover;"
  68.     ></div>
  69.  
  70.     <div class="text-box">
  71.       <form id="form" method="POST" action="">
  72.         <input id="userId" type="hidden" name="userId" value="qepYuX8kS9" />
  73.  
  74.         <textarea
  75.           id="text"
  76.           maxlength="240"
  77.           name="text"
  78.           placeholder="Type your message here"
  79.           autofocus
  80.         ></textarea>
  81.  
  82.             <button type="submit" id="send-button">Send anonymously</button>
  83.  
  84.         <div id="loader">
  85.           <div class="lds-ring">
  86.           </div>
  87.         </div>
  88.       </form>
  89.     </div>
  90.  
  91.     <div class="error">This is an error.</div>
  92.  
  93.     <div class="watermark">Powered by YOLO</div>
  94.  
  95.     <div class="download">
  96.       <div class="logo"></div>
  97.  
  98.       <div class="title">
  99.         Start receiving anonymous messages on Snapchat now
  100.       </div>
  101.  
  102.       <a href="https://onyolo.com/download"
  103.         ><div class="download-button">Download the app</div></a
  104.       >
  105.     </div>
  106.  
  107. <script>
  108. window.rSiteKey = "6Lc8pbEUAAAAAH1vRl91BAwIZruc_awYoPLL_9p1";
  109. </script>
  110.  
  111.     <script src="https://www.google.com/recaptcha/api.js?render=6Lc8pbEUAAAAAH1vRl91BAwIZruc_awYoPLL_9p1"></script>
  112.  
  113. <script>
  114. grecaptcha.ready(function() {
  115.     grecaptcha
  116.         .execute("6Lc8pbEUAAAAAH1vRl91BAwIZruc_awYoPLL_9p1", {
  117.         action: "message"
  118. })
  119.  
  120. .then(function(token) {});
  121. });
  122. </script>
  123.  
  124.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
  125.  
  126.     <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  127.  
  128.     <script
  129.       src="/public/js/script.min.js"
  130.       data-rsite-key="6Lc8pbEUAAAAAH1vRl91BAwIZruc_awYoPLL_9p1"
  131.     ></script>
  132.   </body>
  133. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement