- Автор темы
- Администратор
- Модер.
- Команда форума
- #1
WebForms Pro 2 [2.7.8] Null
Упакован для установки через конект
in
app/code/community/VladimirPopov/WebForms/Helper/Data.php
Упакован для установки через конект

Для просмотра скрытого содержимого вы должны войти или зарегистрироваться.
in
app/code/community/VladimirPopov/WebForms/Helper/Data.php
PHP:
public function verify($domain, $checkstr)
{
-
- if ("wf" . substr(sha1(self::DKEY . $domain), 0, 18) == substr($checkstr, 0, 20)) {
- return true;
- }
-
- if ("wf" . substr(sha1(self::SKEY . $_SERVER['SERVER_ADDR']), 0, 10) == substr($checkstr, 0, 12)) {
- return true;
- }
-
- if ("wf" . substr(sha1(self::SKEY . gethostbyname($_SERVER['SERVER_NAME'])), 0, 10) == substr($checkstr, 0, 12)) {
- return true;
- }
-
- if ("wf" . substr(sha1(self::SKEY . gethostbyname($domain)), 0, 10) == substr($checkstr, 0, 12)) {
- return true;
- }
-
- $base = $this->getDomain(parse_url(Mage::app()->getStore(0)->getConfig('web/unsecure/base_url'), PHP_URL_HOST));
- if ("wf" . substr(sha1(self::SKEY . gethostbyname($base)), 0, 10) == substr($checkstr, 0, 12)) {
- return true;
- }
-
- if (substr(sha1(self::SKEY . $base), 0, 8) == substr($checkstr, 12, 8))
- return true;
-
- if ($this->verifyIpMask(array($_SERVER['SERVER_ADDR'], $_SERVER['SERVER_NAME'], $domain, $base), $checkstr)) {
- return true;
- }
- return false;
+ return true;
}