The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

whm hook?

Discussion in 'cPanel Developers' started by bitter_, Jul 8, 2010.

  1. bitter_

    bitter_ Registered

    Joined:
    Jul 8, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    hi

    when I add new ip to server used following commands
    /scripts2/addipform
    /scripts2/addip

    how can i hook that?

    I try create script file on server /script/preaddip and /script/preaddipform
    but get no response

    however /script/prekillacct work fine

    why?

    where i can get full list of functions for hook?

    10x
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Here is a list

    This is the list of script hooks that are available:

    cPanel/WHM Script Hooks

    There is no provision for a hook for the addip function. Out of curiosity, what type of function are you wanting to use when an IP address added? With more information about the desired result, we may be able to suggest an alternative.
     
  3. bitter_

    bitter_ Registered

    Joined:
    Jul 8, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    at first i want work with filesystem: create, edit files

    in whole, i want create "plugin" for assign custom ips to account (more then one ip) and, as second stage, assign custom ip for custom subdomain

    just i need this functional
     
  4. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Unfortunately this is not available as of this time.

    You could hook at the account creation time, you could hook at the subdomain creation time, not at the time that an IP is added.

    As an alternative solution, I would suggest creating a WHM plugin:

    CreatingWhmPlugins < AllDocumentation/AutomationIntegration < TWiki

    that performs all of the action you want.
     
Loading...

Share This Page