!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/share/docs/   drwxr-xr-x
Free 14.43 GB of 61.93 GB (23.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     tgaread.c (975 B)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* $Id$ */
/*
 * You can fetch a set of samples TIFF images here:
 * ftp://ftp.remotesensing.org/pub/libtiff/
 * (pics-x.y.z.tar.gz)
 */

#include <gd.h>
#include <stdio.h>
#include <stdlib.h>

int main()
{
    gdImagePtr im;
    FILE *fp;
    char path[4][2048];
    int i;
    char dst[2048];

    sprintf(path[0], "noIconAlpha.tga");
    sprintf(path[1], "noIcon.tga");

    for (i = 0; i < 2; i++) {
        printf("opening %s\n", path[i]);
        fp = fopen(path[i], "rb");
        if (!fp) {
            printf("failed, cannot open file\n");
            return 1;
        }

        im = gdImageCreateFromTga(fp);
        fclose(fp);
        if (!im) {
            fprintf(stderr, "Can't load TIFF image %s\n", path[i]);
            return 1;
        }


        sprintf(dst, "%i.png", i);

        fp = fopen(dst, "wb");
        if (!fp) {
            fprintf(stderr, "Can't save png image fromtiff.png\n");
            gdImageDestroy(im);
            return 1;
        }
#ifdef HAVE_LIBPNG
    gdImagePng(im, fp);
#else
    printf("No PNG support. Cannot save image.\n");
#endif
        fclose(fp);
        gdImageDestroy(im);
    }
    return 0;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 1.0245 ]--