Add Web Resource to Repo.
And I am going to the cyber bar as I forgot to take my power supplier.
This commit is contained in:
parent
c9b4cc28f0
commit
4d0aad04ff
|
@ -54,6 +54,7 @@
|
|||
<Unit filename="MySQLWrapper/MySQLInclude.h" />
|
||||
<Unit filename="MySQLWrapper/MySQLWrapper.cpp" />
|
||||
<Unit filename="MySQLWrapper/MySQLWrapper.h" />
|
||||
<Unit filename="addbooktype.cpp" />
|
||||
<Unit filename="json.hpp" />
|
||||
<Unit filename="mysql_include/big_endian.h" />
|
||||
<Unit filename="mysql_include/binary_log_types.h" />
|
||||
|
@ -119,7 +120,6 @@
|
|||
<Unit filename="mysql_include/thr_mutex.h" />
|
||||
<Unit filename="mysql_include/thr_rwlock.h" />
|
||||
<Unit filename="mysql_include/typelib.h" />
|
||||
<Unit filename="search.cpp" />
|
||||
<Extensions>
|
||||
<code_completion />
|
||||
<envvars />
|
||||
|
|
|
@ -1,45 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||
<CodeBlocks_layout_file>
|
||||
<FileVersion major="1" minor="0" />
|
||||
<ActiveTarget name="Debug" />
|
||||
<File name="HTTPWrapper\Singleton.hpp" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="21" topLine="27" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Response.h" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="12" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Session.cpp" open="1" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1523" topLine="61" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Session.h" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="549" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="MySQLWrapper\MySQLWrapper.h" open="1" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1085" topLine="30" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Request.h" open="1" top="0" tabpos="11" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<ActiveTarget name="Release" />
|
||||
<File name="HTTPWrapper\Request.h" open="1" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="159" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="search.cpp" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="HTTPWrapper\Session.h" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1070" topLine="34" />
|
||||
<Cursor1 position="562" topLine="7" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Response.cpp" open="1" top="0" tabpos="13" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="HTTPWrapper\Response.cpp" open="1" top="0" tabpos="11" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="560" topLine="35" />
|
||||
<Cursor1 position="560" topLine="30" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="MySQLWrapper\MySQLInclude.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
|
@ -47,34 +22,59 @@
|
|||
<Cursor1 position="66" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\CookieVec.cpp" open="1" top="1" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="HTTPWrapper\Util.h" open="1" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="1" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="927" topLine="42" />
|
||||
<Cursor1 position="867" topLine="12" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="MySQLWrapper\MySQLWrapper.cpp" open="0" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="2025" topLine="99" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\CookieVec.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="2013" topLine="45" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Util.h" open="1" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="3" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="767" topLine="15" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Request.cpp" open="1" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="HTTPWrapper\Request.cpp" open="1" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="3128" topLine="92" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Util.cpp" open="1" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="HTTPWrapper\Singleton.hpp" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="3388" topLine="132" />
|
||||
<Cursor1 position="21" topLine="27" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Util.cpp" open="1" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="3294" topLine="132" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="addbooktype.cpp" open="1" top="1" tabpos="14" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="192" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\CookieVec.cpp" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="960" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\CookieVec.h" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="2013" topLine="10" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Response.h" open="1" top="0" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="76" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="HTTPWrapper\Session.cpp" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="2717" topLine="117" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="MySQLWrapper\MySQLWrapper.cpp" open="1" top="0" tabpos="13" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="2643" topLine="96" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="MySQLWrapper\MySQLWrapper.h" open="1" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="562" topLine="20" />
|
||||
</Cursor>
|
||||
</File>
|
||||
</CodeBlocks_layout_file>
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
#include "Session.h"
|
||||
#include "Util.h"
|
||||
#include "json.hpp"
|
||||
using namespace std;
|
||||
using json = nlohmann::json;
|
||||
|
||||
int main()
|
||||
{
|
||||
Request req;
|
||||
Session se(req);
|
||||
Response res;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
14
web/booksys/install-failed.html
Normal file
14
web/booksys/install-failed.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE>
|
||||
<html>
|
||||
<head>
|
||||
<title>安装失败</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>出现了一些问题导致安装无法进行:</p>
|
||||
<p>错误代码: {ErrCode}</p>
|
||||
<p>错误信息: {ErrMsg}</p>
|
||||
<p><a href="install.html">返回</a></p>
|
||||
</body>
|
||||
</html>
|
13
web/booksys/install-success.html
Normal file
13
web/booksys/install-success.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE>
|
||||
<html>
|
||||
<head>
|
||||
<title>安装成功</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>你已经安装好了BookSystem.</p>
|
||||
<p>现在开始使用吧!</p>
|
||||
<p><a href="index.html">前往主页</a></p>
|
||||
</body>
|
||||
</html>
|
29
web/booksys/install.html
Normal file
29
web/booksys/install.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE>
|
||||
<html>
|
||||
<head>
|
||||
<title>BookSystem 安装</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style>
|
||||
div.login_panel
|
||||
{
|
||||
text-align:center;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="login_panel">
|
||||
<p>欢迎使用BookSystem安装程序!</p>
|
||||
<form id="login_panel" action="http://127.0.0.1/cgi-bin/bs-install.cgi" method=post>
|
||||
<p>数据库地址: <input type="text" value="127.0.0.1" name="dbaddr"></p>
|
||||
<p>数据库端口: <input type="text" value="3306" name="dbport"></p>
|
||||
<p>数据库用户名: <input type="text" value="root" name="dbuser"></p>
|
||||
<p>数据库密码: <input type="password" name="dbpass"></p>
|
||||
<p>数据库名: <input type="text" name="dbname"></p>
|
||||
<p>数据表前缀: <input type="text" value="bs" name="tbprefix"></p>
|
||||
<p><input type="submit" value="Install!"></p>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
4
web/js/jquery.js
vendored
Normal file
4
web/js/jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user