<?php
error_reporting(0);
session_start();
@header('Content-Type: text/html; charset=UTF-8');
$do=isset($_GET['do'])?$_GET['do']:'0';
if(file_exists('install.lock')){
exit('您已经安装过,如需重新安装请删除<font color=red> install/install.lock </font>文件后再安装!');
}
function checkfunc($f,$m = false) {
if (function_exists($f)) {
return '<font color="green">可用</font>';
} else {
if ($m == false) {
return '<font color="black">不支持</font>';
} else {
return '<font color="red">不支持</font>';
}
}
}
function checkclass($f,$m = false) {
if (class_exists($f)) {
return '<font color="green">可用</font>';
} else {
if ($m == false) {
return '<font color="black">不支持</font>';
} else {
return '<font color="red">不支持</font>';
}
}
}
function clearpack() {
$array=glob('../release_*');
foreach($array as $dir){
unlink($dir);
}
$array=glob('../update_*');
foreach($array as $dir){
unlink($dir);
}
}
function random($length, $numeric = 0) {
$seed = base_convert(md5(microtime().$_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35);
$seed = $numeric ? (str_replace('0', '', $seed).'012340567890') : ($seed.'zZ'.strtoupper($seed));
$hash = '';
$max = strlen($seed) - 1;
for($i = 0; $i < $length; $i++) {
$hash .= $seed[mt_rand(0, $max)];
}
return $hash;
}
?>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no,minimal-ui">
<title>林天恒博客(ayy777.com)工作室软件库系统</title>
<link href="//lib.baomitu.com/twitter-bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<nav class="navbar navbar-fixed-top navbar-default">
<div class="container">
<div class="navbar-header">
<span class="navbar-brand">安装向导</span>
</div>
</div>
</nav>
<div class="container" style="padding-top:60px;">
<div class="col-xs-12 col-sm-8 col-lg-6 center-block" style="float: none;">
<?php if($do=='0'){
$_SESSION['checksession']=1;
?>
<div class="panel panel-primary">
<div class="panel-heading" style="background: #15A638;">
<h3 class="panel-title" align="center">用户使用说明</h3>
</div>
<div class="panel-body">
<p><iframe src="lisence.html" style="width:100%;height:465px;"></iframe></p>
<p align="center"><a id="agreebtn" class="btn btn-primary" href="index.php?do=1">开始安装</a></p>
</div>
</div>
<?php }elseif($do=='1'){?>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title" align="center">环境检查</h3>
</div>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 10%">
<span class="sr-only">10%</span>
</div>
</div>
<table class="table table-striped">
<thead>
<tr>
<th style="width:20%">函数检测</th>
<th style="width:15%">需求</th>
<th style="width:15%">当前</th>
<th style="width:50%">用途</th>
</tr>
</thead>
<tbody>
<tr>
<td>PHP 7.3+</td>
<td>必须</td>
<td><?php echo version_compare(PHP_VERSION, '7.3.0', '>')?'<font color="green">'.PHP_VERSION.'</font>':'<font color="red">'.PHP_VERSION.'</font>'; ?></td>
<td>PHP版本支持</td>
</tr>
<tr>
<td>curl_exec()</td>
<td>必须</td>
<td><?php echo checkfunc('curl_exec',true); ?></td>
<td>抓取网页</td>
</tr>
<tr>
<td>file_get_contents()</td>
<td>必须</td>
<td><?php echo checkfunc('file_get_contents',true); ?></td>
<td>读取文件</td>
</tr>
<tr>
<td>PDO</td>
<td>必须</td>
<td><?php echo checkclass('PDO',true); ?></td>
<td>数据库连接</td>
</tr>
<tr>
<td>session</td>
<td>必须</td>
<td><?php echo $_SESSION['checksession']==1?'<font color="green">可用</font>':'<font color="red">不支持</font>'; ?></td>
<td>PHP必备功能</td>
</tr>
</tbody>
</table>
<p><span><a class="btn btn-primary" href="index.php?do=0"><<上一步</a></span>
<span style="float:right"><a class="btn btn-primary" href="index.php?do=2" align="right">下一步>></a></span></p>
</div>
<?php }elseif($do=='2'){?>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title" align="center">数据库配置</h3>
</div>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 30%">
<span class="sr-only">30%</span>
</div>
</div>
<div class="panel-body">
<?php
if(defined("SAE_ACCESSKEY"))
echo <<<HTML
检测到您使用的是SAE空间,支持一键安装,请点击 <a href="?do=3">下一步</a>
HTML;
else
echo <<<HTML
<form action="?do=3" class="form-sign" method="post">
<label for="name">数据库地址:</label>
<input type="text" class="form-control" name="db_host" value="localhost">
<label for="name">数据库端口:</label>
<input type="text" class="form-control" name="db_port" value="3306">
<label for="name">数据库用户名:</label>
<input type="text" class="form-control" name="db_user">
<label for="name">数据库密码:</label>
<input type="text" class="form-control" name="db_pwd">
<label for="name">数据库名:</label>
<input type="text" class="form-control" name="db_name">
<br><input type="submit" class="btn btn-primary btn-block" name="submit" value="保存配置">
</form><br/>
(如果已事先填写好config.php相关数据库配置,请 <a href="?do=3&jump=1">点击此处</a> 跳过这一步!)
HTML;
?>
</div>
</div>
<?php }elseif($do=='3'){
?>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title" align="center">保存数据库</h3>
</div>
<div class="progress progress-striped">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 50%">
<span class="sr-only">50%</span>
</div>
</div>
<div class="panel-body">
<?php
if(defined("SAE_ACCESSKEY") || $_GET['jump']==1){
include_once '../config.php';
if(!$dbconfig['user']||!$dbconfig['pwd']||!$dbconfig['dbname']) {
echo '<div class="alert alert-danger">请先填写好数据库并保存后再安装!<hr/><a href="javascript:history.back(-1)"><< 返回上一页</a></div>';
} else {
if(!$con=mysqli_connect($dbconfig['host'],$dbconfig['user'],$dbconfig['pwd'],$dbconfig['dbname'],$dbconfig['port'])){
if(mysqli_connect_errno()==2002)
echo '<div class="alert alert-warning">连接数据库失败,数据库地址填写错误!</div>';
elseif(mysqli_connect_errno()==1045)
echo '<div class="alert alert-warning">连接数据库失败,数据库用户名或密码填写错误!</div>';
elseif(mysqli_connect_errno()==1049)
echo '<div class="alert alert-warning">连接数据库失败,数据库名不存在!</div>';
else
echo '<div class="alert alert-warning">连接数据库失败,['.mysqli_connect_errno().']'.mysqli_connect_error().'</div>';
}elseif(version_compare(mysqli_get_server_info($con), '5.5.3', '<')){
echo '<div class="alert alert-warning">MySQL数据库版本太低,需要MySQL 5.6或以上版本!</div>';
}else{
echo '<div class="alert alert-success">数据库配置文件保存成功!</div>';
if(mysqli_query($con, "select * from ".$dbconfig['dbqz']."_config where 1")==FALSE)
echo '<p align="right"><a class="btn btn-primary btn-block" href="?do=4">创建数据表>></a></p>';
else
echo '<div class="list-group-item list-group-item-info">系统检测到你已安装过云溪软件库系统</div>
<div class="list-group-item">
<a href="?do=6" class="btn btn-block btn-info">跳过安装</a>
</div>
<div class="list-group-item">
<a href="?do=4" onclick="if(!confirm(\'全新安装将会清空所有数据,是否继续?\'))
没有合适的资源?快使用搜索试试~ 我知道了~
新版仿蓝奏云可以做软件库PHP源码
共250个文件
js:170个
php:31个
css:15个
需积分: 0 1 下载量 62 浏览量
2023-04-25
09:52:54
上传
评论
收藏 9.78MB ZIP 举报
温馨提示
安装教程: 访问域名安装(不要用8.0以上php 不然会创建不了数据库) 2023/2/22 修复了搜索功能【未测试源码,仅供参考学习】 2023/2/22 修复无法下载文件和下载文件为空 更新功能如下 1.增加后台 2.可在后台上传文件及删除文件等信息修改 3.目前仅支持apk,zip,exe,rat,txt文件 4.增加下载次数统计(每日下载和总下载) 5.增加文件下载单页
资源推荐
资源详情
资源评论
收起资源包目录
新版仿蓝奏云可以做软件库PHP源码 (250个子文件)
style.min.css 110KB
bootstrap.min.css 106KB
materialdesignicons.min.css 85KB
animate.css 71KB
bootstrap-datepicker3.css 22KB
jquery-confirm.min.css 22KB
bootstrap-datepicker3.min.css 21KB
ion.rangeSlider.min.css 11KB
bootstrap-datetimepicker.css 9KB
l.css 9KB
bootstrap-datetimepicker.min.css 8KB
bootstrap-colorpicker.css 5KB
bootstrap-colorpicker.min.css 4KB
l.css 1KB
jquery.tagsinput.min.css 903B
id.dat 2B
materialdesignicons.eot 286KB
.htaccess 0B
lisence.html 1KB
1.jpg 2.43MB
76.jpg 2.07MB
2.jpg 1.33MB
65.jpg 1.17MB
3.jpg 1.16MB
从这联系我.jpg 59KB
从这联系我.jpg 59KB
从这联系我.jpg 59KB
icon.jpg 19KB
Chart.js 536KB
bootstrap-datetimepicker.js 101KB
jquery.min.js 82KB
bootstrap-datepicker.js 57KB
ion.rangeSlider.min.js 40KB
bootstrap-datetimepicker.min.js 37KB
bootstrap.min.js 36KB
moment.min.js 35KB
bootstrap-datepicker.min.js 33KB
bootstrap-colorpicker.js 32KB
chosen.jquery.min.js 28KB
jquery-confirm.min.js 28KB
bootstrap-colorpicker.min.js 18KB
perfect-scrollbar.min.js 18KB
bootstrap-notify.min.js 8KB
jquery.bootstrap.wizard.min.js 7KB
ru.js 6KB
jquery.tagsinput.min.js 6KB
uk.js 6KB
sl.js 6KB
be.js 6KB
main.min.js 6KB
sk.js 6KB
cs.js 6KB
ar.js 5KB
bo.js 5KB
lb.js 5KB
zh-cn.js 5KB
lt.js 5KB
ne.js 5KB
ka.js 5KB
bs.js 4KB
hr.js 4KB
mr.js 4KB
sr-cyrl.js 4KB
hi.js 4KB
ta.js 4KB
is.js 4KB
bn.js 4KB
hy-am.js 4KB
me.js 4KB
sr.js 4KB
el.js 4KB
hu.js 4KB
pl.js 4KB
lv.js 4KB
fi.js 4KB
fa.js 3KB
zh-tw.js 3KB
ar-sa.js 3KB
mk.js 3KB
ml.js 3KB
my.js 3KB
bg.js 3KB
br.js 3KB
az.js 3KB
tzl.js 3KB
th.js 3KB
et.js 3KB
he.js 3KB
jv.js 3KB
tr.js 3KB
id.js 3KB
es.js 3KB
de-at.js 3KB
ca.js 3KB
cy.js 3KB
si.js 3KB
ms-my.js 3KB
ms.js 3KB
de.js 3KB
tzm.js 3KB
共 250 条
- 1
- 2
- 3
资源评论
小米创业
- 粉丝: 833
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功