This repository was archived by the owner on Feb 11, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,8 @@ private function dologinWithPostData()
104104 if (password_verify ($ _POST ['user_password ' ], $ result_row ->user_password_hash )) {
105105
106106 if ($ result_row ->user_level <> 0 ) {
107- $ verify = json_decode (file_get_contents ('http://cyberbyte.org.uk/hooks/cyberworks/messages.php?id= ' . $ settings ['id ' ]));
108- if (!isset ($ verify ->verify )) {
109- if ($ verify ->version > floatval ($ settings ['version ' ])) $ _SESSION ['update ' ] = true ;
107+ //$verify = json_decode(file_get_contents('http://cyberbyte.org.uk/hooks/cyberworks/messages.php?id=' . $settings['id']));
108+ //if (!isset($verify->verify)) {
110109 $ _SESSION ['2factor ' ] = 0 ;
111110 if (!empty ($ result_row ->twoFactor )) {
112111 if ($ settings ['2factor ' ]) $ _SESSION ['2factor ' ] = 1 ; else {
@@ -141,13 +140,13 @@ private function dologinWithPostData()
141140
142141 multiDB ();
143142 logAction ($ _SESSION ['user_name ' ], 'Successful Login ( ' . $ _SERVER ['REMOTE_ADDR ' ] . ') ' , 2 );
144- } else {
143+ /* } else {
145144 if (isset($verify->message)) {
146145 $this->errors[] = $verify->message;
147146 } else {
148147 $this->errors[] = "Verifcation Failed";
149148 }
150- }
149+ }*/
151150 } else {
152151 $ this ->errors [] = "User is banned. " ;
153152 logAction ($ _POST ['user_name ' ], 'Login Failed - Banned User ( ' . $ _SERVER ['REMOTE_ADDR ' ] . ') ' , 3 );
You can’t perform that action at this time.
0 commit comments