Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5e9959f
Formatted the source to PSR2
tysonphillips Dec 16, 2019
75dbf2f
Merge pull request #1 from blesta/update-formatting-for-psr2
tysonphillips Dec 16, 2019
1a9f7a1
Fixed a "Undefined property" error, when there are no domains availab…
abdyfranco Dec 18, 2019
74faefb
Formatted all views to match standards for Blesta
abdyfranco Dec 18, 2019
c07e1b9
Fixed a "Trying to get property of non-object" error when creating a …
abdyfranco Dec 19, 2019
b352638
Updated config, updated readme, updated description
Jan 23, 2020
7f9b3fa
Added the "Create Packages" Function
abdyfranco Feb 1, 2020
a4c3731
Merge pull request #2 from blesta/update-configuration-file
tysonphillips Feb 7, 2020
1231f07
Added AJAX Support and Improved Code Quality
abdyfranco Apr 2, 2020
56bb804
Load only selected TLDs using AJAX
abdyfranco Apr 7, 2020
7122165
Respect manual impot on markup change
abdyfranco Apr 7, 2020
f39d88b
Merged create packages and edit packages views in to one view
abdyfranco Apr 9, 2020
24b89f3
Fixed a bug where unchecked checkboxes are not saved
abdyfranco Apr 9, 2020
330cf20
Updated language definitions and disabled unchecked renewal fields
abdyfranco Apr 9, 2020
aa7a062
Merge branch 'master' into master
JReissmueller Apr 10, 2020
cd8bf43
Merge pull request #3 from abdyfranco/master
JReissmueller Apr 10, 2020
0a73f96
Added new composer file
JReissmueller May 1, 2020
4a5f887
Fixed whitespace
JReissmueller May 4, 2020
d6c5edd
Merge pull request #4 from blesta/add-composer-file
abdyfranco May 4, 2020
f47da68
Fixed Check Availability error
Mr-DRP May 12, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
_notes
*.bak
/nbproject/
.idea
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]
### Changed
- Formatted all source code to PSR-2 standards for Blesta
- Fixed a couple "undefined variable" errors encountered on initial installation
- Updated the look of the submit buttons
- Fixed a "Undefined property" error, when there are no domains available in Audit Domains

## [1.8.5] = 2018-11-19
### Added
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Blesta-Namesilo
# Blesta/Namesilo
Blesta Namesilo module

This module interfaces with Namesilo's domain API to allow domain registrations, transfers and renewals through Blesta.
Expand Down Expand Up @@ -43,4 +43,11 @@ The module provides the following template tags for use in welcome email templat
| service.years | Years of registration or extension if it's a transfer |
| package.meta.ns | Array of default nameservers configured on the package. This may not match what the customer submitted if they changed it. |

