Password: | Forgot password? |

Search:
Index
Installation (3 pages)
Configuration (21 pages)
       Preferences (9 pages)
Modules (5 pages)
       Billing (1 pages)
Integration (3 pages)
       Integration with hosting control panels.1585 viewsRating: 0 (0 votes)
       Domains panels integration 1418 views
       Gateways panels integration 1437 views
Other options (4 pages)
Integration with hosting control panels.

INVOHOST allows users to create their own codes of integration with any control panel easily. To create integration to a control panel, login as administrator and go to Configuration> Server hosting> Panels and integration. Then click Edit or Configure (on the right of the panel) and you will see a screen where you can include the code for the different functions of integration. It need not include code in all functions can be programmed only as you need. INVOHOST is configured by default all functions for the panel cPanel.
Each function receives one, two or three parameters. Each parameter passed is an array whose contents are detailed in the following table:

INVOHOST allows users to create their own codes of integration with any control panel easily. To create integration to a control panel, login as administrator and go to Configuration> Server hosting> Panels and integration. Then click Edit or Configure (on the right of the panel) and you will see a screen where you can include the code for the different functions of integration. It need not include code in all functions can be programmed only as you need. INVOHOST is configured by default all functions for the panel cPanel.
Each function receives one, two or three parameters. Each parameter passed is an array whose contents are detailed in the following table:

array $server array $client array $product
$server[name] = nombre del servidor
$server[ip] = IP del servidor
$server[datacenter] = nombre del centro de datos
$server[panel] = nombre del panel de control (ej. cPanel)
$server[hostname] = hostname del servidor (ej. zeus.example.com)
$server[ns1] = primer servidor de nombres (ej. ns1.example.com)
$server[ns2] = segundo servidor de nombres (ej. ns2.example.com)
$server[ns3] = tercer servidor de nombres (ej. ns3.example.com)
$server[ns4] = cuarto servidor de nombres (ej. ns4.example.com)
$server[ns1ip] = IP del primer NS
$server[ns2ip] = IP del segundo NS
$server[ns3ip] = IP del tercer NS
$server[ns4ip] = IP del cuarto NS
$server[username] = usuario del servidor (ej. root)
$server[password] = contraseña del servidor
$server[usessl] = 1 si usa SSL, 0 si no usa SSL para conectarse
$server[nosslport] = puerto de acceso por http
$server[sslport] = puerto de acceso por https (SSL)
$server[accesshash] = codigo de acceso (requerido para cPanel)
$server[prefix] = prefijo (http o https). Depende de $server[usessl]
$server[port] = puerto a utilizar. Depende de $server[usessl]
$client[clientid] = ID del cliente
$client[firstname] = nombre del cliente
$client[lastname] = apellido del cliente
$client[company] = compañía
$client[address] = dirección
$client[city] = ciudad
$client[state] = estado/provincia/depto.
$client[zip] = código postal
$client[phone] = teléfono
$client[fax] = fax
$client[email] = email
$client[country] = codigo del pais
$client[balance] = saldo
$client[password] = contraseña
$client[active] = 1 active, 2 suspendido
$client[reseller] = 1 si es revendedor
$product[productid] = ID del producto
$product[clientid] = ID del cliente
$product[service] = nombre del servicio (ej. example.com)
$product[plan] = nombre del plan (ej. Basico)
$product[username] = usuario del producto
$product[password] = contraseña del producto
$product[newpassword] = nueva contraseña (sólo para la función changepassword)
$product[servername] = servidor donde está el producto

Enter the code in each function returns an array called $RESULT whose content should be as follows (you should not return $RESULT, then automatically included):

$RESULT['STATUS'] = should be 1 if the process is completed satisfactorily, or 0 if there was an error.

$RESULT['MESSAGE'] = should enforce the message to display when processing the code.

$RESULT['DEBUG'] = must contain the information to be displayed when debug mode is enabled in the server configuration.


Using commoncode_1 and commoncode_2

commoncode_1 and / or commoncode_2 can be called from any of the other functions including the following line of code:

eval(stripslashes(base64_decode($rows['commoncode_1'])));

or

eval(stripslashes(base64_decode($rows['commoncode_2'])));

This functionality is useful to include code that is repeated in several functions, for example, the server connection code.


Change theme
Language:

Powered by INVOhost version 2012.1    Copyright © 2003 www.invohost.com