PHP:
<?php
include("$yol/class/class.upload.php");
if ($file1_name!='') {
$akodu = substr(md5(rand(0,999999999999)),-10);
$handle = new upload($_FILES['file1']);
if ($handle->uploaded) {
//Resim 1
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 75;
$handle->image_x = 100;
$resim1=$handle->file_new_name_body = "img1_k_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25; //filling
$handle->image_text_padding = 1;
$handle->image_text_position = 'BR';
$handle->image_text_font = 1;
$handle->allowed = array('image/*');
$handle->Process($webServer);
/*
// Resim2
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 200;
$handle->image_x = 200;
$handle->file_new_name_body = "img1_o_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25; //filling
$handle->image_text_padding = 2;
$handle->image_text_position = 'BR';
$handle->image_text_font = 3;
$handle->allowed = array('image/*');
$handle->Process($webServer);
*/
//Resim 3
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 338;
$handle->image_x = 450;
$handle->file_new_name_body = "img1_b_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25;
$handle->image_text_padding = 2;
$handle->image_text_position = 'BR';
$handle->image_text_font = 4;
$handle->allowed = array('image/*');
$handle->Process($webServer);
if ($handle->processed) { $resimler='1';
$handle->clean();
} else { $resimler='0'; }
} $handle->clean(); } if ($file2_name!='') {
$handle = new upload($_FILES['file2']);
if ($handle->uploaded) {
//Resim 1
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 75;
$handle->image_x = 100;
$resim1=$handle->file_new_name_body = "img2_k_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25; //filling
$handle->image_text_padding = 1;
$handle->image_text_position = 'BR';
$handle->image_text_font = 1;
$handle->allowed = array('image/*');
$handle->Process($webServer);
/*
// Resim2
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 200;
$handle->image_x = 200;
$resim2=$handle->file_new_name_body = "img2_o_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25; //filling
$handle->image_text_padding = 2;
$handle->image_text_position = 'BR';
$handle->image_text_font = 3;
$handle->allowed = array('image/*');
$handle->Process($webServer);
*/
//Resim 3
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 338;
$handle->image_x = 450;
$handle->file_new_name_body = "img2_b_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25;
$handle->image_text_padding = 2;
$handle->image_text_position = 'BR';
$handle->image_text_font = 4;
$handle->allowed = array('image/*');
$handle->Process($webServer);
if ($handle->processed) { $resimler='1';
$handle->clean();
} else { $resimler='0'; }
} $handle->clean(); }
if ($file3_name!='') {
$handle = new upload($_FILES['file3']);
if ($handle->uploaded) {
//Resim 1
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 75;
$handle->image_x = 100;
$resim1=$handle->file_new_name_body = "img3_k_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25; //filling
$handle->image_text_padding = 1;
$handle->image_text_position = 'BR';
$handle->image_text_font = 1;
$handle->allowed = array('image/*');
$handle->Process($webServer);
/*
// Resim2
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 200;
$handle->image_x = 200;
$resim3=$handle->file_new_name_body = "img3_o_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25; //filling
$handle->image_text_padding = 2;
$handle->image_text_position = 'BR';
$handle->image_text_font = 3;
$handle->allowed = array('image/*');
$handle->Process($webServer);
*/
//Resim 3
$handle->image_resize = true;
$handle->image_ratio_fill = true;
$handle->image_y = 338;
$handle->image_x = 450;
$handle->file_new_name_body = "img3_b_$akodu";
$handle->image_convert = 'jpg';
$handle->image_border = 1;
$handle->image_border_color = '#000000';
$handle->file_safe_name = true;
$handle->file_auto_rename = true;
$handle->mime_magic_check = true;
$handle->image_text = $_SERVER["HTTP_HOST"];
$handle->image_text_background = '#000000';
$handle->image_text_background_percent = 25;
$handle->image_text_padding = 2;
$handle->image_text_position = 'BR';
$handle->image_text_font = 4;
$handle->allowed = array('image/*');
$handle->Process($webServer);
if ($handle->processed) { $resimler='1'; $handle->clean(); } else { $resimler='0'; } $handle->clean(); }
$handle->clean();
}
?>