**[Get your Namesilo account here](https://www.namesilo.com/)**
**[Get your Namesilo account here](https://www.namesilo.com/)**

### Blesta Compatibility

|Blesta Version|Module Version|
|--------------|--------------|
|< v4.9.0|v1.9.0|
|>= v4.9.0|v1.10.0+|
88 changes: 44 additions & 44 deletions apis/codes.php
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
<?php

Configure::set( 'Namesilo.status.codes', array(
Configure::set('Namesilo.status.codes', [

'101' => array( 'HTTPS not used', 'fail' ),
'102' => array( 'No version specified', 'fail' ),
'103' => array( 'Invalid API version', 'fail' ),
'104' => array( 'No type specified', 'fail' ),
'105' => array( 'Invalid API type', 'fail' ),
'106' => array( 'No operation specified', 'fail' ),
'107' => array( 'Invalid API operation', 'fail' ),
'108' => array( 'Missing parameters for the specified operation', 'fail' ),
'109' => array( 'No API key specified', 'fail' ),
'110' => array( 'Invalid API key', 'fail' ),
'111' => array( 'Invalid User', 'fail' ),
'112' => array( 'API not available to Sub-Accounts', 'fail' ),
'113' => array( 'This API account cannot be accessed from your IP', 'fail' ),
'114' => array( 'Invalid Domain Syntax', 'fail' ),
'115' => array( 'Central Registry Not Responding - try again later', 'fail' ),
'116' => array( 'Invalid sandbox account', 'fail' ),
'117' => array( 'The provided credit card profile either does not exist, or is not associated with your account', 'fail' ),
'118' => array( 'The provided credit card profile has not been verified', 'fail' ),
'119' => array( 'Insufficient account funds for requested transaction', 'fail' ),
'120' => array( 'API key must be passed as a GET', 'fail' ),
'101' => [ 'HTTPS not used', 'fail' ],
'102' => [ 'No version specified', 'fail' ],
'103' => [ 'Invalid API version', 'fail' ],
'104' => [ 'No type specified', 'fail' ],
'105' => [ 'Invalid API type', 'fail' ],
'106' => [ 'No operation specified', 'fail' ],
'107' => [ 'Invalid API operation', 'fail' ],
'108' => [ 'Missing parameters for the specified operation', 'fail' ],
'109' => [ 'No API key specified', 'fail' ],
'110' => [ 'Invalid API key', 'fail' ],
'111' => [ 'Invalid User', 'fail' ],
'112' => [ 'API not available to Sub-Accounts', 'fail' ],
'113' => [ 'This API account cannot be accessed from your IP', 'fail' ],
'114' => [ 'Invalid Domain Syntax', 'fail' ],
'115' => [ 'Central Registry Not Responding - try again later', 'fail' ],
'116' => [ 'Invalid sandbox account', 'fail' ],
'117' => [ 'The provided credit card profile either does not exist, or is not associated with your account', 'fail' ],
'118' => [ 'The provided credit card profile has not been verified', 'fail' ],
'119' => [ 'Insufficient account funds for requested transaction', 'fail' ],
'120' => [ 'API key must be passed as a GET', 'fail' ],

'200' => array( 'Domain is not active, or does not belong to this user', 'fail' ),
'201' => array( 'Internal system error', 'fail' ),
'210' => array( 'General error (details provided in response)', 'fail' ),
'250' => array( 'Domain is already set to AutoRenew - No update made.', 'fail' ),
'251' => array( 'Domain is already set not to AutoRenew - No update made.', 'fail' ),
'252' => array( 'Domain is already Locked - No update made.', 'fail' ),
'253' => array( 'Domain is already Unlocked - No update made.', 'fail' ),
'254' => array( 'NameServer update cannot be made. (details provided in response)', 'fail' ),
'255' => array( 'Domain is already Private - No update made.', 'fail' ),
'256' => array( 'Domain is already Not Private - No update made.', 'fail' ),
'261' => array( 'Domain processing error (details provided in response)', 'fail' ),
'262' => array( 'This domain is already active within our system and therefore cannot be processed.', 'fail' ),
'263' => array( 'Invalid number of years, or no years provided.', 'fail' ),
'264' => array( 'Domain cannot be renewed for specified number of years (details provided in response)', 'fail' ),
'265' => array( 'Domain cannot be transferred at this time (details provided in response)', 'fail' ),
'266' => array( 'No domain transfer exists for this user for this domain', 'fail' ),
'267' => array( 'Invalid domain name, or we do not support the provided extension/TLD.', 'fail' ),
'280' => array( 'DNS modification error', 'fail' ),
'200' => [ 'Domain is not active, or does not belong to this user', 'fail' ],
'201' => [ 'Internal system error', 'fail' ],
'210' => [ 'General error (details provided in response)', 'fail' ],
'250' => [ 'Domain is already set to AutoRenew - No update made.', 'fail' ],
'251' => [ 'Domain is already set not to AutoRenew - No update made.', 'fail' ],
'252' => [ 'Domain is already Locked - No update made.', 'fail' ],
'253' => [ 'Domain is already Unlocked - No update made.', 'fail' ],
'254' => [ 'NameServer update cannot be made. (details provided in response)', 'fail' ],
'255' => [ 'Domain is already Private - No update made.', 'fail' ],
'256' => [ 'Domain is already Not Private - No update made.', 'fail' ],
'261' => [ 'Domain processing error (details provided in response)', 'fail' ],
'262' => [ 'This domain is already active within our system and therefore cannot be processed.', 'fail' ],
'263' => [ 'Invalid number of years, or no years provided.', 'fail' ],
'264' => [ 'Domain cannot be renewed for specified number of years (details provided in response)', 'fail' ],
'265' => [ 'Domain cannot be transferred at this time (details provided in response)', 'fail' ],
'266' => [ 'No domain transfer exists for this user for this domain', 'fail' ],
'267' => [ 'Invalid domain name, or we do not support the provided extension/TLD.', 'fail' ],
'280' => [ 'DNS modification error', 'fail' ],

'300' => array( 'Successful API operation', 'success' ),
'301' => array( 'Successful registration, but not all provided hosts were valid, resulting in our nameservers being used', 'success' ),
'302' => array( 'Successful order, but there was an error with the contact information provided so your account default contact profile was used', 'success' ),
'300' => [ 'Successful API operation', 'success' ],
'301' => [ 'Successful registration, but not all provided hosts were valid, resulting in our nameservers being used', 'success' ],
'302' => [ 'Successful order, but there was an error with the contact information provided so your account default contact profile was used', 'success' ],

'400' => array( 'Existing API request is still processing - request will need to be re-submitted', 'fail' ),
'400' => [ 'Existing API request is still processing - request will need to be re-submitted', 'fail' ],

));
]);
Loading