Server IP : 213.176.29.180 / Your IP : 18.191.195.180 Web Server : Apache System : Linux 213.176.29.180.hostiran.name 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64 User : webtaragh ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/webtaragh/public_html/../www/../public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
example.php 0000644 00000001414 14736262127 0006722 0 ustar 00 <?php /** * Example Hook Function * * Please refer to the documentation @ https://docs.whmcs.com/Hooks for more information * The code in this hook is commented out by default. Uncomment to use. * * @package WHMCS * @author WHMCS Limited <development@whmcs.com> * @copyright Copyright (c) WHMCS Limited 2005-2018 * @license https://www.whmcs.com/license/ WHMCS Eula * @version $Id$ * @link https://www.whmcs.com/ */ /* if (!defined("WHMCS")) die("This file cannot be accessed directly"); function create_forum_account($vars) { $firstname = $vars['firstname']; $lastname = $vars['lastname']; $email = $vars['email']; // Run code to create remote forum account here... } add_hook("ClientAdd",1,"create_forum_account"); */ README.txt 0000644 00000002032 14736262127 0006251 0 ustar 00 The hooks system allows you to extend WHMCS functionality by placing files in the /includes/hooks directory. WHMCS has a variety of hook points that run when specific events occur (for example, generating an invoice). To use this system, write your own code and register it with a hook point. WHMCS will execute that code when the hook runs. For a list of available hook points, see https://developers.whmcs.com/hooks/hook-index/. To use the example hook code below, copy the code, beginning with '<?php', and paste it into a file in the /includes/hooks directory. The filename must use the '.php' extension (for example, create_forum_account.php). Filenames beginning with an underscore '_' will not be loaded. <?php if (!defined('WHMCS')) die('You cannot access this file directly.'); function create_forum_account($vars) { $firstname = $vars['firstname']; $lastname = $vars['lastname']; $email = $vars['email']; // Add the code to create a remote forum account here. } add_hook('ClientAdd', 1, 'create_forum_account'); index.php 0000644 00000000113 14736262127 0006371 0 ustar 00 <?php if ( !defined('WHMCS')) { header("Location: ../../index.php"); }