Warning: Cannot modify header information - headers already sent by (output started at /var/www/jonas-eriksen.dk/pic/private/index.php:1) in /var/www/jonas-eriksen.dk/pic/private/index.php on line 215
passwordResetCheck(); if (!$admin->admin_level(0)) { header("location: /static/401.php"); die(); } $users = $user->getAllUsers(0); include('header.php'); $my_upload = new file_upload_class; $my_upload->upload_dir = "profile-picture/"; // "files" is the folder for the uploaded files (you have to create this folder) $my_upload->extensions = array(".jpg", ".JPG"); // specify the allowed extensions here // $my_upload->extensions = "de"; // use this to switch the messages into an other language (translate first!!!) $my_upload->max_length_filename = 50; // change this value to fit your field length in your database (standard 100) $my_upload->rename_file = true; if(isset($_POST['Submit'])) { $my_upload->the_temp_file = $_FILES['upload']['tmp_name']; $my_upload->the_file = $_FILES['upload']['name']; $my_upload->http_error = $_FILES['upload']['error']; $my_upload->replace = (isset($_POST['replace'])) ? $_POST['replace'] : "n"; // because only a checked checkboxes is true $my_upload->do_filename_check = (isset($_POST['check'])) ? $_POST['check'] : "n"; // use this boolean to check for a valid filename $new_name = (isset($_POST['name'])) ? $_POST['name'] : ""; if ($my_upload->upload($new_name)) { // new name is an additional filename information, use this to rename the uploaded file $full_path = $my_upload->upload_dir.$my_upload->file_copy; $info = $my_upload->get_uploaded_file_info($full_path); $log->addLog($_SESSION['userId'], "Nyt billede oploadet", "Admin", "/user/profile.php?user=" . $_POST['name']); ?>

Opload billede af skytte




show_error_string(); ?>

".nl2br($info).""; ?>