-
Notifications
You must be signed in to change notification settings - Fork 3
/
client_new.php
executable file
·79 lines (76 loc) · 2.81 KB
/
client_new.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/*
* Factux le facturier libre
* Copyright (C) 2003-2005 Guy Hendrickx, 2017 Thomas Ingles
*
* Licensed under the terms of the GNU General Public License:
* http://opensource.org/licenses/GPL-3.0
*
* For further information visit:
* http://factux.free.fr
*
* File Name: fckconfig.js
* Editor configuration settings.
*
* * * Version: 5.0.0
* * * * Modified: 07/10/2016
*
* File Authors:
* Guy Hendrickx
*.
*/
require_once("include/verif.php");
include_once("include/config/common.php");
include_once("include/config/var.php");
include_once("include/language/$lang.php");
include_once("include/utils.php");
$mail_admin = "$mail";
$nom=isset($_POST['nom'])?apostrophe($_POST['nom']):"";
$nom_sup=isset($_POST['nom_sup'])?apostrophe($_POST['nom_sup']):"";
$rue=isset($_POST['rue'])?apostrophe($_POST['rue']):"";
$ville=isset($_POST['ville'])?apostrophe($_POST['ville']):"";
$code_post=isset($_POST['code_post'])?$_POST['code_post']:"";
$num_tva=isset($_POST['num_tva'])?$_POST['num_tva']:"";
$login=isset($_POST['login'])?$_POST['login']:"";
$pass=isset($_POST['pass'])?$_POST['pass']:"";
$mail_cli=isset($_POST['mail'])?$_POST['mail']:"";
$pass2=isset($_POST['pass2'])?$_POST['pass2']:"";
$civ=isset($_POST['civ'])?$_POST['civ']:"";
$tel=isset($_POST['tel'])?$_POST['tel']:"";
$fax=isset($_POST['fax'])?$_POST['fax']:"";
if($pass != $pass2){
$message = "<h1>$lang_mot_pa</h1>";
include('form_client.php');
exit;
}
$pass = md5($pass);
if($nom=='' || $rue=='' || $ville=='' || $code_post=='' || $num_tva==''){
$message= "<h1>$lang_oubli_champ</h1>";
include('form_client.php'); // On inclus le formulaire d'identification
exit;
}
if ($login !=''){
$sql = "SELECT * FROM " . $tblpref ."client WHERE login = '".$login."' OR mail = '".$mail_cli."'";
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());