### Execute Electrum Installation Script
Source: https://premium.gitbook.io/main/main/en/basic-settings/electrum-module/installing-and-configuring-electrum-old-version
This command initiates the installation process for the Electrum daemon on the server. It should be run within the Shell Client after uploading the necessary files.
```bash
bash install_electrum.sh
```
--------------------------------
### Install Server Dependencies for Electrum
Source: https://premium.gitbook.io/main/main/en/basic-settings/electrum-module/installing-and-configuring-electrum-old-version
Installs the required cryptography and security libraries on an Ubuntu server. This command should be executed via the ISP Manager 6 Shell Client with root privileges.
```bash
sudo apt-get install libsecp256k1-0 python3-cryptography -y
```
--------------------------------
### Implement HTML Anchor Tag
Source: https://premium.gitbook.io/main/main/en/basic-settings/appearance/giveaway-page
A basic example of the standard HTML syntax for creating a hyperlink to an external domain.
```html
Exchange
```
--------------------------------
### Adding Custom Action to Plugin Activation Hook (PHP)
Source: https://premium.gitbook.io/main/main/en/basic-settings/faq/how-to-install-a-plugin/working-with-the-plugin-during-activation
This example shows how to add a custom action to the 'pn_plugin_activate' hook using WordPress's add_action function. The custom function 'myhook_pn_bd_activated' will be executed when the plugin is activated. This is useful for initializing settings or performing one-time setup.
```php
add_action('pn_plugin_activate', 'myhook_pn_bd_activated');
function myhook_pn_bd_activated() {
// Your custom action upon plugin activation
}
```
--------------------------------
### Create HTML Review Platform List
Source: https://premium.gitbook.io/main/main/en/basic-settings/appearance/giveaway-page
This snippet demonstrates how to structure a list of review platforms using HTML unordered lists and headers. It includes anchor tags for linking to specific domains for user reviews.
```html
List of Platforms for Posting Reviews
```
--------------------------------
### Verify curl installation
Source: https://premium.gitbook.io/main/main/en/basic-settings/faq/diagnosing-and-resolving-script-errors
Commands to check the installed version of curl across different operating systems to ensure the environment is ready for API requests.
```bash
curl --version
```
```powershell
curl.exe --version
```
--------------------------------
### Install PHP 8.2 (Bash)
Source: https://premium.gitbook.io/main/main/en/basic-settings/faq/updating-script-files-on-the-server/how-to-update-php
Installs PHP version 8.2 on an Ubuntu system using the `apt` package manager. This command assumes the necessary repository has already been added and the package list updated.
```bash
sudo apt install php8.2
```
--------------------------------
### GET /api.html?method=get_info
Source: https://premium.gitbook.io/main/main/en/api-premium-exchanger/affiliate-program-api-old-version
Retrieves general information about the partner's account, including balance, minimum payout amount, available payout methods, and commission details.
```APIDOC
## GET /api.html?method=get_info
### Description
Fetches general information about the affiliate partner's account.
### Method
GET
### Endpoint
`https://your_domain/api.html?api_action=pp&api_key={api_key}&method=get_info`
### Query Parameters
- **api_action** (string) - Required - `pp`
- **api_key** (string) - Required - Your unique API key.
- **method** (string) - Required - `get_info`
### Response
#### Success Response (200)
- **balance** (number) - Your account balance.
- **min_payout** (number) - Minimum payout amount.
- **items** (array) - List of available payout items.
- **id** (integer) - Payout method ID.
- **title** (string) - Payout method name.
- **comission** (number) - Commission deducted upon payout.
- **amount** (number) - Amount you receive after commission.
#### Response Example
```json
{
"balance": 150.75,
"min_payout": 50.00,
"items": [
{
"id": 1,
"title": "PayPal",
"comission": 0.05,
"amount": 143.21
},
{
"id": 2,
"title": "Bank Transfer",
"comission": 0.02,
"amount": 147.73
}
]
}
```
```
--------------------------------
### Add PHP Repository and Update System (Bash)
Source: https://premium.gitbook.io/main/main/en/basic-settings/faq/updating-script-files-on-the-server/how-to-update-php
Installs `software-properties-common`, adds the Ondrej PHP PPA repository, and updates the package list to prepare for PHP version upgrades. This is a prerequisite for installing newer PHP versions on Ubuntu.
```bash
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
```
--------------------------------
### Configure Affiliate Program and Multilingual Assets
Source: https://premium.gitbook.io/main/main/en/basic-settings/settings/hooks
Changes the default affiliate URL parameter ('rid') and specifies the plugin source for multilingual flag icons.
```php
add_filter('refid','myhook_refid');
function myhook_refid($refid){
return 'skidka';
}
add_filter('ml_flag_url', 'my_ml_flag_url');
function my_ml_flag_url($plugin_folder){
return 'premiumbox';
}
```
--------------------------------
### Display All PHP Information (PHP)
Source: https://premium.gitbook.io/main/main/en/basic-settings/faq/updating-script-files-on-the-server/how-to-update-php/how-to-check-the-php-version-used-by-your-website
This code snippet creates a PHP file that, when accessed via a web browser, displays comprehensive information about the PHP environment, including the version, configuration, and loaded extensions. It requires a web server with PHP enabled.
```php
```