| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- use Illuminate\Database\Capsule\Manager as Capsule;
- if (!defined("WHMCS"))
- die("This file cannot be accessed directly");
- if (!class_exists('Net_EPP_Protocol')) {
- if (file_exists(__DIR__ . "/../../registrars/switchepp/Net/EPP/Client.php"))
- require_once __DIR__ . "/../../registrars/switchepp/Net/EPP/Client.php";
- }
- if (file_exists(__DIR__ . '/classes/switchepp.class.php'))
- require_once __DIR__ . '/classes/switchepp.class.php';
- function wgs_switchepp_config() {
- $configarray = array(
- "name" => "Switch EPP",
- "description" => "In this addon you can manage the poll and confirmation messege of Switch EPP registrar",
- "version" => "3.1.0",
- "author" => '<a href = "https://whmcsglobalservices.com" target = "_blank;">WHMCS GLOBAL SERVICES</a>',
- "language" => "english",
- "fields" => array(
- "api_username" => array(
- "FriendlyName" => "API Username", "Type" => "text", "Size" => "25",
- "Description" => "Username (Enter CSV protected Username to get domains list)"
- ),
- "api_password" => array(
- "FriendlyName" => "API Password", "Type" => "text", "Size" => "25",
- "Description" => "Password (Enter CSV protected Password to get domains list)"
- ),
- )
- );
- return $configarray;
- }
- function wgs_switchepp_activate() {
- return array('status' => 'success', 'description' => 'Addons Image');
- }
- function wgs_switchepp_deactivate() {
- return array('status' => 'success', 'description' => 'Deactivated successfully.');
- }
- function wgs_switchepp_output($vars) {
- $modulelink = $vars['modulelink'];
- $LANG = $vars['_lang'];
- $SWITCHEPP = new SWITCHEPP();
- if (isset($_REQUEST["action"])) {
- if (file_exists(__DIR__ . '/includes/' . $_REQUEST["action"] . '.php')) {
- require_once __DIR__ . '/includes/' . $_REQUEST["action"] . '.php';
- }
- } else {
- if (file_exists(__DIR__ . '/includes/' . 'homepage.php')) {
- require_once __DIR__ . '/includes/' . 'homepage.php';
- }
- }
- }
- ?>
|