-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathup.php
More file actions
32 lines (26 loc) · 744 Bytes
/
Copy pathup.php
File metadata and controls
32 lines (26 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
require_once 'bdd.php';
include 'class/Utilitaire.php';
if (isset($_POST['id']) AND isset($_POST['ressource']))
{
$util= new Utilitaire();
if ($_POST['ressource']=="nouriture")
{
$util->ajouteNouriture($_POST['id'],1,$bdd);
echo "nouriture";
}
elseif ($_POST['ressource']=="bois")
{
$util->ajouteBois($_POST['id'],1,$bdd);
echo "bois";
echo $_POST['id'];
}
elseif ($_POST['ressource']=="or")
{
$util->ajouteOr($_POST['id'],1,$bdd);
echo "or";
}
die('<META HTTP-equiv="refresh" content=0;URL=admin.php>');
}
else {die('<META HTTP-equiv="refresh" content=0;URL=admin.php>');}
?>