Skip to content

Commit

Permalink
Merge pull request #45 from solusio/replacing-dir-with-rootdir-for-wh…
Browse files Browse the repository at this point in the history
…mcs-8-compatibility

Replacing __DIR__ with ROOTDIR for WHMCS 8 compatibility
  • Loading branch information
redikultsevsilver authored Jul 1, 2021
2 parents 7a6f980 + 4df401a commit 54a07f9
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion modules/servers/solusvmpro/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1.3
4.1.4
6 changes: 3 additions & 3 deletions modules/servers/solusvmpro/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
define( "CLIENTAREA", true );
require( "../../../init.php" );

require_once __DIR__ . '/lib/Curl.php';
require_once __DIR__ . '/lib/CaseInsensitiveArray.php';
require_once __DIR__ . '/lib/SolusVM.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/Curl.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/CaseInsensitiveArray.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/SolusVM.php';

use Illuminate\Database\Capsule\Manager as Capsule;
use SolusVM\SolusVM;
Expand Down
6 changes: 3 additions & 3 deletions modules/servers/solusvmpro/get_client_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
require( "../../../init.php" );
session_start();

require_once __DIR__ . '/lib/Curl.php';
require_once __DIR__ . '/lib/CaseInsensitiveArray.php';
require_once __DIR__ . '/lib/SolusVM.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/Curl.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/CaseInsensitiveArray.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/SolusVM.php';

use Illuminate\Database\Capsule\Manager as Capsule;
use SolusVM\SolusVM;
Expand Down
6 changes: 3 additions & 3 deletions modules/servers/solusvmpro/html5console.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
define("CLIENTAREA", true);
require("../../../init.php");

require_once __DIR__ . '/lib/Curl.php';
require_once __DIR__ . '/lib/CaseInsensitiveArray.php';
require_once __DIR__ . '/lib/SolusVM.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/Curl.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/CaseInsensitiveArray.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/SolusVM.php';

use Illuminate\Database\Capsule\Manager as Capsule;
use SolusVM\SolusVM;
Expand Down
2 changes: 1 addition & 1 deletion modules/servers/solusvmpro/lib/SolusVM.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function __construct( $params, $debug = false ) {
$this->pid = $this->getParam( "pid" ); # Product/Service ID

//Parse Ini file
$config_file = dirname(__DIR__) . '/configure.ini';
$config_file = dirname(ROOTDIR) . '/modules/servers/solusvmpro/configure.ini';
$this->configIni = parse_ini_file( $config_file );

}
Expand Down
10 changes: 5 additions & 5 deletions modules/servers/solusvmpro/solusvmpro.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*
*/

require_once __DIR__ . '/lib/Curl.php';
require_once __DIR__ . '/lib/CaseInsensitiveArray.php';
require_once __DIR__ . '/lib/SolusVM.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/Curl.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/CaseInsensitiveArray.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/SolusVM.php';

use Illuminate\Database\Capsule\Manager as Capsule;
use SolusVM\SolusVM;
Expand All @@ -16,8 +16,8 @@
die( "This file cannot be accessed directly" );
}

if ( file_exists( __DIR__ . "/custom.php" ) ) {
require_once( __DIR__ . "/custom.php" );
if ( file_exists( ROOTDIR . "/custom.php" ) ) {
require_once( ROOTDIR . "/modules/servers/solusvmpro/custom.php" );
}

SolusVM::loadLang();
Expand Down
6 changes: 3 additions & 3 deletions modules/servers/solusvmpro/svm_control.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
require("../../../init.php");
session_start();

require_once __DIR__ . '/lib/Curl.php';
require_once __DIR__ . '/lib/CaseInsensitiveArray.php';
require_once __DIR__ . '/lib/SolusVM.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/Curl.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/CaseInsensitiveArray.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/SolusVM.php';

use Illuminate\Database\Capsule\Manager as Capsule;
use SolusVM\SolusVM;
Expand Down
6 changes: 3 additions & 3 deletions modules/servers/solusvmpro/vnc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
define( "CLIENTAREA", true );
require( "../../../init.php" );

require_once __DIR__ . '/lib/Curl.php';
require_once __DIR__ . '/lib/CaseInsensitiveArray.php';
require_once __DIR__ . '/lib/SolusVM.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/Curl.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/CaseInsensitiveArray.php';
require_once ROOTDIR . '/modules/servers/solusvmpro/lib/SolusVM.php';

use Illuminate\Database\Capsule\Manager as Capsule;
use SolusVM\SolusVM;
Expand Down

0 comments on commit 54a07f9

Please sign in to comment.