Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Dev Section 3rd Party Software
  • Search

There is a bug in WHMCS modules

Section with additional software for Vesta
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
FirstVM.com
Posts: 10
Joined: Mon Feb 17, 2014 2:25 am

There is a bug in WHMCS modules
  • Quote

Post by FirstVM.com » Sun Feb 23, 2014 4:50 am

While integrate vestacp to WHMCS, I found there was a bug in vesta.php module.

please see the image:

Image

it was " $serverhostname" here.
but it shoud be : $params[‘serverhostname’]

otherwise, the customer was not able to login webmail from his client area.
Top

heihachi88
Posts: 258
Joined: Fri Jan 10, 2014 7:34 pm

Re: There is a bug in WHMCS modules
  • Quote

Post by heihachi88 » Fri Apr 11, 2014 5:17 am

Indeed, Skid, fix this please.
Top

zeeshan030
Posts: 1
Joined: Sat Apr 11, 2015 6:53 am

Re: There is a bug in WHMCS modules
  • Quote

Post by zeeshan030 » Sat Apr 11, 2015 7:07 am

otherwise, the customer was not able to login webmail from his client area.

___________________
developments
Littlelioness
Episodes 131-135: The Post-Alabasta Arc
Last edited by zeeshan030 on Tue Jun 13, 2023 11:01 am, edited 4 times in total.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: There is a bug in WHMCS modules
  • Quote

Post by skurudo » Sat Apr 11, 2015 11:39 pm

zeeshan030 wrote:otherwise, the customer was not able to login webmail from his client area.
Topic quite old, not sure this "bug" still active.
It's a bug? How can we test this? Will you help with this? (sorry, don't have WHMCS)
Top

TopeZ
Posts: 18
Joined: Mon Nov 03, 2014 11:50 pm

Re: There is a bug in WHMCS modules
  • Quote

Post by TopeZ » Mon Sep 14, 2015 7:13 pm

Yes this bug is still active.

I've recently ran into this as well and fixed it myself in the WHMCS VestaCP Module - vesta.php

I however did it differently and used "$params["domain"]" instead.

He's referring to a small section in the Client Area for WHMCS @

Code: Select all

function vesta_ClientArea($params) {

    $code = '<form action="https://'.$params["serverhostname"].':8083/login/" method="post" target="_blank">
<input type="hidden" name="user" value="'.$params["username"].'" />
<input type="hidden" name="password" value="'.$params["password"].'" />
<input type="submit" value="Login to Control Panel" />
<input type="button" value="Login to Webmail" onClick="window.open(\'http://'.$serverhostname.'/webmail\')" />
</form>';
    return $code;
This portion:

Code: Select all

<input type="button" value="Login to Webmail" onClick="window.open(\'http://'.$serverhostname.'/webmail\')" />
Should actually be:

Code: Select all

<input type="button" value="Login to Webmail" onClick="window.open(\'http://'.$params["domain"].'/webmail\')" />
Simple quick fix, nothing big.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “3rd Party Software”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password