Beispiel #1
0
 /**
  * Function updates a product
  * 
  * 
  * @return array
  */
 function updateProduct()
 {
     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->updateProduct();
         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);
     }
 }