From 418c26ce2e89087bc4f90ee3d7e5c594bdbacf62 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Sat, 18 Jul 2015 03:21:19 +0200 Subject: [PATCH] fixed html stuff for file uploads --- html_funcs.php | 10 +++++----- intern/index.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/html_funcs.php b/html_funcs.php index 26033a9..c5a885b 100644 --- a/html_funcs.php +++ b/html_funcs.php @@ -31,15 +31,15 @@ EOF; function html_linkbox($current = "") { $items = array( - 'index' => "Home", - 'list' => "Anmeldungen", - 'intern/index' => "Dateiupload", - 'stats' => "Stats" + '/index' => "Home", + '/list' => "Anmeldungen", + '/intern/index' => "Dateiupload", + '/stats' => "Stats" ); $out = '
'; if($GLOBALS['devmode'] == 1)$out .= '

DEVMODE aktiv.
Am System wird gerade gearbeitet!

'; diff --git a/intern/index.php b/intern/index.php index 485a1b9..39d60e8 100644 --- a/intern/index.php +++ b/intern/index.php @@ -11,11 +11,11 @@ $allowed_types = Array('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.mp3', '.svg', asort($allowed_types); ?>

Datei hochladen (intern)

-

Zu den hochgeladenen Dateien

Ergebnis'; + echo '

Zu den hochgeladenen Dateien

Ergebnis

'; + for($i = 0; $i <= 4; $i++){ if($_FILES['file'.$i]['error'] === 0 && is_uploaded_file($_FILES['file'.$i]['tmp_name'])) { $_FILES['file'.$i]['name'] = str_replace('/','',$_FILES['file'.$i]['name']); -- 2.43.0