reset(); } function reset() { $this->path = array(); $this->snapshot = array(); } function add_current_page() { global $PHP_SELF, $_GET, $_POST, $request_type; // PHP 8.4 : Sécurisation du basename si PHP_SELF est null $current_page = basename($PHP_SELF ?? ''); $set = 'true'; for ($i=0, $n=sizeof($this->path); $i<$n; $i++) { if ($this->path[$i]['page'] == $current_page) { if (isset($_GET) && is_array($_GET)) { if (!isset($this->path[$i]['get']) || (isset($this->path[$i]['get']) && ($this->path[$i]['get'] == $_GET))) { $set = 'false'; } } else { $set = 'false'; } } } if ($set == 'true') { $this->path[] = array('page' => $current_page, 'mode' => $request_type, 'get' => $_GET, 'post' => $_POST); } } function remove_current_page() { $last_entry_position = sizeof($this->path) - 1; if ($last_entry_position >= 0) { // PHP 8.4 : Sécurisation globale $current_page = basename($GLOBALS['PHP_SELF'] ?? ''); if ($this->path[$last_entry_position]['page'] == $current_page) { unset($this->path[$last_entry_position]); } } } function set_snapshot($page = '') { global $PHP_SELF, $_GET, $_POST, $request_type; if (is_array($page)) { $this->snapshot = array('page' => $page['page'], 'mode' => $page['mode'], 'get' => $page['get'], 'post' => $page['post']); } else { $this->snapshot = array('page' => basename($PHP_SELF ?? ''), 'mode' => $request_type, 'get' => $_GET, 'post' => $_POST); } } function clear_snapshot() { $this->snapshot = array(); } function get_all_get_params($exclude_array = '') { if (!is_array($exclude_array)) $exclude_array = array(); $get_params = ''; if (isset($_GET) && is_array($_GET)) { foreach ($_GET as $key => $value) { if (!in_array($key, $exclude_array)) { // PHP 8.4 : Cast en string pour la concaténation $get_params .= $key . '=' . (string)$value . '&'; } } } if (tep_not_null($get_params)) $get_params = substr($get_params, 0, -1); return $get_params; }}?>
Fatal error: Uncaught Error: Class "navigationHistory" not found in /home/webocaz/public_html/includes/application_top.php:143
Stack trace:
#0 /home/webocaz/public_html/products_new.php(2): require()
#1 {main}
thrown in /home/webocaz/public_html/includes/application_top.php on line 143