Black Eagle Team Minishell
Path:
/
home
/
c
/
c
/
p
/
ccpsafy
/
www.old
/
private
/
salons
/
[
Home
]
File: salons_modif_x.php.old
<?php include ("../../inc/enligne_param.inc.php"); include ("../../inc/gere_session.inc.php"); // AJOUT DE LA DATE DE MODIF DANS LA BASE $req = "update date set date_salon='$_POST[date_salon]', heure_salon='$_POST[heure_salon]' "; $rep = mysql_query($req,$con) or die(__LINE__.$req.$mysql.error()); if(is_uploaded_file($_FILES['file']['tmp_name'])){ $chemin = "../telech/".$_FILES['file']['name']; move_uploaded_file($_FILES['file']['tmp_name'],$chemin); $LeFichier = $_FILES['file']['name']; $Crit = ", file = '$LeFichier'"; } else{ $Crit = ""; } $req = "UPDATE salons SET titre = '$_POST[titre]', theme = '$_POST[theme]', genre1 = '$_POST[genre1]', genre2 = '$_POST[genre2]', genre3 = '$_POST[genre3]', genre4 = '$_POST[genre4]', jourdepot = '$_POST[jourdepot]', moisdepot = '$_POST[moisdepot]', andepot = '$_POST[andepot]', jourconcours = '$_POST[jourconcours]', moisconcours = '$_POST[moisconcours]', anconcours = '$_POST[anconcours]', nbphotosauteur = '$_POST[nbphotosauteur]', nbphotosclub = '$_POST[nbphotosclub]', lien = '$_POST[lien]', texte = '$_POST[texte]' $Crit where id = $_POST[SalonModif]"; $rep = mysql_query($req,$con) or die(__LINE__.$req.$mysql.error()); header("Location: salons.php"); ?>
©
2020 Black Eagle Team