Advertisement
WILDAN_IZZUDIN

BAD WORD VALIDATION

Jan 14th, 2018
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.33 KB | None | 0 0
  1. <?php
  2. /* PHP Script
  3. Bad Word Validation
  4. Created By Wildan Izzudin.
  5.     (c) 2018 Underxploit
  6. */
  7. error_reporting(0);
  8. function pac($str) {
  9.     echo $str;
  10. }
  11.  
  12. // --- Function Validasi --- //
  13. function kotor($str, $bacots) {
  14.         foreach($bacots as $bacot) {
  15.     if(stristr($str, $bacot)) {
  16. return false;
  17.         }
  18.    }
  19. return true;
  20. }
  21.  
  22. // --- Kata Yang Diblock --- //
  23. $bacots = array('bacot', 'kentod', 'ngewe', 'anjing', 'babi', 'pantek', 'kampang', 'jancok');
  24.  
  25. // --- Konten --- //
  26. pac('<html><head><title>BAD WORD VALIDATION</title><meta name="viewport" content="width=device-width, initial-scale=1">
  27.  
  28. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
  29. <style>
  30.  
  31. *{
  32.  
  33.     box-sizing: border-box;
  34.  
  35. }
  36.  
  37. *:focus {
  38.  
  39.    outline: 0;
  40.  
  41. }
  42.  
  43. @font-face {
  44.  
  45.     font-family: "Cabin";
  46.  
  47.    src: url("font/cabin.ttf");
  48.  
  49. }
  50.  
  51. @import url("http://fonts.googleapis.com/css?family=Cabin");
  52. body {
  53.  
  54.     max-width:400px;
  55.  
  56.     background: #191919;
  57.  
  58.     font-family: "Cabin";
  59.  
  60.     font-size:14px;
  61.  
  62.     color:#1D9D73;
  63.  
  64.     margin:auto;
  65. }
  66.  
  67. textarea {
  68.  
  69.     width:100%;
  70.  
  71.     height:250px;
  72.  
  73.     padding:6px;
  74.  
  75.     font-family: "Cabin";
  76.  
  77.     border:1px solid #222;
  78.  
  79.     background:none;
  80.  
  81.     color:#1D9D73;
  82.  
  83.     font-size:14px;
  84.  
  85. }
  86.  
  87. .input, input[type=submit] {
  88.  
  89.    font-family: "Cabin";
  90.  
  91.     padding:6px;
  92.  
  93.     width:100%;
  94.  
  95.     font-size:14px;
  96.  
  97.     border:1px solid #222;
  98.  
  99.     background:none;
  100.  
  101.     color:#1D9D73;
  102.  
  103. }
  104.  
  105. input[type=submit]:hover, .input:hover, textarea:hover {
  106.  
  107.     border:1px solid #1D9D73;
  108.  
  109.     transition: all 0.5s;
  110.  
  111.     padding:6px;
  112.  
  113. }
  114.  
  115. hr {
  116.  
  117.     border: 0;
  118.  
  119.     height: 1px;
  120.  
  121.     background-image: -webkit-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
  122.  
  123.     background-image: -moz-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
  124.  
  125.     background-image: -ms-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
  126.  
  127.     background-image: -o-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
  128.  
  129. }
  130.  
  131. ::selection {
  132.  
  133.    background-color: rgba(201,223,255,0.2);
  134.  
  135.    color: #ffffff;
  136.  
  137. }
  138.  
  139. ::-moz-selection {
  140.  
  141.    background-color: rgba(201,223,255,0.1);
  142.  
  143.    color: #ffffff;
  144.  
  145. }
  146.  
  147. h3 {
  148.  
  149.     font-weight: normal;
  150.  
  151.     font-size:15px;
  152.  
  153. }
  154.  
  155. table {
  156.     width:100%;
  157. }
  158. .wrap {
  159.     margin:10px;
  160. }
  161. </style>
  162. </head><body>
  163. ');
  164. pac('<center><br><br>
  165. <h3>BAD WORD VALIDATION</h3></center>');
  166. if(isset($_POST['submit'])) {
  167. if(!kotor($_POST['kata'], $bacots)) {
  168.     pac('<div class="wrap"><hr><center><br>Woy bangsat jangan so kerad ya, kalo ngomong itu di jaga udah muka lu kaya kontol patah, ngomong kasar pula pantek emang !! cuiih !!<br><br></center><hr></div>');
  169. } else if(empty($_POST['kata'])) {
  170.     pac('<div class="wrap"><hr><center><br>Tulis apa dulu kek -_-<br><br></center><hr></div>');
  171. } else {
  172.     pac('<div class="wrap"><hr><center><br>Unnch makasih ya udah gk kasar sama aku, makin sayang deh sama kamu luv luv muaaach <br>Cium hangat dari limbad <font color="pink"><i class="fa fa-heart"></i></font><br><br></center><hr></div>');
  173.     }
  174. } else {
  175.  pac('<div class="wrap" style="margin:5px"><hr>Banned : [ <font color="red">bacot, kentod, ngewe, anjing, babi, pantek, jancok</font> ]<hr></div>
  176. <form action="" method="post">
  177. <table>
  178. <td><textarea name="kata"></textarea>
  179. </td></table><table>
  180. <td><button class="input" name="submit" style="padding:8px"><i class="fa fa-angle-right"></i></button></td></table></form><center>');
  181. }
  182. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement