case "sanierung_wedding": $le = new leerstand(); $le->sanierungsliste(1, 11, 250, 200); // BLOCK II $le->sanierungsliste(2, 11, 250, 200); // BLOCK III $le->sanierungsliste(3, 11, 250, 200); // BLOCK V break; case "fotos_upload": if (!isset($_REQUEST['einheit_id'])) { fehlermeldung_ausgeben("Einheit wählen"); } else { $l = new leerstand(); $l->form_fotos_upload($_REQUEST['einheit_id']); $l->fotos_anzeigen_wohnung($_REQUEST['einheit_id'], 'ANZEIGE', '10'); } break; case "foto_send_ajax": ob_clean(); // print_r($_FILES); // die(); if (isset($_FILES['upload_file'])) { $einheit_id = $_POST['einheit_id_foto']; $e = new einheit(); $e->get_einheit_info($einheit_id); $orig_filename = $_FILES['upload_file']['name']; $orig_file = $_FILES['upload_file']['tmp_name']; $newname = "FOTOS/EINHEIT/{$e->einheit_kurzname}/ANZEIGE/{$orig_filename}"; if (!file_exists("FOTOS/EINHEIT/{$e->einheit_kurzname}")) { echo "NEMA ORDNERA";