AnonSec Team
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  ]

Current File : /home/logmcpe/www/mcg/pages/feuillesroute/../mailboxnew.php
<?php
session_start();
$success =false;
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>


<section class="content">
<div class="row">


<div class="col-md-12">
<div class="card card-primary card-outline">
<div class="card-header">
<h3 class="card-title">Boîte de réception</h3>
<div class="card-tools">
<div class="input-group input-group-sm">
<input type="text" class="form-control" placeholder="Search Mail">
<div class="input-group-append">
<div class="btn btn-primary">
<i class="fas fa-search"></i>
</div>
</div>
</div>
</div>

</div>

<div class="card-body p-0">
<div class="mailbox-controls">


</div>
				<div class="table-responsive mailbox-messages">
					<table class="table table-hover table-striped">
						<thead>
							<tr>
								<th>Nom</th>
								<th>objet</th>
								<th></th>
								<th>Date</th>
								<th></th>
							</tr>
						</thead>
						<tbody id="inbox">

						</tbody>
					</table>
				</div>

</div>

<div class="card-footer p-0">
<div class="mailbox-controls">


</div>
</div>
</div>

</div>

</div>

</section>
  </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 &copy; 2022 <a href="http://adminlte.io">TMCPRO</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/jsonnew.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) + ' </b> </a>   < ' + a.from.address + ' >  </td>';
					tbody += '<td class="mailbox-subject"><b>' + a.subject + '</b></td>';
					tbody += '<td class="mailbox-attachment">' + a.attachments + '</td>';
					tbody += '<td class="mailbox-date" style="white-space: nowrap">' + a.date + '</td>';
					tbody += '<td ><a href="mailboxnew.php?action=delete&d='+ a.date +'&i='+ i +'" "> <i class="far fa-trash-alt"></i>  </a></td>';
				tbody += '</tr>';	
				// 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>

AnonSec - 2021