Table of Contents

RemoteBridge Plugin Documentation

REQUIREMENTS

INSTALLATION

UPDATE

RemoteBridge URL

http(s)://admin.myserver.tld/remotebridge.php

How to send data to the remote bridge (example)

function dataEncryption($dataToEncrypt, $ResellerUsername) {
    return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($ResellerUsername), serialize($dataToEncrypt), MCRYPT_MODE_CBC, md5(md5($ResellerUsername)))), '+/=', '-_,');
}
$bridgeKey = '';
$ResellerUsername = '';

$dataToEncrypt = array(
        'action'                => '',
        'reseller_username'     => $ResellerUsername,
        'reseller_password'     => '',
        'bridge_key'            => $bridgeKey,
        'hosting_plan'          => '',
        'admin_pass'            => '',
        'email'                 => '',
        'domain'                => ''
);

$ch = curl_init('http(s)://admin.myserver.tld/remotebrigde.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'key='.$bridgeKey.'&data='.dataEncryption($dataToEncrypt, $ResellerUsername));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$httpResponse = curl_exec($ch);
echo $httpResponse;
curl_close($ch);

Post data variables which are available / required

key (required)

data (required)

Encrypted array variables which are available / required

1. action (required)

1.1 action create

1.2 action terminate

1.3 action suspend

1.4 action unsuspend

1.5 action addalias

2. reseller_username (required)

3. reseller_password (required)

4. domain (required)

5. admin_pass (required)

6. email (required)

7. hosting_plan (required if you want to use hosting plans to create a user)

7.1 hp_mail (required if hosting_plan not set)

7.2 hp_ftp (required if hosting_plan not set)

7.3 hp_traff (required if hosting_plan not set)

7.4 hp_sql_db (required if hosting_plan not set)

7.5 hp_sql_user (required if hosting_plan not set)

7.6 hp_sub (required if hosting_plan not set)

7.7 hp_disk (required if hosting_plan not set)

7.8 hp_als (required if hosting_plan not set)

7.9 hp_php (required if hosting_plan not set)

7.10 hp_cgi (required if hosting_plan not set)

7.11 hp_backup (required if hosting_plan not set)

7.12 hp_dns (required if hosting_plan not set)

7.13 hp_allowsoftware (required if hosting_plan not set)

7.14 external_mail (required if hosting_plan not set)

7.15 web_folder_protection (required if hosting_plan not set)

7.16 phpini_system (required if hosting_plan not set)

7.17 phpini_perm_allow_url_fopen (required if hosting_plan not set)

7.18 phpini_perm_display_errors (required if hosting_plan not set)

7.19 phpini_perm_disable_functions (required if hosting_plan not set)

7.20 phpini_post_max_size (required if hosting_plan not set)

7.21 phpini_upload_max_filesize (required if hosting_plan not set)

7.22 phpini_max_execution_time (required if hosting_plan not set)

7.23 phpini_max_input_time (required if hosting_plan not set)

7.24 phpini_memory_limit (required if hosting_plan not set)

8. alias_domains

Encrypted array variables which are available / required

KNOWN ISSUES