示例#1
0
<?php

require "database.php";
if (isset($_GET["s"])) {
    $sound = Sound::forName($_GET["s"]);
    if (isset($_GET["d"])) {
        echo Sound::_downloads($sound);
    }
}
示例#2
0
<?php

require "php/database.php";
$name = isset($_GET["n"]) ? $_GET["n"] : "none";
$sound = Sound::forName($name);
if ($name === "none") {
    header('Location: index.php');
}
if (is_null($sound->name)) {
    header('Location: index.php?error=1&sound=' . $name);
}
?>
<!DOCTYPE html>
<html lang="es">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Listen the sounds <?php 
echo $sound->name;
?>
 | By VertexMC.net</title>
		<meta name="description" content="Listen to the sounds of minecraft | By VertexMC.net">
		<meta name="author" content="JessHilario.net">
		<link rel="icon" href="img/favicon.ico">
		<link rel="stylesheet" href="css/mediaelementplayer.css" />
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="css/style.css">
		<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
			<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>