안효원 안효원 2021-07-12
Board complite
@2d924f435c3d6d237e1799c6c5433ad83f47593e
.idea/inspectionProfiles/Project_Default.xml
--- .idea/inspectionProfiles/Project_Default.xml
+++ .idea/inspectionProfiles/Project_Default.xml
@@ -1,7 +1,13 @@
 <component name="InspectionProjectProfileManager">
   <profile version="1.0">
     <option name="myName" value="Project Default" />
+    <inspection_tool class="CssNoGenericFontName" enabled="false" level="WARNING" enabled_by_default="false" />
     <inspection_tool class="DuplicatedCode" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
     <inspection_tool class="HtmlFormInputWithoutLabel" enabled="false" level="WARNING" enabled_by_default="false" />
+    <inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
+      <option name="processCode" value="true" />
+      <option name="processLiterals" value="true" />
+      <option name="processComments" value="true" />
+    </inspection_tool>
   </profile>
 </component>
(No newline at end of file)
config/delete.php
--- config/delete.php
+++ config/delete.php
@@ -13,6 +13,6 @@
 unlink("/home/hw/www/download/".$_GET['file']); //DB 행 삭제 시 서버측 파일까지 삭제
 
 echo "<script>alert('삭제를 완료했습니다.');</script>";
-echo "<meta http-equiv='refresh' content='0.1; url=../index.php'>";
+echo "<meta http-equiv='refresh' content='0.1; url=../main.php'>";
 
 mysqli_close($mysqli);
config/download.php
--- config/download.php
+++ config/download.php
@@ -28,4 +28,4 @@
     }
 } else{?>
     <script>alert("존재하지 않는 파일입니다.")</script>
-<?}
(No newline at end of file)
+<?php}
(No newline at end of file)
config/insert.php
--- config/insert.php
+++ config/insert.php
@@ -41,7 +41,7 @@
     if($query){
         $result = $mysqli->query($query);
         echo "<script>alert('글이 등록되었습니다.');</script>";
-        echo "<meta http-equiv='refresh' content='0.1; url=../index.php'>";
+        echo "<meta http-equiv='refresh' content='0.1; url=../main.php'>";
     }else{
         echo "FAIL";
     }
config/signIn.php
--- config/signIn.php
+++ config/signIn.php
@@ -2,7 +2,7 @@
     /**
      * @var $mysqli
      */
-    ini_set("display_errors", "1");
+    ini_set("display_errors", "0");
     include("db.config.php");
 
     /* Posted information */
config/signUpBack.php
--- config/signUpBack.php
+++ config/signUpBack.php
@@ -2,7 +2,7 @@
     /**
      * @var $mysqli
      */
-    ini_set('display_errors', '1');
+    ini_set('display_errors', '0');
     include("db.config.php");
 
     /* posted information */
index.php
--- index.php
+++ index.php
@@ -14,7 +14,8 @@
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     <title>BoardLogin</title>
     <style>
-        #page {width: 360px; height: 180px; background-color: antiquewhite; margin: 0 auto; position: absolute; top: 30%; left: 38%;}
+        #mainTitle {text-align: center; font-size: xx-large; font-family : 'Lobster'; color: brown;}
+        #page {width: 360px; height: 180px; background-color: antiquewhite; margin: 0 auto; position: absolute; top: 30%; left: 38%; border: brown dotted;}
         #title {text-align: center; font-size: larger; padding-top: 20px;}
         #inputID {display: inline; padding-left: 20%;}
         #inputPW {display: inline; padding-left: 17.7%;}
@@ -22,12 +23,13 @@
         #btnBox {text-align: center; padding-top: 30px;}
         .btn {font-weight: bolder; background-color: darkslategrey; border-style: none; color: white; height: 30px; width: 65px;}
         .btn:hover {background-color: black;}
+        #copy {text-align: right; padding-top: 20%; padding-right: 20%;}
     </style>
+    <link href="//fonts.googleapis.com/css?family=Lobster&subset=latin,latin-ext" rel="stylesheet" type="text/css">
 </head>
 <body>
