Author Topic: CWP account hooks NOT WORK!!  (Read 213 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
CWP account hooks NOT WORK!!
« on: November 11, 2019, 03:44:11 PM »
I try contact before one more times support but I can't get any answer....

From wiki:
https://wiki.centos-webpanel.com/action-hooks

Quote
Account Hooks
account_new (VALUES: username,domain)
/usr/local/cwpsrv/htdocs/resources/admin/hooks/account/account_new.php ......

I create directorys and account_new.php file with this content:

Code: [Select]
<?php
$arr 
get_defined_vars();
print_r($arr);
function 
account_new($u){
    echo 
"Hello World ....";
}
?>

when new account creation newer print "Hello World ...."  because CWP newer run "account_new" function in this PHP file.