Beispiel #1
0
 /**
  * Function deletes an existing product
  * 
  * 
  * @return array
  */
 function deleteProduct()
 {
     include 'classes/Core/CRoleChecking.php';
     include_once 'classes/Core/Settings/CManageProducts.php';
     include_once 'classes/Display/DManageProducts.php';
     $chkuser = Core_CRoleChecking::checkRoles();
     if ($chkuser) {
         $default = new Core_Settings_CManageProducts();
         $default->deleteProduct();
     } else {
         $output['usererr'] = 'You are Not having Privilege to view this page contact your Admin for detail';
         Bin_Template::createTemplate('Errors.html', $output);
     }
 }