как залить shell

Discussion in 'Болталка' started by Student :), 3 Apr 2009.

Thread Status:
Not open for further replies.
  1. Student :)

    Student :) Elder - Старейшина

    Joined:
    9 Feb 2007
    Messages:
    278
    Likes Received:
    18
    Reputations:
    -15
    привет всем!!!

    нашол я на сайте скрипт на php уменьшающий картинку
    :)

    вот он
    PHP:
    <?
     
    // The file
    $filename =$HTTP_GET_VARS['f'];
     
    // Set a maximum height and width
    $width =120 
    $height =70 
     
    // Content type
    header 'Content-type: image/jpeg' ); 
    // Get new dimensions
    list( $width_orig $height_orig ) = getimagesize $filename ); 
    if ( 
    $width && ( $width_orig $height_orig )) { 
    $width = ( $height $height_orig ) * $width_orig 
    } else { 
    $height = ( $width $width_orig ) * $height_orig 

    // Resample
    $image_p imagecreatetruecolor $width $height ); 
    $image imagecreatefromjpeg $filename ); 
    imagecopyresampled $image_p $image $width $height $width_orig $height_orig ); 
    // Output
    imagejpeg $image_p null 100 ); 
    ?> 
    могу ли я через переменную $filename =$HTTP_GET_VARS['f'];

    залить shell ?
     
  2. -Hormold-

    -Hormold- Кто, если не ты?

    Joined:
    29 Sep 2007
    Messages:
    418
    Likes Received:
    290
    Reputations:
    44
    Нет.
     
  3. Student :)

    Student :) Elder - Старейшина

    Joined:
    9 Feb 2007
    Messages:
    278
    Likes Received:
    18
    Reputations:
    -15
Thread Status:
Not open for further replies.