Jump to content

string

Senior Member
  • Content Count

    68
  • Joined

  • Last visited

  • Days Won

    2

string last won the day on May 15 2019

string had the most liked content!

Community Reputation

12 Good

About string

  • Rank
    Newbie

Recent Profile Visitors

2053 profile views
  1. You can get the userid via the PHP Session. It would be: $guidbuild = bcadd(bcmul($_SESSION['uid'], "xxxxxxxxxxxxxxxxxxxxx"), "xxxxxxxxxxxxxxxxxxxxx");
  2. You need to do the following to add a hook: <?php function testFunction ($vars) { return "Hello World"; } // Hook point, priority, function name add_hook("ClientAreaHomepage", 0, "testFunction"); Capsule is available since WHMCS v6.0. In older releases, you can use the SQL helper functions.
  3. I agree with Kian, but: This is technically possible by checking which option was saved. Of course, the condition is only processed when the option was saved, so it is probably a bit cumbersome for the end user. If you are a hardliner, you could use javascript to modify the output, but this is overkill. A configuration page inside yourmodule_output is the easiest way.
  4. You can disable the automatic termination in the Automation Settings
  5. <td align="center" valign="top" class="lh-1"> <a href="{$client_email_verification_link|strip_tags:false}" class="btn bg-green border-green"> <span class="btn-span">Verify Me!</span> </a> </td> "strip_tags:false" should work for you.
  6. Haha, the "LOL zone" made my day. Or don't create modules that will keep you awake all night long 😋 "Generate a fake ajax post to cheat WHMCS about redirect", these hacks sound like fun. Must be exhausting to test all workarounds on new WHMCS versions.
  7. One day i was in a similar situation where every hook was too early or too late. It also had also to do with invoicing. I solved it pretty dirty with some hooks and I hope the system will work forever, because I completely lost track of this code mess. Fortunately, this has now been running since about WHMCS v6.3 fairly maintenance-free. This has not really something to do with your problem, but i wish you good luck 😄
  8. Obviously the if condition is fulfilled, otherwise it would not happen. Without seeing the API response and more code, it's hard to be more specific. What does the variable $status contain? Do you verify that the API call returns something at all? If not, and the $status variable does not come from the API query, that may be the problem.
  9. A web application firewall like mod_security is a must have. It can save your ass, especially with security holes in addons. I've seen the simplest vulnerabilities in addons too many times, like LFI / RFI. A WAF can help block such attacks.
  10. The easiest way would be to simply check which role the admin has and then show the log page or not. You can add the menu entry over javascript, or edit the admin template. As far i know, there is no other way to add a menu entry. I would use javascript as it will not require changes on WHMCS updates.
  11. To remove the SSL check from the client area, you can follow this: Currently there is no way to disable it over the admin interface. There is a feature request for it: https://requests.whmcs.com/topic/customization-of-ssl-monitoring-introduced-in-7-7-0 I think the SSL checks can be skipped by adjusting the WHMCS cronjob parameters (by using the do argument and execute only what you need. Ugly, but probably working).
  12. https://stackoverflow.com/questions/737022/how-do-i-disable-right-click-on-my-web-page But it does not make any sense, everbody can bypass this easily. I even think that's pretty bad, I do not see any benefit in it in this specific case. There are cases where it does make sense, but not here. The inexperienced user may want to copy and share the text, but can not because he does not know the shortcut for copying.
  13. As far i see, the hooks can not be used to override the contact details. A possible workaround would be that you change the clients company name via the hooks PreDomainRegister / PreDomainTransfer and then restore over the hooks AfterRegistrarRegister / AfterRegistrarTransfer. Not the nicest solution, there are probably better ways.
  14. Maybe you could just save the $_SESSION variable before the hooks and then restore it.
  15. +1 for dynamic keys. I'm also surprised why so few seem to use it. Probably because it requires to read the ioncube documentation and there are a few things to keep in mind when using dynamic keys to get started with it.
×
×
  • 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