Jump to content

[Plugin] Cpanel Csf Tounblock Ip In Cpanel


Blesta Addons
Message added by Michael,

Important Notice:

We have received reports that this developer is not responding to support requests. Some extensions may not be compatible with newer versions of Blesta.

Recommended Posts

Hello Community

i have updatedthe plugin to work with the latest blesta branch 3.2 ...

all the credit/licence belong to the creator of this plugin , so i have just changed some code to make it working in v 3.2

download the plugin for github , any suggetion welcome

https://github.com/Blesta/cpanel_csf

TODO :

Support other panels

Plesk

DirectADmin

Best regards

Link to comment
Share on other sites

when the plugin is installed and i click unblock menu as client the logo of blesta dissapears shows this in the html:

 

            <div class="container">
                <div class="logo">
                    <a href="/portal/client/">
                                                    <img src="/portal/plugins/cpanel_csf/views/client/bootstrap/images/logo.png" alt="Blesta" />
                                            </a>
                </div>

 

that path doesnt exists cpanel_csf/views/client/bootstrap/images/logo.png

 

you should add in plugins/cpanel_csf/cpanel_csf_controller.php

    public function preAction() {

this:

    $this->structure->setDefaultView(APPDIR);

with this the logo will be rendered propertly

Link to comment
Share on other sites

This is great but install instructions would be nice, I have uploaded to plugins in components but it is not showing in blesta.

 

Are you looking at the Plugins (Available) page? Because you've uploaded it to the components which isn't the correct place. This is a Plugin, so it goes in the Plugin folder.

Link to comment
Share on other sites

  • 2 weeks later...

I'm having issues with this as well. It works splendid on the admin side, but on the client side the logo disappears and the "unblock" button doesn't work. I've tried a reinstall and deleting the cache folder.  Can't figure it out.

Link to comment
Share on other sites

I'm having issues with this as well. It works splendid on the admin side, but on the client side the logo disappears and the "unblock" button doesn't work. I've tried a reinstall and deleting the cache folder.  Can't figure it out.

the fix in the post N2

http://www.blesta.com/forums/index.php?/topic/2593-plugin-cpanel-csf-tounblock-ip-in-cpanel/?p=18445

Link to comment
Share on other sites

  • 9 months later...

Thank you. Ive managed to add the $this->structure->setDefaultView(APPDIR); to fix client's template missing logo.

 

I'm not sure if anyone has this bug? If you unblock an IP from admin area, it works. However from client's area, it is not submitting anything. the URL is mydomain.com/customers/plugin/cpanel_csf/client_main/# with the #

 

Please advise?

Link to comment
Share on other sites

Thank you. Ive managed to add the $this->structure->setDefaultView(APPDIR); to fix client's template missing logo.

I'm not sure if anyone has this bug? If you unblock an IP from admin area, it works. However from client's area, it is not submitting anything. the URL is mydomain.com/customers/plugin/cpanel_csf/client_main/# with the #

Please advise?

I wil check it this weekend to reproduce and correct if it need correction .

Link to comment
Share on other sites

  • 4 weeks later...
  • 8 months later...
  • 1 month later...

Okay, so after pulling my hair our and a bunch of testing I have the reason

 

So my reseller account is setup as "Full root" on my WHM box. 

 

What this does is actually changes the api call required, to also mimic root.

 

The fix I am working on is that on a per server - we can add a flag for does reseller have root privs

 

We can then use this in the plugin to send the correct command and have it working :)

Link to comment
Share on other sites

  • 7 months later...
On 3/26/2015 at 2:29 PM, BlestaTheme said:

Thank you. Ive managed to add the $this->structure->setDefaultView(APPDIR); to fix client's template missing logo.

 

I'm not sure if anyone has this bug? If you unblock an IP from admin area, it works. However from client's area, it is not submitting anything. the URL is mydomain.com/customers/plugin/cpanel_csf/client_main/# with the #

 

Please advise?

Same with me.

on client side a href on submit button is # . But on admin area works as usual. @naja7host :D

 

Link to comment
Share on other sites

It does use the cPanel API - there is a cavet to watch out for that I hit.

It does use the cPanel plugin information to know about the servers..  - but it should also have a setting per cPanel server if the reseller has root privileges as it will run a different unblock comment for a reseller vs root privileged user.

I think as a stand alone plugin that can read the data from the cpanel one is the better way to go.

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.

Loading...
×
×
  • Create New...