UPDATE command denied to user 'iqshoppitidb'@'10.11.20.137' for table 'ps_beauty__configuration'UPDATE `ps_beauty__configuration` SET `value` = '1711711769',`date_upd` = '2024-03-29 12:29:29' WHERE `name` = 'update_uecookie' AND id_shop = 1 LIMIT 1
at line 646 in file classes/db/Db.php
641. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
642. }
643. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
644. {
645. if ($sql)
646. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
647. throw new PrestaShopDatabaseException($this->getMsgError());
648. }
649. }
650.
651. /**
335. if ($this->connect())
336. $this->result = $this->_query($sql);
337. }
338.
339. if (_PS_DEBUG_SQL_)
340. $this->displayError($sql);
341. return $this->result;
342. }
343.
344. /**
345. * Execute an INSERT query
Argument [0] UPDATE `ps_beauty__configuration` SET `value` = '1711711769',`date_upd` = '2024-03-29 12:29:29' WHERE `name` = 'update_uecookie' AND id_shop = 1 LIMIT 1
615. {
616. if ($sql instanceof DbQuery)
617. $sql = $sql->build();
618.
619. $this->result = false;
620. $result = $this->query($sql);
621. if ($use_cache && $this->is_cache_enabled)
622. Cache::getInstance()->deleteQuery($sql);
623. if (_PS_DEBUG_SQL_)
624. $this->displayError($sql);
625. return $result;
Argument [0] UPDATE `ps_beauty__configuration` SET `value` = '1711711769',`date_upd` = '2024-03-29 12:29:29' WHERE `name` = 'update_uecookie' AND id_shop = 1 LIMIT 1
437. $sql = rtrim($sql, ',');
438. if ($where)
439. $sql .= ' WHERE '.$where;
440. if ($limit)
441. $sql .= ' LIMIT '.(int)$limit;
442. return (bool)$this->q($sql, $use_cache);
443. }
444.
445. /**
446. * Execute a DELETE query
447. *
Argument [0] UPDATE `ps_beauty__configuration` SET `value` = '1711711769',`date_upd` = '2024-03-29 12:29:29' WHERE `name` = 'update_uecookie' AND id_shop = 1 LIMIT 1 Argument [1] 1
360. {
361. // Update config not linked to lang
362. $result &= Db::getInstance()->update(self::$definition['table'], array(
363. 'value' => pSQL($value, $html),
364. 'date_upd' => date('Y-m-d H:i:s'),
365. ), '`name` = \''.pSQL($key).'\''.Configuration::sqlRestriction($id_shop_group, $id_shop), 1, true);
366. }
367. else
368. {
369. // Update multi lang
370. $sql = 'UPDATE `'._DB_PREFIX_.bqSQL(self::$definition['table']).'_lang` cl
Argument [0] ps_beauty__configuration Argument [1] Array ( [value] => 1711711769 [date_upd] => 2024-03-29 12:29:29 ) Argument [2] `name` = 'update_uecookie' AND id_shop = 1 Argument [3] 1 Argument [4] 1
316. if (ini_get("allow_url_fopen")) {
317. if (function_exists("file_get_contents")){
318. $actual_version = @file_get_contents('http://dev.mypresta.eu/update/get.php?module='.$module."&version=".self::encrypt($version)."&lic=$key&u=".self::encrypt(_PS_BASE_URL_.__PS_BASE_URI__));
319. }
320. }
321. Configuration::updateValue("update_".$module,date("U"));
322. Configuration::updateValue("updatev_".$module,$actual_version);
323. return $actual_version;
324. }
325. }
326.
Argument [0] update_uecookie Argument [1] Array ( [0] => 1711711769 )
25. }
26.
27. function checkforupdates(){
28. if (isset($_GET['controller']) OR isset($_GET['tab'])){
29. if (Configuration::get('update_'.$this->name) < (date("U")-86400)){
30. $actual_version = uecookieUpdate::verify($this->name,$this->mkey,$this->version);
31. }
32. if (uecookieUpdate::version($this->version)<uecookieUpdate::version(Configuration::get('updatev_'.$this->name))){
33. $this->warning=$this->l('New version available, check <a href="http://MyPresta.eu">MyPresta.eu</a> for more informations');
34. }
35. }
Argument [0] uecookie Argument [1] freelicense Argument [2] 1.3.5
19. @require_once ('../modules/'.$this->name.'/key.php');
20. else if (@file_exists(dirname(__FILE__) . $this->name.'/key.php'))
21. @require_once (dirname(__FILE__) . $this->name.'/key.php');
22. else if (@file_exists('modules/'.$this->name.'/key.php'))
23. @require_once ('modules/'.$this->name.'/key.php');
24. $this->checkforupdates();
25. }
26.
27. function checkforupdates(){
28. if (isset($_GET['controller']) OR isset($_GET['tab'])){
29. if (Configuration::get('update_'.$this->name) < (date("U")-86400)){
1039. if (class_exists($override, false))
1040. return self::$_INSTANCE[$module_name] = new $override;
1041. }
1042.
1043. if (class_exists($module_name, false))
1044. return self::$_INSTANCE[$module_name] = new $module_name;
1045. }
1046. return false;
1047. }
1048. return self::$_INSTANCE[$module_name];
1049. }
487. continue;
488. if (Validate::isLoadedObject($context->employee) && !Module::getPermissionStatic($array['id_module'], 'view', $context->employee))
489. continue;
490. }
491.
492. if (!($moduleInstance = Module::getInstanceByName($array['module'])))
493. continue;
494.
495. if ($use_push && !$moduleInstance->allow_push)
496. continue;
497. // Check which / if method is callable
Argument [0] uecookie
452. {
453. // These hooks aren't used for the mobile theme.
454. // Needed hooks are called in the tpl files.
455. $this->context->smarty->assign(array(
456. 'HOOK_HEADER' => Hook::exec('displayHeader'),
457. 'HOOK_TOP' => Hook::exec('displayTop'),
458. 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
459. 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
460. ));
461. }
462. else
Argument [0] displayTop
99. }
100. }
101.
102. public function initContent()
103. {
104. parent::initContent();
105.
106. $this->setTemplate(_PS_THEME_DIR_.'category.tpl');
107.
108. if (!$this->customer_access)
109. return;
175.
176. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
177. $this->initHeader();
178.
179. if ($this->viewAccess())
180. $this->initContent();
181. else
182. $this->errors[] = Tools::displayError('Access denied.');
183.
184. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
185. $this->initFooter();
368. // Execute hook dispatcher
369. if (isset($params_hook_action_dispatcher))
370. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
371.
372. // Running controller
373. $controller->run();
374. }
375. catch (PrestaShopException $e)
376. {
377. $e->displayMessage();
378. }
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();