SilentLittleCat 7 năm trước cách đây
mục cha
commit
4e5ff75ace
2 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 6 6
      .idea/workspace.xml
  2. 2 2
      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="739">
-              <caret line="146" column="55" lean-forward="false" selection-start-line="146" selection-start-column="55" selection-end-line="146" selection-end-column="55" />
+            <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" />
               <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="11033000" />
+      <workItem from="1525658293907" duration="11089000" />
     </task>
     <servers />
   </component>
   <component name="TimeTrackingManager">
-    <option name="totallyTimeSpent" value="36907000" />
+    <option name="totallyTimeSpent" value="36963000" />
   </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="739">
-          <caret line="146" column="55" lean-forward="false" selection-start-line="146" selection-start-column="55" selection-end-line="146" selection-end-column="55" />
+        <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" />
           <folding />
         </state>
       </provider>

+ 2 - 2
source/class/discuz/discuz_admincp.php

xqd xqd
@@ -128,7 +128,7 @@ class discuz_admincp
 				$this->check_user_login();
 			}
 		}
-
+print_r($this->cpaccess);
 		if($this->cpaccess == 1) {
 			C::t('common_admincp_session')->delete($this->adminuser['uid'], $this->panel, $this->sessionlife);
 			C::t('common_admincp_session')->insert(array(
@@ -144,7 +144,7 @@ class discuz_admincp
 			C::t('common_admincp_session')->update($this->adminuser['uid'], $this->panel, array('dateline' => TIMESTAMP, 'ip' => $this->core->var['clientip'], 'errorcount' => -1));
 		}
 
-		if($this->cpaccess != 3) {print_r('ok');exit();
+		if($this->cpaccess != 3) {
 			$this->do_user_login();
 		}