Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

Commit

Permalink
More updates to client area and work on removing reliance on module
Browse files Browse the repository at this point in the history
settings. Updated versions and license
  • Loading branch information
Shane Chrisp committed Nov 9, 2017
1 parent 1d00e0e commit 215a9be
Show file tree
Hide file tree
Showing 38 changed files with 235 additions and 328 deletions.
20 changes: 20 additions & 0 deletions Ispconfig_files/README.md
@@ -1,3 +1,23 @@
/*
*
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

Place the files in the remote.d directory into the Ispconfig3 directory

/$ISPCONFIG_INSTALL_DIR$/interface/lib/classes/remote.d/
4 changes: 2 additions & 2 deletions Ispconfig_files/remote.d/cwispy.inc.php
@@ -1,8 +1,8 @@
<?php
/*
*
* ISPConfig v3.x module for WHMCS v5.x or Higher
* Copyright (C) 2014, 2015 Shane Chrisp
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
4 changes: 2 additions & 2 deletions Ispconfig_files/remote.d/version.inc.php
@@ -1,8 +1,8 @@
<?php
/*
*
* ISPConfig v3.x module for WHMCS v5.x or Higher
* Copyright (C) 2014, 2015 Shane Chrisp
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
20 changes: 20 additions & 0 deletions README.md
@@ -1,5 +1,25 @@
ispcfg3
======
/*
*
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/

Requires ISPConfig 3.1+
WHMCS 7+

Expand Down
19 changes: 19 additions & 0 deletions assets/css.css
@@ -1,3 +1,22 @@
/*
*
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
.icon-ftp{
background-image: url("img/ftp.png");
}
Expand Down
19 changes: 19 additions & 0 deletions assets/js/ajax.js
@@ -1,3 +1,22 @@
/*
*
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
function doAjaxPost(type,url,data,oResponse,oMessage,oLoading,extraData) {
var loaderType = "";
if (extraData != "" || extraData != "undefined") {
Expand Down
19 changes: 19 additions & 0 deletions assets/js/script.js
@@ -1,3 +1,22 @@
/*
*
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
$(document).ready(function(){
if (jQuery().dataTable) {
if ($(".dataTable tr td[colspan]").size() == 0) {
Expand Down
4 changes: 2 additions & 2 deletions elfinder.connector.php
@@ -1,7 +1,7 @@
<?php
/*
* ISPConfig v3.1+ module for WHMCS v6.x or Higher
* Copyright (C) 2014 - 2016 Shane Chrisp
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
19 changes: 7 additions & 12 deletions functions/base.php
@@ -1,6 +1,6 @@
<?php
/*
* ISPConfig v3.1+ module for WHMCS v6.x or Higher
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -76,18 +76,14 @@ function cwispy_soap_request($params, $function, $options=array()) {
$username = $params['username'];
$password = $params['password'];
$domain = $params['domain'];
$soapuser = $params['configoption1'];
$soappassword = $params['configoption2'];
$soapsvrurl = $params['configoption3'];
$soapsvrssl = $params['configoption4'];

if ($soapsvrssl == 'on') {
$soap_url = 'https://' . $soapsvrurl . '/remote/index.php';
$soap_uri = 'https://' . $soapsvrurl . '/remote/';
if ( $params['serversecure'] == 'on' ) {
$soap_url = 'https://' . $params['serverhostname'].':'.$params['serverport'] . '/remote/index.php';
$soap_uri = 'https://' . $params['serverhostname'].':'.$params['serverport'] . '/remote/';
}
else {
$soap_url = 'http://' . $soapsvrurl . '/remote/index.php';
$soap_uri = 'http://' . $soapsvrurl . '/remote/';
$soap_url = 'http://' . $params['serverhostname'].':'.$params['serverport'] . '/remote/index.php';
$soap_uri = 'http://' . $params['serverhostname'].':'.$params['serverport'] . '/remote/';
}

if (!$username || !$password) {
Expand All @@ -108,11 +104,10 @@ function cwispy_soap_request($params, $function, $options=array()) {
'uri' => $soap_uri,
'exceptions' => 1,
'trace' => false ,
// 'cache_wsdl' => WSDL_CACHE_NONE,
'stream_context' => $stream_context
);
$client = new SoapClient( null, $soap_options);
$session_id = $client->login($soapuser, $soappassword);
$session_id = $client->login( $params['serverusername'], $params['serverpassword'] );
$user = $client->client_get_by_username($session_id, $username);
$client_recordid = $client->client_get_id($session_id, $user['userid']);

Expand Down
2 changes: 1 addition & 1 deletion hooks.php
@@ -1,6 +1,6 @@
<?php
/*
* ISPConfig v3.1+ module for WHMCS v6.x or Higher
* ISPConfig v3.1+ module for WHMCS v7.x or Higher
* Copyright (C) 2014 - 2017 Shane Chrisp
*
* This program is free software: you can redistribute it and/or modify
Expand Down

0 comments on commit 215a9be

Please sign in to comment.