Advertisement
Guest User

Untitled

a guest
Apr 14th, 2017
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.96 KB | None | 0 0
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <html lang="he"><head><meta charset="utf-8" />
  5. <title>פליי גיימס | צור קשר</title>
  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 visibility="hidden">
  10. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
  11.  
  12. <script type="text/javascript">
  13. $("body").css('visibility', 'hidden'); // hides the body element
  14. $( document ).ready(function() {
  15. devicecheck();
  16. });
  17. function devicecheck() {
  18. var device = isMobile(); //checks if mobile
  19. if (!device) {
  20. $("body").css('visibility', 'visible');
  21. }
  22. else {
  23. alert("איזה באסה שאת/ה לא מחובר/ת מהמחשב! היכנס/י עכשיו לאתר דרך המחשב ותוכל/י לשחק בהרבה משחקים מהנים בחינם :)");
  24.  
  25. // By hoovy (https://www.fxp.co.il/member.php?u=865420)
  26. var m = document.createElement('link');
  27. m.setAttribute('type', 'text/css');
  28. m.setAttribute('rel', 'stylesheet');
  29. m.setAttribute('href', 'responsive.css');
  30. var head = document.querySelector('head');
  31. if(head !== null) {
  32. document.querySelector('head').appendChild(m);
  33. }
  34.  
  35. }
  36. };
  37. function isMobile() {
  38. var check = false;
  39. (function (a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip( hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6) 0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac (er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v )w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\- d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-( m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/( k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op( ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc( 07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se( c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta( gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\- v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true })(navigator.userAgent || navigator.vendor || window.opera);
  40. return check;
  41. }
  42. </script>
  43.  
  44.  
  45.  
  46. <div id="header">
  47. <div style="width:980px;display:block;height:auto;margin:0 auto;position:relative;">
  48. <a href="index.html">
  49. <div id="SiteLogo">
  50. <img src="images/play-games-passover2.jpg" style="margin:13px 0 0 0;"></a>
  51. </div>
  52. <div id="clock" style="margin-right:0 !important;position:absolute;margin-top: -38px;left:0;"></div>
  53. <script>
  54. var clock = document.getElementById('clock');
  55. var days = ["ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"];
  56.  
  57. function updateClock() {
  58. date = new Date().toLocaleDateString();
  59. time = new Date().toLocaleTimeString();
  60. day = "יום " + days[new Date().getDay()];
  61.  
  62. time = time.substring(0, time.length-3);
  63.  
  64.  
  65. clock.innerText = day + " " + date + " שעה " + time;
  66. setTimeout(updateClock, 1000*60);
  67. }
  68.  
  69. updateClock();
  70. </script>
  71. </div>
  72. </div>
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79. <center>
  80. <div id="navigation-wrapper">
  81. <div id="navigation-wrapper-links" style="color:white;">
  82.  
  83.  
  84.  
  85. <a href="index.html">דף הבית</a> |
  86. <a href="Races.html">מרוצים</a> |
  87. <a href="Shooting.html">יריות</a> |
  88. <a href="Thinking.html">חשיבה</a> |
  89. <a href="Action.html">פעולה</a> |
  90. <a href="Sports.html">ספורט</a> |
  91. <a href="girls.html">בנות</a> |
  92. <a href="Classics.html">קלאסיים</a> |
  93. <a href="Kids.html">ילדים</a> |
  94. <a href="random.php">משחק רנדומאלי</a> |
  95. <a href="https://www.facebook.com/Play-games-198123190663021/" target="_blank">פייסבוק</a> |
  96.  
  97. <a href="contact.php">צור קשר</a>
  98.  
  99. </div>
  100.  
  101.  
  102. </div>
  103. </center>
  104.  
  105. <center>
  106.  
  107. <div id="PresetBottom">
  108.  
  109. <a href="פוצץ אותה 1.html">
  110. <img src="images/פוצץ אותה 1.jpg"></a>
  111.  
  112. <a href="יטי קטן בשלג.html">
  113. <img src="images/יטי קטן בשלג.jpg"></a>
  114.  
  115. <a href="מכנסיים מפוארים 2.html">
  116. <img src="images/מכנסיים מפוארים 2.jpg"></a>
  117.  
  118. <a href="בטלן 1.html">
  119. <img src="images/בטלן 1.jpg"></a>
  120.  
  121. <a href="הרפתקאות פריזל פראז.html">
  122. <img src="images/הרפתקאות פריזל פראז.jpg"></a>
  123.  
  124. <a href="בית הרוחות.html">
  125. <img src="images/בית הרוחות.jpg"></a>
  126.  
  127. <a href="סיפורי דגים.html">
  128. <img src="images/סיפורי דגים.jpg"></a>
  129.  
  130. <a href="סוניק פלאש.html">
  131. <img src="images/סוניק פלאש.jpg"></a>
  132.  
  133. </div>
  134.  
  135.  
  136. <div id="navigation2">
  137. </div>
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145. <div id="main">
  146.  
  147. <div id="Box4">
  148. <div class="Box4_top">
  149. <h1>משחקים מומלצים </h1>
  150. <div class="Box4_Images">
  151.  
  152.  
  153.  
  154. <a href="סוליטר.html">
  155. <img src="images/סוליטר.jpg"></a>
  156.  
  157. <a href="מלחמת העידנים 2.html">
  158. <img src="images/מלחמת העידנים 2.jpg"></a>
  159.  
  160. <hr>
  161.  
  162. <a href="סיפורי דגים.html">
  163. <img src="images/סיפורי דגים.jpg"></a>
  164.  
  165. <a href="בטלן 1.html">
  166. <img src="images/בטלן 1.jpg"></a>
  167.  
  168. <hr>
  169.  
  170.  
  171. <a href="איש החשמל 3.html">
  172. <img src="images/איש החשמל 3.jpg"></a>
  173.  
  174. <a href="משחקים באש 2.html">
  175. <img src="images/משחקים באש 2.jpg"></a>
  176.  
  177. </div>
  178. </div>
  179. </div>
  180.  
  181.  
  182. <div id="Box5">
  183.  
  184. <div class="Box5_top">
  185. <h1>עמוד הפייסבוק שלנו </h1>
  186. <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>
  187. </div>
  188. </div>
  189.  
  190. <div id="Box6">
  191. <div class="Box6_top">
  192. <h1>אודות האתר</h1>
  193.  
  194. <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>
  195. <style>
  196. #ContactPage {
  197. margin-top: -947px;
  198. }
  199. </style>
  200.  
  201. <?php
  202. //הגדרות
  203.  
  204. $to_send = 'contactplaygamescontact@gmail.com'; // האימייל שלך
  205. $email_password = 'odedtheeko11!'; // סיסמה למייל
  206.  
  207. $subject_prefix = 'play-games.co.il | Contact'; // תחילית כותרת
  208. $name_prefix = "שם השולח: "; // תחילית שם השולח
  209. $email_prefix = "כתובת אימייל השולח: "; // תחילית אימייל
  210. $message_prefix = "הודעת השולח: "; // תחילית הודעה
  211.  
  212. $error = ''; // לא לערוך
  213. $has_error = false; // לא לערוך
  214. $success = false; // לא לערוך
  215.  
  216. $error_invalid_email = 'אימייל לא תקין'; // אימייל לא תקין
  217. $error_toshort_name = 'שם קצר מדי (2 תווים לפחות)'; // שם קצר מדי (2 תווים לפחות)
  218. $error_toshort_subject = 'כותרת קצרה מדי (5 תווים לפחות)'; // כותרת קצרה מדי (5 תווים לפחות)
  219. $error_toshort_content = 'הודעה לא תקינה (לפחות 10 תווים)'; // הודעה לא תקינה (לפחות 10 תווים)
  220. $error_not_full = 'שדות לא מלאים'; // שדות לא מלאים
  221. $error_mail_not_sent = 'ההודעה לא נשלחה'; // ההודעה לא נשלחה
  222.  
  223. $success_message = 'ההודעה שלך נשלחה בהצלחה, חכה בסבלנות למענה..'; // הודעה שתופיע אם הכל הצליח
  224.  
  225. // לא לערוך
  226. if(isset($_POST['contact'])) {
  227.  
  228.  
  229. $url = 'https://www.google.com/recaptcha/api/siteverify';
  230. $key = '6LdZChMUAAAAAF0ro7BKOypGHOJs2Ut3tXPhX-9U';
  231.  
  232. $response = file_get_contents($url . "?secret=" . $key . "&response=" . $_POST['g-recaptcha-response'] . "&remoteip=" . $_SERVER['REMOTE_ADDR']);
  233.  
  234. $data = json_decode($response);
  235.  
  236. if(isset($data->success) AND $data->success==true) {
  237.  
  238.  
  239. foreach ($_POST as $v) {
  240. if(strlen($v) < 1) {
  241. $has_error = true;
  242. $error .= $error_not_full . '<br/>';
  243. break;
  244. }
  245. }
  246.  
  247. if(strlen($_POST['name']) < 2) {
  248. $has_error = true;
  249. $error .= $error_toshort_name . '<br/>';
  250. } else if(strlen($_POST['subject']) < 5) {
  251. $has_error = true;
  252. $error .= $error_toshort_subject . '<br/>';
  253. } else if(strlen($_POST['content']) < 10) {
  254. $has_error = true;
  255. $error .= $error_toshort_content. '<br/>';
  256. } else if(!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
  257. $has_error = true;
  258. $error .= $error_invalid_email . '<br/>';
  259. } else {
  260. $has_error = false;
  261. $email = $_POST['email'];
  262. $name = substr(htmlspecialchars($_POST['name']), 0, 25);
  263. $raw_subject = substr(htmlspecialchars($_POST['subject']), 0, 100);
  264. $raw_message = substr(htmlspecialchars($_POST['content']), 0, 500);
  265.  
  266. $subject = $subject_prefix . $raw_subject;
  267.  
  268. $message = $name_prefix . $name . "\n" .
  269. $email_prefix . $email . "\n" .
  270. $message_prefix . $raw_message . "\n";
  271.  
  272. require_once 'phpmailer/autoloader.php';
  273. $mail = new PHPMailer;
  274.  
  275. $mail->isSMTP();
  276. $mail->Host = 'smtp.gmail.com';
  277. $mail->SMTPAuth = true;
  278. $mail->Username = $to_send;
  279. $mail->Password = $email_password;
  280. $mail->SMTPSecure = 'tls';
  281. $mail->Port = 587;
  282. $mail->setFrom($email, $name);
  283. $mail->addAddress($to_send);
  284. $mail->addReplyTo($email, '');
  285. $mail->Subject = $subject;
  286. $mail->Body = $message;
  287.  
  288. if($mail->send()) {
  289. $success = true;
  290. } else {
  291. $has_error = true;
  292. $error = $error_mail_not_sent;
  293. }
  294. }
  295.  
  296. }
  297.  
  298. }
  299.  
  300. ?>
  301.  
  302. <div id="ContactPage">
  303. <div class="ContactPage_top">
  304. <h1>צור קשר</h1>
  305.  
  306. <form method="post">
  307. <?php if($has_error) { ?>
  308. <div dir="rtl" class="error">
  309. <?php echo $error ?>
  310. </div><br/>
  311. <?php } ?>
  312. <?php if($success) { ?>
  313. <div dir="rtl" class="success">
  314. <?php echo $success_message ?>
  315. </div><br/>
  316. <?php } ?>
  317.  
  318. <label style="float:right;margin-right:6px;" for="inp-name">שם:</label><br/>
  319. <input type="text" name="name" id="inp-name" maxlength="25" />
  320. <hr>
  321.  
  322. <label style="float:right;margin-right:6px;" for="inp-email">דואר אלקטרוני:</label><br/>
  323. <input type="text" name="email" id="inp-email" />
  324. <hr>
  325.  
  326. <label style="float:right;margin-right:6px;" for="inp-content">הודעה:</label><br/>
  327. <textarea type="text" name="content" id="inp-content" maxlength="500"></textarea>
  328. <hr>
  329.  
  330. <input type="submit" name="contact" id="send" value="שלח\י הודעה" />
  331. <p style="margin-left: 219px;margin-top:10px;">הרגישו חופשי להתייעץ איתנו בכל דבר! צוות play-games.co.il</p>
  332.  
  333. </form>
  334. </div>
  335. </div>
  336.  
  337.  
  338.  
  339. </div>
  340.  
  341.  
  342.  
  343. <center>
  344. <div id="footer">
  345.  
  346. <div class="footer_links">
  347. <a href="aboutus.html" style="color:white;">אודות האתר</a> |
  348.  
  349. <a href="contact.php" style="color:white;">צור קשר</a>
  350.  
  351. </div>
  352. <div class="footer_AllRights">
  353. <p>פליי גיימס © 2016</p>
  354. </div>
  355.  
  356.  
  357. </div>
  358. </center>
  359.  
  360.  
  361.  
  362. </body>
  363. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement