Advertisement
Guest User

Untitled

a guest
Apr 14th, 2017
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.02 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <html lang="he"><head><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><script>(adsbygoogle = window.adsbygoogle || []).push({google_ad_client: "ca-pub-1370413374722703",enable_page_level_ads: true});</script>
  5. <title>פליי גיימס | צור קשר</title><meta charset="utf-8" />
  6. <link rel="stylesheet" href="style.css" type="text/css" /><meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. </head>
  8.  
  9. <body> <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-97409706-1', 'auto');ga('send', 'pageview');</script>
  10.  
  11.  
  12.  
  13.  
  14. <div id="header">
  15. <div style="width:980px;display:block;height:auto;margin:0 auto;position:relative;">
  16. <a href="index.html">
  17. <div id="SiteLogo">
  18. <img src="images/play-games-passover2.jpg" style="margin:13px 0 0 0;"></a>
  19. </div>
  20. <div id="clock" style="margin-right:0 !important;position:absolute;margin-top: -38px;left:0;"></div>
  21. <script>
  22. var clock = document.getElementById('clock');
  23. var days = ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"];
  24.  
  25. function updateClock() {
  26. date = new Date().toLocaleDateString();
  27. time = new Date().toLocaleTimeString();
  28. day = "יום " + days[new Date().getDay()];
  29.  
  30. time = time.substring(0, time.length-3);
  31.  
  32.  
  33. clock.innerText = day + " " + date + " שעה " + time;
  34. setTimeout(updateClock, 1000*60);
  35. }
  36.  
  37. updateClock();
  38. </script>
  39. </div>
  40. </div>
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. <center>
  48. <div id="navigation-wrapper">
  49. <div id="navigation-wrapper-links" style="color:white;">
  50.  
  51.  
  52.  
  53. <a href="index.html">דף הבית</a> |
  54. <a href="Races.html">מרוצים</a> |
  55. <a href="Shooting.html">יריות</a> |
  56. <a href="Thinking.html">חשיבה</a> |
  57. <a href="Action.html">פעולה</a> |
  58. <a href="Sports.html">ספורט</a> |
  59. <a href="girls.html">בנות</a> |
  60. <a href="Classics.html">קלאסיים</a> |
  61. <a href="Kids.html">ילדים</a> |
  62. <a href="random.php">משחק רנדומאלי</a> |
  63. <a href="https://www.facebook.com/Play-games-198123190663021/">פייסבוק</a> |
  64.  
  65. <a href="contact.php">צור קשר</a>
  66.  
  67. </div>
  68.  
  69.  
  70. </div>
  71. </center>
  72.  
  73. <center>
  74.  
  75. <div id="PresetBottom">
  76.  
  77. <a href="פוצץ אותה 1.html">
  78. <img src="images/פוצץ אותה 1.jpg"></a>
  79.  
  80. <a href="יטי קטן בשלג.html">
  81. <img src="images/יטי קטן בשלג.jpg"></a>
  82.  
  83. <a href="מכנסיים מפוארים 2.html">
  84. <img src="images/מכנסיים מפוארים 2.jpg"></a>
  85.  
  86. <a href="בטלן 1.html">
  87. <img src="images/בטלן 1.jpg"></a>
  88.  
  89. <a href="הרפתקאות פריזל פראז.html">
  90. <img src="images/הרפתקאות פריזל פראז.jpg"></a>
  91.  
  92. <a href="בית הרוחות.html">
  93. <img src="images/בית הרוחות.jpg"></a>
  94.  
  95. <a href="סיפורי דגים.html">
  96. <img src="images/סיפורי דגים.jpg"></a>
  97.  
  98. <a href="סוניק פלאש.html">
  99. <img src="images/סוניק פלאש.jpg"></a>
  100.  
  101. </div>
  102.  
  103.  
  104. <div id="navigation2">
  105. </div>
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. <div id="main">
  114.  
  115. <div id="Box4">
  116. <div class="Box4_top">
  117. <h1>משחקים מומלצים </h1>
  118. <div class="Box4_Images">
  119.  
  120.  
  121.  
  122. <a href="סוליטר.html">
  123. <img src="images/סוליטר.jpg"></a>
  124.  
  125. <a href="מלחמת העידנים 2.html">
  126. <img src="images/מלחמת העידנים 2.jpg"></a>
  127.  
  128. <hr>
  129.  
  130. <a href="סיפורי דגים.html">
  131. <img src="images/סיפורי דגים.jpg"></a>
  132.  
  133. <a href="בטלן 1.html">
  134. <img src="images/בטלן 1.jpg"></a>
  135.  
  136. <hr>
  137.  
  138.  
  139. <a href="איש החשמל 3.html">
  140. <img src="images/איש החשמל 3.jpg"></a>
  141.  
  142. <a href="משחקים באש 2.html">
  143. <img src="images/משחקים באש 2.jpg"></a>
  144.  
  145. </div>
  146. </div>
  147. </div>
  148.  
  149.  
  150. <div id="Box5">
  151.  
  152. <div class="Box5_top">
  153. <h1>עמוד הפייסבוק שלנו </h1>
  154. <div class="fb-page fb_iframe_widget" data-href="https://www.facebook.com/Play-games-198123190663021/" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" fb-xfbml-state="rendered" fb-iframe-plugin-query="adapt_container_width=true&amp;app_id=&amp;container_width=235&amp;hide_cover=false&amp;href=https%3A%2F%2Fwww.facebook.com%2FPlay-games-198123190663021%2F&amp;locale=he_IL&amp;sdk=joey&amp;show_facepile=true&amp;small_header=false&amp;tabs=timeline"><span style="vertical-align: bottom; width: 235px; height: 500px;margin-right:6px;"><iframe name="fc1045527e335" width="1000px" height="1000px" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" title="fb:page Facebook Social Plugin" src="https://www.facebook.com/v2.8/plugins/page.php?adapt_container_width=true&amp;app_id=&amp;channel=http%3A%2F%2Fstaticxx.facebook.com%2Fconnect%2Fxd_arbiter%2Fr%2FWFAdUidhDBg.js%3Fversion%3D42%23cb%3Df7e038da0be7e8%26domain%3Dplay-games.co.il%26origin%3Dhttp%253A%252F%252Fplay-games.co.il%252Ff1ef7eaa0b571%26relation%3Dparent.parent&amp;container_width=293&amp;hide_cover=false&amp;href=https%3A%2F%2Fwww.facebook.com%2FPlay-games-198123190663021%2F&amp;locale=he_IL&amp;sdk=joey&amp;show_facepile=true&amp;small_header=false&amp;tabs=timeline" style="border: none; visibility: visible; width: 235px; height: 500px;" class=""></iframe></span></div>
  155. </div>
  156. </div>
  157.  
  158. <div id="Box6">
  159. <div class="Box6_top">
  160. <h1>אודות האתר</h1>
  161.  
  162. <p style="margin-top: -3px; color:black; text-align:right; margin-right: 10px;">ברוכים הבאים לאתר play-games.co.il, כאן תוכלו להנות ממבחר רב של משחקים. אנו מעניקים לכם את כל המשחקים הכי מגניבים,נוסטלגיים בחלקם, והכי מהנים שיש, play-games.co.il הינו בין המקורות הכי איכותיים בישראל שיש לשמחק רשת בחינם עם חווית משתמש ברמה גבוהה. אם אתם אוהבים משחקי פלאש כאלו, אתם יותר ממוזמנים להכנס לאתר ולשחק...<br><br>להמשך הטקסט עברו לדף <a href="aboutus.html" style="color:black;text-decoration:underline;"><b>אודות האתר</b></a>.</div></div>
  163. <style>
  164. #ContactPage {
  165. margin-top: -947px;
  166. }
  167. </style>
  168.  
  169. <?php
  170. // נא להכניס בין הגרשיים את כתובת המייל שלך
  171. $your_email_address = 'contactplaygamescontact@gmail.com';
  172. if(mail($your_email_address, 'contactplaygamescontact@gmail.com')) {
  173. echo 'ההודעה שלך נשלחה בהצלחה!' . $your_email_address;
  174. }
  175. else {
  176. echo 'אירעה שגיאה<br>השגיאה אמורה להופיע על המסך באנגלית<br>אין לראות בהודעה זו כהסבר על השגיאה שהתרחשה או כפתרון לה';
  177. }
  178. ?>
  179. <?php
  180. //הגדרות
  181.  
  182. $to_send = 'contactplaygamescontact@gmail.com'; // האימייל שלך
  183. $email_password = 'odedtheeko11!'; // סיסמה למייל
  184.  
  185. $subject_prefix = 'play-games.co.il | Contact'; // תחילית כותרת
  186. $name_prefix = "שם השולח: "; // תחילית שם השולח
  187. $email_prefix = "כתובת אימייל השולח: "; // תחילית אימייל
  188. $message_prefix = "הודעת השולח: "; // תחילית הודעה
  189.  
  190. $error = ''; // לא לערוך
  191. $has_error = false; // לא לערוך
  192. $success = false; // לא לערוך
  193.  
  194. $error_invalid_email = 'אימייל לא תקין'; // אימייל לא תקין
  195. $error_toshort_name = 'שם קצר מדי (2 תווים לפחות)'; // שם קצר מדי (2 תווים לפחות)
  196. $error_toshort_subject = 'כותרת קצרה מדי (5 תווים לפחות)'; // כותרת קצרה מדי (5 תווים לפחות)
  197. $error_toshort_content = 'הודעה לא תקינה (לפחות 10 תווים)'; // הודעה לא תקינה (לפחות 10 תווים)
  198. $error_not_full = 'שדות לא מלאים'; // שדות לא מלאים
  199. $error_mail_not_sent = 'ההודעה לא נשלחה'; // ההודעה לא נשלחה
  200.  
  201. $success_message = 'ההודעה שלך נשלחה בהצלחה, חכה בסבלנות למענה..'; // הודעה שתופיע אם הכל הצליח
  202.  
  203. // לא לערוך
  204. if(isset($_POST['contact'])) {
  205.  
  206.  
  207. $url = 'https://www.google.com/recaptcha/api/siteverify';
  208. $key = '6LdZChMUAAAAAF0ro7BKOypGHOJs2Ut3tXPhX-9U';
  209.  
  210. $response = file_get_contents($url . "?secret=" . $key . "&response=" . $_POST['g-recaptcha-response'] . "&remoteip=" . $_SERVER['REMOTE_ADDR']);
  211.  
  212. $data = json_decode($response);
  213.  
  214. if(isset($data->success) AND $data->success==true) {
  215.  
  216.  
  217. foreach ($_POST as $v) {
  218. if(strlen($v) < 1) {
  219. $has_error = true;
  220. $error .= $error_not_full . '<br/>';
  221. break;
  222. }
  223. }
  224.  
  225. if(strlen($_POST['name']) < 2) {
  226. $has_error = true;
  227. $error .= $error_toshort_name . '<br/>';
  228. } else if(strlen($_POST['subject']) < 5) {
  229. $has_error = true;
  230. $error .= $error_toshort_subject . '<br/>';
  231. } else if(strlen($_POST['content']) < 10) {
  232. $has_error = true;
  233. $error .= $error_toshort_content. '<br/>';
  234. } else if(!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
  235. $has_error = true;
  236. $error .= $error_invalid_email . '<br/>';
  237. } else {
  238. $has_error = false;
  239. $email = $_POST['email'];
  240. $name = substr(htmlspecialchars($_POST['name']), 0, 25);
  241. $raw_subject = substr(htmlspecialchars($_POST['subject']), 0, 100);
  242. $raw_message = substr(htmlspecialchars($_POST['content']), 0, 500);
  243.  
  244. $subject = $subject_prefix . $raw_subject;
  245.  
  246. $message = $name_prefix . $name . "\n" .
  247. $email_prefix . $email . "\n" .
  248. $message_prefix . $raw_message . "\n";
  249.  
  250. require_once 'phpmailer/autoloader.php';
  251. $mail = new PHPMailer;
  252.  
  253. $mail->isSMTP();
  254. $mail->Host = 'smtp.gmail.com';
  255. $mail->SMTPAuth = true;
  256. $mail->Username = $to_send;
  257. $mail->Password = $email_password;
  258. $mail->SMTPSecure = 'tls';
  259. $mail->Port = 587;
  260. $mail->setFrom($email, $name);
  261. $mail->addAddress($to_send);
  262. $mail->addReplyTo($email, '');
  263. $mail->Subject = $subject;
  264. $mail->Body = $message;
  265.  
  266. if($mail->send()) {
  267. $success = true;
  268. } else {
  269. $has_error = true;
  270. $error = $error_mail_not_sent;
  271. }
  272. }
  273.  
  274. }
  275.  
  276. }
  277.  
  278. ?>
  279.  
  280. <div id="ContactPage">
  281. <div class="ContactPage_top">
  282. <h1>צור קשר</h1>
  283.  
  284. <form method="post">
  285. <?php if($has_error) { ?>
  286. <div dir="rtl" class="error">
  287. <?php echo $error ?>
  288. </div><br/>
  289. <?php } ?>
  290. <?php if($success) { ?>
  291. <div dir="rtl" class="success">
  292. <?php echo $success_message ?>
  293. </div><br/>
  294. <?php } ?>
  295.  
  296. <label style="float:right;margin-right:6px;" for="inp-name">שם:</label><br/>
  297. <input type="text" name="name" id="inp-name" maxlength="25" />
  298. <hr>
  299.  
  300. <label style="float:right;margin-right:6px;" for="inp-email">דואר אלקטרוני:</label><br/>
  301. <input type="text" name="email" id="inp-email" />
  302. <hr>
  303.  
  304. <label style="float:right;margin-right:6px;" for="inp-content">הודעה:</label><br/>
  305. <textarea type="text" name="content" id="inp-content" maxlength="500"></textarea>
  306. <hr>
  307.  
  308. <input type="submit" name="contact" id="send" value="שלח\י הודעה" />
  309. <p style="margin-left: 219px;margin-top:10px;">הרגישו חופשי להתייעץ איתנו בכל דבר! צוות play-games.co.il</p>
  310.  
  311. </form>
  312. </div>
  313. </div>
  314.  
  315.  
  316.  
  317. </div>
  318.  
  319.  
  320.  
  321. <center>
  322. <div id="footer">
  323.  
  324. <div class="footer_links">
  325. <a href="aboutus.html" style="color:white;">אודות האתר</a> |
  326.  
  327. <a href="contact.php" style="color:white;">צור קשר</a>
  328.  
  329. </div>
  330. <div class="footer_AllRights">
  331. <p>פליי גיימס © 2016</p>
  332. </div>
  333.  
  334.  
  335. </div>
  336. </center>
  337. </body>
  338. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement