소스 검색

Add files via upload

Capitan Cloud 2 년 전
부모
커밋
d5818cb752
1개의 변경된 파일14개의 추가작업 그리고 3개의 파일을 삭제
  1. 14 3
      Private/scripts/home.php

+ 14 - 3
Private/scripts/home.php

@@ -57,9 +57,20 @@
  if ($password !== PHP_STR) {	
    $hash = hash("sha256", $password . APP_SALT, false);
 
-   if ($hash !== APP_HASH) {
-     $password=PHP_STR;	
-   }	 
+   if (defined("APP_" . strtoupper(AVATAR_NAME) . "_HASH")) {
+      if ($hash !== constant("APP_" . strtoupper(AVATAR_NAME) . "_HASH")) {
+        $password=PHP_STR;	
+      }	 
+   } else {
+      if ($hash !== APP_HASH) {
+        $password=PHP_STR;	
+      }	 
+   }   
+   
+//  if ($hash !== APP_HASH) {
+//    $password=PHP_STR;	
+//  }	 
+   
  } 
  if ($password !== PHP_STR) {
    $CURRENT_VIEW = ADMIN_VIEW;