Jump to content

Hook ClientAreaPageLogin not executed


srg

Recommended Posts

Hello,

 

On WHMCS v6.2 I have created a hook[2] for ClientAreaPageLogin. According to documentation[1] it should do stuff when login page is displayed. For testing purposes my hook is trying to create a file in /tmp/ folder. This file is never created. Am I doing something wrong or this is a bug in WHMCS?

 

[1] http://docs.whmcs.com/Hooks:ClientAreaPageLogin

[2] hook.php


add_hook('ClientAreaPageLogin', 1,
function($vars)
{
$test = 'this is a test';
$fp = fopen('/tmp/file.txt', 'w');
fwrite($fp, $test);
fclose($fp);
}
);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated