AnonSec Team
Server IP : 10.128.40.6  /  Your IP : 216.73.217.20
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/python/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/mcg/pages/python/../client_sal.php
<?php
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;

	// echo "<pre>";
	// print_r($_POST);
	// echo "</pre>";


	// echo "<pre>";
	// print_r($_GET);
	// echo "</pre>";
	
	
	if(isset($_GET['presta_id'])){
list($_GET['client_id'], $type,$information) = dbi_fetch_row(dbi_query("SELECT client_id ,prestation_type,information  FROM `PRESTATIONS` WHERE `presta_id` =  ".$_GET['presta_id'])) ;
	
// echo "==>".$type."<br/>" ;
$client_id = $_GET['client_id'] ;
$_SESSION['cl'] = $_GET['client_id'] ;
$info_client = dbi_fetch_row(dbi_query(" SELECT * FROM client WHERE `client_id` = $client_id ")) ;

$intructions= dbi_query("SELECT * FROM ".instructions." WHERE  client_id=$client_id ") ;
$i=dbi_fetch_row($intructions);
if($i){
$instr_id=$i['instr_id'];
$dom_client=stripslashes ($i['dom_client']);
$info_tel=stripslashes ($i['info_tel']);
$mat_prod=stripslashes ($i['mat_prod']);
$instr_tra=stripslashes ($i['instr_tra']);
$url_map = stripslashes ($i['url_map']);

// echo "==>".$url_map."<br/>" ;
$_GET['action']='edit';
}}

if($_GET['carte'] == "affiche"){
	// echo "test <br/>" ; 
	$info_client = dbi_fetch_row(dbi_query(" SELECT * FROM client WHERE `client_id` =  ".$_SESSION['cl'])) ;

$intructions= dbi_query("SELECT * FROM ".instructions." WHERE  client_id= ".$_SESSION['cl']) ;
$i=dbi_fetch_row($intructions);
if($i){
$instr_id=$i['instr_id'];
$dom_client=stripslashes ($i['dom_client']);
$info_tel=stripslashes ($i['info_tel']);
$mat_prod=stripslashes ($i['mat_prod']);
$instr_tra=stripslashes ($i['instr_tra']);
$url =  strip_tags( stripslashes ($i['url_map']));	
// echo "....".$url_mapdd."<br/>" ; 
// exit() ; 
	    // header("$url_map ");	
		// header('Location: '.$url_map);
		// header('Location :' . $url_map, true, 301);
	 // header("Location: ".$url_mapdd);
	  // $url = "https://example.com/page.php?newvar=".$_GET['hi'];
 header("HTTP/1.1 301 Moved Permanently"); 
 header("Location: $url");
Exit();
}}
	
	


