Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2004
    Posts
    30

    Default change Package with remote access, is it possible?

    Hi,

    I create new account using "Remote Access". I would like to change plan/package this way too, is it possible?

  2. #2
    Member
    Join Date
    Apr 2003
    Posts
    479

    Default

    Using PHP:

    Include the standard Accounting.php.inc file, then add this code to the script that does the upgrade

    PHP Code:
    <?php

    function changepackage($host,$user,$accesshash,$usessl$username,$package) {
            
    $result whmreq("/scripts2/upacct?user=${username}&pkg=${package}",$host,$user,$accesshash,$usessl);
            if (
    $cpanelaccterr != "") { return; }
            return 
    $result;
    }
    ?>
    Now you will be able to use the fuction like this, similar to the way you use the creation function
    changepackage("locahost", "reselleracct", "ik0832hhfh", 1, "someuser", "Platnum")

    If you use Perl, the process is similar.

Similar Threads & Tags
Similar threads

  1. not able to connect remote MySQL : Remote Database Access Hosts
    By crazyaboutlinux in forum Database Discussions
    Replies: 4
    Last Post: 10-05-2011, 03:55 PM
  2. Remote Access: Upgrading Package Problem!
    By Gamer4u in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-18-2006, 09:51 AM
  3. change package in whm but not change in cpanel
    By sliktek in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-11-2005, 09:40 PM
  4. Remote Access: Upgrade Package
    By andy7t in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-07-2005, 01:53 PM
  5. Replies: 2
    Last Post: 04-30-2003, 05:39 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube