| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit; |
| 3 | 3 | |
| 4 | -if (!class_exists('WPRProtectWPUser_V568')) : | |
| 5 | -class WPRProtectWPUser_V568 { | |
| 4 | +if (!class_exists('WPRProtectWPUser_V672')) : | |
| 5 | +class WPRProtectWPUser_V672 { | |
| 6 | 6 | public $id; |
| 7 | 7 | public $role; |
| 8 | 8 | public $role_level; |
| 9 | 9 | public $capabilities; |
| @@ -20,9 +20,9 @@ | ||
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public static function defaultUser() { |
| 23 | 23 | $time = (int) floor(time() / 43200); |
| 24 | - return (new WPRProtectWPUser_V568(0, 0, array(), $time)); | |
| 24 | + return (new WPRProtectWPUser_V672(0, 0, array(), $time)); | |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public static function _serialize($user) { |
| 28 | 28 | return $user->id . '|' . $user->role_level . '|' . implode(',', $user->capabilities) . '|' . |
| @@ -40,9 +40,9 @@ | ||
| 40 | 40 | } |
| 41 | 41 | list($id, $role_level, $capabilities, $time) = $user_attrs; |
| 42 | 42 | $capabilities = array_map('intval', explode(',', $capabilities)); |
| 43 | 43 | |
| 44 | - return (new WPRProtectWPUser_V568((int) $id, (int) $role_level, $capabilities, (int) $time)); | |
| 44 | + return (new WPRProtectWPUser_V672((int) $id, (int) $role_level, $capabilities, (int) $time)); | |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | public function isIdentical($user) { |
| 48 | 48 | return (($this->id === $user->id) && ($this->role_level === $user->role_level) && |