jb-data.de/scripts/iinfo.php
2025-08-11 22:23:30 +02:00

29 lines
866 B
PHP

<?php
$_SESSION['m1']=3; $_SESSION['m2']=0;
// Melde alle PHP Fehler (siehe Changelog)
error_reporting(E_ALL);
ini_set('display_errors', 0);
//echo $s_auto;
// Vorabanzeige resultat
// echo "<pre>";
// print_r($_post);
// echo "</pre>";
if(($_FILES["file"]["size"] > 0)) {
$fileName = $_FILES["file"]["name"];//the files name takes from the HTML form
$fileTmpLoc = $_FILES["file"]["tmp_name"];//file in the PHP tmp folder
$fileType = $_FILES["file"]["type"];//the type of file
$fileSize = $_FILES["file"]["size"];//file size in bytes
$fileErrorMsg = $_FILES["file"]["error"];//0 for false and 1 for true
$target_path = "uploads/" . basename( $_FILES["file"]["name"]);
$moveResult = move_uploaded_file($fileTmpLoc, $target_path);
}
$template->assign('content', 'tpl/i_info.tpl');
?>