-    <div id="conn">
-        <?php echo $connStatus; ?>      <!-- DB 연결 상태 표시 -->
-    </div>
+    <br>
+    <div id="mainTitle"><h1><em>PHP Board By risker</em></h1></div>
     <form id="page" method="post">
         <div id="title"><strong>LOGIN</strong></div>
         <p id="inputID">
@@ -41,4 +43,5 @@
             <input class="btn" type="submit" value="Sign Up" onclick="form.action='signUpFront.php';"/>
         </div>
     </form>
+    <div id="copy"><strong>&copy; 2021 RISKER Co. All rights reserved.</strong></div>
 </body>
main.php
--- main.php
+++ main.php
@@ -36,6 +36,9 @@
         #submit {font-weight: bolder; background-color: darkslategrey; border-style: none; color: white; height: 20px;}
         #title {text-align: center;}
         #refresh {text-decoration:none; color: black;}
+        #logoutSector {text-align: right;}
+        #btnLogout {height: 30px; font-weight: bolder; background-color: darkslategrey; border-style: none; color: white;}
+        #btnLogout:hover {background-color: black;}
         #hr {border-style: solid;}
         #table {text-align: center; width: 100%; border-collapse:collapse;}
         th {border-top: midnightblue solid; border-bottom: midnightblue solid; background-color: cadetblue;}
@@ -59,6 +62,9 @@
 </div>
 <div id="page">
     <div id="title" title="Refresh"><h1><a href="main.php" id="refresh">Notice Board</a></h1></div>
+    <div id="logoutSector">
+        <button id="btnLogout" onclick="location.href='index.php'">Logout</button>
+    </div>
     <hr id="hr">
     <div id="contents">
         <div id="contentsTop">
@@ -119,9 +125,9 @@
 
             if($page > 1){   //현재페이지가 1페이지 이상일때
                 if($text == null){
-                    echo "<a class='btnNum' href='index.php?page=1'>1... </a>";
+                    echo "<a class='btnNum' href='main.php?page=1'>1... </a>";
                 }else{
-                    echo "<a class='btnNum' href='index.php?page=1&option=$option&searchText=$text'>1... </a>";
+                    echo "<a class='btnNum' href='main.php?page=1&option=$option&searchText=$text'>1... </a>";
                 }
             }else{             //현재페이지가 1일때
                 null;
@@ -132,9 +138,9 @@
             }else{           //현재페이지가 1이 아닐때
                 $pre = $page - 1;
                 if($text == null){
-                    echo "<a class='btnNum' href='index.php?page=$pre'> 이전</a>";
+                    echo "<a class='btnNum' href='main.php?page=$pre'> 이전</a>";
                 }else{
-                    echo "<a class='btnNum' href='index.php?page=$pre&option=$option&searchText=$text'> 이전</a>";
+                    echo "<a class='btnNum' href='main.php?page=$pre&option=$option&searchText=$text'> 이전</a>";
                 }
             }
             for($i = $block_start; $i <= $block_end; $i++){
@@ -144,9 +150,9 @@
                     <?php
                 }else{             //현재 페이지가 아닌 나머지 페이지
                     if($text == null){
-                        echo "<a class='btnNum' href='index.php?page=$i'> $i </a>";
+                        echo "<a class='btnNum' href='main.php?page=$i'> $i </a>";
                     }else {
-                        echo "<a class='btnNum' href='index.php?page=$i&option=$option&searchText=$text'> $i </a>";
+                        echo "<a class='btnNum' href='main.php?page=$i&option=$option&searchText=$text'> $i </a>";
                     }
                 }
             }
@@ -155,9 +161,9 @@
             }else{                       //마지막 페이지 아닐때
                 $next = $page + 1;
                 if($text == null){
-                    echo "<a class='btnNum' href='index.php?page=$next'> 다음 </a>";
+                    echo "<a class='btnNum' href='main.php?page=$next'> 다음 </a>";
                 }else {
-                    echo "<a class='btnNum' href='index.php?page=$next&option=$option&searchText=$text'> 다음 </a>";
+                    echo "<a class='btnNum' href='main.php?page=$next&option=$option&searchText=$text'> 다음 </a>";
                 }
             }
             if($page >= $total_page){    //마지막 페이지일때
Add a comment
List