mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-04 14:13:52 +09:00
Merge pull request #414 from BelleNottelling/spelling
Fix spelling across the entire repo
This commit is contained in:
73 files changed
+524
-184
No files matched your search
+14
-14
@@ -2,8 +2,8 @@ Master
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
**General:**
|
||||
* Rafactoring admin template with Tabler.io
|
||||
* Templates extensions .phtml ranamed to .html.twig
|
||||
* Refactoring admin template with Tabler.io
|
||||
* Templates extensions .phtml renamed to .html.twig
|
||||
* Updated bb-themes/bootstrap to Bootstrap 5
|
||||
|
||||
Release 4.22-beta.1.1
|
||||
@@ -19,7 +19,7 @@ Release 4.22-beta.1.2 !!Update in progress!!
|
||||
*
|
||||
|
||||
**Bug Fixes:**
|
||||
* Fix plesk integration
|
||||
* Fix Plesk integration
|
||||
|
||||
Release 4.22-beta.1.1
|
||||
------------------------------------------------------------------------------
|
||||
@@ -33,14 +33,14 @@ Release 4.22-beta.1.1
|
||||
|
||||
**Security:**
|
||||
* Fixed three instances of XSS vulnerabilities
|
||||
* Use random_bytes instead of uniqid since it actually generates cryptographically secure pseudo-random bytes
|
||||
* Use random_bytes instead of `uniqid` since it actually generates cryptographically secure pseudo-random bytes
|
||||
|
||||
**Bug Fixes**
|
||||
* Bugfixes with Bootstrap theme
|
||||
* Fix PDF generation
|
||||
* Fix KB entries, Tickets, and Invoices being duplicated in the BoxBilling interface
|
||||
* Fix "8192 Required parameter follows optional parameter"
|
||||
* Corrected path to stylesheet in Boostrap theme
|
||||
* Corrected path to stylesheet in Bootstrap theme
|
||||
* Fixed PHP 8 support
|
||||
* Fix PDF generation on PHP 8
|
||||
* Fix BoxBilling updater and have it update off GitHub releases
|
||||
@@ -125,7 +125,7 @@ Release 4.16
|
||||
* Seo module updates
|
||||
* Users must verify theirs emails after email confirmations setting is enabled
|
||||
* Compatibility with PHP7
|
||||
* Generate VAT rules for each EU country according to it's standart rate
|
||||
* Generate VAT rules for each EU country according to it's standard rate
|
||||
* Various bug fixes and improvements
|
||||
|
||||
Release 4.15 (2015-02-19)
|
||||
@@ -197,7 +197,7 @@ Release 4.13 (2015-01-15)
|
||||
* WebMoney payment adapter updated
|
||||
* Ability to set how many hours user needs to wait until consequent support ticket submission
|
||||
* Added search in canned responses
|
||||
* Code improvements and optimisations
|
||||
* Code improvements and optimization
|
||||
* YouHosting module rewritten to work with open source version
|
||||
* Translation implementation reworked.
|
||||
* Bug fixes
|
||||
@@ -263,7 +263,7 @@ Release 2.11.28 (2012-11-28)
|
||||
* News module updates
|
||||
* Ability to change payment gateway in invoice payment page
|
||||
* Immediately redirect to payment gateway after checkout if payment gateway was selected
|
||||
* Defautl theme update: Show client login/signup form before checkout button in shopping cart
|
||||
* Default theme update: Show client login/signup form before checkout button in shopping cart
|
||||
* Search can be made by order meta keys
|
||||
* Added new database table *client_order_meta* to store custom order data
|
||||
* new statistic method to get number of sales by country
|
||||
@@ -272,14 +272,14 @@ Release 2.11.28 (2012-11-28)
|
||||
* Show Last month statistics in dashboard
|
||||
* Render mod_page_login.phtml instead of mod_client_login.phtml template if template exists
|
||||
* Allow create any template mod_client_*.phtml to be accessed by client only
|
||||
* Added redirects module. Usefull to redirect deprecated URLs to new ones
|
||||
* Added redirects module. Useful to redirect deprecated URLs to new ones
|
||||
* Simplified payment gateway logic. Now it is a simple file, no need to extend any class.
|
||||
* New event hooks:
|
||||
* onBeforeAdminExtensionConfigSave
|
||||
* onAfterAdminExtensionConfigSave
|
||||
* onBeforeProductAddedToCart
|
||||
* onAfterProductAddedToCart
|
||||
* Removed hostinger branding
|
||||
* Removed Hostinger branding
|
||||
* Option to enable/disable ability for client to change his email
|
||||
* Ability to require email confirmation in welcome email
|
||||
* Ability to define required fields for client registration form
|
||||
@@ -389,7 +389,7 @@ Release 2.6.17 (2012-06-17)
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
* New SolusVM VPS product type. Ability to import clients and existing servers from SolusVM master server. Full control from admin and client area.
|
||||
* New product type BoxBiling license. Ability to sell BoxBilling licenses from any BoxBilling installation. Enable
|
||||
* New product type BoxBilling license. Ability to sell BoxBilling licenses from any BoxBilling installation. Enable
|
||||
* Email templates are generated on first event occurrence. Until then it can not be managed.
|
||||
* Ability to filter orders by invoice option: issue invoice manually or automatically.
|
||||
* Ability to preview email templates. Old email templates are deprecated.
|
||||
@@ -403,7 +403,7 @@ Release 2.6.17 (2012-06-17)
|
||||
* New dashboard widget to show active orders count grouped by products
|
||||
* Updated Twig to 1.8.2 version
|
||||
* Added ability to disable/enable automatic invoice issuing for orders
|
||||
* SpamChecker is a module. Google recapthca and stopforumspam.com database checks can be simply enabled or disabled as any other module
|
||||
* SpamChecker is a module. Google recaptcha and stopforumspam.com database checks can be simply enabled or disabled as any other module
|
||||
* All extensions can call other extension event hooks
|
||||
* All extensions can hook into cron job event
|
||||
* Added new API methods **extension_config_get** and **extension_config_save** to store encrypted extension configuration data
|
||||
@@ -447,7 +447,7 @@ Release v2.4.30 (2012-04-30)
|
||||
* https://github.com/boxbilling/BoxBilling/issues/115 fix
|
||||
* Password issue fix: https://github.com/boxbilling/BoxBilling/issues/114
|
||||
* Including http://redbeanphp.com/ ORM in bb-library/rb.php For extensions as a helper
|
||||
* Simplifie nginx server support. Routing includes only 2 simple rules
|
||||
* Simplified nginx server support. Routing includes only 2 simple rules
|
||||
* Adding new core module mod_api. Api is now accessible from yourdomain.com/api/role/module/method. bb-api is deprecated and will be removed in 2.6 version
|
||||
* Gravatar url uses ssl if BoxBilling is on https
|
||||
* Selectable refunds logic: generate refund invoice with paid invoice numbering or generate credit note
|
||||
@@ -468,7 +468,7 @@ Release v2.4.30 (2012-04-30)
|
||||
* Hosting account password is generated on order activation action
|
||||
* Removing favicon to avoid overwriting on update
|
||||
* Added zip code management to invoice client credentials
|
||||
* Whm/Cpanel server manager update. Do not try to exceute command again if response failed
|
||||
* Whm/Cpanel server manager update. Do not try to execute command again if response failed
|
||||
* Translations fix
|
||||
* Typo fix in order management page
|
||||
* WebToPay payment adapter updates
|
||||
|
||||
+3
-3
@@ -43,7 +43,7 @@ acceptable behavior and will take appropriate and fair corrective action in
|
||||
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||
or harmful.
|
||||
|
||||
Project maintaners have the right and responsibility to remove, edit, or reject
|
||||
Project maintainers have the right and responsibility to remove, edit, or reject
|
||||
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||
decisions when appropriate.
|
||||
@@ -64,7 +64,7 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
|
||||
|
||||
## Enforcement Guidelines
|
||||
|
||||
Project maintaners will follow these Community Impact Guidelines in determining
|
||||
Project maintainers will follow these Community Impact Guidelines in determining
|
||||
the consequences for any action they deem in violation of this Code of Conduct:
|
||||
|
||||
### 1. Correction
|
||||
@@ -72,7 +72,7 @@ the consequences for any action they deem in violation of this Code of Conduct:
|
||||
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||
unprofessional or unwelcome in the community.
|
||||
|
||||
**Consequence**: A private, written warning from Project maintaners, providing
|
||||
**Consequence**: A private, written warning from Project maintainers, providing
|
||||
clarity around the nature of the violation and an explanation of why the
|
||||
behavior was inappropriate. A public apology may be requested.
|
||||
|
||||
|
||||
+16
-16
@@ -25,7 +25,7 @@ We've tried to keep this document as short as possible but there is a lot of inf
|
||||
* [Translating FOSSBilling](#translating-fossbilling)
|
||||
* [Sponsor the project](#sponsoring-the-project)
|
||||
|
||||
[Styleguides](#styleguides)
|
||||
[style Guides](#styleguides)
|
||||
|
||||
[But, I still have a question!](#but-i=stil-have-a-question)
|
||||
|
||||
@@ -46,7 +46,7 @@ If you need more reasons than that though, then because...
|
||||
|
||||
First off, no matter how you plan to take part, please take a couple of minutes to read our code of conduct before contributing anything.
|
||||
|
||||
This project and everyone participating in it are governed by the [FOSSBilling Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behaviour to the moderators on our [Discord](https://fossbilling.org/discord) server.
|
||||
This project and everyone participating in it are governed by the [FOSSBilling Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to the moderators on our [Discord](https://fossbilling.org/discord) server.
|
||||
|
||||
### Which 'branch' should I contribute to?
|
||||
|
||||
@@ -54,7 +54,7 @@ The future of FOSSBilling is the /lara branch, which is a major rewrite of the c
|
||||
|
||||
In the meantime, the /main branch is being maintained with bug fixes, security updates and small enhancements. It is the codebase that was inherited from BoxBilling with some small enhancements and updates.
|
||||
|
||||
### Unserstanding the strucutre of FOSSBilling
|
||||
### Understanding the structure of FOSSBilling
|
||||
|
||||
FOSSBilling is an open-source project — it's made up of over [50 modules](https://github.com/FOSSBilling/FOSSBilling/tree/master/src/bb-modules). When you initially consider contributing to FOSSBilling, you might be unsure about which of those 50 modules implements the functionality you want to change or report a bug for. This section should help you with that.
|
||||
|
||||
@@ -75,7 +75,7 @@ There are a lot of different ways that you can get involved in the FOSSBilling p
|
||||
|
||||
### Reporting bugs
|
||||
|
||||
If you find a bug in FOSSBilling, please report it. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behaviour:computer:, and find related reports :mag_right:.
|
||||
If you find a bug in FOSSBilling, please report it. Following these guidelines helps maintainers and the community understand your report :pencil:, reproduce the behavior:computer:, and find related reports :mag_right:.
|
||||
|
||||
#### Before submitting a bug report
|
||||
|
||||
@@ -93,9 +93,9 @@ Explain the problem and include additional details to help maintainers reproduce
|
||||
|
||||
* **Use a clear and descriptive title** for the issue to identify the problem.
|
||||
* **Describe the exact steps which reproduce the problem** in as much detail as possible. For example, start by explaining what section exactly you used in the browser, or which API call you were using. When listing steps, **don't just say what you did but explain how you did it**.
|
||||
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pasteable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
||||
* **Describe the behaviour you observed after following the steps** and point out what exactly is the problem with that behaviour.
|
||||
* **Explain which behaviour you expected to see instead and why.**
|
||||
* **Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, or copy/pastable snippets, which you use in those examples. If you're providing snippets in the issue, use [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
|
||||
* **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
|
||||
* **Explain which behavior you expected to see instead and why.**
|
||||
* **Include screenshots and animated GIFs** which show you following the described steps and demonstrate the problem.
|
||||
* **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
|
||||
|
||||
@@ -145,7 +145,7 @@ The process described here has several goals:
|
||||
Please follow these steps to have your contribution considered by the maintainers:
|
||||
|
||||
1. Follow all instructions in [the template](https://github.com/FOSSBilling/.github/blob/master/.github/PULL_REQUEST_TEMPLATE/bug_fix.md)
|
||||
2. Follow the [styleguides](#styleguides)
|
||||
2. Follow the [style guides](#styleguides)
|
||||
3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing <details><summary>What if the status checks are failing?</summary>If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.</details>
|
||||
|
||||
Before a PR can be merged it must pass all of the automated tests and also be reviewed by two maintainers. All of the above requirements must be met before your pull request will be reviewed. Please be aware that the reviewers may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
|
||||
@@ -156,7 +156,7 @@ Great code is only one-half of any successful project, and great documentation i
|
||||
|
||||
The documentation for FOSSBilling is hosted here: [FOSSBilling Docs](https://docs.fossbilling.org/)
|
||||
|
||||
Documentation is built using [Docusauras](https://docusaurus.io/) from this [GitHub repository](https://github.com/FOSSBilling/docs). You can contribute directly to the repo on GitHub or using the *Edit this page* links on each page of the docs site.
|
||||
Documentation is built using [docusaurus](https://docusaurus.io/) from this [GitHub repository](https://github.com/FOSSBilling/docs). You can contribute directly to the repo on GitHub or using the *Edit this page* links on each page of the docs site.
|
||||
|
||||
Please try to be thorough and clear when writing directions. Something might seem obvious to you, but do not assume that it is to everybody else.
|
||||
|
||||
@@ -175,9 +175,9 @@ If you do not have the time or necessary skills to actively take part in the dev
|
||||
You can do this using [GitHub Sponsors](https://github.com/sponsors/FOSSBilling) or on [Open Collective](https://opencollective.com/fossbilling).
|
||||
|
||||
|
||||
## Styleguides
|
||||
## Style Guides
|
||||
|
||||
### Commit Messages Styleguide
|
||||
### Commit Messages Style Guide
|
||||
|
||||
Please be as clear and descriptive as possible in your commit messages, it makes it much easier for everyone to follow them.
|
||||
|
||||
@@ -195,17 +195,17 @@ Please be as clear and descriptive as possible in your commit messages, it makes
|
||||
* ⬆️ when upgrading dependencies
|
||||
* :sparkles: when it is a new feature
|
||||
|
||||
### PHP Styleguide
|
||||
### PHP Style Guide
|
||||
|
||||
All PHP must adhere to [PSR-12](https://www.php-fig.org/psr/psr-12/).
|
||||
|
||||
The /lara branch is a work in progress and is being built in Laravel. If you are not familiar with the framework then please take a look at the [Laravel docs](https://laravel.com/docs/9.x) before diving in.
|
||||
The lara branch is a work in progress and is being built in Laravel. If you are not familiar with the framework then please take a look at the [Laravel docs](https://laravel.com/docs/9.x) before diving in.
|
||||
|
||||
### Documentation Styleguide
|
||||
### Documentation Style Guide
|
||||
|
||||
We don't have a formal Documentation Styleguide yet, but we will be developing one soon. In the meantime please take a look at the existing documentation and follow the tone and writing style so that everything stays coherent.
|
||||
We don't have a formal documentation style guide yet, but we will be developing one soon. In the meantime please take a look at the existing documentation and follow the tone and writing style so that everything stays coherent.
|
||||
|
||||
Docusauras uses Markdown and MDX. Please [see their guides](https://docusaurus.io/docs/markdown-features) for how to use them if you are not sure.
|
||||
Docusaurus uses Markdown and MDX. Please [see their guides](https://docusaurus.io/docs/markdown-features) for how to use them if you are not sure.
|
||||
|
||||
## But, I still have a question!
|
||||
|
||||
|
||||
+4
-4
@@ -19,7 +19,7 @@ The FOSSBilling community is made up of individuals, companies, or groups who us
|
||||
|
||||
Anybody is free to use the core FOSSBilling software within the terms of the [license](https://github.com/FOSSBilling/FOSSBilling/blob/main/LICENSE). There are not and never will be any fees for usage, and no special requirements.
|
||||
|
||||
We really appreciate user contributions but if you just want to download, install, and go, then you have the complee freedom to do that.
|
||||
We really appreciate user contributions but if you just want to download, install, and go, then you have the complete freedom to do that.
|
||||
|
||||
If you do want to be more involved in the community then the project [GitHub](https://github.com/FOSSBilling/FOSSBilling) page, the [Contribution Guidelines](https://github.com/FOSSBilling/FOSSBilling/blob/main/CONTRIBUTING.md), and [Discord](https://fossbilling.org/discord) are great places to start. You can also sponsor the project on [GitHub Sponsors](https://github.com/sponsors/FOSSBilling) or with [Open Collective](https://opencollective.com/fossbilling).
|
||||
|
||||
@@ -36,7 +36,7 @@ Although there is no concrete expectation of participation, contributions are wh
|
||||
|
||||
There are no specific skill requirements and no formal selection process. A contributor's elevation to the role of maintainer will be done after discussion by, and at the discretion of, the steering committee.
|
||||
|
||||
Maintainer status can be removed if somebody demonstrates disruptive behaviour, if they resign, or if they do not participate in the community or contribute to the project for 6 months. This would be decided by a majority consensus of the steering committee.
|
||||
Maintainer status can be removed if somebody demonstrates disruptive behavior, if they resign, or if they do not participate in the community or contribute to the project for 6 months. This would be decided by a majority consensus of the steering committee.
|
||||
|
||||
## Steering Committee
|
||||
|
||||
@@ -56,7 +56,7 @@ At this moment the Steering Committee includes seven members - identified here b
|
||||
|
||||
Members of the steering committee may recommend and appoint new members from the community at any time. A nomination for a new member will result in a discussion and a vote by the existing committee members.
|
||||
|
||||
Members may be removed from the committee if they demonstrate disruptive behaviour, if they resign, or if they do not participate in the community or contribute to the project for 6 months. In the case of disruptive bevaviour, removal will be decided on by discussion and majority consensus between the other committee members.
|
||||
Members may be removed from the committee if they demonstrate disruptive behavior, if they resign, or if they do not participate in the community or contribute to the project for 6 months. In the case of disruptive behavior, removal will be decided on by discussion and majority consensus between the other committee members.
|
||||
|
||||
## Decision-making process
|
||||
|
||||
@@ -64,7 +64,7 @@ Major decisions about the future of FOSSBilling will be made after community dis
|
||||
|
||||
We aim to resolve all issues and proposals through discussion, debate and collaboration. We are not saying that we will never resort to polls or votes but we will use them with care. Poll results will be used to help inform debate and consensus but they will not be taken as binding and definitive, and will not be the sole deciding factors.
|
||||
|
||||
Because we aim to be transparent in our decision-making, all discussion on any issues and propsals, with the exception of security and sensitive governance issues, will take place in public on GitHub and Discord.
|
||||
Because we aim to be transparent in our decision-making, all discussion on any issues and proposals, with the exception of security and sensitive governance issues, will take place in public on GitHub and Discord.
|
||||
|
||||
Ideologically it would be great to involve all community members in every decision, but in practical terms, it is simply not possible if we want to be able to move forward at a reasonable speed.
|
||||
|
||||
|
||||
@@ -24,24 +24,27 @@
|
||||
</div>
|
||||
|
||||
> **Warning**
|
||||
> FOSSBilling is under active development but is currenly very much beta software, there may be stability or security issues and it is not recommended for use in active production environments yet!
|
||||
> FOSSBilling is under active development but is currently very much beta software, there may be stability or security issues and it is not recommended for use in active production environments yet!
|
||||
|
||||
**FOSSBilling** is a free open source, billing and client management solution. Whatever the size of your online services business, whether a startup or established, FOSSBilling can help you to automate your invoicing, incoming payments, and client management and communication.
|
||||
|
||||
If you run a web hosting business and are looking for an open-source alternative for billing and client management, then FOSSBilling is the answer. Although it is mostly used as a solution for hosting businesses, there is no reason why you can't use FOSSBilling for any other kind of online business, like digital downloads.
|
||||
|
||||
FOSSBilling is designed to be extensible and to integrate easily with your favourite server management software and payment gateways.
|
||||
FOSSBilling is designed to be extensible and to integrate easily with your favorite server management software and payment gateways.
|
||||
|
||||
📥 This is self-hosted software that is free for anyone to install — All you need is a some basic knowledge, a web server, running PHP and a MySQL database. For more details, check the [requirements](#requirements) section.
|
||||
|
||||
## Contents
|
||||
|
||||
- [Contents](#contents)
|
||||
- [Requirements](#requirements)
|
||||
- [Example Configurations](#example-configurations)
|
||||
- [Installation](#installation)
|
||||
- [Install the latest preview build](#download-the-latest-preview-build)
|
||||
- [Install from latest source code](#install-from-latest-source-code)
|
||||
- [Installing with Docker](#installing-with-docker)
|
||||
- [Download the latest preview build](#download-the-latest-preview-build)
|
||||
- [Install from latest source code](#install-from-latest-source-code)
|
||||
- [Installing with Docker](#installing-with-docker)
|
||||
- [Contributing](#contributing)
|
||||
- [Star History](#star-history)
|
||||
- [Licensing](#licensing)
|
||||
- [Links](#links)
|
||||
|
||||
@@ -78,7 +81,7 @@ If you're planning to use FOSSBilling in a production environment (see the discl
|
||||
|
||||
First, you should download the [latest preview build](https://fossbilling.org/downloads/preview). Unlike the source code, these preview builds already include the Composer packages, so you won't need to run Composer to install PHP packages. This is perfect if you are using shared hosting as you might not have the ability to run Composer yourself.
|
||||
|
||||
You can either downnload the .tar file to your local computer and then upload it to your server using FTP, or download it directly to your web server using wget or git clone. In either case, you will need to extract the contents into the public folder of your site (usually, that's called **"htdocs"** or **"public_html"**).
|
||||
You can either download the .tar file to your local computer and then upload it to your server using FTP, or download it directly to your web server using wget or git clone. In either case, you will need to extract the contents into the public folder of your site (usually, that's called **"htdocs"** or **"public_html"**).
|
||||
|
||||
Your web directory's structure should now look like this:
|
||||
- htdocs
|
||||
|
||||
+337
@@ -0,0 +1,337 @@
|
||||
{
|
||||
"version": "0.2",
|
||||
// language - current active spelling language
|
||||
"language": "en",
|
||||
// words - list of words to be always considered correct
|
||||
"words": [
|
||||
"FOSS",
|
||||
"huraga",
|
||||
"FOSSBilling",
|
||||
"BoxBilling",
|
||||
"evrifaessa",
|
||||
"andpavlenko",
|
||||
"jaapmarcus",
|
||||
"Plesk",
|
||||
"Huntr",
|
||||
"Fabien",
|
||||
"Potencier",
|
||||
"Kloxo",
|
||||
"Ispconfig",
|
||||
"Interkassa",
|
||||
"Payza",
|
||||
"Spyc",
|
||||
"Hostinger",
|
||||
"docusaurus",
|
||||
"Laravel",
|
||||
"pastable",
|
||||
"Nyan",
|
||||
"recognised",
|
||||
"fordnox",
|
||||
"Dockerized",
|
||||
"proccess",
|
||||
"unsuspended"
|
||||
],
|
||||
|
||||
"ignoreWords": [
|
||||
"thead",
|
||||
"tbody",
|
||||
"alink",
|
||||
"xlink",
|
||||
"stylesheet",
|
||||
"endfor",
|
||||
"currentpage",
|
||||
"numpages",
|
||||
"jquery",
|
||||
"jgrowl",
|
||||
"endmacro",
|
||||
"tlds",
|
||||
"selectboxtld",
|
||||
"msgid",
|
||||
"msgstr",
|
||||
"nplurals",
|
||||
"tmpname",
|
||||
"Nottelling",
|
||||
"ivsize",
|
||||
"ciphertext",
|
||||
"followlocation",
|
||||
"CURLOPT",
|
||||
"regexed",
|
||||
"punnycode",
|
||||
"timeago",
|
||||
"daysleft",
|
||||
"ipcountryname",
|
||||
"bbmd",
|
||||
"lngh",
|
||||
"Michelf",
|
||||
"loggedin",
|
||||
"ERRMODE",
|
||||
"Servicelicense",
|
||||
"solusvm",
|
||||
"Serviceboxbillinglicense",
|
||||
"mmdb",
|
||||
"BBLANG",
|
||||
"maintmode",
|
||||
"endapply",
|
||||
"helpdesk",
|
||||
"autorespond",
|
||||
"Spamchecker",
|
||||
"recaptcha",
|
||||
"noborder",
|
||||
"opengraph",
|
||||
"precomposed",
|
||||
"modernizr",
|
||||
"selectivizr",
|
||||
"cookieconsent",
|
||||
"signout",
|
||||
"signup",
|
||||
"figcaption",
|
||||
"onclick",
|
||||
"noscript",
|
||||
"orderbutton",
|
||||
"Servicesolusvm",
|
||||
"UNCANCEL",
|
||||
"uncancel",
|
||||
"accesshash",
|
||||
"qtys",
|
||||
"qnty",
|
||||
"rtable",
|
||||
"owndomain",
|
||||
"rtable",
|
||||
"tria",
|
||||
"ONHOLD",
|
||||
"TXTYPE",
|
||||
"SUBSCR",
|
||||
"sess",
|
||||
"sysdate",
|
||||
"promocode",
|
||||
"maxuses",
|
||||
"freesetup",
|
||||
"nopadding",
|
||||
"fieldset",
|
||||
"signups",
|
||||
"colspan",
|
||||
"tfoot",
|
||||
"xlarge",
|
||||
"selectbox",
|
||||
"sitekey",
|
||||
"sitekey",
|
||||
"autodark",
|
||||
"noopener",
|
||||
"datepicker",
|
||||
"tablist",
|
||||
"subpages",
|
||||
"subpage",
|
||||
"keyup",
|
||||
"aligncenter",
|
||||
"tabpanel",
|
||||
"nowrap",
|
||||
"Formbuilder",
|
||||
"datetime",
|
||||
"nbsp",
|
||||
"banklink",
|
||||
"taxname",
|
||||
"taxrate",
|
||||
"serie",
|
||||
"currencylayer",
|
||||
"custompages",
|
||||
"middlenav",
|
||||
"sendgrid",
|
||||
"endset",
|
||||
"tcode",
|
||||
"tstatus",
|
||||
"labelledby",
|
||||
"ctitle",
|
||||
"mtitle",
|
||||
"servicehosting",
|
||||
"cpanel",
|
||||
"Nameserver",
|
||||
"yourserverdomain",
|
||||
"optgroup",
|
||||
"iframe",
|
||||
"yourdomain",
|
||||
"uploadframe",
|
||||
"servicedownloadable",
|
||||
"servicedomain",
|
||||
"markitup",
|
||||
"ckeditor",
|
||||
"akismet",
|
||||
"codexplorer",
|
||||
"Xplorer",
|
||||
"POSTFIELDS",
|
||||
"RETURNTRANSFER",
|
||||
"hideit",
|
||||
"esubject",
|
||||
"econtent",
|
||||
"subvalue",
|
||||
"subsubkey",
|
||||
"subsubvalue",
|
||||
"autoescape",
|
||||
"endautoescape",
|
||||
"youparamname",
|
||||
"publickey",
|
||||
"dsearch",
|
||||
"domainsearch",
|
||||
"domainchecker",
|
||||
"mobi",
|
||||
"Servicecustom",
|
||||
"uglifycss",
|
||||
"upath",
|
||||
"pathe",
|
||||
"tabler",
|
||||
"apexcharts",
|
||||
"topnav",
|
||||
"yourparamvalue",
|
||||
"userid",
|
||||
"subkey",
|
||||
"blockquote",
|
||||
"floatright",
|
||||
"copyfields",
|
||||
"mydomain",
|
||||
"WHOIS",
|
||||
"Paidsupport",
|
||||
"supportticket",
|
||||
"massmailer",
|
||||
"kbcategories",
|
||||
"kbarticle",
|
||||
"noreferrer",
|
||||
"ptickets",
|
||||
"pticket",
|
||||
"sptm",
|
||||
"thankyoupage",
|
||||
"taxupdate",
|
||||
"Dompdf",
|
||||
"ctable",
|
||||
"DATEDIFF",
|
||||
"cbrepo",
|
||||
"OODB",
|
||||
"Inno",
|
||||
"onsubmit",
|
||||
"rgba",
|
||||
"autofocus",
|
||||
"Servicemembership",
|
||||
"uniqid",
|
||||
"Bluepay",
|
||||
"gettext",
|
||||
"Centova",
|
||||
"multisite",
|
||||
"mcrypt",
|
||||
"stopforumspam",
|
||||
"Internetbs",
|
||||
"binded",
|
||||
"tada",
|
||||
"TLDR",
|
||||
"htdocs",
|
||||
"LSWS",
|
||||
"Lighttpd",
|
||||
"mbstring",
|
||||
"srcset",
|
||||
"gugl",
|
||||
"cclogin",
|
||||
"CURDATE",
|
||||
"BOXCLR",
|
||||
"vatnum",
|
||||
"caid",
|
||||
"ECB's",
|
||||
"onkeyup",
|
||||
"DYSY",
|
||||
"uninstallation",
|
||||
"TRANSLIT",
|
||||
"taxtitle",
|
||||
"upgradables",
|
||||
"sdbname",
|
||||
"srepo",
|
||||
"cgroups",
|
||||
"Prio",
|
||||
"longblob",
|
||||
"loginform",
|
||||
"closethick",
|
||||
"allowtransparency",
|
||||
"tabindex",
|
||||
"Betransferred",
|
||||
"Firstname",
|
||||
"Lastname",
|
||||
"pids",
|
||||
"BOXADMR",
|
||||
"lsql",
|
||||
"rarr",
|
||||
"randnum",
|
||||
"classname",
|
||||
"drepo",
|
||||
"blud",
|
||||
"onbeforeunload",
|
||||
"colorpick",
|
||||
"clickout",
|
||||
"typeof",
|
||||
"signin",
|
||||
"helpdesks",
|
||||
"hostnames",
|
||||
"Askimet",
|
||||
"urlset",
|
||||
"lastmod",
|
||||
"changefreq",
|
||||
"remoteip",
|
||||
"timespan",
|
||||
"yeste",
|
||||
"Flot",
|
||||
"messageid",
|
||||
"eunion",
|
||||
"Roboto",
|
||||
"onchange",
|
||||
"enctype",
|
||||
"endtrans",
|
||||
"srch",
|
||||
"behaviour",
|
||||
"xaxis",
|
||||
"yaxis",
|
||||
"susp",
|
||||
"cancelation",
|
||||
"inps",
|
||||
"ptitle",
|
||||
"PLUGINNAME",
|
||||
"nody",
|
||||
"Perds",
|
||||
"prms",
|
||||
"apikey",
|
||||
"tailwindcss",
|
||||
"flexbox",
|
||||
"juoda",
|
||||
"BOXSID"
|
||||
],
|
||||
"ignorePaths": [
|
||||
"tests/**",
|
||||
"node_modules/**",
|
||||
"src/bb-themes/*/assets/**",
|
||||
"src/install/assets/**",
|
||||
"src/install/sql/**",
|
||||
"src/rb.php",
|
||||
"src/bb-modules/*/assets/**",
|
||||
"src/composer.json",
|
||||
"src/composer.lock",
|
||||
"src/bb-modules/Servicesolusvm/**",
|
||||
"build.xml",
|
||||
"data/**",
|
||||
"Makefile",
|
||||
"phpunit.xml.dist",
|
||||
"bin/**",
|
||||
"src/bb-library/GeoLite2-Country.mmdb",
|
||||
"cspell.json",
|
||||
"package.json",
|
||||
"src/bb-library/Registrar/**",
|
||||
"src/bb-library/Server/Manager/**",
|
||||
"src/bb-library/Box/**",
|
||||
"src/bb-library/Payment/Adapter/**",
|
||||
"src/bb-library/php-gettext/**",
|
||||
"src/bb-locale/**",
|
||||
"src/bb-modules/System/Service.php",
|
||||
"src/bb-modules/Servicecentovacast/**",
|
||||
"src/bb-library/Server/Package.php",
|
||||
"src/bb-modules/Currency/Service.php",
|
||||
"src/bb-themes/admin_default/gulpfile.babel.js",
|
||||
"src/bb-modules/Seo/Service.php",
|
||||
"src/bb-modules/Orderbutton/html_client/mod_orderbutton_js.html.twig",
|
||||
"src/bb-modules/Massmailer/Api/Admin.php",
|
||||
"src/bb-modules/System/html_admin/mod_system_settings.html.twig",
|
||||
"gulpfile.babel.js",
|
||||
"htaccess.txt"
|
||||
]
|
||||
}
|
||||
@@ -56,7 +56,7 @@ abstract class Payment_AdapterAbstract
|
||||
$this->_config = $config;
|
||||
|
||||
/**
|
||||
* Redirect client after successfull payment, usually to invoice
|
||||
* Redirect client after successful payment, usually to invoice
|
||||
*/
|
||||
if(!$this->getParam('return_url')) {
|
||||
throw new Payment_Exception('Return URL for payment gateway was not set', array(), 6001);
|
||||
|
||||
@@ -34,7 +34,7 @@ class Registrar_Adapter_Custom extends Registrar_AdapterAbstract
|
||||
);
|
||||
}
|
||||
|
||||
public function isDomainCanBeTransfered(Registrar_Domain $domain)
|
||||
public function isDomaincanBeTransferred(Registrar_Domain $domain)
|
||||
{
|
||||
$this->getLog()->debug('Checking if domain can be transferred: ' . $domain->getName());
|
||||
return true;
|
||||
@@ -563,7 +563,7 @@ class Whois {
|
||||
*/
|
||||
private function get_tld()
|
||||
{
|
||||
// Splitting domainname
|
||||
// Splitting domain name
|
||||
$domain=explode(".",$this->domain);
|
||||
|
||||
if(count($domain)>2) {
|
||||
@@ -606,7 +606,7 @@ class Whois {
|
||||
*/
|
||||
private function get_domain()
|
||||
{
|
||||
// Splitting domainname
|
||||
// Splitting domain name
|
||||
$domain=explode(".",$this->domain);
|
||||
return $domain[0];
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ class Registrar_Adapter_Email extends Registrar_AdapterAbstract
|
||||
throw new Registrar_Exception('Email registrar can not determine whether domain is available');
|
||||
}
|
||||
|
||||
public function isDomainCanBeTransfered(Registrar_Domain $domain)
|
||||
public function isDomaincanBeTransferred(Registrar_Domain $domain)
|
||||
{
|
||||
throw new Registrar_Exception('Email registrar can not determine whether domain can be transferred');
|
||||
}
|
||||
@@ -619,7 +619,7 @@ class Whois2 {
|
||||
*/
|
||||
private function get_tld()
|
||||
{
|
||||
// Splitting domainname
|
||||
// Splitting domain name
|
||||
$domain=explode(".",$this->domain);
|
||||
|
||||
if(count($domain)>2) {
|
||||
@@ -662,7 +662,7 @@ class Whois2 {
|
||||
*/
|
||||
private function get_domain()
|
||||
{
|
||||
// Splitting domainname
|
||||
// Splitting domain name
|
||||
$domain=explode(".",$this->domain);
|
||||
return $domain[0];
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ class Registrar_Adapter_Internetbs extends Registrar_AdapterAbstract
|
||||
return ($result['status'] == 'AVAILABLE');
|
||||
}
|
||||
|
||||
public function isDomainCanBeTransfered(Registrar_Domain $domain)
|
||||
public function isDomaincanBeTransferred(Registrar_Domain $domain)
|
||||
{
|
||||
throw new Registrar_Exception('Domain transfer checking is not implemented');
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ class Registrar_Adapter_Resellerclub extends Registrar_AdapterAbstract
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isDomainCanBeTransfered(Registrar_Domain $domain)
|
||||
public function isDomaincanBeTransferred(Registrar_Domain $domain)
|
||||
{
|
||||
$params = array(
|
||||
'domain-name' => $domain->getName(),
|
||||
|
||||
@@ -37,7 +37,7 @@ abstract class Registrar_AdapterAbstract
|
||||
* @return bool
|
||||
* @throws Registrar_Exception
|
||||
*/
|
||||
abstract public function isDomainCanBeTransfered(Registrar_Domain $domain);
|
||||
abstract public function isDomaincanBeTransferred(Registrar_Domain $domain);
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
|
||||
@@ -3780,7 +3780,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"data-product attribute value will be overiden if popup's product is selected "
|
||||
"data-product attribute value will be if popup's product is selected "
|
||||
"from select-box above"
|
||||
msgstr ""
|
||||
|
||||
@@ -4029,7 +4029,7 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"Please keep in mind that field name can not start with number. Special "
|
||||
"characters will be replaced with underscrore ( _ )"
|
||||
"characters will be replaced with underscores ( _ )"
|
||||
msgstr ""
|
||||
|
||||
msgid "Label"
|
||||
@@ -5366,7 +5366,7 @@ msgstr ""
|
||||
msgid "Error message:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Set paid supoprt for helpdesks: "
|
||||
msgid "Set paid support for helpdesks: "
|
||||
msgstr ""
|
||||
|
||||
msgid "Create new helpdesk"
|
||||
|
||||
@@ -3779,7 +3779,7 @@ msgid ""
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"data-product attribute value will be overiden if popup's product is selected "
|
||||
"data-product attribute value will be overridden if popup's product is selected "
|
||||
"from select-box above"
|
||||
msgstr ""
|
||||
|
||||
@@ -4028,7 +4028,7 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
"Please keep in mind that field name can not start with number. Special "
|
||||
"characters will be replaced with underscrore ( _ )"
|
||||
"characters will be replaced with underscores ( _ )"
|
||||
msgstr ""
|
||||
|
||||
msgid "Label"
|
||||
@@ -5365,7 +5365,7 @@ msgstr ""
|
||||
msgid "Error message:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Set paid supoprt for helpdesks: "
|
||||
msgid "Set paid support for helpdesks: "
|
||||
msgstr ""
|
||||
|
||||
msgid "Create new helpdesk"
|
||||
|
||||
@@ -123,8 +123,8 @@ class Service implements InjectionAwareInterface
|
||||
}
|
||||
|
||||
if (!empty($where)) {
|
||||
$whereStatment = implode(' and ', $where);
|
||||
$sql .= ' WHERE '.$whereStatment;
|
||||
$whereStatement = implode(' and ', $where);
|
||||
$sql .= ' WHERE '.$whereStatement;
|
||||
}
|
||||
|
||||
$sql .= ' ORDER by m.id desc';
|
||||
|
||||
@@ -249,7 +249,7 @@ class Client implements InjectionAwareInterface
|
||||
{
|
||||
$allowed = ['guest', 'client', 'admin'];
|
||||
if (!in_array($role, $allowed)) {
|
||||
throw new \Box_Exception('Unknow API call', null, 701);
|
||||
throw new \Box_Exception('Unknown API call', null, 701);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -154,7 +154,7 @@ class Admin extends \Api_Abstract
|
||||
$data['email'] = $this->di['tools']->validateAndSanitizeEmail($data['email']);
|
||||
|
||||
$service = $this->getService();
|
||||
if ($service->emailAreadyRegistered($data['email'])) {
|
||||
if ($service->emailAlreadyRegistered($data['email'])) {
|
||||
throw new \Box_Exception('Email is already registered.');
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ class Admin extends \Api_Abstract
|
||||
if (!is_null($this->di['array_get']($data, 'email'))) {
|
||||
$email = $this->di['array_get']($data, 'email');
|
||||
$email = $this->di['tools']->validateAndSanitizeEmail($email);
|
||||
if ($service->emailAreadyRegistered($email, $client)) {
|
||||
if ($service->emailAlreadyRegistered($email, $client)) {
|
||||
throw new \Box_Exception('Can not change email. It is already registered.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ class Client extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Update currencty logged in client details.
|
||||
* Update currently logged in client details.
|
||||
*
|
||||
* @optional string $email - new client email. Must not exist on system
|
||||
* @optional string $last_name - last name
|
||||
@@ -84,7 +84,7 @@ class Client extends \Api_Abstract
|
||||
|
||||
$this->getService()->canChangeEmail($client, $email);
|
||||
|
||||
if ($this->getService()->emailAreadyRegistered($email, $client)) {
|
||||
if ($this->getService()->emailAlreadyRegistered($email, $client)) {
|
||||
throw new \Box_Exception('Can not change email. It is already registered.');
|
||||
}
|
||||
$client->email = strtolower(trim($email));
|
||||
|
||||
@@ -198,8 +198,8 @@ class Guest extends \Api_Abstract
|
||||
$email['to_client'] = $c->id;
|
||||
$email['code'] = 'mod_client_password_reset_request';
|
||||
$email['hash'] = $hash;
|
||||
$emailSerivce = $this->di['mod_service']('email');
|
||||
$emailSerivce->sendTemplate($email);
|
||||
$emailService = $this->di['mod_service']('email');
|
||||
$emailService->sendTemplate($email);
|
||||
|
||||
$this->di['logger']->info('Client requested password reset. Sent to email %s', $c->email);
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ class Service implements InjectionAwareInterface
|
||||
];
|
||||
}
|
||||
|
||||
public function emailAreadyRegistered($new_email, \Model_Client $model = null)
|
||||
public function emailAlreadyRegistered($new_email, \Model_Client $model = null)
|
||||
{
|
||||
if ($model && $model->email == $new_email) {
|
||||
return false;
|
||||
|
||||
@@ -60,10 +60,10 @@ class Guest extends \Api_Abstract
|
||||
*
|
||||
* @optional bool $convert - covert to default currency rate. Default - true;
|
||||
* @optional bool $without_currency - Show only number. No symbols are attached Default - false;
|
||||
* @optional float $price - Price to be formated. Default 0
|
||||
* @optional float $price - Price to be formatted. Default 0
|
||||
* @optional string $code - currency code, ie: USD. Default - default currency
|
||||
*
|
||||
* @return string - formated string
|
||||
* @return string - formatted string
|
||||
*/
|
||||
public function format($data = [])
|
||||
{
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
<div class="tab_content nopadding" id="tab-api-settings">
|
||||
<div class="help">
|
||||
<h3>{{ 'Adjust settings for currency rate updater'|trans }}</h3>
|
||||
<p>FOSSBilling uses data grabbed from <a href="https://www.ecb.europa.eu/home/html/index.en.html">European Central Bank</a> for conversions from Euro to other currencies, and <a href="https://currencylayer.com/">currencylayer</a> for conversations from US Dollar to other currencies.<br />If you choose Euro as your default currency, data from European Central Bank will be used, if you choose US Dollar, data from currencylayer will be used.<br />While European Central Bank decided to keep it's API free to everyone, you won't need an autorization key to use ECB's data. However, you'll need an API key to use currencylayer.<br />You can <a href="https://currencylayer.com/product">grab your API key</a> from currencylayer's website. FOSSBilling doesn't make any profits from your purchases on currencylayer.com</p>
|
||||
<p>FOSSBilling uses data grabbed from <a href="https://www.ecb.europa.eu/home/html/index.en.html">European Central Bank</a> for conversions from Euro to other currencies, and <a href="https://currencylayer.com/">currencylayer</a> for conversations from US Dollar to other currencies.<br />If you choose Euro as your default currency, data from European Central Bank will be used, if you choose US Dollar, data from currencylayer will be used.<br />While European Central Bank decided to keep it's API free to everyone, you won't need an authorization key to use ECB's data. However, you'll need an API key to use currencylayer.<br />You can <a href="https://currencylayer.com/product">grab your API key</a> from currencylayer's website. FOSSBilling doesn't make any profits from your purchases on currencylayer.com</p>
|
||||
<p><b>FOSSBilling does not take any responsibilities for data grabbed from 3rd party sources, including European Central Bank and currencylayer.</b></p>
|
||||
</div>
|
||||
<form method="post" action="{{ 'api/admin/currency/update_rate_settings'|link }}" class="mainForm save api-form" data-api-msg="Successfully updated settings">
|
||||
|
||||
@@ -141,14 +141,14 @@ class Service implements \Box\InjectionAwareInterface
|
||||
unset($vars['to'], $vars['to_client'], $vars['to_staff'], $vars['to_name'], $vars['from'], $vars['from_name']);
|
||||
unset($vars['default_description'], $vars['default_subject'], $vars['default_template'], $vars['code']);
|
||||
|
||||
// add aditional variables to template
|
||||
// add additional variables to template
|
||||
if (isset($data['to_staff']) && $data['to_staff']) {
|
||||
$staffService = $this->di['mod_service']('staff');
|
||||
$staff = $staffService->getList(['status' => 'active', 'no_cron' => true]);
|
||||
$vars['staff'] = $staff['list'][0];
|
||||
}
|
||||
|
||||
// add aditional variables to template
|
||||
// add additional variables to template
|
||||
if (isset($data['to_client']) && $data['to_client'] > 0) {
|
||||
$clientService = $this->di['mod_service']('client');
|
||||
$customer = $clientService->get(['id' => $data['to_client']]);
|
||||
@@ -483,7 +483,7 @@ class Service implements \Box\InjectionAwareInterface
|
||||
$dir = pathinfo($dir, PATHINFO_FILENAME);
|
||||
$mod = strtolower($dir);
|
||||
|
||||
// skip if disableda
|
||||
// skip if disabled
|
||||
$extensionService = $this->di['mod_service']('extension');
|
||||
|
||||
if (!$extensionService->isExtensionActive('mod', $mod)) {
|
||||
|
||||
@@ -51,7 +51,7 @@ class Admin implements \Box\InjectionAwareInterface
|
||||
return [
|
||||
'group' => [
|
||||
'index' => 1500, // menu sort order
|
||||
'location' => 'example', // menu group identificator for subitems
|
||||
'location' => 'example', // menu group identifier for subitems
|
||||
'label' => 'Example module', // menu group title
|
||||
'class' => 'example', // used for css styling menu item
|
||||
],
|
||||
|
||||
@@ -56,7 +56,7 @@ class Admin extends \Api_Abstract
|
||||
*
|
||||
* @optional
|
||||
* @optional string $label - Label of the field which will be shown. Default value "Type X" where X is number of fields in form. For example "Checkbox 2"
|
||||
* @optional string $name - Name of the field. Dafault value "new_type_X" where X is number of fields in the form. For example "new_checkbox_2"
|
||||
* @optional string $name - Name of the field. Default value "new_type_X" where X is number of fields in the form. For example "new_checkbox_2"
|
||||
* @optional bool $hide_label - Option either hide label of field or not
|
||||
* @optional string $description - Description of a field
|
||||
* @optional mixed $default_value - Default value of field. If field is checkbox or radio this variable must be array, otherwise it is string
|
||||
@@ -70,7 +70,7 @@ class Admin extends \Api_Abstract
|
||||
* @optional bool $show_middle - Either show middle or not
|
||||
* @optional bool $show_prefix - Either to show prefix or not
|
||||
* @optional bool $show_suffix - Either to show suffix or not
|
||||
* @optional int $text_size - Prefered text size
|
||||
* @optional int $text_size - Preferred text size
|
||||
*
|
||||
* @return int - ID of created field
|
||||
*
|
||||
@@ -227,7 +227,7 @@ class Admin extends \Api_Abstract
|
||||
*
|
||||
* @optional
|
||||
* @optional string $label - Label of the field which will be shown. Default value "Type X" where X is number of fields in form. For example "Checkbox 2"
|
||||
* @optional string $name - Name of the field. Dafault value "new_type_X" where X is number of fields in the form. For example "new_checkbox_2"
|
||||
* @optional string $name - Name of the field. Default value "new_type_X" where X is number of fields in the form. For example "new_checkbox_2"
|
||||
* @optional bool $hide_label - Option either hide label of field or not
|
||||
* @optional string $description - Description of a field
|
||||
* @optional mixed $default_value - Default value of field. If field is checkbox or radio this variable must be array, otherwise it is string
|
||||
@@ -239,9 +239,9 @@ class Admin extends \Api_Abstract
|
||||
* @optional array $options - Array of options for "select", "checkbox" and "radio" type fields. Key represents label and value will be field's value. Array must be unique.
|
||||
* @optional bool $show_initial - Either show initial or not
|
||||
* @optional bool $show_middle - Either show middle or not
|
||||
* @optional bool $show_prefix - Eithor to show prefix or not
|
||||
* @optional bool $show_prefix - Either to show prefix or not
|
||||
* @optional bool $show_suffix - Either to show suffix or not
|
||||
* @optional int $text_size - Prefered text size
|
||||
* @optional int $text_size - Preferred text size
|
||||
*
|
||||
* @return int - ID of the field
|
||||
*
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<input type="text" name="name" value="{{field.name}}" id="name"/>
|
||||
</li>
|
||||
<li class="sep">
|
||||
{{ 'Please keep in mind that field name can not start with number. Special characters will be replaced with underscrore ( _ )'|trans }}
|
||||
{{ 'Please keep in mind that field name can not start with number. Special characters will be replaced with underscores ( _ )'|trans }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<td>{{ form.product_count }}</td>
|
||||
<td class="actions">
|
||||
<a class="bb-button btn14" href="{{ 'extension/settings/formbuilder'|alink({'id' : form.id}) }}"><img src="assets/icons/edit.svg" alt=""></a>
|
||||
<a class="bb-button btn14 copy_form" href="#" data-api-reload="1" title="Copy" data-form-id="{{ form.id }}"><img src="images/icons/dark/baloons.png" alt=""></a>
|
||||
<a class="bb-button btn14 copy_form" href="#" data-api-reload="1" title="Copy" data-form-id="{{ form.id }}"><img src="images/icons/dark/balloons.png" alt=""></a>
|
||||
<a class="btn14 bb-rm-tr api-link" href="{{'api/admin/formbuilder/delete_form'|link({'id' : form.id}) }}" data-api-confirm="Are you sure?" ><img src="assets/icons/delete.svg" alt=""></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -197,7 +197,7 @@ class Service implements InjectionAwareInterface
|
||||
continue;
|
||||
}
|
||||
|
||||
// disconect modules without service class
|
||||
// disconnect modules without service class
|
||||
$mod = $this->di['mod']($mod_name);
|
||||
if (!$mod->hasService()) {
|
||||
$this->di['db']->exec($rm_sql, ['id' => $listener['id']]);
|
||||
|
||||
@@ -54,7 +54,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets invoce status to paid. This method differs from invoice update method
|
||||
* Sets invoice status to paid. This method differs from invoice update method
|
||||
* in a way that it sends notification to Events system, so emails are sent.
|
||||
* Also this will try to automatically apply payment if clients balance is
|
||||
* available.
|
||||
@@ -722,7 +722,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Get list of subscribtions.
|
||||
* Get list of subscriptions.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
|
||||
@@ -676,7 +676,7 @@ class Service implements InjectionAwareInterface
|
||||
$pi->type = $item->type;
|
||||
$pi->rel_id = $item->rel_id;
|
||||
$pi->task = $item->task;
|
||||
$pi->status = \Model_InvoiceItem::STATUS_EXECUTED; // ark refund invoce as executed
|
||||
$pi->status = \Model_InvoiceItem::STATUS_EXECUTED; // ark refund invoice as executed
|
||||
$pi->title = $item->title;
|
||||
$pi->period = $item->period;
|
||||
$pi->quantity = $item->quantity;
|
||||
|
||||
@@ -39,7 +39,7 @@ class ServiceSubscription implements InjectionAwareInterface
|
||||
return $this->di;
|
||||
}
|
||||
|
||||
public function create(\Model_Client $cient, \Model_PayGateway $pg, array $data)
|
||||
public function create(\Model_Client $client, \Model_PayGateway $pg, array $data)
|
||||
{
|
||||
$model = $this->di['db']->dispense('Subscription');
|
||||
$model->client_id = $data['client_id'];
|
||||
@@ -207,7 +207,7 @@ class ServiceSubscription implements InjectionAwareInterface
|
||||
return false;
|
||||
}
|
||||
|
||||
// check if first invoice line has deined period
|
||||
// check if first invoice line has denied period
|
||||
$query = 'SELECT id, period
|
||||
FROM invoice_item
|
||||
WHERE invoice_id = :id
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<td>{{ msg.from_name }} <br/>{{ msg.from_email }}</td>
|
||||
<td>{{ mf.status_name(msg.status) }}</td>
|
||||
<td class="actions">
|
||||
<a class="bb-button btn14 api-link" href="{{ 'api/admin/massmailer/copy'|link({'id' : msg.id}) }}" data-api-redirect="{{ 'massmailer'|alink }}" title="Copy"><img src="images/icons/dark/baloons.png" alt=""></a>
|
||||
<a class="bb-button btn14 api-link" href="{{ 'api/admin/massmailer/copy'|link({'id' : msg.id}) }}" data-api-redirect="{{ 'massmailer'|alink }}" title="Copy"><img src="images/icons/dark/balloons.png" alt=""></a>
|
||||
<a class="bb-button btn14" href="{{ '/massmailer/message'|alink }}/{{msg.id}}"><img src="assets/icons/edit.svg" alt=""></a>
|
||||
<a class="bb-button btn14 bb-rm-tr api-link" data-api-confirm="Are you sure?" href="{{ 'api/admin/massmailer/delete'|link({'id' : msg.id}) }}" data-api-redirect="{{ 'massmailer'|alink }}"><img src="assets/icons/delete.svg" alt=""></a>
|
||||
</td>
|
||||
|
||||
@@ -620,7 +620,7 @@ class Service implements InjectionAwareInterface
|
||||
$invoiceService->approveInvoice($invoice, ['id' => $invoice->id, 'use_credits' => true]);
|
||||
}
|
||||
|
||||
// activate imediately if say so
|
||||
// activate immediately if say so
|
||||
if ($activate) {
|
||||
try {
|
||||
$this->activateOrder($order);
|
||||
@@ -936,7 +936,7 @@ class Service implements InjectionAwareInterface
|
||||
$logic = $this->di['array_get']($config, 'order_renewal_logic', '');
|
||||
|
||||
if ('from_today' == $logic) {
|
||||
$from_time = time(); // renew order from the date renewal occured
|
||||
$from_time = time(); // renew order from the date renewal occurred
|
||||
} elseif ('from_greater' == $logic) {
|
||||
if (strtotime($order->expires_at) > time()) {
|
||||
$from_time = strtotime($order->expires_at);
|
||||
@@ -976,7 +976,7 @@ class Service implements InjectionAwareInterface
|
||||
$order->updated_at = date('Y-m-d H:i:s');
|
||||
$this->di['db']->store($order);
|
||||
|
||||
$note = (null === $reason) ? 'Order suspeded' : 'Order suspended for '.$reason;
|
||||
$note = (null === $reason) ? 'Order suspended' : 'Order suspended for '.$reason;
|
||||
$this->saveStatusChange($order, $note);
|
||||
|
||||
if (!$skipEvent) {
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
<p id="button-info">
|
||||
{{ 'Add order-button class to your elements which must call popup. For example: '|trans }}<strong><button type="button"<span class="red"> class="order-button</span>" >Order Now</button></strong>
|
||||
<p>{{ 'Add data-product attribute to your element to open specific product. For example:<br/>'|trans }}<strong><button type="button" class="order-button" <span class="red">data-product="2"</span> >Order Product#2 Now </button></strong></p>
|
||||
<p>{{ 'data-product attribute value will be overiden if popup\'s product is selected from select-box above'|trans }}</p>
|
||||
<p>{{ 'data-product attribute value will be overridden if popup\'s product is selected from select-box above'|trans }}</p>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
</div>
|
||||
<div class="tab_content nopadding" id="tab-addons">
|
||||
<div class="help">
|
||||
<h5>{{ 'Set paid supoprt for helpdesks: '|trans }}</h5>
|
||||
<h5>{{ 'Set paid support for helpdesks: '|trans }}</h5>
|
||||
</div>
|
||||
<table class="tableStatic wide">
|
||||
<tbody>
|
||||
|
||||
@@ -117,7 +117,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Update prodcut settings.
|
||||
* Update product settings.
|
||||
*
|
||||
* @param int $id - product id
|
||||
*
|
||||
|
||||
@@ -942,7 +942,7 @@ class Service implements InjectionAwareInterface
|
||||
return 0;
|
||||
}
|
||||
|
||||
// check if promo code aplies to specific period only
|
||||
// check if promo code applies to specific period only
|
||||
if (isset($config['period'])) {
|
||||
$periods = $this->getPeriods($promo);
|
||||
if (!empty($periods) && !in_array($config['period'], $periods)) {
|
||||
|
||||
@@ -31,7 +31,7 @@ class Client extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Update currencty logged in client details.
|
||||
* Update currently logged in client details.
|
||||
*
|
||||
* @optional string $email - new client email. Must not exist on system
|
||||
* @optional string $last_name - last name
|
||||
|
||||
@@ -125,7 +125,7 @@ class Service implements InjectionAwareInterface
|
||||
$validator->isEmailValid($email);
|
||||
|
||||
$clientService = $this->di['mod_service']('client');
|
||||
if ($clientService->emailAreadyRegistered($email, $client)) {
|
||||
if ($clientService->emailAlreadyRegistered($email, $client)) {
|
||||
throw new \Box_Exception('Can not change email. It is already registered.');
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Queue is a powerfull tool to execute long running tasks in the background.
|
||||
* Queue is a powerful tool to execute long running tasks in the background.
|
||||
*/
|
||||
|
||||
namespace Box\Mod\Queue\Api;
|
||||
@@ -43,7 +43,7 @@ class Admin extends \Api_Abstract
|
||||
/**
|
||||
* Get queue details.
|
||||
*
|
||||
* @param string $queue - queue name, ie: massemails
|
||||
* @param string $queue - queue name, ie: massmailer
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@@ -79,7 +79,7 @@ class Admin extends \Api_Abstract
|
||||
/**
|
||||
* Add message to queue to be executed later.
|
||||
*
|
||||
* @param string $queue - unique queue name, ie: massemails
|
||||
* @param string $queue - unique queue name, ie: massmailer
|
||||
* @param string $mod - module name, ie: massmailer
|
||||
*
|
||||
* @optional string $execute_at - Message execution time. Schedule message to be executed later, ie: 2022-12-29 14:53:51
|
||||
@@ -150,7 +150,7 @@ class Admin extends \Api_Abstract
|
||||
* @optional int $interval - interval in seconds for message to be executed. Default is queue timeout
|
||||
* @optional bool $until_complete - Execute until all messages in queue are executed. Default true
|
||||
*
|
||||
* @return bool - returns true when queue finihed executing
|
||||
* @return bool - returns true when queue finished executing
|
||||
*/
|
||||
public function execute($data)
|
||||
{
|
||||
|
||||
@@ -90,7 +90,7 @@ class Client extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Retireve domain transfer code.
|
||||
* Retrieve domain transfer code.
|
||||
*
|
||||
* @param int $order_id - domain order id
|
||||
*
|
||||
|
||||
@@ -134,7 +134,7 @@ class Guest extends \Api_Abstract
|
||||
if (!$tld instanceof \Model_Tld) {
|
||||
throw new \Box_Exception('TLD is not active.');
|
||||
}
|
||||
if (!$this->getService()->canBeTransfered($tld, $data['sld'])) {
|
||||
if (!$this->getService()->canBeTransferred($tld, $data['sld'])) {
|
||||
throw new \Box_Exception('Domain can not be transferred.');
|
||||
}
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ class Service implements \Box\InjectionAwareInterface
|
||||
}
|
||||
|
||||
$domain = $data['transfer_sld'].$tld->tld;
|
||||
if (!$this->canBeTransfered($tld, $data['transfer_sld'])) {
|
||||
if (!$this->canBeTransferred($tld, $data['transfer_sld'])) {
|
||||
throw new \Box_Exception(':domain can not be transferred!', [':domain' => $domain]);
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@ class Service implements \Box\InjectionAwareInterface
|
||||
return true;
|
||||
}
|
||||
|
||||
public function canBeTransfered(\Model_Tld $model, $sld)
|
||||
public function canBeTransferred(\Model_Tld $model, $sld)
|
||||
{
|
||||
if (empty($sld)) {
|
||||
throw new \Box_Exception('Domain name is not valid');
|
||||
@@ -545,7 +545,7 @@ class Service implements \Box\InjectionAwareInterface
|
||||
$tldRegistrar = $this->di['db']->load('TldRegistrar', $model->tld_registrar_id);
|
||||
$adapter = $this->registrarGetRegistrarAdapter($tldRegistrar);
|
||||
|
||||
return $adapter->isDomainCanBeTransfered($domain);
|
||||
return $adapter->isDomaincanBeTransferred($domain);
|
||||
}
|
||||
|
||||
public function isDomainAvailable(\Model_Tld $model, $sld)
|
||||
|
||||
@@ -78,7 +78,7 @@ class Admin extends \Api_Abstract
|
||||
*
|
||||
* @param int $order_id - Hosting account order id
|
||||
* @param string $tld - Top level domain value, ie: .com
|
||||
* @param string $sld - Second level domain value, ie: domainname
|
||||
* @param string $sld - Second level domain value, ie: domain name
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
@@ -319,7 +319,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Get hoting plan pairs.
|
||||
* Get hosting plan pairs.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@@ -329,7 +329,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Get hostin plans paginated list.
|
||||
* Get hosting plans paginated list.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@@ -442,8 +442,8 @@ class Admin extends \Api_Abstract
|
||||
$this->di['validator']->checkRequiredParamsForArray($required, $data);
|
||||
|
||||
$order = $this->di['db']->getExistingModelById('ClientOrder', $data['order_id'], 'Order not found');
|
||||
$orderSerivce = $this->di['mod_service']('order');
|
||||
$s = $orderSerivce->getOrderService($order);
|
||||
$orderService = $this->di['mod_service']('order');
|
||||
$s = $orderService->getOrderService($order);
|
||||
if (!$s instanceof \Model_ServiceHosting) {
|
||||
throw new \Box_Exception('Order is not activated');
|
||||
}
|
||||
|
||||
@@ -87,8 +87,8 @@ class Client extends \Api_Abstract
|
||||
throw new \Box_Exception('Order not found');
|
||||
}
|
||||
|
||||
$orderSerivce = $this->di['mod_service']('order');
|
||||
$s = $orderSerivce->getOrderService($order);
|
||||
$orderService = $this->di['mod_service']('order');
|
||||
$s = $orderService->getOrderService($order);
|
||||
if (!$s instanceof \Model_ServiceHosting) {
|
||||
throw new \Box_Exception('Order is not activated');
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ class Admin extends \Api_Abstract
|
||||
* Update license parameters. Set which validation rules must be applied
|
||||
* for license.
|
||||
*
|
||||
* @param int $order_id - License irder id
|
||||
* @param int $order_id - License order id
|
||||
*
|
||||
* @optional string $plugin - New license plugin name
|
||||
* @optional bool $validate_ip - True to validate IP; False - to allow all IPs for this license
|
||||
|
||||
@@ -59,7 +59,7 @@ class Simple
|
||||
|
||||
/**
|
||||
* This method is optional.
|
||||
* Aditional validation rules can be applied to license validation logic.
|
||||
* Additional validation rules can be applied to license validation logic.
|
||||
* Method is called after "expiration, ip, version, path, hostname validations are passed".
|
||||
*
|
||||
* Should throw "LogicException" if validation fails
|
||||
|
||||
@@ -211,8 +211,8 @@ class Service implements InjectionAwareInterface
|
||||
*/
|
||||
public function action_delete(\Model_ClientOrder $order)
|
||||
{
|
||||
$prderService = $this->di['mod_service']('order');
|
||||
$service = $prderService->getOrderService($order);
|
||||
$orderService = $this->di['mod_service']('order');
|
||||
$service = $orderService->getOrderService($order);
|
||||
if ($service instanceof \Model_ServiceLicense) {
|
||||
$this->di['db']->trash($service);
|
||||
}
|
||||
@@ -250,8 +250,8 @@ class Service implements InjectionAwareInterface
|
||||
|
||||
public function isLicenseActive(\Model_ServiceLicense $model)
|
||||
{
|
||||
$prderService = $this->di['mod_service']('order');
|
||||
$o = $prderService->getServiceOrder($model);
|
||||
$orderService = $this->di['mod_service']('order');
|
||||
$o = $orderService->getServiceOrder($model);
|
||||
if ($o instanceof \Model_ClientOrder) {
|
||||
return \Model_ClientOrder::STATUS_ACTIVE == $o->status;
|
||||
}
|
||||
@@ -353,8 +353,8 @@ class Service implements InjectionAwareInterface
|
||||
|
||||
public function getExpirationDate(\Model_ServiceLicense $model)
|
||||
{
|
||||
$prderService = $this->di['mod_service']('order');
|
||||
$o = $prderService->getServiceOrder($model);
|
||||
$orderService = $this->di['mod_service']('order');
|
||||
$o = $orderService->getServiceOrder($model);
|
||||
if ($o instanceof \Model_ClientOrder) {
|
||||
return $o->expires_at;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Spam cheking module management.
|
||||
* Spam checking module management.
|
||||
*/
|
||||
|
||||
namespace Box\Mod\Spamchecker\Api;
|
||||
|
||||
@@ -83,7 +83,7 @@ class Service implements InjectionAwareInterface
|
||||
$blocked_ips = explode(PHP_EOL, $config['blocked_ips']);
|
||||
$blocked_ips = array_map('trim', $blocked_ips);
|
||||
if (in_array($di['request']->getClientAddress(), $blocked_ips)) {
|
||||
throw new \Box_Exception('Your IP addresss (:ip) is blocked. Please contact our support to lift your block.', [':ip' => $di['request']->getClientAddress()], 403);
|
||||
throw new \Box_Exception('Your IP address (:ip) is blocked. Please contact our support to lift your block.', [':ip' => $di['request']->getClientAddress()], 403);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ class Admin extends \Api_Abstract
|
||||
$pager = $this->di['pager']->getSimpleResultSet($sql, $params, $per_page);
|
||||
foreach ($pager['list'] as $key => $item) {
|
||||
$staff = $this->di['db']->getExistingModelById('Admin', $item['id'], 'Admin is not found');
|
||||
$pager['list'][$key] = $this->getService()->toModel_AdminApiiArray($staff);
|
||||
$pager['list'][$key] = $this->getService()->toModel_AdminApiArray($staff);
|
||||
}
|
||||
|
||||
return $pager;
|
||||
@@ -57,7 +57,7 @@ class Admin extends \Api_Abstract
|
||||
|
||||
$model = $this->di['db']->getExistingModelById('Admin', $data['id'], 'Staff member not found');
|
||||
|
||||
return $this->getService()->toModel_AdminApiiArray($model);
|
||||
return $this->getService()->toModel_AdminApiArray($model);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -92,7 +92,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Completely delete staff member. Removes all related acitivity from logs.
|
||||
* Completely delete staff member. Removes all related activity from logs.
|
||||
*
|
||||
* @param int $id - staff member ID
|
||||
*
|
||||
@@ -215,7 +215,7 @@ class Admin extends \Api_Abstract
|
||||
|
||||
$this->getService()->setPermissions($model->id, $data['permissions']);
|
||||
|
||||
$this->di['logger']->info('Changed staff member %s permisions', $model->id);
|
||||
$this->di['logger']->info('Changed staff member %s permissions', $model->id);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -384,7 +384,7 @@ class Service implements InjectionAwareInterface
|
||||
return $cron;
|
||||
}
|
||||
|
||||
public function toModel_AdminApiiArray(\Model_Admin $model, $deep = false)
|
||||
public function toModel_AdminApiArray(\Model_Admin $model, $deep = false)
|
||||
{
|
||||
$data = [
|
||||
'id' => $model->id,
|
||||
|
||||
@@ -95,7 +95,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Return icome by day. If no timespan is selected method returns
|
||||
* Return income by day. If no timespan is selected method returns
|
||||
* previous month statistics.
|
||||
*
|
||||
* @optional string $date_from - day since income are counted
|
||||
|
||||
@@ -346,7 +346,7 @@ class Admin extends \Api_Abstract
|
||||
}
|
||||
|
||||
/**
|
||||
* Set iquery status to closed.
|
||||
* Set id status to closed.
|
||||
*
|
||||
* @param int $id - inquiry id
|
||||
*
|
||||
|
||||
@@ -1364,7 +1364,7 @@ class Service implements \Box\InjectionAwareInterface
|
||||
|
||||
$this->di['db']->trash($model);
|
||||
|
||||
$this->di['logger']->info('Deleted canned reponse #%s', $id);
|
||||
$this->di['logger']->info('Deleted canned response #%s', $id);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ class Theme
|
||||
// remove style attributes
|
||||
$settings_page = preg_replace('/(<[^>]+) style=".*?"/i', '$1', $settings_page);
|
||||
|
||||
// fix unclosed texarea
|
||||
// fix unclosed text area
|
||||
$settings_page = preg_replace('/<textarea (.*)\/>/i', '<textarea $1></textarea>', $settings_page);
|
||||
|
||||
return $settings_page;
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
</td>
|
||||
<td>
|
||||
From {% if promo.start_at %}{{ promo.start_at|date('Y-m-d') }}{% else %}now{% endif %}
|
||||
untill {% if promo.end_at %}{{ promo.end_at|date('Y-m-d') }}{% else %}disabled{% endif %}
|
||||
until {% if promo.end_at %}{{ promo.end_at|date('Y-m-d') }}{% else %}disabled{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if promo.active == true %}
|
||||
|
||||
@@ -454,7 +454,7 @@ abstract class elFinderVolumeDriver {
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure after successfull mount.
|
||||
* Configure after successful mount.
|
||||
* By default set thumbnails path and image manipulation library.
|
||||
*
|
||||
* @return void
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
/*********************************************************************/
|
||||
|
||||
/**
|
||||
* Configure after successfull mount.
|
||||
* Configure after successful mount.
|
||||
*
|
||||
* @return void
|
||||
* @author Dmitry (dio) Levashov
|
||||
|
||||
@@ -178,7 +178,7 @@ class elFinderVolumeMySQL extends elFinderVolumeDriver {
|
||||
|
||||
/**
|
||||
* Perform sql query and return result.
|
||||
* Increase sqlCnt and save error if occured
|
||||
* Increase sqlCnt and save error if occurred
|
||||
*
|
||||
* @param string $sql query
|
||||
* @return misc
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><label for="meta_title">Meta title sufix</label></td>
|
||||
<td><label for="meta_title">Meta title suffix</label></td>
|
||||
<td><input type="text" name="meta_title" id="meta_title" value="" class="long"/></td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ LOCK TABLES `kb_article` WRITE;
|
||||
INSERT INTO `kb_article` (`id`, `kb_article_category_id`, `views`, `title`, `content`, `slug`, `status`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
(1,2,0,'How to contact support','Registered clients can contact our support team:\n------------------------------------------------------------\n\n* Login to clients area\n* Select **Support** menu item\n* Click **Submit new ticket**\n* Fill the form and press *Submit*\n\nGuests can contact our support team:\n------------------------------------------------------------\n\n* Use our contact form.\n* Fill the form and click *Submit*\n','how-to-contact-support','active','2021-01-01 12:00:00','2021-01-01 12:00:00'),
|
||||
(2,2,0,'How to place new order','To place new order, follow these steps:\n------------------------------------------------------------\n\n* Select our services at *Order* page.\n* Depending on selected product, you might need to provide additional information to complete order request.\n* Click \"Continue\" and your product/service is now in shopping cart.\n* If you have promo code, you can apply it and get discount.\n* Click on \"Checkout\" button to proceed with checkout process\n * If you are already logged in, uou will be automaticaly redirected to new invoice\n * If you are registerd client, you can provide your login details\n * If you have never purchased any service from us, fill up client sign up form, and continue checkout\n* Choose payment method to pay for invoice. List of all avalable payment methods will be listed below invoice details.\n* Choose payment method\n* You will be redirected to payment gateway page\n* After successfull payment, You will be redirected back to invoice page.\n* Depending on selected services your order will be reviewed and activated by our staff members.\n* After you receive confirmation email about order activation you are able to manage your services.\n','how-to-place-new-order','active','2021-01-01 12:00:00','2021-01-01 12:00:00'),
|
||||
(2,2,0,'How to place new order','To place new order, follow these steps:\n------------------------------------------------------------\n\n* Select our services at *Order* page.\n* Depending on selected product, you might need to provide additional information to complete order request.\n* Click \"Continue\" and your product/service is now in shopping cart.\n* If you have promo code, you can apply it and get discount.\n* Click on \"Checkout\" button to proceed with checkout process\n * If you are already logged in, uou will be automaticaly redirected to new invoice\n * If you are registerd client, you can provide your login details\n * If you have never purchased any service from us, fill up client sign up form, and continue checkout\n* Choose payment method to pay for invoice. List of all avalable payment methods will be listed below invoice details.\n* Choose payment method\n* You will be redirected to payment gateway page\n* After successful payment, You will be redirected back to invoice page.\n* Depending on selected services your order will be reviewed and activated by our staff members.\n* After you receive confirmation email about order activation you are able to manage your services.\n','how-to-place-new-order','active','2021-01-01 12:00:00','2021-01-01 12:00:00'),
|
||||
(3,2,0,'Example article','Example article heading\n------------------------------------------------------------\n\nCursus, parturient porta dis sit? Habitasse non, sociis porttitor, sagittis dapibus scelerisque? Pid, porttitor integer, montes. Hac, in? Arcu nunc integer nascetur dis nisi. In, sed a amet? Adipiscing odio mauris mauris, porta, integer, adipiscing habitasse, elementum phasellus, turpis in? Quis magna placerat eu, cursus urna mattis egestas, a ac massa turpis mus et odio pid in, urna dapibus ridiculus in turpis cursus ac a urna magna purus etiam ac nisi porttitor! Auctor est? In adipiscing, hac platea augue vut, hac est cum sagittis! Montes nascetur pulvinar tristique porta platea? Magnis vel etiam nisi augue auctor sit pulvinar! Aliquet rhoncus, elit porta? Magnis pulvinar eu turpis purus sociis a augue? Sit, nascetur! Mattis nisi, penatibus ac ac natoque auctor turpis.\n\nExample article heading\n------------------------------------------------------------\n\nUt diam cursus, elit pulvinar, habitasse purus? Enim. Urna? Velit arcu, rhoncus sociis sed, et, ultrices nascetur lacus vut purus tempor a. Vel? Sagittis integer scelerisque, dapibus lectus mid, magnis, augue duis velit etiam tortor! Eros, a et phasellus est ultricies integer elementum in, tempor sed parturient. Dictumst rhoncus, ut sed sagittis facilisis? In, proin? Urna augue in sociis enim dignissim! Velit magna tincidunt ac. Nunc, vel auctor porta enim integer. Phasellus amet eu. Tristique lundium arcu! In? Massa penatibus arcu, rhoncus augue ut pid pulvinar, porttitor, porta, et! A sit odio, proin natoque ultrices cras cras magna porttitor! Ultrices sed magna in! Porttitor nunc, tincidunt nec, amet integer aenean. Tincidunt, placerat nec dolor parturient et ac pulvinar a.\n','example-article-slug','active','2021-01-01 12:00:00','2021-01-01 12:00:00');
|
||||
|
||||
/*!40000 ALTER TABLE `kb_article` ENABLE KEYS */;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# If the FOSSBilling site is installed within a folder such as at
|
||||
# e.g. www.example.com/boxbilling/ the robots.txt file MUST be
|
||||
# e.g. www.example.com/fossbilling/ the robots.txt file MUST be
|
||||
# moved to the site root at e.g. www.example.com/robots.txt
|
||||
# AND the FOSSBilling folder name MUST be prefixed to the disallowed
|
||||
# path, e.g. the Disallow rule for the /bb-data/ folder
|
||||
|
||||
@@ -125,7 +125,7 @@ class Registrar_Adapter_ResellerclubTest extends PHPUnit\Framework\TestCase
|
||||
$this->assertFalse($result);
|
||||
}
|
||||
|
||||
public function testisDomainCanBeTransfered()
|
||||
public function testisDomaincanBeTransferred()
|
||||
{
|
||||
$adapterMock = $this->getMockBuilder('Registrar_Adapter_Resellerclub')->disableOriginalConstructor()
|
||||
->setMethods(array('_makeRequest'))
|
||||
@@ -140,7 +140,7 @@ class Registrar_Adapter_ResellerclubTest extends PHPUnit\Framework\TestCase
|
||||
->with('domains/validate-transfer')
|
||||
->willReturn($requestResult);
|
||||
|
||||
$result = $adapterMock->isDomainCanBeTransfered($registrarDomain);
|
||||
$result = $adapterMock->isDomaincanBeTransferred($registrarDomain);
|
||||
$this->assertIsBool($result);
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ class AdminTest extends \BBTestCase
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(false));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(false));
|
||||
$serviceMock->expects($this->atLeastOnce())->
|
||||
method('adminCreateClient')->will($this->returnValue(1));
|
||||
|
||||
@@ -184,7 +184,7 @@ class AdminTest extends \BBTestCase
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(true));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(true));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
|
||||
@@ -297,7 +297,7 @@ class AdminTest extends \BBTestCase
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(false));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(false));
|
||||
$serviceMock->expects($this->atLeastOnce())->
|
||||
method('canChangeCurrency')->will($this->returnValue(true));
|
||||
|
||||
@@ -381,7 +381,7 @@ class AdminTest extends \BBTestCase
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(true));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(true));
|
||||
$serviceMock->expects($this->never())->
|
||||
method('canChangeCurrency')->will($this->returnValue(true));
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ class ClientTest extends \BBTestCase {
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(false));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(false));
|
||||
|
||||
$eventMock = $this->getMockBuilder('\Box_EventManager')->getMock();
|
||||
$eventMock->expects($this->atLeastOnce())->
|
||||
|
||||
@@ -322,7 +322,7 @@ class ServiceTest extends \BBTestCase {
|
||||
$this->assertTrue(array_diff_key($result, $expectedArrayKeys) == array());
|
||||
}
|
||||
|
||||
public function testemailAreadyRegistered()
|
||||
public function testemailAlreadyRegistered()
|
||||
{
|
||||
$email = 'test@example.com';
|
||||
$model = new \Model_Client();
|
||||
@@ -337,7 +337,7 @@ class ServiceTest extends \BBTestCase {
|
||||
$clientService = new \Box\Mod\Client\Service();
|
||||
$clientService->setDi($di);
|
||||
|
||||
$result = $clientService->emailAreadyRegistered($email);
|
||||
$result = $clientService->emailAlreadyRegistered($email);
|
||||
$this->assertIsBool($result);
|
||||
}
|
||||
|
||||
@@ -350,7 +350,7 @@ class ServiceTest extends \BBTestCase {
|
||||
|
||||
$clientService = new \Box\Mod\Client\Service();
|
||||
|
||||
$result = $clientService->emailAreadyRegistered($email, $model);
|
||||
$result = $clientService->emailAlreadyRegistered($email, $model);
|
||||
$this->assertIsBool($result);
|
||||
$this->assertEquals(false, $result);
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ class ServiceTest extends \BBTestCase
|
||||
|
||||
$clientServiceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$clientServiceMock->expects($this->atLeastOnce())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(false));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(false));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
$validatorMock->expects($this->atLeastOnce())->method('isEmailValid');
|
||||
@@ -238,7 +238,7 @@ class ServiceTest extends \BBTestCase
|
||||
|
||||
$clientServiceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$clientServiceMock->expects($this->never())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(false));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(false));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
$validatorMock->expects($this->never())->method('isEmailValid');
|
||||
@@ -295,7 +295,7 @@ class ServiceTest extends \BBTestCase
|
||||
|
||||
$clientServiceMock = $this->getMockBuilder('\Box\Mod\Client\Service')->getMock();
|
||||
$clientServiceMock->expects($this->atLeastOnce())->
|
||||
method('emailAreadyRegistered')->will($this->returnValue(true));
|
||||
method('emailAlreadyRegistered')->will($this->returnValue(true));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
$validatorMock->expects($this->atLeastOnce())->method('isEmailValid');
|
||||
|
||||
@@ -206,10 +206,10 @@ class Api_GuestTest extends \BBTestCase
|
||||
public function testCan_be_transferred()
|
||||
{
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Servicedomain\Service')
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransfered'))->getMock();
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransferred'))->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->method('tldFindOneByTld')
|
||||
->will($this->returnValue(new \Model_Tld()));
|
||||
$serviceMock->expects($this->atLeastOnce())->method('canBeTransfered')
|
||||
$serviceMock->expects($this->atLeastOnce())->method('canBeTransferred')
|
||||
->will($this->returnValue(true));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->disableOriginalConstructor()->getMock();
|
||||
@@ -233,10 +233,10 @@ class Api_GuestTest extends \BBTestCase
|
||||
public function testCan_be_transferredTldNotFoundException()
|
||||
{
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Servicedomain\Service')
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransfered'))->getMock();
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransferred'))->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->method('tldFindOneByTld')
|
||||
->will($this->returnValue(null));
|
||||
$serviceMock->expects($this->never())->method('canBeTransfered')
|
||||
$serviceMock->expects($this->never())->method('canBeTransferred')
|
||||
->will($this->returnValue(true));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->disableOriginalConstructor()->getMock();
|
||||
@@ -259,10 +259,10 @@ class Api_GuestTest extends \BBTestCase
|
||||
public function testCan_be_transferredCanNotBeTransferredException()
|
||||
{
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Servicedomain\Service')
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransfered'))->getMock();
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransferred'))->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())->method('tldFindOneByTld')
|
||||
->will($this->returnValue(new \Model_Tld()));
|
||||
$serviceMock->expects($this->atLeastOnce())->method('canBeTransfered')
|
||||
$serviceMock->expects($this->atLeastOnce())->method('canBeTransferred')
|
||||
->will($this->returnValue(false));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->disableOriginalConstructor()->getMock();
|
||||
|
||||
@@ -103,7 +103,7 @@ class ServiceTest extends \BBTestCase
|
||||
/**
|
||||
* @dataProvider validateOrderDataProvider
|
||||
*/
|
||||
public function testValidateOrderData($data, $finOneByTldCalled, $canBeTransferedCalled, $isDomainAvailableCalled)
|
||||
public function testValidateOrderData($data, $finOneByTldCalled, $canBeTransferredCalled, $isDomainAvailableCalled)
|
||||
{
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
$validatorMock->expects($this->atLeastOnce())->method('isSldValid')
|
||||
@@ -115,11 +115,11 @@ class ServiceTest extends \BBTestCase
|
||||
$tld->min_years = 2;
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Servicedomain\Service')
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransfered', 'isDomainAvailable'))->getMock();
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransferred', 'isDomainAvailable'))->getMock();
|
||||
|
||||
$serviceMock->expects($finOneByTldCalled)->method('tldFindOneByTld')
|
||||
->will($this->returnValue($tld));
|
||||
$serviceMock->expects($canBeTransferedCalled)->method('canBeTransfered')
|
||||
$serviceMock->expects($canBeTransferredCalled)->method('canBeTransferred')
|
||||
->will($this->returnValue(true));
|
||||
$serviceMock->expects($isDomainAvailableCalled)->method('isDomainAvailable')
|
||||
->will($this->returnValue(true));
|
||||
@@ -226,7 +226,7 @@ class ServiceTest extends \BBTestCase
|
||||
'called' => $this->atLeastOnce(),
|
||||
'returns' => null
|
||||
),
|
||||
array( //canBeTransfered
|
||||
array( //canBeTransferred
|
||||
'called' => $this->never(),
|
||||
'returns' => true
|
||||
)
|
||||
@@ -245,7 +245,7 @@ class ServiceTest extends \BBTestCase
|
||||
'called' => $this->atLeastOnce(),
|
||||
'returns' => $tldModel
|
||||
),
|
||||
array( //canBeTransfered
|
||||
array( //canBeTransferred
|
||||
'called' => $this->atLeastOnce(),
|
||||
'returns' => false
|
||||
)
|
||||
@@ -256,7 +256,7 @@ class ServiceTest extends \BBTestCase
|
||||
/**
|
||||
* @dataProvider validateOrderDateTransferExceptionsProvider
|
||||
*/
|
||||
public function testValidateOrderDateTransferExceptions($data, $isSldValidArr, $tldFindOneByTldArr, $canBeTransfered)
|
||||
public function testValidateOrderDateTransferExceptions($data, $isSldValidArr, $tldFindOneByTldArr, $canBeTransferred)
|
||||
{
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
$validatorMock->expects($isSldValidArr['called'])->method('isSldValid')
|
||||
@@ -265,11 +265,11 @@ class ServiceTest extends \BBTestCase
|
||||
->will($this->returnValue(null));
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Servicedomain\Service')
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransfered'))->getMock();
|
||||
->setMethods(array('tldFindOneByTld', 'canBeTransferred'))->getMock();
|
||||
$serviceMock->expects($tldFindOneByTldArr['called'])->method('tldFindOneByTld')
|
||||
->will($this->returnValue($tldFindOneByTldArr['returns']));
|
||||
$serviceMock->expects($canBeTransfered['called'])->method('canBeTransfered')
|
||||
->will($this->returnValue($canBeTransfered['returns']));
|
||||
$serviceMock->expects($canBeTransferred['called'])->method('canBeTransferred')
|
||||
->will($this->returnValue($canBeTransferred['returns']));
|
||||
|
||||
$di = new \Box_Di();
|
||||
$di['validator'] = $validatorMock;
|
||||
@@ -354,7 +354,7 @@ class ServiceTest extends \BBTestCase
|
||||
/**
|
||||
* @dataProvider validateOrderDateRegisterExceptionsProvider
|
||||
*/
|
||||
public function testValidateOrderDateRegisterExceptions($data, $isSldValidArr, $tldFindOneByTldArr, $canBeTransfered)
|
||||
public function testValidateOrderDateRegisterExceptions($data, $isSldValidArr, $tldFindOneByTldArr, $canBeTransferred)
|
||||
{
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
$validatorMock->expects($isSldValidArr['called'])->method('isSldValid')
|
||||
@@ -366,8 +366,8 @@ class ServiceTest extends \BBTestCase
|
||||
->setMethods(array('tldFindOneByTld', 'isDomainAvailable'))->getMock();
|
||||
$serviceMock->expects($tldFindOneByTldArr['called'])->method('tldFindOneByTld')
|
||||
->will($this->returnValue($tldFindOneByTldArr['returns']));
|
||||
$serviceMock->expects($canBeTransfered['called'])->method('isDomainAvailable')
|
||||
->will($this->returnValue($canBeTransfered['returns']));
|
||||
$serviceMock->expects($canBeTransferred['called'])->method('isDomainAvailable')
|
||||
->will($this->returnValue($canBeTransferred['returns']));
|
||||
|
||||
$di = new \Box_Di();
|
||||
$di['validator'] = $validatorMock;
|
||||
@@ -1071,11 +1071,11 @@ class ServiceTest extends \BBTestCase
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
public function testCanBeTransfered()
|
||||
public function testcanBeTransferred()
|
||||
{
|
||||
$registrarAdapterMock = $this->getMockBuilder('Registrar_Adapter_Custom')->disableOriginalConstructor()
|
||||
->getMock();
|
||||
$registrarAdapterMock->expects($this->atLeastOnce())->method('isDomainCanBeTransfered')
|
||||
$registrarAdapterMock->expects($this->atLeastOnce())->method('isDomaincanBeTransferred')
|
||||
->will($this->returnValue(true));
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Servicedomain\Service')
|
||||
@@ -1102,25 +1102,25 @@ class ServiceTest extends \BBTestCase
|
||||
$tld->tld = '.com';
|
||||
$tld->tld_registrar_id = rand(1, 100);
|
||||
|
||||
$result = $serviceMock->canBeTransfered($tld, 'example');
|
||||
$result = $serviceMock->canBeTransferred($tld, 'example');
|
||||
|
||||
$this->assertTrue($result);
|
||||
}
|
||||
|
||||
public function testCanBeTransferedEmptySldException()
|
||||
public function testcanBeTransferredEmptySldException()
|
||||
{
|
||||
$this->expectException(\Box_Exception::class);
|
||||
$this->service->canBeTransfered(new \Model_Tld(), '');
|
||||
$this->service->canBeTransferred(new \Model_Tld(), '');
|
||||
}
|
||||
|
||||
public function testCanBeTransferedNotAllowedException()
|
||||
public function testcanBeTransferredNotAllowedException()
|
||||
{
|
||||
$tldModel = new \Model_Tld();
|
||||
$tldModel->loadBean(new \RedBeanPHP\OODBBean());
|
||||
$tldModel->allow_transfer = false;
|
||||
|
||||
$this->expectException(\Box_Exception::class);
|
||||
$this->service->canBeTransfered($tldModel, 'example');
|
||||
$this->service->canBeTransferred($tldModel, 'example');
|
||||
}
|
||||
|
||||
public function testIsDomainAvailable()
|
||||
|
||||
@@ -134,7 +134,7 @@ class ServiceTest extends \BBTestCase {
|
||||
->willReturn($di);
|
||||
|
||||
$this->expectException(\Box_Exception::class);
|
||||
$this->expectExceptionMessage(sprintf("Your IP addresss (%s) is blocked. Please contact our support to lift your block.", $clientIp), 403);
|
||||
$this->expectExceptionMessage(sprintf("Your IP address (%s) is blocked. Please contact our support to lift your block.", $clientIp), 403);
|
||||
$this->service->isBlockedIp($boxEventMock);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class AdminTest extends \BBTestCase {
|
||||
->method('getSearchQuery')
|
||||
->will($this->returnValue(array('sqlString', array())));
|
||||
$serviceMock->expects($this->atLeastOnce())
|
||||
->method('toModel_AdminApiiArray')
|
||||
->method('toModel_AdminApiArray')
|
||||
->will($this->returnValue(array()));
|
||||
|
||||
$resultSet = array(
|
||||
@@ -70,7 +70,7 @@ class AdminTest extends \BBTestCase {
|
||||
|
||||
$serviceMock = $this->getMockBuilder('\Box\Mod\Staff\Service')->getMock();
|
||||
$serviceMock->expects($this->atLeastOnce())
|
||||
->method('toModel_AdminApiiArray')
|
||||
->method('toModel_AdminApiArray')
|
||||
->will($this->returnValue(array()));
|
||||
|
||||
$validatorMock = $this->getMockBuilder('\Box_Validate')->getMock();
|
||||
|
||||
@@ -896,7 +896,7 @@ class ServiceTest extends \BBTestCase
|
||||
$this->assertInstanceOf('\Model_Admin', $result);
|
||||
}
|
||||
|
||||
public function testtoModel_AdminApiiArray()
|
||||
public function testtoModel_AdminApiArray()
|
||||
{
|
||||
$adminModel = new \Model_Admin();
|
||||
$adminModel->loadBean(new \RedBeanPHP\OODBBean());
|
||||
@@ -929,7 +929,7 @@ class ServiceTest extends \BBTestCase
|
||||
|
||||
$service = new \Box\Mod\Staff\Service();
|
||||
$service->setDi($di);
|
||||
$result = $service->toModel_AdminApiiArray($adminModel);
|
||||
$result = $service->toModel_AdminApiArray($adminModel);
|
||||
|
||||
$this->assertNotEmpty($result);
|
||||
$this->assertIsArray($result);
|
||||
|
||||
Reference in new issue
Block a user