안효원 안효원 2021-07-05
기타 페이지 접근제한 (세션사용해서 접근제한 중)
@4e97746ba53b99096d2263592566e9001537ec2a
.idea/inspectionProfiles/Project_Default.xml
--- .idea/inspectionProfiles/Project_Default.xml
+++ .idea/inspectionProfiles/Project_Default.xml
@@ -1,20 +1,7 @@
 <component name="InspectionProjectProfileManager">
   <profile version="1.0">
     <option name="myName" value="Project Default" />
-    <inspection_tool class="CssUnknownProperty" enabled="false" level="WARNING" enabled_by_default="false">
-      <option name="myCustomPropertiesEnabled" value="false" />
-      <option name="myIgnoreVendorSpecificProperties" value="false" />
-      <option name="myCustomPropertiesList">
-        <value>
-          <list size="0" />
-        </value>
-      </option>
-    </inspection_tool>
     <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="HtmlMissingClosingTag" enabled="false" level="INFORMATION" enabled_by_default="false" />
-    <inspection_tool class="RequiredAttributes" enabled="false" level="WARNING" enabled_by_default="false">
-      <option name="myAdditionalRequiredHtmlAttributes" value="" />
-    </inspection_tool>
   </profile>
 </component>
(No newline at end of file)
config/replySelect.php
--- config/replySelect.php
+++ config/replySelect.php
@@ -2,7 +2,7 @@
 /**
  * @var $mysqli
  */
-ini_set("display_errors",1);
+ini_set("display_errors",0);
 include("db.config.php");
 
 $col_num = $_GET['whereValue'];
main.php
--- main.php
+++ main.php
@@ -16,7 +16,7 @@
 ini_set("display_errors", 1);
 include("config/select.php");
 if(!preg_match("/".$_SERVER['HTTP_HOST']."/i",$_SERVER['HTTP_REFERER'])){
-    exit('Access Diny!!');
+    exit('Access Deny!!');
 }
 ?>
 <!doctype html>
signUpFront.php
--- signUpFront.php
+++ signUpFront.php
@@ -2,8 +2,11 @@
 /**
  * @var $connStatus
  */
-    ini_set("display_errors", 1);
+    ini_set("display_errors", 0);
     include("config/db.config.php");
+    if(!preg_match("/".$_SERVER['HTTP_HOST']."/i",$_SERVER['HTTP_REFERER'])){
+        exit('Access Deny!!');
+    }
 ?>
 <!doctype html>
 <html lang="ko">
updateWrite.php
--- updateWrite.php
+++ updateWrite.php
@@ -5,6 +5,9 @@
  */
 ini_set("display_errors", 0);
 include("config/clickedSelect.php");
+if(!preg_match("/".$_SERVER['HTTP_HOST']."/i",$_SERVER['HTTP_REFERER'])){
+    exit('Access Deny!!');
+}
 ?>
 <!doctype html>
 <html lang="ko">
view.php
--- view.php
+++ view.php
@@ -11,6 +11,9 @@
 ini_set("display_errors", 0);
 include("config/clickedSelect.php");
 include("config/replySelect.php");
+if(!preg_match("/".$_SERVER['HTTP_HOST']."/i",$_SERVER['HTTP_REFERER'])){
+    exit('Access Deny!!');
+}
 ?>
 <!doctype html>
 <html lang="ko">
@@ -91,7 +94,7 @@
             <input class="btnS" type="submit" value="확인">
         </form>
     </div>
-    <h2><p id="answerTitle">댓글</p></h2>
+    <h2><span id="answerTitle">댓글</span></h2>
     <div id="answerSelect">
         <?php
         if(!$result){
write.php
--- write.php
+++ write.php
@@ -3,6 +3,9 @@
  * @var $connStatus
  */
 include("config/db.config.php");
+if(!preg_match("/".$_SERVER['HTTP_HOST']."/i",$_SERVER['HTTP_REFERER'])){
+    exit('Access Deny!!');
+}
 ?>
 <!doctype html>
 <html lang="ko">
Add a comment
List