Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
377 B
1
Indexable
Never
$thumb_img = $file . '.png';
    if (!is_dir($tconfig["tsite_upload_provider_image_path"] . '/thumnails/')) {
        mkdir($tconfig["tsite_upload_provider_image_path"] . '/thumnails/', 0777);
        chmod($tconfig["tsite_upload_provider_image_path"] . '/thumnails/', 0777);
    }
    $img_path = $tconfig["tsite_upload_provider_image_path"] . '/thumnails/' . $thumb_img;