?>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>AdminLTE 3 | User Profile</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="../../plugins/fontawesome-free/css/all.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="../../dist/css/adminlte.min.css">
</head>
<body class="hold-transition layout-top-nav">
<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="#"></a>
      </li>
      <li>
      <a href="index_sal.php"><button type="button" class="btn btn-info"><i class="fas fa-reply"></i> MENU PRINCIPAL</button> &nbsp;

      </li>

	  	     <?if($type == 5 ){?>

	   <li>
      <a href="produit_extranet.php?client_id=<?=$client_id ?>&amp;source=client_sal"><button type="button" class="btn btn-danger"><i class="fas fa-truck"></i> COMMENCER LA LIVRAISON </button>

      </li>
		 <?}?>

	     <?if($type == 6 ){?>

	   <li>
      <a href="controle_sal.php?client_id=<?=$client_id ?>&amp;source=client_sal"><button type="button" class="btn btn-warning"><i class="fas fa-paperclip"></i> COMMENCER LE CONTROLE </button>

      </li>
		 <?}?>
    </ul>


  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <?php
  include('aside.php');

  ?>
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">

      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-12">


            <div class="card bg-light d-flex flex-fill">

              <div class="card-body pt-0">
                <div class="row">
                  <div class="col-7">
                    <STRONG><b><i class="fas fa-lg fa-building"> &nbsp </i> <?=$info_client['client_nom'] ?></b></STRONG>

					<?php
					$adr = $info_client['client_adr1']  ;
					if(!empty($info_client['client_adr2']))
					{
					   $adr .= 	", ".$info_client['client_adr2'];
					}

					if(!empty($info_client['client_adr3']))
					{
					    $adr .= 	", ".$info_client['client_adr3'];
					}

					?>

                    <ul class="ml-4 mb-0 fa-ul text-muted">
                      <li class="text-muted">  <?=$adr ?> </li>
                      <li class="text-muted"> <?=$info_client['client_cp'] ?> <?=$info_client['client_ville'] ?></li>
                    </ul>
                  </div>

                </div>
              </div>
              <div class="card-footer">
                <div class="text-center">

                  <a href="client_sal.php?carte=affiche" class="btn btn-sm btn-info">
                    <i class="fas fa-map-marker-alt"></i> Afficher sur une Carte
                  </a>
                </div>
              </div>
            </div>

            <!-- Profile Image -->

            <!-- /.card -->


            <!-- About Me Box -->
            <div class="card card-primary">

              <!-- /.card-header -->
              <div class="card-body">

			   <?if($type == 5 ){?>
			  <strong><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-truck" viewBox="0 0 16 16">
  <path d="M0 3.5A1.5 1.5 0 0 1 1.5 2h9A1.5 1.5 0 0 1 12 3.5V5h1.02a1.5 1.5 0 0 1 1.17.563l1.481 1.85a1.5 1.5 0 0 1 .329.938V10.5a1.5 1.5 0 0 1-1.5 1.5H14a2 2 0 1 1-4 0H5a2 2 0 1 1-3.998-.085A1.5 1.5 0 0 1 0 10.5v-7zm1.294 7.456A1.999 1.999 0 0 1 4.732 11h5.536a2.01 2.01 0 0 1 .732-.732V3.5a.5.5 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .294.456zM12 10a2 2 0 0 1 1.732 1h.768a.5.5 0 0 0 .5-.5V8.35a.5.5 0 0 0-.11-.312l-1.48-1.85A.5.5 0 0 0 13.02 6H12v4zm-9 1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm9 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/>
</svg> Livraison </strong>

                <p class="text-primary">
                 <?=$information?>
                </p>

                <hr>

			   <?}?>




			    <?if($type == 6 ){?>

			  			  <strong><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-binoculars" viewBox="0 0 16 16">
  <path d="M3 2.5A1.5 1.5 0 0 1 4.5 1h1A1.5 1.5 0 0 1 7 2.5V5h2V2.5A1.5 1.5 0 0 1 10.5 1h1A1.5 1.5 0 0 1 13 2.5v2.382a.5.5 0 0 0 .276.447l.895.447A1.5 1.5 0 0 1 15 7.118V14.5a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 14.5v-3a.5.5 0 0 1 .146-.354l.854-.853V9.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v.793l.854.853A.5.5 0 0 1 7 11.5v3A1.5 1.5 0 0 1 5.5 16h-3A1.5 1.5 0 0 1 1 14.5V7.118a1.5 1.5 0 0 1 .83-1.342l.894-.447A.5.5 0 0 0 3 4.882V2.5zM4.5 2a.5.5 0 0 0-.5.5V3h2v-.5a.5.5 0 0 0-.5-.5h-1zM6 4H4v.882a1.5 1.5 0 0 1-.83 1.342l-.894.447A.5.5 0 0 0 2 7.118V13h4v-1.293l-.854-.853A.5.5 0 0 1 5 10.5v-1A1.5 1.5 0 0 1 6.5 8h3A1.5 1.5 0 0 1 11 9.5v1a.5.5 0 0 1-.146.354l-.854.853V13h4V7.118a.5.5 0 0 0-.276-.447l-.895-.447A1.5 1.5 0 0 1 12 4.882V4h-2v1.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5V4zm4-1h2v-.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5V3zm4 11h-4v.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V14zm-8 0H2v.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V14z"/>
</svg> Contrôle </strong>

                <p class="text-primary">
                 <?=$information?>
                </p>

                <hr>
				  <?}?>



                <strong><i class="fas fa-map-marker-alt mr-1"></i> ACCÈS AU SITE</strong>

                <p class="text-muted">
                 <?=$dom_client?>
                </p>

                <hr>

                <strong><i class="fas fa-book mr-1"></i> INSTRUCTIONS POUR LE POINTAGE</strong>

                <p class="text-muted">
                <?=$info_tel?></p>

                <hr>

                <strong><i class="fas fa-boxes"></i> PRODUITS & MATERIEL</strong>

                <p class="text-muted">

				  <?=$mat_prod?></p>
                </p>

                <hr>

                <strong><i class="far fa-file-alt mr-1"></i> INSTRUCTIONS DE TRAVAIL</strong>

                <p class="text-muted"> <?=$instr_tra?> </p>
              </div>
              <!-- /.card-body -->
            </div>
            <!-- /.card -->
          </div>
          <!-- /.col -->

          <!-- /.col -->
        </div>
        <!-- /.row -->
      </div><!-- /.container-fluid -->
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <footer class="main-footer">
    <div class="float-right d-none d-sm-block">
      <b>Version</b> 3.2.0
    </div>
    <strong>MC PRO 2022 </strong>
  </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>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
</body>
</html>

AnonSec - 2021