:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/www/demo/jdc/new_1/**
:: Editing File: functions.php
<?php session_start(); function addToCart($product_id){ if(!isset($_SESSION['cart'])){ $_SESSION['cart'] = array(); } if(!in_array($product_id, $_SESSION['cart'])){ $_SESSION['cart'][] = $product_id; } } function addToWishlist($product_id){ if(!isset($_SESSION['wishlist'])){ $_SESSION['wishlist'] = array(); } if(!in_array($product_id, $_SESSION['wishlist'])){ $_SESSION['wishlist'][] = $product_id; } } ?>