$row = 3; // row´s too show
$max = 200; //preview MAX pixel
ob_start();
/*
descripton ... coming soon :P
is running but not finish :)
need some spezial :D
coder: Manuel Tausendfreund
version history:
1.0 final
1.1 IE bug fixing
feel free to use this :D
*/
function bild_ausgabe ($pic){ // return view
if ($pic[0] > $pic[1]){
$percent = ($pic[1] / $pic[0]) * 100;
$new_height = round($percent * $GLOBALS['max'] / 100);
$new_width = $GLOBALS['max'];
}elseif ($pic[0] < $pic[1]){
$percent = ($pic[0] / $pic[1]) * 100;
$new_width = round($percent * $GLOBALS['max'] / 100);
$new_height = $GLOBALS['max'];
}else{
$new_height = $GLOBALS['max'];
$new_width = $GLOBALS['max'];
}
$return = "\n\n";
$return .= "
filename: ".$pic['name']."";
$return .= "
width: ".$pic[0]."";
$return .= "
height: ".$pic[1]."";
$return .= "
new_height: ".$new_height."";
$return .= "
new_width: ".$new_width."";
$return .= "
prozenmt: ".$percent."";
$return .= "
size: ".size($pic['size'])."";
$return .= "
HTML: ' name='HTML' ";
$return .= "
BB Code: \n