init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
29
scripts/iinfo.php
Normal file
29
scripts/iinfo.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?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');
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue