--- .idea/inspectionProfiles/Project_Default.xml
+++ .idea/inspectionProfiles/Project_Default.xml
... | ... | @@ -1,7 +1,13 @@ |
1 | 1 |
<component name="InspectionProjectProfileManager"> |
2 | 2 |
<profile version="1.0"> |
3 | 3 |
<option name="myName" value="Project Default" /> |
4 |
+ <inspection_tool class="CssNoGenericFontName" enabled="false" level="WARNING" enabled_by_default="false" /> |
|
4 | 5 |
<inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false" /> |
5 | 6 |
<inspection_tool class="HtmlFormInputWithoutLabel" enabled="false" level="WARNING" enabled_by_default="false" /> |
7 |
+ <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false"> |
|
8 |
+ <option name="processCode" value="true" /> |
|
9 |
+ <option name="processLiterals" value="true" /> |
|
10 |
+ <option name="processComments" value="true" /> |
|
11 |
+ </inspection_tool> |
|
6 | 12 |
</profile> |
7 | 13 |
</component>(No newline at end of file) |
--- config/delete.php
+++ config/delete.php
... | ... | @@ -13,6 +13,6 @@ |
13 | 13 |
unlink("/home/hw/www/download/".$_GET['file']); //DB 행 삭제 시 서버측 파일까지 삭제 |
14 | 14 |
|
15 | 15 |
echo "<script>alert('삭제를 완료했습니다.');</script>"; |
16 |
-echo "<meta http-equiv='refresh' content='0.1; url=../index.php'>"; |
|
16 |
+echo "<meta http-equiv='refresh' content='0.1; url=../main.php'>"; |
|
17 | 17 |
|
18 | 18 |
mysqli_close($mysqli); |
--- config/download.php
+++ config/download.php
... | ... | @@ -28,4 +28,4 @@ |
28 | 28 |
} |
29 | 29 |
} else{?> |
30 | 30 |
<script>alert("존재하지 않는 파일입니다.")</script> |
31 |
-<?}(No newline at end of file) |
|
31 |
+<?php}(No newline at end of file) |
--- config/insert.php
+++ config/insert.php
... | ... | @@ -41,7 +41,7 @@ |
41 | 41 |
if($query){ |
42 | 42 |
$result = $mysqli->query($query); |
43 | 43 |
echo "<script>alert('글이 등록되었습니다.');</script>"; |
44 |
- echo "<meta http-equiv='refresh' content='0.1; url=../index.php'>"; |
|
44 |
+ echo "<meta http-equiv='refresh' content='0.1; url=../main.php'>"; |
|
45 | 45 |
}else{ |
46 | 46 |
echo "FAIL"; |
47 | 47 |
} |
--- config/signIn.php
+++ config/signIn.php
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 |
/** |
3 | 3 |
* @var $mysqli |
4 | 4 |
*/ |
5 |
- ini_set("display_errors", "1"); |
|
5 |
+ ini_set("display_errors", "0"); |
|
6 | 6 |
include("db.config.php"); |
7 | 7 |
|
8 | 8 |
/* Posted information */ |
--- config/signUpBack.php
+++ config/signUpBack.php
... | ... | @@ -2,7 +2,7 @@ |
2 | 2 |
/** |
3 | 3 |
* @var $mysqli |
4 | 4 |
*/ |
5 |
- ini_set('display_errors', '1'); |
|
5 |
+ ini_set('display_errors', '0'); |
|
6 | 6 |
include("db.config.php"); |
7 | 7 |
|
8 | 8 |
/* posted information */ |
--- index.php
+++ index.php
... | ... | @@ -14,7 +14,8 @@ |
14 | 14 |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
15 | 15 |
<title>BoardLogin</title> |
16 | 16 |
<style> |
17 |
- #page {width: 360px; height: 180px; background-color: antiquewhite; margin: 0 auto; position: absolute; top: 30%; left: 38%;} |
|
17 |
+ #mainTitle {text-align: center; font-size: xx-large; font-family : 'Lobster'; color: brown;} |
|
18 |
+ #page {width: 360px; height: 180px; background-color: antiquewhite; margin: 0 auto; position: absolute; top: 30%; left: 38%; border: brown dotted;} |
|
18 | 19 |
#title {text-align: center; font-size: larger; padding-top: 20px;} |
19 | 20 |
#inputID {display: inline; padding-left: 20%;} |
20 | 21 |
#inputPW {display: inline; padding-left: 17.7%;} |
... | ... | @@ -22,12 +23,13 @@ |
22 | 23 |
#btnBox {text-align: center; padding-top: 30px;} |
23 | 24 |
.btn {font-weight: bolder; background-color: darkslategrey; border-style: none; color: white; height: 30px; width: 65px;} |
24 | 25 |
.btn:hover {background-color: black;} |
26 |
+ #copy {text-align: right; padding-top: 20%; padding-right: 20%;} |
|
25 | 27 |
</style> |
28 |
+ <link href="//fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css"> |
|
26 | 29 |
</head> |
27 | 30 |
<body> |
28 |
- <div id="conn"> |
|
29 |
- <?php echo $connStatus; ?> <!-- DB 연결 상태 표시 --> |
|
30 |
- </div> |
|
31 |
+ <br> |
|
32 |
+ <div id="mainTitle"><h1><em>PHP Board By risker</em></h1></div> |
|
31 | 33 |
<form id="page" method="post"> |
32 | 34 |
<div id="title"><strong>LOGIN</strong></div> |
33 | 35 |
<p id="inputID"> |
... | ... | @@ -41,4 +43,5 @@ |
41 | 43 |
<input class="btn" type="submit" value="Sign Up" onclick="form.action='signUpFront.php';"/> |
42 | 44 |
</div> |
43 | 45 |
</form> |
46 |
+ <div id="copy"><strong>© 2021 RISKER Co. All rights reserved.</strong></div> |
|
44 | 47 |
</body> |
--- main.php
+++ main.php
... | ... | @@ -36,6 +36,9 @@ |
36 | 36 |
#submit {font-weight: bolder; background-color: darkslategrey; border-style: none; color: white; height: 20px;} |
37 | 37 |
#title {text-align: center;} |
38 | 38 |
#refresh {text-decoration:none; color: black;} |
39 |
+ #logoutSector {text-align: right;} |
|
40 |
+ #btnLogout {height: 30px; font-weight: bolder; background-color: darkslategrey; border-style: none; color: white;} |
|
41 |
+ #btnLogout:hover {background-color: black;} |
|
39 | 42 |
#hr {border-style: solid;} |
40 | 43 |
#table {text-align: center; width: 100%; border-collapse:collapse;} |
41 | 44 |
th {border-top: midnightblue solid; border-bottom: midnightblue solid; background-color: cadetblue;} |
... | ... | @@ -59,6 +62,9 @@ |
59 | 62 |
</div> |
60 | 63 |
<div id="page"> |
61 | 64 |
<div id="title" title="Refresh"><h1><a href="main.php" id="refresh">Notice Board</a></h1></div> |
65 |
+ <div id="logoutSector"> |
|
66 |
+ <button id="btnLogout" onclick="location.href='index.php'">Logout</button> |
|
67 |
+ </div> |
|
62 | 68 |
<hr id="hr"> |
63 | 69 |
<div id="contents"> |
64 | 70 |
<div id="contentsTop"> |
... | ... | @@ -119,9 +125,9 @@ |
119 | 125 |
|
120 | 126 |
if($page > 1){ //현재페이지가 1페이지 이상일때 |
121 | 127 |
if($text == null){ |
122 |
- echo "<a class='btnNum' href='index.php?page=1'>1... </a>"; |
|
128 |
+ echo "<a class='btnNum' href='main.php?page=1'>1... </a>"; |
|
123 | 129 |
}else{ |
124 |
- echo "<a class='btnNum' href='index.php?page=1&option=$option&searchText=$text'>1... </a>"; |
|
130 |
+ echo "<a class='btnNum' href='main.php?page=1&option=$option&searchText=$text'>1... </a>"; |
|
125 | 131 |
} |
126 | 132 |
}else{ //현재페이지가 1일때 |
127 | 133 |
null; |
... | ... | @@ -132,9 +138,9 @@ |
132 | 138 |
}else{ //현재페이지가 1이 아닐때 |
133 | 139 |
$pre = $page - 1; |
134 | 140 |
if($text == null){ |
135 |
- echo "<a class='btnNum' href='index.php?page=$pre'> 이전</a>"; |
|
141 |
+ echo "<a class='btnNum' href='main.php?page=$pre'> 이전</a>"; |
|
136 | 142 |
}else{ |
137 |
- echo "<a class='btnNum' href='index.php?page=$pre&option=$option&searchText=$text'> 이전</a>"; |
|
143 |
+ echo "<a class='btnNum' href='main.php?page=$pre&option=$option&searchText=$text'> 이전</a>"; |
|
138 | 144 |
} |
139 | 145 |
} |
140 | 146 |
for($i = $block_start; $i <= $block_end; $i++){ |
... | ... | @@ -144,9 +150,9 @@ |
144 | 150 |
<?php |
145 | 151 |
}else{ //현재 페이지가 아닌 나머지 페이지 |
146 | 152 |
if($text == null){ |
147 |
- echo "<a class='btnNum' href='index.php?page=$i'> $i </a>"; |
|
153 |
+ echo "<a class='btnNum' href='main.php?page=$i'> $i </a>"; |
|
148 | 154 |
}else { |
149 |
- echo "<a class='btnNum' href='index.php?page=$i&option=$option&searchText=$text'> $i </a>"; |
|
155 |
+ echo "<a class='btnNum' href='main.php?page=$i&option=$option&searchText=$text'> $i </a>"; |
|
150 | 156 |
} |
151 | 157 |
} |
152 | 158 |
} |
... | ... | @@ -155,9 +161,9 @@ |
155 | 161 |
}else{ //마지막 페이지 아닐때 |
156 | 162 |
$next = $page + 1; |
157 | 163 |
if($text == null){ |
158 |
- echo "<a class='btnNum' href='index.php?page=$next'> 다음 </a>"; |
|
164 |
+ echo "<a class='btnNum' href='main.php?page=$next'> 다음 </a>"; |
|
159 | 165 |
}else { |
160 |
- echo "<a class='btnNum' href='index.php?page=$next&option=$option&searchText=$text'> 다음 </a>"; |
|
166 |
+ echo "<a class='btnNum' href='main.php?page=$next&option=$option&searchText=$text'> 다음 </a>"; |
|
161 | 167 |
} |
162 | 168 |
} |
163 | 169 |
if($page >= $total_page){ //마지막 페이지일때 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?