Jump to content

Pinkmare

Member
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Pinkmare

  • Rank
    Junior Member
  1. Another quick fix for small bug where not logged in client is not redirected to the login page. Open file unblockip.php and find: if ($whmcs_client_id) { ...content } else { return false; } and remove this part of code: else { return false; } In result when not logged in client will try access unblockip, he will get redirect to the login page @edit Another small tip for everyone who use CloudFlare and have issues with showing not correct IP: Open "unblockip.tpl" and find: $smarty.server.REMOTE_ADDR replace with: $smarty.server.HTTP_CF_CONNECTING_IP
  2. Hello so module is working perfect. It don't show any message and don't works if client don't have any service. Sadly this module don't show any output when Client don't have active service. You can simply add in functions.php in function "process_request" below $servers = Capsule::table('tblservers')->select(["tblservers.ipaddress","tblservers.username","tblservers.password","tblservers.accesshash","tblservers.name","tblservers.secure","tblservers.type"])->join("tblhosting","tblservers.id","=","tblhosting.server")->where('tblhosting.userid', $whmcs_client_id)->whereRaw("(tblservers.type = 'cpanel' or tblservers.type='directadmin' or tblservers.type='cpanelextended') and tblservers.disabled = 0 and tblhosting.domainstatus = 'Active'")->distinct()->get(); this code if ($servers == "[]") { $errors = $errors . "You don't have any active service and you can't use this feature"; } and in result when client with inactive or without service will try use this module will get error provided
  3. Hello. Recently I was looking for some perfect anti DDoS solution for my service. Sadly CloudFlare have sick requirements if you want join to their partnership program or they want get paid for access. During checking their API i found that I can add records via their API. I wanted ask about some small help or tips where/how to start/add hook/function with one will automatically add "A" records to CloudFlare when my customers will select free subdomain during checkout. Thank you so much for help
×
×
  • 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