no se ve la imagen cuando le doy al cargar la imagen, me pone que imagen subida pero no se encuentra en mi ftp ni se visualiza, aqui dejo el codigo a ver si alguien puede ayudarme, gracias
function DeliverSendEvent($option)
{
//Eingabe speichern
global $database, $mainframe, $mosConfig_sitename, $my, $acl, $Itemid, $mosConfig_mailfrom, $mosConfig_fromname;
require(ELPATH."/../../administrator/components/com_eventlist/config.eventlist.php");
require_once( $mainframe->getPath( 'class' ) );
$is_chef = (strtolower($my->usertype) == 'editor' || strtolower($my->usertype) == 'publisher' || strtolower($my->usertype) == 'manager' || strtolower($my->usertype) == 'administrator' || strtolower($my->usertype) == 'super administrator' );
$row = new eventlist_dates($database);
$_POST['titel'] = mosGetParam($_POST, 'titel');
//Bild
$userfile2=(isset($_FILES['userfile']['tmp_name']) ? $_FILES['userfile']['tmp_name'] : "");
$userfile_name = date("YmdGis").$_FILES['userfile']['name'];
$imagesize = $_FILES['userfile']['size'];
if (( $imageenabled == 2 ) || ( ($imageenabled == 1) && (!empty($userfile_name)) ) ) {
$base_Dir = ELPATH.'/../../images/eventlist/events/';
$sizelimit = $sizelimit*1024; //size limit in kb
if (empty($userfile_name)) {
mosRedirect("index.php?option=$option&Itemid=$Item id", _EVENTS_IMAGEEMPT." ");
}
if ($imagesize > $sizelimit) {
mosRedirect("index.php?option=$option&Itemid=$Item id", _EVENTS_IMAGESIZEBIG." ");
}
$filename = split("\.", $userfile_name);
if (eregi("[^0-9a-zA-Z_]", $filename[0])) {
mosRedirect("index.php?option=$option&Itemid=$Item id", _EVENTS_IMAGECHARACT." ");
}
if (file_exists($base_Dir.$userfile_name)) {
mosRedirect("index.php?option=$option&Itemid=$Item id", _EVENTS_IMAGEEXIST." ");
}
if ((strcasecmp(substr($userfile_name,-4),".gif")) && (strcasecmp(substr($userfile_name,-4),".jpg")) && (strcasecmp(substr($userfile_name,-4),".png")) && (strcasecmp(substr($userfile_name,-4),".bmp"))) {
mosRedirect("index.php?option=$option&Itemid=$Item id", _EVENTS_IMAGETYPE." ");
}
if (!move_uploaded_file ($_FILES['userfile']['tmp_name'],$base_Dir.$_FILES['userfile']['name']) || !mosChmod($base_Dir.$_FILES['userfile']['name'])) {
mosRedirect("index.php?option=$option&Itemid=$Item id", _EVENTS_IMAGEFAIL." ");
} else {
$file = $base_Dir.$userfile_name;
//chmod Bild
@chmod ($file, octdec($imagechmod));
//Vorbereiten auf Thumbnailerstellung
$thumbdir = $base_Dir.'small/';
$save = $thumbdir.$userfile_name ;
if ($imageprob = 1) {
$imageprob = TRUE;
} else {
$imageprob = FALSE;
}
if ($gddisabled == 1) {
evlist_imgd::thumb($file, $save, $imagewidth, $imagehight, $imageprob);
}
}
$_POST['datimage'] = $userfile_name ;
}