Advertisement
H4T3D

Plagiarism Killer -H4T3D

Oct 30th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.39 KB | None | 0 0
  1. <head>
  2. <link href='http://fonts.googleapis.com/css?family=Orbitron:700' rel='stylesheet' type='text/css'>
  3. </head>
  4. <style>
  5. html, body,h3{
  6.        background:#000000;
  7.        color:#00FF00;
  8.        font-family: 'Orbitron';
  9.        height: 100%;
  10.        text-decoration:  none;
  11. }
  12.  
  13. textarea {
  14.        background:#000000;
  15.        resize:none;
  16.        color: #00FF00 ;
  17.        border:1px solid red ;
  18.        border: 4px solid red ;
  19. }
  20. input {
  21.         color: ##33CCFF;
  22.         border:1px solid #33CCFF;
  23.     background:white;
  24.     font-family: 'Orbitron'; color:red;
  25. }
  26. </style>
  27. <br>
  28. <center><img src="http://i.imgur.com/ZbxbsGE.gif"></center>
  29. </br>
  30. <center>
  31. <form action="" method="POST">
  32. <textarea name="text" style="margin: 0px; width: 787px; height: 223px;" placeholder="Enter Text 2 Convert" >This news is about a penguin. He is from New Zealand. People find him on a beach. He is hungry. He is in a bad condition.People take him to a zoo. The penguin gets better.Penguins must change their feathers. First, they let the old feathers go. Then, new feathers can grow. They are without feathers for 2-3 weeks. This is a problem for penguins. They cannot fish without feathers. They must prepare for the moulting season. They must eat a lot of food before it.The penguin in New Zealand is 3.3 kilograms heavy. Every day, he eats 1.2 kilograms of fish. He must be 5.5 kilograms heavy.</textarea>
  33. <br></br>
  34. <input type="submit" name="spin" value="Let's The Magic Happen !!!">
  35. </form>
  36. </center>
  37. <?php
  38. error_reporting(0);
  39. set_time_limit(0);
  40. function spin($text){
  41.  
  42. $text_to_convert= explode(" ",$text);
  43.  
  44. foreach($text_to_convert as $word){
  45.  
  46. if($homepage=file_get_contents('http://words.bighugelabs.com/api/2/c50fd6225076405857968073d23ebc00/'.$word.'/json'))
  47. {
  48.    
  49.     $wod = json_decode($homepage);
  50.     //print_r($wod->{'adjective'}->{'syn'});
  51.    
  52.    
  53.     if($wod->{'noun'}){
  54.            echo " ".$word." ";
  55.                 }
  56.     $oneword=$wod->{'adjective'}->{'syn'};
  57.     echo " ".$oneword[0]." ";
  58.    
  59.     $onewordss=$wod->{'verb'}->{'syn'};
  60.     echo " ".$onewordss[0]." ";
  61.  
  62.     flush();
  63.         ob_flush();
  64.  
  65.                     }
  66.  
  67. else {
  68.  
  69.     echo " ".$word." ";
  70.     flush();
  71.         ob_flush();
  72.  
  73.     }
  74.  
  75.  
  76.  
  77.  
  78.  
  79.                     }//end of for each word
  80.  
  81.  
  82. }//end of function spin
  83.  
  84.  
  85. if(isset($_POST['spin'])){
  86.  
  87. $text=$_POST['text'];
  88.  
  89. echo "<br></br><h3>Converted : </h3><center>";
  90. spin($text);
  91. echo"</center>";
  92.  
  93. }
  94.  
  95. ?>
  96. <center><h3>GIFT TO All Students By H4T3D</h3></center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement