1 Star 1 Fork 0

刁小帅/weblove

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
yinyue.php 13.80 KB
一键复制 编辑 原始数据 按行查看 历史
刁小帅 提交于 2019-01-17 17:20 . 111
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<?php include("plugin/config.php");?>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>音乐外链工具_<?php echo htmlspecialchars(urldecode($title)); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?php echo htmlspecialchars(urldecode($title)); ?>是一款全自动在线网页制作工具,使用144G核心技术,国内顶尖自动化网页制作系统,只需选择模板一键生成即可。可制作一系列个人网页、表白网页、HTML5网页等等,人人都能做网页。" />
<meta name="keywords" content="在线网页制作,个人网页制作,表白网页制作,祝福网页制作,免费网页制作,网页一键生成" />
<!-- Animate.css -->
<link rel="stylesheet" href="css/animate.css">
<!-- Flexslider -->
<link rel="stylesheet" href="css/flexslider.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Magnific Popup -->
<link rel="stylesheet" href="css/magnific-popup.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<!-- Styleswitcher ( This style is for demo purposes only, you may delete this anytime. ) -->
<link rel="stylesheet" id="theme-switch" href="css/style.css">
<!-- End demo purposes only -->
<!-- Modernizr JS -->
<script src="js/modernizr-2.6.2.min.js"></script>
</head>
<?php
session_start();
error_reporting(0);
date_default_timezone_set("PRC");
header("Content-Type: text/html; charset=UTF-8");
if( empty($_POST['ip'])){
$_POST['ip']='暧昧/薛之谦';
}
$str = htmlspecialchars($_POST['ip']);
function myTrim($str)//清楚所有空号 换行符
{
$search = array(" "," ","\n","\r","\t");
$replace = array("","","","","");
return str_replace($search, $replace, $str);
}
$ip = myTrim($str);
if ($ip) {
$url = "http://s.music.163.com/search/get/?type=1&s=". $ip ."&limit=20";
$li = file_get_contents($url);
$lis = json_decode($li,true);
if ($lis['code'] == '500') {
echo '<h1>暂无数据</h1>';
sleep(3);
header("Location:./index.php");
die;
} else {
$arr = array();
foreach ($lis as $key => $value) {
$arr[] = $value['songs'];
}
$ba = array();
foreach ($arr[0] as $k => $v) {
$ba[$k]['name'] = $v['name'];
$ba[$k]['mice'] = $v['audio'];
if (!empty($v['artists'][0])) {
$ba[$k]['zqr'] = $v['artists'][0]['name'];
} else {
$ba[$k]['zqr'] = '暂无歌手';
}
}
}
}
?>
<body>
<!-- Loader -->
<div class="fh5co-loader"></div>
<!--Baidu display logo-->
<div class="dnone"><img width="121" src="images/nav-meiti.jpg" alt="logo" /></div>
<!--Baidu display logo END-->
<div id="fh5co-page">
<section id="fh5co-header">
<div class="container">
<nav role="navigation">
<ul class="pull-left left-menu">
<li><a href="geren.php">个人网页</a></li>
<li><a href="biaobai.php">表白网页</a></li>
<li><a href="quwei.php">趣味网页</a></li>
</ul>
<h1 id="fh5co-logo"><a href="./"><?php echo htmlspecialchars(urldecode($logo)); ?><span>.</span></a></h1>
<ul class="pull-right right-menu">
<li><a href="<?php echo htmlspecialchars(urldecode($right_top_url_1)); ?>"><?php echo htmlspecialchars(urldecode($right_top_title_1)); ?></a></li>
<li class="fh5co-cta-btn"><a id="login" href="#" data-toggle="modal" data-target="#myModal">贵宾登录</a></li>
</ul>
<ul class="zhong dnone">
<li><a href="./">返回首页</a></li>
</ul>
</nav>
</div>
</section>
<!-- #fh5co-header -->
<section id="fh5co-hero" class="no-js-fullheight" style="background-image: url(images/nav-meiti.jpg);" data-next="yes">
<div class="fh5co-overlay"></div>
<div class="container">
<div class="fh5co-intro no-js-fullheight">
<div class="fh5co-intro-text">
<div class="fh5co-center-position">
<h2 class="animate-box">音乐外链工具</h2>
<h3 class="animate-box">Music URL tool</h3>
</div>
</div>
</div>
</div>
<div class="fh5co-learn-more animate-box"> <a href="#" class="scroll-btn"> <span class="text">搜索音乐</span> <span class="arrow"><i class="icon-chevron-down"></i></span> </a> </div>
</section>
<!-- END #fh5co-hero -->
<section id="fh5co-projects">
<div class="container">
<table class="table table-bordered" >
<tbody>
<tr>
<div class="col-md-14 column">
<form action="yinyue.php" method="post">
<br>
<div class="input-group animate-box" style="width: 100%;"> <span class="input-group-addon input-lg" style="width: 80px;">歌名/歌手</span>
<input class="form-control input-lg " type="search" placeholder="歌曲名/歌手名" value="<?php echo $_POST['ip'] ?>" id="ip" name="ip">
</div>
<div class="animate-box"><center><span>(正确搜索格式:歌曲名/歌手名 注意中间斜杠,如:演员/薛之谦。搜索歌手格式:/歌手名。)</span></center></div>
<br>
<div>
<button id="but" type="submit" class="btn btn-primary btn-block animate-box">搜索外链地址</button>
</div>
</form>
</div>
</tr>
</tbody>
<br>
</table>
<!--换行-->
<table class="table table-bordered animate-box">
<tbody>
<tr>
<thead>
<tr>
<th><center>
歌曲名称
</center></th>
<th><center>
演唱歌手
</center></th>
<th><center>
外链URL地址
</center></th>
</tr>
</thead>
<tbody >
<?php foreach ($ba as $k => $v): ?>
<tr class="am-active">
<td style="word-break:break-all"><center>
<?php echo $v['name'];?>
</center></td>
<td style="word-break:break-all"><center>
<?php echo $v['zqr'];?>
</center></td>
<td style="word-break:break-all"><center>
<?php echo $v['mice'];?>
</center></td>
</tr>
<?php endforeach; ?>
</tbody>
</tr>
</tbody>
</table>
</div>
</section>
<!-- END #fh5co-projects -->
<footer id="fh5co-footer">
<div class="container">
<div class="row row-bottom-padded-md">
<div class="col-md-3 col-sm-6 col-xs-12 animate-box">
<div class="fh5co-footer-widget">
<h3>模板分类</h3>
<ul class="fh5co-links">
<li><a href="geren.php" target="_blank">个人网页制作</a></li>
<li><a href="biaobai.php" target="_blank">表白网页制作</a></li>
<li><a href="quwei.php" target="_blank">趣味网页制作</a></li>
</ul>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 animate-box">
<div class="fh5co-footer-widget">
<h3>技术支持</h3>
<ul class="fh5co-links">
<li><a href="tupian.php" target="_blank">图片外链</a></li>
<li><a href="yinyue.php" target="_blank">音乐外链</a></li>
<li><a href="liuyan.php" target="_blank">留言反馈</a></li>
</ul>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 animate-box">
<div class="fh5co-footer-widget">
<h3>关于我们</h3>
<p>客服QQ:<a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo htmlspecialchars(urldecode($qq)); ?>&site=qq&menu=yes" target="_blank" title="QQ号:<?php echo htmlspecialchars(urldecode($qq)); ?>"><?php echo htmlspecialchars(urldecode($qq)); ?></a><br><br>
E-mail:<a href="mailto:<?php echo htmlspecialchars(urldecode($email)); ?>"><?php echo htmlspecialchars(urldecode($email)); ?></a>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 animate-box">
<div class="fh5co-footer-widget">
<h3>二维码</h3>
<div class="col-md-8 col-sm-6 col-xs-4">
<img src="<?php echo htmlspecialchars(urldecode($footewm)); ?>" class="img-thumbnail img-responsive">
</div>
</div>
</div>
</div>
</div>
<div class="fh5co-copyright animate-box">
<div class="container">
<div class="row">
<div class="col-md-12">
<p class="fh5co-left"><small>&copy; 2017 <a href="./" target="_blank"><?php echo htmlspecialchars(urldecode($title)); ?></a> Corporation.&nbsp;<?php echo urldecode($tonji); ?></small></p>
<p class="fh5co-right"><small class="fh5co-right"><a><?php echo htmlspecialchars(urldecode($right_foot)); ?></a></small></p>
</div>
</div>
</div>
</div>
</footer>
<!-- END #fh5co-footer -->
</div>
<!-- END #fh5co-page -->
<!-- End demo purposes only -->
<!-- VIP membership system -->
<script src="js/vip.js"></script>
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!-- jQuery Easing -->
<script src="js/jquery.easing.1.3.js"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js"></script>
<!-- Waypoints -->
<script src="js/jquery.waypoints.min.js"></script>
<!-- Flexslider -->
<script src="js/jquery.flexslider-min.js"></script>
<!-- Magnific Popup -->
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/magnific-popup-options.js"></script>
<!-- For demo purposes only styleswitcher ( You may delete this anytime ) -->
<script src="js/jquery.style.switcher.js"></script>
<!-- Main JS (Do not remove) -->
<script src="js/main.js"></script>
<script src="js/jquery.cookie.js"></script>
<script>
$(function(){
if ( $.cookie('layoutCookie') != '' ) {
$('body').addClass($.cookie('layoutCookie'));
}
$('a[data-layout="boxed"]').click(function(event){
event.preventDefault();
$.cookie('layoutCookie', 'boxed', { expires: 7, path: '/'});
$('body').addClass($.cookie('layoutCookie')); // the value is boxed.
});
$('a[data-layout="wide"]').click(function(event){
event.preventDefault();
$('body').removeClass($.cookie('layoutCookie')); // the value is boxed.
$.removeCookie('layoutCookie', { path: '/' }); // remove the value of our cookie 'layoutCookie'
});
});
</script>
<!-- 模态框(Modal) -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content logintc">
<ul id="myTab" class="nav nav-tabs">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> &times; </button>
<li class="active"> <a href="#gblogin" data-toggle="tab"><span class="glyphicon glyphicon-user"></span>贵宾登录</a> </li>
<li><a href="#update" data-toggle="tab"><span class="glyphicon glyphicon-cog"></span>修改密码</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="gblogin">
<div class="modal-body">
<div class="row">
<form method="post" action="plugin/vip.php">
<input type="hidden" name="login" value="1" />
<div class="col-md-12">
<div class="form-group">
<input id="username" name="username" type="text" class="form-control" maxlength="20" placeholder="请输入登录账号" required />
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input id="password" name="password" type="password" class="form-control" placeholder="请输入登录密码" maxlength="30" required />
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label class="baoliu">
<input type="checkbox" name="loginbl">登入保留一星期
</label>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input type="button" class="btn btn-default" onclick="window.open('zhuce.php','_blank')" value="注册账户" />
<input type="submit" class="btn btn-primary" value="立即登录" />
</div>
</div>
</form>
</div>
</div>
</div>
<div class="tab-pane fade" id="update">
<div class="modal-body">
<div class="row">
<form method="post" action="plugin/vip.php">
<input type="hidden" name="update" value="1" />
<div class="col-md-12">
<div class="form-group">
<input id="username" name="username" type="text" class="form-control" maxlength="20" placeholder="请输入账号" required />
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input id="password" name="password" type="password" class="form-control" placeholder="请输入旧密码" maxlength="30" required />
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input id="newpassword" name="newpassword" type="password" class="form-control" placeholder="请输入新密码" maxlength="30" required />
<span class="help-block text-center">(小提示:密码忘记将无法找回,请慎重设置。)</span>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input type="submit" class="btn btn-primary" value="立即修改" />
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭窗口</button>
</div>
</div>
</div>
</div>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/fireboy38/weblove.git
git@gitee.com:fireboy38/weblove.git
fireboy38
weblove
weblove
master

搜索帮助