/** * Function updates a gift product * * * @return array */ function updateGiftProduct() { include "classes/Lib/CheckInputs.php"; include 'classes/Core/CRoleChecking.php'; include 'classes/Core/Settings/CManageProducts.php'; include 'classes/Core/CAdminHome.php'; include 'classes/Display/DManageProducts.php'; //$obj = new Lib_CheckInputs('productupdate'); $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { $default = new Core_Settings_CManageProducts(); $_SESSION['update_msg'] = $default->updateGiftProduct(); header('Location:?do=manageproducts'); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }