public function saveIPMessage($data) {
        $response=CodeBank_ClientAPI::responseBase();
        
        if(!Permission::check('ADMIN')) {
            $response['status']='EROR';
            $response['message']=_t('CodeBankAPI.PERMISSION_DENINED', '_Permission Denied');
            return $response;
        }
        
        
        try {
            $codeBankConfig=CodeBankConfig::CurrentConfig();
            $codeBankConfig->IPMessage=$data->message;
            $codeBankConfig->write();
            
            
            $response['status']='HELO';
            $response['message']=_t('CodeBankAPI.IP_MESSAGE_CHANGE', '_Intellectual Property message changed successfully');
        }catch (Exception $e) {
            $response['status']='EROR';
            $response['message']=_t('CodeBankAPI.SERVER_ERROR', '_Server error has occured, please try again later');
        }
        
        return $response;
    }
public function saveIPMessage($data) {
        $response=CodeBank_ClientAPI::responseBase();
        
        if(!Permission::check('ADMIN')) {
            $response['status']='EROR';
            $response['message']=_t('CodeBankAPI.PERMISSION_DENINED', '_Permission Denied');
            return $response;
        }
        
        
        try {
            $codeBankConfig=CodeBankConfig::CurrentConfig();
            $codeBankConfig->IPMessage=$data->message;
            $codeBankConfig->write();
            
            
            $response['status']='HELO';
            $response['message']=_t('CodeBankAPI.IP_MESSAGE_CHANGE', '_Intellectual Property message changed successfully');
        }catch (Exception $e) {
            $response['status']='EROR';
            $response['message']=_t('CodeBankAPI.SERVER_ERROR', '_Server error has occured, please try again later');
        }
        
        return $response;
    }
public function saveIPMessage ( $ data ) { $ response = CodeBank_ClientAPI :: responseBase ( ) ; if ( ! Permission :: check ( 'ADMIN' ) ) { $ response [ 'status' ] = 'EROR' ; $ response [ 'message' ] = _t ( 'CodeBankAPI.PERMISSION_DENINED' , '_Permission Denied' ) ; return $ response ; } try { $ codeBankConfig = CodeBankConfig :: CurrentConfig ( ) ; $ codeBankConfig -> IPMessage = $ data -> message ; $ codeBankConfig -> write ( ) ; $ response [ 'status' ] = 'HELO' ; $ response [ 'message' ] = _t ( 'CodeBankAPI.IP_MESSAGE_CHANGE' , '_Intellectual Property message changed successfully' ) ; } catch ( Exception $ e ) { $ response [ 'status' ] = 'EROR' ; $ response [ 'message' ] = _t ( 'CodeBankAPI.SERVER_ERROR' , '_Server error has occured, please try again later' ) ; } return $ response ; }
Saves the IP Message
@param {stdClass} $data Data passed from ActionScript
@return {array} Returns a standard response array
Saves the IP Message