help !

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help !

    how to remeov images copiryght this scripts..

    <?php
    error_reporting(0);
    if(isset($_GET[f])){
    if(is_file($_GET[f]) AND !empty($_GET[f]) and !ereg('\.',dirname($_GET[f]))){
    $f=str_replace('./','',$_GET[f]);
    $f=str_replace('.\\','',$f);
    if(file_exists($f)){
    $d=dirname($f);

    $nx=(int)50;
    $im3=ImageCreateFromPng("copyright.png");
    $nx=(int)ImageSX($im3);
    $szs=GetImageSize($f);
    $rx=$szs[0];
    $ry=$szs[1];
    $p=(int)round($nx*100/$rx);
    $ny=(int)round($ry*$p/100);
    $cy=$ny-12;
    $type=$szs[2];
    $ct=array('0'=>'false','1'=>'Gif','2'=>'Jpg','3'=> 'Png');
    $t=$ct[$type];
    if($t!=='false'){

    if ($type==1) {$funci='imagecreatefromgif'; $funco="imagegif";}
    if ($type==2) {$funci='imagecreatefromjpeg'; $funco="imagejpeg";}
    if ($type==3) {$funci='imagecreatefrompng'; $funco="imagepng";}
    if($type)
    {
    $im1 = @$funci($f);
    $im2ImageCreateTrueColor($nx,$ny);
    @ImageCopyResampled($im2, $im1, 0,0,0,0,$nx,$ny,$rx,$ry);
    @ImageCopy($im2,$im3,0,$cy,0,0,$nx,$ny);

    @header("Content-type: image/$t");
    @$funco($im2);
    ImageDestroy($im1);
    ImageDestroy($im2);
    ImageDestroy($im3);
    }

    }else{
    exit;
    }}else{
    exit;
    }}else{
    exit;}}else{
    exit;}
    ?>
Working...
X