Update 2 files
- /html/upload.php - /include/variables.php
This commit is contained in:
parent
97767109b0
commit
cec39b22d3
@ -20,7 +20,9 @@ if(isset($_POST['title']) && isset($_FILES['file'])) {
|
|||||||
} else {
|
} else {
|
||||||
$bdd->bindParam(':date', date());
|
$bdd->bindParam(':date', date());
|
||||||
}
|
}
|
||||||
$upload->execute();
|
if($upload->execute()) {
|
||||||
|
$status = "Uploaded";
|
||||||
|
}
|
||||||
|
|
||||||
move_uploaded_file($_FILES['file']['tmp_name'], $destination);
|
move_uploaded_file($_FILES['file']['tmp_name'], $destination);
|
||||||
}
|
}
|
||||||
@ -70,6 +72,7 @@ if(isset($_POST['title']) && isset($_FILES['file'])) {
|
|||||||
<!--<div><input type="radio">Interne</input></div>-->
|
<!--<div><input type="radio">Interne</input></div>-->
|
||||||
<div><input type="file" name="file" required></div>
|
<div><input type="file" name="file" required></div>
|
||||||
<div><input type="submit" value="Publier"></div>
|
<div><input type="submit" value="Publier"></div>
|
||||||
|
<div><?=$status?></div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
@ -11,6 +11,7 @@ $header_title = $config['main']['header-title'];
|
|||||||
$header_subtitle = $config['main']['header-subtitle'];
|
$header_subtitle = $config['main']['header-subtitle'];
|
||||||
$copyright = $config['main']['copyright'];
|
$copyright = $config['main']['copyright'];
|
||||||
$nav = $config['nav'];
|
$nav = $config['nav'];
|
||||||
$navadmin = $nav
|
$navadmin = $nav;
|
||||||
|
$status = "";
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user