| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit; |
| 3 | 3 | |
| 4 | -if (!class_exists('WPRProtectFWRule_V662')) : | |
| 5 | -class WPRProtectFWRule_V662 { | |
| 4 | +if (!class_exists('WPRProtectFWRule_V676')) : | |
| 5 | +class WPRProtectFWRule_V676 { | |
| 6 | 6 | public $id; |
| 7 | 7 | public $logic; |
| 8 | 8 | public $actions; |
| 9 | 9 | public $execute_on; |
| @@ -103,15 +103,15 @@ | ||
| 103 | 103 | return false; |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | if (!array_key_exists('min_rule_engine_ver', $attributes) || !is_float($attributes['min_rule_engine_ver']) || |
| 107 | - $attributes['min_rule_engine_ver'] > WPRProtectFWRuleEngine_V662::VERSION) { | |
| 107 | + $attributes['min_rule_engine_ver'] > WPRProtectFWRuleEngine_V676::VERSION) { | |
| 108 | 108 | |
| 109 | 109 | return false; |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | if (array_key_exists('max_rule_engine_ver', $attributes) && (!is_float($attributes['max_rule_engine_ver']) || |
| 113 | - $attributes['max_rule_engine_ver'] < WPRProtectFWRuleEngine_V662::VERSION)) { | |
| 113 | + $attributes['max_rule_engine_ver'] < WPRProtectFWRuleEngine_V676::VERSION)) { | |
| 114 | 114 | |
| 115 | 115 | return false; |
| 116 | 116 | } |
| 117 | 117 | |
| @@ -128,82 +128,82 @@ | ||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | if (!array_key_exists('execute_on', $attributes)) { |
| 131 | 131 | if (array_key_exists('level', $attributes) && $attributes['level'] === 1) { |
| 132 | - $attributes['execute_on'] = WPRProtectFWRule_V662::EXE_ON_BOOT; | |
| 132 | + $attributes['execute_on'] = WPRProtectFWRule_V676::EXE_ON_BOOT; | |
| 133 | 133 | } else { |
| 134 | 134 | return false; |
| 135 | 135 | } |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - return new WPRProtectFWRule_V662($attributes); | |
| 138 | + return new WPRProtectFWRule_V676($attributes); | |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | public function isExeOnBoot() { |
| 142 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_BOOT); | |
| 142 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_BOOT); | |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | public function isExeOnPreUpdateOption() { |
| 146 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_PRE_UPDATE_OPTION); | |
| 146 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_PRE_UPDATE_OPTION); | |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | public function isExeOnPreDeletePost() { |
| 150 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_PRE_DELETE_POST); | |
| 150 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_PRE_DELETE_POST); | |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | 153 | public function isExeOnWPInsertPostEmptyContent() { |
| 154 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_WP_INSERT_POST_EMPTY_CONTENT); | |
| 154 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_WP_INSERT_POST_EMPTY_CONTENT); | |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | public function isExeOnInsertUserMeta() { |
| 158 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_INSERT_USER_META); | |
| 158 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_INSERT_USER_META); | |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | public function isExeOnDeleteOption() { |
| 162 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_DELETE_OPTION); | |
| 162 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_DELETE_OPTION); | |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | public function isExeOnDeleteUser() { |
| 166 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_DELETE_USER); | |
| 166 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_DELETE_USER); | |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | 169 | public function isExeOnPasswordReset() { |
| 170 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_PASSWORD_RESET); | |
| 170 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_PASSWORD_RESET); | |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | 173 | public function isExeOnSendAuthCookies() { |
| 174 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_SEND_AUTH_COOKIES); | |
| 174 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_SEND_AUTH_COOKIES); | |
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | public function isExeOnSetAuthCookie() { |
| 178 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_SET_AUTH_COOKIE); | |
| 178 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_SET_AUTH_COOKIE); | |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | public function isExeOnInit() { |
| 182 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_INIT); | |
| 182 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_INIT); | |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | public function isExeOnUserRegister() { |
| 186 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_USER_REGISTER); | |
| 186 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_USER_REGISTER); | |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | public function isExeOnAddUserMeta() { |
| 190 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_ADD_USER_META); | |
| 190 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_ADD_USER_META); | |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | public function isExeOnUpdateUserMetadata() { |
| 194 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_UPDATE_USER_METADATA); | |
| 194 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_UPDATE_USER_METADATA); | |
| 195 | 195 | } |
| 196 | 196 | |
| 197 | 197 | public function isExeOnUpdateUserMeta() { |
| 198 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_UPDATE_USER_META); | |
| 198 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_UPDATE_USER_META); | |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | public function isExeOnAddOption() { |
| 202 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_ADD_OPTION); | |
| 202 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_ADD_OPTION); | |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | 205 | public function isExeOnWpPreInsertUserData() { |
| 206 | - return ($this->execute_on === WPRProtectFWRule_V662::EXE_ON_WP_PRE_INSERT_USER_DATA); | |
| 206 | + return ($this->execute_on === WPRProtectFWRule_V676::EXE_ON_WP_PRE_INSERT_USER_DATA); | |
| 207 | 207 | } |
| 208 | 208 | } |
| 209 | 209 | endif; |