Jump to content
SolusVM Community

Search the Community

Showing results for tags 'modification'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Announcements
    • News & Announcements
    • Third Party News and Updates
  • SolusVM Discussion
    • Pre-Sale Questions
    • SolusVM tech talks
    • Customization
    • SolusVM Suggestions and Feedback
  • Feeds
  • Misc

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Location


Occupation


Company

Found 1 result

  1. Please excuse me if this has already been done somewhere as I've only been running Solusvm for a couple of days. Reason: I created my first VM through WHMCS today and in the Client Area, I found the Username / Password listed in text below the Reboot, Shutdown, Boot buttons, but no easy way for the Customer to know where the login to the Solusvm Control Panel like they can in the cPanel Client Area. Disclaimer: I assume it is ok to modify/add the code in solusvmpro.php for the WHMCSV2 module that is owned by Solusvm? I am also not claiming that this is the best way to do this by any means. If someone knows the param for the master server URL, it would be much cleaner. Bit too tired here to keep digging for it in the WHMCS documentation. Simple Modification: Find the Following Code in the solusvmpro.php for WHMCS: function solusvmpro_ClientArea($params) { $code = '<input type="button" value="Reboot" onClick="window.location=\'clientarea.php?action=productdetails&id=' . $params[serviceid] . '&serveraction=custom&a=reboot\'" /> <input type="button" value="Shutdown" onClick="window.location=\'clientarea.php?action=productdetails&id=' . $params[serviceid] . '&serveraction=custom&a=shutdown\'" /> <input type="button" value="Boot" onClick="window.location=\'clientarea.php?action=productdetails&id=' . $params[serviceid] . '&serveraction=custom&a=boot\'" /> '; return $code; } Replace with the following: NOTE: Be sure you replace HOST.YOURHOSTNAME.COM with the name of your master server function solusvmpro_ClientArea($params) { $code = ' <form action="https://HOST.YOURHOSTNAME.COM:5656/login.php" method="post" target="_blank"> <input type="hidden" name="username" value="' . $params["username"] . '" /> <input type="hidden" name="password" value="' . $params["password"] . '" /> <input type="submit" name="Submit" value="Login" class="button" /> <input type="button" value="Reboot" onClick="window.location=\'clientarea.php?action=productdetails&id=' . $params[serviceid] . '&serveraction=custom&a=reboot\'" /> <input type="button" value="Shutdown" onClick="window.location=\'clientarea.php?action=productdetails&id=' . $params[serviceid] . '&serveraction=custom&a=shutdown\'" /> <input type="button" value="Boot" onClick="window.location=\'clientarea.php?action=productdetails&id=' . $params[serviceid] . '&serveraction=custom&a=boot\'" /> '; return $code; } Hope someone else finds this useful.
×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.