/** * Function displays the product * * * @return array */ function showProducts() { include 'classes/Core/CRoleChecking.php'; include_once 'classes/Core/Settings/CAddCrossProducts.php'; include_once 'classes/Display/DAddCrossProducts.php'; include 'classes/Core/CAdminHome.php'; $chkuser = Core_CRoleChecking::checkRoles(); if ($chkuser) { $default = new Core_Settings_CManageProducts(); $output['username'] = Core_CAdminHome::userName(); $output['currentDate'] = date('l, M d, Y H:i:s'); $output['products'] = $default->showProducts(); } else { $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail'; Bin_Template::createTemplate('Errors.html', $output); } }