-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmusic_go.php
29 lines (29 loc) · 1.03 KB
/
music_go.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
session_start();
require_once('../../../init.php');
$db = Database::getInstance();
if($_GET['urls']){
$url = $_GET['urls'];
$sql = " SELECT `music_id` FROM `".DB_PREFIX."music` WHERE `id` = '".$url."' LIMIT 1";
$rs_result = $db -> query($sql);
if($go = $db ->fetch_array($rs_result)){
$real_url = BLOG_URL."content/plugins/music-master/url.php?url=".$go['music_id']."";
header('Location: ' . $real_url);
}else{
header('HTTP/1.0 404 Not Found');
emMsg('未找到,估计还没会地球,˚‧º·(˚ ˃̣̣̥᷄⌓˂̣̣̥᷅ )‧º·˚','javascript:history.back(-1);');
}
}
if($_GET['pic']){
$pic=$_GET['pic'];
$sql2 = " SELECT `music_pic` FROM `".DB_PREFIX."music` WHERE `id` = '".$pic."' LIMIT 1";
$rs_r = $db -> query($sql2);
if($po = $db ->fetch_array($rs_r)){
$real_url = $po['music_pic'];
header('Location: ' . $real_url);
}else{
header('HTTP/1.0 404 Not Found');
emMsg('未找到,估计还没会地球,˚‧º·(˚ ˃̣̣̥᷄⌓˂̣̣̥᷅ )‧º·˚','javascript:history.back(-1);');
}
}
?>