Hier der code:
switch ( $um ) {
case 'addimg' :
$img = $_FILES['file']['name'];
if ( strpos ( $img, '_' ) === FALSE AND strpos ( $img, '.' ) === FALSE AND strpos ( $img, 'ö' ) === FALSE AND strpos ( $img, 'ä' ) === FALSE AND strpos ( $img, 'ü' ) === FALSE ) {
echo 'Konnte Bild nicht hochladen, weil der Name einen <b>.</b> (Punkt), ein ä, ein ö, ein ü oder einen <b>_</b> (Unterstrich) enthalten hat.<br />';
} else {
$imgpath = 'include/images/gallery/'.$_POST['dir'].'_'.$_FILES['file']['name'];
if (move_uploaded_file ( $_FILES['file']['tmp_name'] , $imgpath ) ) {
$tmp = explode('.',$_FILES['file']['name']);
if (function_exists('imageCopyResized')) {
$thumbpath = 'include/images/gallery/'.$_POST['dir'].'_'.$tmp[0].'_small.'.$tmp[1];
create_thumb ( $imgpath, $thumbpath );
}
if ( !empty($_POST['besch']) ) {
$datei = fopen('include/images/gallery/'.$_POST['dir'].'_'.$tmp[0].'.txt', "w");
fputs($datei, $_POST['besch']);
fclose($datei);
}
}
}
Habe es schon ausprobiert, klapt aber leider nicht?
verwendete ilchClan Version: 1.0.5

