Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    20
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. bitter_

    bitter_ Registered

    Joined:
    Jul 8, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    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 Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice