Example #1
0
 function setStatus()
 {
     global $toC_Json, $osC_Language;
     $flag = $_REQUEST['flag'];
     $customers_id = $_REQUEST['customers_id'];
     if (osC_Customers_Admin::setStatus($customers_id, $flag)) {
         $response = array('success' => true, 'feedback' => $osC_Language->get('ms_success_action_performed'));
     } else {
         $response = array('success' => false, 'feedback' => $osC_Language->get('ms_error_action_not_performed'));
     }
     echo $toC_Json->encode($response);
 }