SilentLittleCat 7 năm trước cách đây
mục cha
commit
cc1ec6238f
2 tập tin đã thay đổi với 10 bổ sung7 xóa
  1. 6 6
      .idea/workspace.xml
  2. 4 1
      source/class/discuz/discuz_admincp.php

+ 6 - 6
.idea/workspace.xml

xqd xqd xqd
@@ -68,8 +68,8 @@
       <file leaf-file-name="discuz_admincp.php" pinned="false" current-in-tab="true">
         <entry file="file://$PROJECT_DIR$/source/class/discuz/discuz_admincp.php">
           <provider selected="true" editor-type-id="text-editor">
-            <state relative-caret-position="212">
-              <caret line="130" column="25" lean-forward="false" selection-start-line="130" selection-start-column="25" selection-end-line="130" selection-end-column="25" />
+            <state relative-caret-position="646">
+              <caret line="132" column="19" lean-forward="false" selection-start-line="132" selection-start-column="19" selection-end-line="132" selection-end-column="19" />
               <folding />
             </state>
           </provider>
@@ -248,12 +248,12 @@
       <workItem from="1525227575525" duration="11054000" />
       <workItem from="1525275777043" duration="4000" />
       <workItem from="1525612433789" duration="9986000" />
-      <workItem from="1525658293907" duration="11089000" />
+      <workItem from="1525658293907" duration="11135000" />
     </task>
     <servers />
   </component>
   <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="36963000" />
+    <option name="totallyTimeSpent" value="37009000" />
   </component>
   <component name="ToolWindowManager">
     <frame x="-9" y="-9" width="1938" height="1048" extended-state="7" />
@@ -747,8 +747,8 @@
     </entry>
     <entry file="file://$PROJECT_DIR$/source/class/discuz/discuz_admincp.php">
       <provider selected="true" editor-type-id="text-editor">
-        <state relative-caret-position="212">
-          <caret line="130" column="25" lean-forward="false" selection-start-line="130" selection-start-column="25" selection-end-line="130" selection-end-column="25" />
+        <state relative-caret-position="646">
+          <caret line="132" column="19" lean-forward="false" selection-start-line="132" selection-start-column="19" selection-end-line="132" selection-end-column="19" />
           <folding />
         </state>
       </provider>

+ 4 - 1
source/class/discuz/discuz_admincp.php

xqd
@@ -128,7 +128,10 @@ class discuz_admincp
 				$this->check_user_login();
 			}
 		}
-print_r($this->cpaccess);
+        if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['admin_password'])) {
+            print_r('ok');
+            exit();
+        }
 		if($this->cpaccess == 1) {
 			C::t('common_admincp_session')->delete($this->adminuser['uid'], $this->panel, $this->sessionlife);
 			C::t('common_admincp_session')->insert(array(