Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* PHP Script
- Bad Word Validation
- Created By Wildan Izzudin.
- (c) 2018 Underxploit
- */
- error_reporting(0);
- function pac($str) {
- echo $str;
- }
- // --- Function Validasi --- //
- function kotor($str, $bacots) {
- foreach($bacots as $bacot) {
- if(stristr($str, $bacot)) {
- return false;
- }
- }
- return true;
- }
- // --- Kata Yang Diblock --- //
- $bacots = array('bacot', 'kentod', 'ngewe', 'anjing', 'babi', 'pantek', 'kampang', 'jancok');
- // --- Konten --- //
- pac('<html><head><title>BAD WORD VALIDATION</title><meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
- <style>
- *{
- box-sizing: border-box;
- }
- *:focus {
- outline: 0;
- }
- @font-face {
- font-family: "Cabin";
- src: url("font/cabin.ttf");
- }
- @import url("http://fonts.googleapis.com/css?family=Cabin");
- body {
- max-width:400px;
- background: #191919;
- font-family: "Cabin";
- font-size:14px;
- color:#1D9D73;
- margin:auto;
- }
- textarea {
- width:100%;
- height:250px;
- padding:6px;
- font-family: "Cabin";
- border:1px solid #222;
- background:none;
- color:#1D9D73;
- font-size:14px;
- }
- .input, input[type=submit] {
- font-family: "Cabin";
- padding:6px;
- width:100%;
- font-size:14px;
- border:1px solid #222;
- background:none;
- color:#1D9D73;
- }
- input[type=submit]:hover, .input:hover, textarea:hover {
- border:1px solid #1D9D73;
- transition: all 0.5s;
- padding:6px;
- }
- hr {
- border: 0;
- height: 1px;
- background-image: -webkit-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
- background-image: -moz-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
- background-image: -ms-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
- background-image: -o-linear-gradient(left, #1D9D73, #1D9D73, #1D9D73);
- }
- ::selection {
- background-color: rgba(201,223,255,0.2);
- color: #ffffff;
- }
- ::-moz-selection {
- background-color: rgba(201,223,255,0.1);
- color: #ffffff;
- }
- h3 {
- font-weight: normal;
- font-size:15px;
- }
- table {
- width:100%;
- }
- .wrap {
- margin:10px;
- }
- </style>
- </head><body>
- ');
- pac('<center><br><br>
- <h3>BAD WORD VALIDATION</h3></center>');
- if(isset($_POST['submit'])) {
- if(!kotor($_POST['kata'], $bacots)) {
- 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>');
- } else if(empty($_POST['kata'])) {
- pac('<div class="wrap"><hr><center><br>Tulis apa dulu kek -_-<br><br></center><hr></div>');
- } else {
- 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>');
- }
- } else {
- pac('<div class="wrap" style="margin:5px"><hr>Banned : [ <font color="red">bacot, kentod, ngewe, anjing, babi, pantek, jancok</font> ]<hr></div>
- <form action="" method="post">
- <table>
- <td><textarea name="kata"></textarea>
- </td></table><table>
- <td><button class="input" name="submit" style="padding:8px"><i class="fa fa-angle-right"></i></button></td></table></form><center>');
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement