$_WICECAT_PRO_2_0_4_24_D5D1AB611B5C3261F9E0956257905AD8) { $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->$_WICECAT_PRO_2_0_4_24_8DFAC2739FDE4CD138C03ED864487CF8 = $_WICECAT_PRO_2_0_4_24_D5D1AB611B5C3261F9E0956257905AD8; } } function Wasato() { } public static function DemoMax($_WICECAT_PRO_2_0_4_24_5F3146DB24DEC06BCD086186BF93F54A) { switch ($_WICECAT_PRO_2_0_4_24_5F3146DB24DEC06BCD086186BF93F54A) { case 1: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 1000; break; case 2: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 1500; break; case 3: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 2000; break; case 4: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 2500; break; case 5: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 3000; break; case 6: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 3500; break; case 7: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 5000; break; case 8: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 7500; break; case 9: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 10000; break; default: $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163 = 500; break; } return $_WICECAT_PRO_2_0_4_24_E86FF41F78624CAF1F631A0658197163; } public static function AvailProducts($_WICECAT_PRO_2_0_4_24_34A76B26922C790F65C74EE82CC41A75) { $_WICECAT_PRO_2_0_4_24_F5564EE525ED0F31E1FD9D19A902EF52 = ' SELECT COUNT( `id_product` ) avail_products FROM `' . _DB_PREFIX_ . 'product` WHERE `id_icecat` >0 LIMIT ' . ($_WICECAT_PRO_2_0_4_24_34A76B26922C790F65C74EE82CC41A75 + 10); return Wql::Get($_WICECAT_PRO_2_0_4_24_F5564EE525ED0F31E1FD9D19A902EF52, true); } public static function ConfToken($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668, $_WICECAT_PRO_2_0_4_24_4F952A11EEA566C3C291A9A404B4C53D = false) { if ($_WICECAT_PRO_2_0_4_24_4F952A11EEA566C3C291A9A404B4C53D === true) { return CodDec($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668, 'wicecat'); } else { $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat['avail_max'] = self::DemoMax($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat['control']); $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat['avail_text'] = $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->NFO6; $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat += self::AvailProducts($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat['avail_max']); return CodeEnc($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat, $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->name); } } public static function ConfData($_WICECAT_PRO_2_0_4_24_01A4727417E0A54CE9922E716B70FD59) { if (empty($_WICECAT_PRO_2_0_4_24_01A4727417E0A54CE9922E716B70FD59['DATA']['TOKEN'])) { die('NO-DATA'); } $_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9 = Wasato::ConfToken($_POST['DATA']['TOKEN'], true); if (empty($_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9)) die('NO-LICENSE'); if ((int) $_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9['promotion'] === 1) { if ((int) $_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9['avail_products'] >= (int) $_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9['avail_max']) die($_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9['avail_text']); $_WICECAT_PRO_2_0_4_24_E971BCC5079F2558274693F15C19EF7C = self::AvailProducts($_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9['avail_max']); if ($_WICECAT_PRO_2_0_4_24_E971BCC5079F2558274693F15C19EF7C['avail_products'] >= (int) $_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9['avail_max']) die($_WICECAT_PRO_2_0_4_24_E2AAC8AD36937842CC909B890E90AAA9['avail_text']); } return $_WICECAT_PRO_2_0_4_24_01A4727417E0A54CE9922E716B70FD59; } public static function VerData($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668) { if ((int) $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat['avail_products'] >= (int) $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->WsDat['avail_max']) return true; return false; } public static function ConfValues($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17) { return array( $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_EULA' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_LICENSE' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_CODE' => '' . $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->ModuleCode . '', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_NAME' => '' . $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->ModuleName . '', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_ID' => '' . $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->ModuleID . '', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_WIZARD' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_VERSION' => '' . $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->version . '', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_ICECAT_USER' => null, $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_ICECAT_PASS' => null, $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_ICECAT_TYPE' => null, $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_TIMER' => '120', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_CATEGORY_AUTOUPD' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_MAX_PRODS' => '5000', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_CSV_1' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_CSV_2' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_CSV_3' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_CAT_LIST' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_LIMIT_SEARCH' => '10', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_COMPLETE_FILE' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_CRON_SET' => CronToken(), $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_RELATE_AUTO' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_LDESC_SUM' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_ICECAT_ERROR' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_PRODS_WEIGHT' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_MANU_LOGO' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_PRODS_ACTIVE' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_SEO_CHARS' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_IMAGE_UPDATE' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_IMAGE_ORIGINAL' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_STOCK_UPDATE' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_FEATS_FILTERS' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_ENABLD_CATS' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_ENABLD_MANU' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_UPD_PRREF' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_LIST_OPEN' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_SHOW_TABLE' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_SHOW_MLTM' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_SHOW_LOGS' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_SHOW_WRRNT' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_SHOW_YNLOG' => 'true', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_SHOW_SOURCE' => 'false', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_FEATS_ID' => isVersion('1.6') ? '.table-data-sheet' : '#idTab2', $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NameUpper . '_HOME_CAT' => HomeCat() ); } private static function ShowContent($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668) { if (file_exists(dirname(__FILE__) . '/../views/view.php')) { include_once(dirname(__FILE__) . '/../views/view.php'); return MainContent::display($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668); } } public static function ModuleContent($myModule) { if (time() < intval($myModule->WsDat['license_end'])) { $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851 = $myModule->mod_content; $_WICECAT_PRO_2_0_4_24_513E28F68AA618A57D5E9AB47C5A4CE1 = ReadLicense(); if (self::SetHash($myModule, $_WICECAT_PRO_2_0_4_24_513E28F68AA618A57D5E9AB47C5A4CE1) === $myModule->WsDat['hash']) { return self::ShowContent($myModule); } elseif ($myModule->ModuleCode != $myModule->WsDat['module_code']) return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->WrongModuleCode, $myModule->WrongModuleInfo); elseif ($myModule->ModuleName != $myModule->WsDat['module_name']) return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->WrongModule, $myModule->WrongModuleInfo); elseif ($_WICECAT_PRO_2_0_4_24_513E28F68AA618A57D5E9AB47C5A4CE1['transacion'] != $myModule->WsDat['purchase_number']) return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->WrongModuleCode, $myModule->WrongModuleInfo); elseif (md5(trim($_WICECAT_PRO_2_0_4_24_513E28F68AA618A57D5E9AB47C5A4CE1['license'])) != md5(trim($myModule->WsDat['license']))) return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->WrongLicense, $myModule->WrongLicenseInfo); elseif (($myModule->Domain != $myModule->WsDat['domain']) || ($_WICECAT_PRO_2_0_4_24_513E28F68AA618A57D5E9AB47C5A4CE1['domain'] != $myModule->Domain)) return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->WrongDomian, $myModule->WrongDomianInfo); elseif (($myModule->IP != $myModule->WsDat['ip_client']) || ($_WICECAT_PRO_2_0_4_24_513E28F68AA618A57D5E9AB47C5A4CE1['ip'] != $myModule->IP)) return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->NoIP, $myModule->NoIPInfo); else return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->InvalidLicense, $myModule->NoLicensefile); } else return $_WICECAT_PRO_2_0_4_24_80B015E946EFC2C404F3E5B325C4B851::ShowERRORMOD($myModule, $myModule->ExpiredLicense, $myModule->ExpiredLicenseInfo); } public static function banner($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17) { if (file_exists(dirname(__FILE__) . '/../class/class2.php')) { include_once(dirname(__FILE__) . '/../class/class2.php'); return Banner::display($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17); } } public function InstallWasatoModule($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17) { if (file_exists(dirname(__FILE__) . '/../class/class3.php')) { include_once(dirname(__FILE__) . '/../class/class3.php'); if (!InstallModule::Install($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17)) return false; } return true; } public static function UninstallWasatoModule($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17) { if (!file_exists(dirname(__FILE__) . '/../class/class3.php')) return false; include_once(dirname(__FILE__) . '/../class/class3.php'); if (!InstallModule::Uninstall($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17)) return false; return true; } public static function UpgradeWModule($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17) { if (!file_exists(dirname(__FILE__) . '/../class/class3.php')) return $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Info; include_once(dirname(__FILE__) . '/../class/class3.php'); if ($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Info[$_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NAME . '_VERSION'] < $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->version) { $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Info = InstallModule::Upgrade($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17); } else { $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Info[$_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NAME . '_UPGRADE'] = false; } return $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Info; } public static function GetDwnLink($_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668) { $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796 = ReadLicense(); $_WICECAT_PRO_2_0_4_24_00923E09EBAD46E73C33A9CAE859345E = empty($_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['purchase_number']) ? (empty($_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['transacion']) ? null : $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['transacion']) : $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['purchase_number']; return 'http://wasato.com/download.php?Token=' . $_WICECAT_PRO_2_0_4_24_225FCDD350EC53C89DF81B798B87F668->ModuleToken . '&Code=' . $_WICECAT_PRO_2_0_4_24_00923E09EBAD46E73C33A9CAE859345E; } public static function GetCronLink($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17) { $_WICECAT_PRO_2_0_4_24_36C7C23B8009311D015CE2FE806CCCDE = Wasato::GetHttp($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->name) . __PS_BASE_URI__ . 'modules/'; $_WICECAT_PRO_2_0_4_24_36C7C23B8009311D015CE2FE806CCCDE .= $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->name . '/utils/cron.php?ExeCRON=' . $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Info[$_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->NAME . '_CRON_SET']; return $_WICECAT_PRO_2_0_4_24_36C7C23B8009311D015CE2FE806CCCDE; } public static function GetHttp($_WICECAT_PRO_2_0_4_24_8927FF3AA25CCE62FBCB673BB3C6883A) { $_WICECAT_PRO_2_0_4_24_8927FF3AA25CCE62FBCB673BB3C6883A = strtolower($_WICECAT_PRO_2_0_4_24_8927FF3AA25CCE62FBCB673BB3C6883A); if (self::SecureHost()) $_WICECAT_PRO_2_0_4_24_27E13D3A6673BB0F53FAAA8C107A3565 = 'https://'; else $_WICECAT_PRO_2_0_4_24_27E13D3A6673BB0F53FAAA8C107A3565 = 'http://'; return $_WICECAT_PRO_2_0_4_24_27E13D3A6673BB0F53FAAA8C107A3565 . $_SERVER['HTTP_HOST']; } private static function SecureHost() { if (isset($_SERVER['HTTPS'])) return ($_SERVER['HTTPS'] == 1 || strtolower($_SERVER['HTTPS']) == 'on'); if (isset($_SERVER['SSL'])) return ($_SERVER['SSL'] == 1 || strtolower($_SERVER['SSL']) == 'on'); return false; } public static function SetHash($_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17, $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796) { $_WICECAT_PRO_2_0_4_24_089BBBDDCCB55F27D1EF90A298058334 = $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->ModuleCode; $_WICECAT_PRO_2_0_4_24_089BBBDDCCB55F27D1EF90A298058334 .= $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->ModuleName; $_WICECAT_PRO_2_0_4_24_089BBBDDCCB55F27D1EF90A298058334 .= $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['transacion']; $_WICECAT_PRO_2_0_4_24_089BBBDDCCB55F27D1EF90A298058334 .= $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['license']; $_WICECAT_PRO_2_0_4_24_089BBBDDCCB55F27D1EF90A298058334 .= ($_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['domain'] === $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Domain ? $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->Domain : $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['domain']); $_WICECAT_PRO_2_0_4_24_089BBBDDCCB55F27D1EF90A298058334 .= ($_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['ip'] === $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->IP ? $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17->IP : $_WICECAT_PRO_2_0_4_24_F146E0A98147190859482237B10CC796['ip']); return md5($_WICECAT_PRO_2_0_4_24_089BBBDDCCB55F27D1EF90A298058334); } public static function Trace($_WICECAT_PRO_2_0_4_24_97855EF3D970439C1AF506E018173B37, $_WICECAT_PRO_2_0_4_24_0AD2703D397087F50AD2EA8839D70663 = false, $_WICECAT_PRO_2_0_4_24_F4F1F138D8D4E48579447A2EE754DB6D = 'MySQL') { if (!empty($_WICECAT_PRO_2_0_4_24_97855EF3D970439C1AF506E018173B37)) { $_WICECAT_PRO_2_0_4_24_1465A2DCF83DABD39860F697C14810B8 = 1; $_WICECAT_PRO_2_0_4_24_3978D7858AA530ECC07F2DBE3DABF57A = "\r\n\t" . $_WICECAT_PRO_2_0_4_24_F4F1F138D8D4E48579447A2EE754DB6D . ' Stack trace:' . "\r\n"; foreach ($_WICECAT_PRO_2_0_4_24_97855EF3D970439C1AF506E018173B37 as $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607) { if (count($_WICECAT_PRO_2_0_4_24_97855EF3D970439C1AF506E018173B37) === $_WICECAT_PRO_2_0_4_24_1465A2DCF83DABD39860F697C14810B8) { $_WICECAT_PRO_2_0_4_24_4B58F68ED81B2B718ACD0A99E685CEFA = $_WICECAT_PRO_2_0_4_24_0AD2703D397087F50AD2EA8839D70663 . "\t" . '- On line: "' . $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['line'] . '"' . "\r\n"; $_WICECAT_PRO_2_0_4_24_4B58F68ED81B2B718ACD0A99E685CEFA .= "\t" . '- From file: ' . $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['file'] . "\r\n"; } elseif ($_WICECAT_PRO_2_0_4_24_1465A2DCF83DABD39860F697C14810B8 === 1) $_WICECAT_PRO_2_0_4_24_3978D7858AA530ECC07F2DBE3DABF57A .= "\t" . $_WICECAT_PRO_2_0_4_24_1465A2DCF83DABD39860F697C14810B8 . '.- "' . $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['line'] . '" {main}() ' . $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['file'] . "\r\n"; else { $_WICECAT_PRO_2_0_4_24_5F864AE10426358580F6F88B4DD5096A = empty($_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['class']) ? '' : $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['class']; $_WICECAT_PRO_2_0_4_24_831024F2EABD3DDA5814913C524C0C25 = empty($_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['type']) ? '' : $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['type']; $_WICECAT_PRO_2_0_4_24_A917A7D71449B52B8B86A6AC20DFF899 = $_WICECAT_PRO_2_0_4_24_5F864AE10426358580F6F88B4DD5096A . '' . $_WICECAT_PRO_2_0_4_24_831024F2EABD3DDA5814913C524C0C25 . '' . $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['function']; $_WICECAT_PRO_2_0_4_24_3978D7858AA530ECC07F2DBE3DABF57A .= "\t" . $_WICECAT_PRO_2_0_4_24_1465A2DCF83DABD39860F697C14810B8 . '.- "' . $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['line'] . '" ' . $_WICECAT_PRO_2_0_4_24_A917A7D71449B52B8B86A6AC20DFF899 . '() ' . $_WICECAT_PRO_2_0_4_24_E202ADB9BB70BFFBAB589EE0E166A607['file'] . "\r\n"; } $_WICECAT_PRO_2_0_4_24_1465A2DCF83DABD39860F697C14810B8++; } return $_WICECAT_PRO_2_0_4_24_4B58F68ED81B2B718ACD0A99E685CEFA . '' . $_WICECAT_PRO_2_0_4_24_3978D7858AA530ECC07F2DBE3DABF57A; } else return false; } public static function SetLog($_WICECAT_PRO_2_0_4_24_5E4960089B7CC58686EA7F2EAECCB698) { if (empty($_WICECAT_PRO_2_0_4_24_5E4960089B7CC58686EA7F2EAECCB698)) return false; $_WICECAT_PRO_2_0_4_24_11D7662F51CCACDA97C20C9C9365FC80 = dirname(__FILE__) . '/../logs/error_log.txt'; $_WICECAT_PRO_2_0_4_24_1F2771B9616DE90EBFBA20B7117090C1 = fopen($_WICECAT_PRO_2_0_4_24_11D7662F51CCACDA97C20C9C9365FC80, 'a'); if ($_WICECAT_PRO_2_0_4_24_1F2771B9616DE90EBFBA20B7117090C1) { fwrite($_WICECAT_PRO_2_0_4_24_1F2771B9616DE90EBFBA20B7117090C1, $_WICECAT_PRO_2_0_4_24_5E4960089B7CC58686EA7F2EAECCB698); fclose(($_WICECAT_PRO_2_0_4_24_1F2771B9616DE90EBFBA20B7117090C1)); return true; } else return false; } public static function ShowPaginationOptions($_WICECAT_PRO_2_0_4_24_0C674EA587CF07FD8B3977C455047E4F, $_WICECAT_PRO_2_0_4_24_CD1B10D1DF4B2C9CB4C870C2C68D7D17) { $_WICECAT_PRO_2_0_4_24_27E13D3A6673BB0F53FAAA8C107A3565 = '
'; return $_WICECAT_PRO_2_0_4_24_27E13D3A6673BB0F53FAAA8C107A3565; } public static function GetDefaultLangs() { return Wql::Get('SELECT `T1`.`iso_code`, `T1`.`id_lang` FROM `' . _DB_PREFIX_ . 'lang` AS T1 INNER JOIN `' . _DB_PREFIX_ . 'configuration` AS T2 ON `T1`.`id_lang` = `T2`.`value` WHERE `T2`.`name` = \'PS_LANG_DEFAULT\''); } public static function Langs() { return Wql::Get('SELECT * FROM `' . _DB_PREFIX_ . 'lang`'); } public static function GetDefautlCountry() { return strtolower(Wql::GetVal('SELECT DISTINCT T2.`iso_code` FROM `' . _DB_PREFIX_ . 'configuration` AS T1 INNER JOIN `' . _DB_PREFIX_ . 'country` AS T2 ON T1.`value` = T2.`id_country` WHERE T1.name = \'PS_COUNTRY_DEFAULT\' ')); } public static function GetDefaultCurrency() { return Wql::GetVal('SELECT `T1`.`iso_code` FROM `' . _DB_PREFIX_ . 'currency` AS T1 INNER JOIN `' . _DB_PREFIX_ . 'configuration` AS T2 ON `T1`.`id_currency` = `T2`.`value` WHERE `T2`.`name` = \'PS_CURRENCY_DEFAULT\''); } public static function GetImageType() { return Wql::Get(' SELECT * FROM `' . _DB_PREFIX_ . 'image_type` WHERE `products` = \'1\' '); } public static function GetSeo() { $_WICECAT_PRO_2_0_4_24_F5564EE525ED0F31E1FD9D19A902EF52 = 'SHOW TABLES LIKE \'' . _DB_PREFIX_ . 'wasato_category_keywords_lang\' '; if (Wql::Get($_WICECAT_PRO_2_0_4_24_F5564EE525ED0F31E1FD9D19A902EF52)) { $_WICECAT_PRO_2_0_4_24_A54412920D9FD34383EB3470F8999E6C = Wql::Get(' SELECT COUNT(*) AS total FROM `' . _DB_PREFIX_ . 'wasato_category_keywords_lang` LIMIT 10 '); return $_WICECAT_PRO_2_0_4_24_A54412920D9FD34383EB3470F8999E6C[0]['total']; } else return 0; } }