ÿØÿà JFIF ` ` ÿþxØ
| 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/seo-mailing/login/ |
Upload File : |
<?php if(count($_SESSION) && $admin){?>
<script type="text/javascript">
document.location.href="?newsletter";
</script>
<?php }
if($_SET['reg']== 1 && isset($_POST['name_user']) && strlen($_POST['name_user']) > 0 && isset($_POST['email']) && isset($_POST['pass']) && strlen($_POST['lost']) == 0){
$result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."user WHERE email = '{$_POST['email']}' AND name = '{$_POST['name_user']}' LIMIT 1");
if(mysqli_num_rows($result)>0){
$error = __('ERROR: This username or email is already registered. Please choose another one.');
}else{
if(filter_var(trim($_POST['email']), FILTER_VALIDATE_EMAIL)){
$group = mysqli_fetch_array(mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."user_groups WHERE reg_group = 1 LIMIT 1"));
$query = "INSERT INTO ".$INFO['sql_tbl_prefix']."user
(id,id_user,id_cat,name,email,login,passw,data_reg,data_in,status,ulimit,limit_day) VALUES
('', '0',".$group['id'].", '{$_POST['name_user']}', '{$_POST['email']}','{$_POST['name_user']}','".sha1($_POST['user_pass'])."', '".time()."','0','0', '0', '0')";
mysqli_query($db,$query) or exit("insert error" . mysqli_error()."<br>".$query);
$templ = mysqli_fetch_array(mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."autoresponders WHERE type = 'registration' AND status = 1 LIMIT 1"));
$mail = new PHPMailer();
$mail->CharSet = "utf-8";
$mail->SetFrom($_SET['email_from'], $_SET['titlefrom']);
$mail->AddReplyTo($_SET['email_from'],$_SET['titlefrom']);
$mail->AddAddress($_POST['email']);
$mail->Subject = $templ['title'];
$body = $templ['message'];
$body = str_replace('{registration_details}', "Username: {$_POST['name_user']}<br>Password: {$_POST['user_pass']}<br><a href='".$INFO['base_url']."'>".$INFO['base_url']."</a>", $body);
$result_sh = mysql_query("SELECT * FROM ".$INFO['sql_tbl_prefix']."shortcodes WHERE system = 0");
if(mysqli_num_rows($result_sh)>0){
while($sh = mysqli_fetch_array($result_sh)){
$body = str_replace("{".$sh['shortcode']."}", $sh['value'], $body);
}
}
$text_html = $body;
$mail->MsgHTML($text_html);
$mail->Send();
$notice = __('Registration complete. Please check your e-mail.');
}else{
$error = __('Invalid email');
}
}
}elseif(isset($_POST['lost']) && strlen($_POST['lost']) > 0 && $_SET['reg']== 1){
if(!filter_var(trim($_POST['lost']), FILTER_VALIDATE_EMAIL)){
$result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."user WHERE name = '{$_POST['lost']}' LIMIT 1");
if(mysqli_num_rows($result)>0){
$user = mysqli_fetch_array($result);
$templ = mysqli_fetch_array(mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."autoresponders WHERE type = 'lost_password' AND status = 1 LIMIT 1"));
$mail = new PHPMailer();
$mail->CharSet = "utf-8";
$mail->SetFrom($_SET['email_from'], $_SET['titlefrom']);
$mail->AddReplyTo($_SET['email_from'],$_SET['titlefrom']);
$mail->AddAddress($_POST['email']);
$mail->Subject = $templ['title'];
$body = $templ['message'];
$body = str_replace('{name}', $user['name'], $body);
$lost_key = sha1(time().$user['name']);
mysqli_query($db,"UPDATE ".$INFO['sql_tbl_prefix']."user SET lost_key = '{$lost_key}' WHERE id = ".$user['id']." LIMIT 1");
$body = str_replace('{reset_password}', "<a href='".$INFO['base_url']."?lost_password&lost_key=".$lost_key."&login=".$user['name']."' target='_blank'>".__('Click here to reset your password')."</a>", $body);
$result_sh = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."shortcodes WHERE system = 0");
if(mysqli_num_rows($result_sh)>0){
while($sh = mysqli_fetch_array($result_sh)){
$body = str_replace("{".$sh['shortcode']."}", $sh['value'], $body);
}
}
$text_html = $body;
$mail->MsgHTML($text_html);
$mail->Send();
$notice = __('Please check your email.');
}else{
$error = __('Invalid username or e-mail.');
}
}else{
$result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."user WHERE email = '{$_POST['lost']}' LIMIT 1");
if(mysqli_num_rows($result)>0){
$user = mysqli_fetch_array($result);
$templ = mysqli_fetch_array(mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."autoresponders WHERE type = 'lost_password' AND status = 1 LIMIT 1"));
$mail = new PHPMailer();
$mail->CharSet = "utf-8";
$mail->SetFrom($_SET['email_from'], $_SET['titlefrom']);
$mail->AddReplyTo($_SET['email_from'],$_SET['titlefrom']);
$mail->AddAddress($_POST['email']);
$mail->Subject = $templ['title'];
$body = $templ['message'];
$body = str_replace('{name}', $user['name'], $body);
$lost_key = sha1(time().$user['name']);
mysqli_query($db,"UPDATE ".$INFO['sql_tbl_prefix']."user SET lost_key = '{$lost_key}' WHERE id = ".$user['id']." LIMIT 1");
$body = str_replace('{reset_password}', "<a href='".$INFO['base_url']."?lost_password&lost_key=".$lost_key."&login=".$user['name']."' target='_blank'>".__('Click here to reset your password')."</a>", $body);
$result_sh = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."shortcodes WHERE system = 0");
if(mysqli_num_rows($result_sh)>0){
while($sh = mysqli_fetch_array($result_sh)){
$body = str_replace("{".$sh['shortcode']."}", $sh['value'], $body);
}
}
$text_html = $body;
$mail->MsgHTML($text_html);
$mail->Send();
$notice = __('Please check your email.');
}else{
$error = __('There is no user registered with that email address.');
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Seo-Mailing_V7</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<?php if($_SET['rtl']==0){?>
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<?php }else{?>
<link href="assets/css/bootstrap-rtl.min.css" rel="stylesheet">
<link href="assets/css/rtl.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive-rtl.min.css" rel="stylesheet">
<?php } ?>
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic&subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="apple-touch-icon" sizes="57x57" href="assets/ico/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/ico/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/ico/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/ico/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/ico/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/ico/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/ico/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="assets/ico/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/ico/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="assets/ico/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/ico/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/ico/favicon-16x16.png">
<link rel="manifest" href="assets/ico/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="assets/ico/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<style>
.flag { opacity:0.25; cursor:pointer}
.flag:hover { opacity:1}
.activ { opacity:1}
</style>
</head>
<?php
if($_SET['reg']== 1){?>
<script>
function fun(){
if (document.getElementById('reg').style.display == 'none') {
document.getElementById('reg').style.display = 'block';
document.getElementById('login').style.display = 'none';
document.getElementById('lost').style.display = 'none';
}else{
document.getElementById('reg').style.display = 'none';
document.getElementById('lost').style.display = 'none';
document.getElementById('login').style.display = 'block';
}
}
function rec(){
if (document.getElementById('lost').style.display == 'none') {
document.getElementById('lost').style.display = 'block';
document.getElementById('login').style.display = 'none';
document.getElementById('reg').style.display = 'none';
}else{
document.getElementById('reg').style.display = 'none';
document.getElementById('lost').style.display = 'none';
document.getElementById('login').style.display = 'block';
}
}
</script>
<?php } ?>
<body>
<div class="container">
<div class="span12">
<form class="form-horizontal" action="" method="post">
<div class="modal">
<h2> <div style="text-align:center"><img src="assets/ico/logo-seo.png"> <?php echo $_SET['titlefrom']?></div></h2>
<div id="login">
<div class="modal-body">
<div class='alert alert-info'>Entrez votre Login de connexion et votre mot de passe.</div> <br />
<div class="control-group">
<div class="controls" style="margin:0; text-align:center">
<div class="input-prepend">
<span class="add-on"><i class="icon-user"></i></span>
<input type="text" id="inputLogin" name="login" value="" placeholder="<?php echo __('Login')?>">
</div>
</div>
</div>
<div class="control-group">
<div class="controls" style="margin:0; text-align:center">
<div class="input-prepend">
<span class="add-on"><i class="icon-lock"></i></span>
<input type="password" id="inputPassword" name="pass" value="" placeholder="<?php echo __('Password')?>">
</div>
</div>
</div>
<?php if($_SET['reg']== 1){?>
<div class="control-group">
<div class="controls" style="margin:0; text-align:center">
<button type="submit" class="btn btn-primary"><?php echo __('Sign in')?></button>
</div>
</div>
<?php } ?>
</div>
</div>
<?php if($_SET['reg']== 1){?>
<div id="reg" style="display:none">
<div class="modal-header">
<h3><?php echo __('Registration')?></h3>
</div>
<div class="modal-body">
<div class="control-group">
<label class="control-label" for="name_user"><?php echo __('Name');?></label>
<div class="controls" style="margin:0; text-align:center">
<input type="text" class="input-xlarge" id="name_user" name="name_user">
</div>
</div>
<div class="control-group">
<label class="control-label" for="email"><?php echo __('Email');?></label>
<div class="controls" style="margin:0; text-align:center">
<input type="email" class="input-xlarge" id="email" name="email">
</div>
</div>
<div class="control-group">
<label class="control-label" for="user_pass"><?php echo __('Password');?></label>
<div class="controls" style="margin:0; text-align:center">
<input type="password" class="input-xlarge" id="user_pass" name="user_pass">
</div>
</div>
<div class="control-group">
<div class="controls" style="margin:0; text-align:center">
<button type="submit" class="btn btn-primary"><?php echo __('Register')?></button>
</div>
</div>
</div>
</div>
<div id="lost" style="display:none">
<div class="modal-header">
<h3><?php echo __('Lost Your Password?')?></h3>
<?php echo __('Please enter your username or email address. You will receive a link to create a new password via email.');?>
</div>
<div class="modal-body">
<div class="control-group">
<div class="controls" style="margin:0; text-align:center">
<div class="input-prepend input-append">
<div class="btn-group">
<span class="add-on"><i class="icon-envelope"></i></span>
<input type="text" name="lost" placeholder="<?php echo __('Username or email')?>">
<button type="submit" class="btn btn-primary"><?php echo __('Get New Password');?></button>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="modal-footer">
<?php if($_SET['reg']== 1){?>
<a href="#" class="btn" onClick="fun();"><?php echo __('Register');?></a>
<a href="#" class="btn" onClick="rec();"><?php echo __('Lost Your Password?');?></a>
<a href="<?php echo $INFO['base_url']?>" class="btn btn-primary"><i class="icon-signin"></i> <?php echo __('Login');?></a>
<?php }else{ ?>
<button type="submit" class="btn btn-primary"><i class="icon-signin"></i> <?php echo __('Sign in')?></button>
<?php }?>
</div>
</div>
</form>
</div>
</div>
<script src="assets/js/bootstrap.js"></script>
<footer class="footer">
<div class="container">
<div class="row">
<div class="span6">
<div class="pull-left flag flag-<?php echo strtolower(current(explode(".",$_SET['lang'])))?> activ" title="<?php echo strtoupper(current(explode(".",$_SET['lang'])))?>" style="margin-top:4px; margin-right:5px;"></div>
<?php
$lang_f = scandir($INFO['lang']);
foreach($lang_f as $v){
if($v != '.' && $v != '..' && $v != '.DS_Store'){
$lng = current(explode(".",$v));
if($lng.".php" != $_SET['lang']){?>
<div class="pull-left flag flag-<?php echo strtolower($lng)?>" title="<?php echo strtoupper($lng)?>" style="margin-top:4px; margin-right:5px;"></div>
<?php }}
}
?>
</div>
<div class="span6">
<div class="pull-right">
</div>
</div>
</div>
</div>
</footer>
</body>
</html>