Black Eagle Team Minishell
Path:
/
home
/
ccpsafy
/
www
/
private
/
adherent
/
[
Home
]
File: adherent_modif_x.php
<?php include("../../inc/enligne_param.inc.php"); include ("../../inc/gere_session.inc.php"); if(is_uploaded_file($_FILES['photo']['tmp_name'])){ $chemin = "../trombin/".$_FILES['photo']['name']; move_uploaded_file($_FILES['photo']['tmp_name'],$chemin); $LeFichier = $_FILES['photo']['name']; $Crit = ", photo = '$LeFichier'"; } else{ $Crit = ""; } $req = "UPDATE adherent SET idfpf = \"$_POST[idfpf]\", idccpsa = \"$_POST[idccpsa]\", arrive = \"$_POST[arrive]\", actif = \"$_POST[actif]\", civ = \"$_POST[civ]\", prenom = \"$_POST[prenom]\", nom = \"$_POST[nom]\", commune = \"$_POST[commune]\", cp = \"$_POST[cp]\", tel1 = \"$_POST[tel1]\", tel2 = \"$_POST[tel2]\", mail = \"$_POST[mail]\", cat = \"$_POST[cat]\", definition = \"$_POST[definition]\", activite = \"$_POST[activite]\", login = \"$_POST[login]\", pass = \"$_POST[pass]\", droit = \"$_POST[droit]\", rang = \"$_POST[rang]\" $Crit WHERE id = $_POST[LeID]"; $rep = mysql_query($req, $con) or die(__line__.$req.mysql_error()); header("Location: adherent.php"); exit(); ?>
©
2020 Black Eagle Team