Advertisement
plas71k

seudesign file => decoded

Jan 31st, 2013
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.70 KB | None | 0 0
  1. <?php
  2. /*
  3.  * @ Pirate-Sky Crew :: PHP Decoder
  4.  * @ Author: pLa$71k
  5.  * @ Web: http://pirate-sky.com
  6.  * @ Pirate-Sky Crew © 2008 - 2013
  7.  */
  8.  
  9. @include('./system/brain.php');
  10. @include('../system/brain.php');
  11. $question  = htmlspecialchars($_GET["question"], ENT_QUOTES);
  12. $to_user   = $_GET["user"];
  13. $from_user = $_GET["from_user"];
  14. $date      = date("d-m-Y");
  15. $today     = time("h-m-s");
  16. $ip        = getenv("REMOTE_ADDR");
  17. if ($question == "") {
  18.     $_SESSION['msg2'] = "1";
  19.     header("Location: http://$site_domain/$to_user");
  20.     exit;
  21. } else {
  22.     $placeholders = array(
  23.         ':)',
  24.         ':(',
  25.         '*angel*',
  26.         '*cry*',
  27.         '*devil*',
  28.         ':S',
  29.         '*kisses*',
  30.         '*MSN*',
  31.         ':B',
  32.         ':|',
  33.         '*zzz*',
  34.         '*sorry*',
  35.         ':O',
  36.         ':P',
  37.         ':D',
  38.         '*?*',
  39.         ';D',
  40.         '*HAHA*'
  41.     );
  42.     $malevals     = array(
  43.         '<img src="http://' . $site_domain . '/images/emoticons/happy.png">',
  44.         '<img src="http://' . $site_domain . '/images/emoticons/sad.png">',
  45.         '<img src="http://' . $site_domain . '/images/emoticons/angel.png">',
  46.         '<img src="http://' . $site_domain . '/images/emoticons/cry.png">',
  47.         '<img src="http://' . $site_domain . '/images/emoticons/devil.png">',
  48.         '<img src="http://' . $site_domain . '/images/emoticons/embarrassed.png">',
  49.         '<img src="http://' . $site_domain . '/images/emoticons/kiss.png">',
  50.         '<img src="http://' . $site_domain . '/images/emoticons/msn.png">',
  51.         '<img src="http://' . $site_domain . '/images/emoticons/nerd.png">',
  52.         '<img src="http://' . $site_domain . '/images/emoticons/plain.png">',
  53.         '<img src="http://' . $site_domain . '/images/emoticons/sleep.png">',
  54.         '<img src="http://' . $site_domain . '/images/emoticons/sorry.png">',
  55.         '<img src="http://' . $site_domain . '/images/emoticons/surprise.png">',
  56.         '<img src="http://' . $site_domain . '/images/emoticons/tongue.png">',
  57.         '<img src="http://' . $site_domain . '/images/emoticons/very_happy.png">',
  58.         '<img src="http://' . $site_domain . '/images/emoticons/what.png">',
  59.         '<img src="http://' . $site_domain . '/images/emoticons/wink.png">',
  60.         '<img src="http://' . $site_domain . '/images/emoticons/laugh.png">'
  61.     );
  62.     $new_question = str_replace($placeholders, $malevals, $question);
  63.     //SEND:
  64.     $sql4 = mysql_query("INSERT INTO questions (to_user, question, from_user, date, status, time, ip) VALUES('$to_user', '$new_question', '$from_user', '$date', '0', '$today',  '$ip') ") or die(mysql_error());
  65.     $_SESSION['msg'] = '1';
  66.     header("Location: http://$site_domain/$to_user");
  67.     exit;
  68. }
  69. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement