• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cPanel auto login

#1
Hello

i am new to codeigniter and really like it so much. i am trying to build one application where i want to give access to users to login to cPanel from my webpage. as i seen this in many websites already.

Here is cPanel secure login information from cPanel
https://documentation.cpanel.net/display...ote+Logins

now i find one PHP class using same function to verify login
https://gist.github.com/kmark/4440574

i am trying to get this class work with codeigniter but no luck.

i have copied bove class in application/libraries directory
then call this class from controller but i am getting error on
Code:
namespace cPanel;

i just want to know how to get this class working or any other solution for cPanel login from codeigniter function.

Thanks
Reply

#2
no reply in 11 days Sad
Reply

#3
(12-31-2014, 01:54 AM)irshad Wrote: no reply in 11 days Sad

CodeIgniter does not use namespaces. If you put a class Logmein inside application/libraries/Logmein.php, you load it with $this->load->library('Logmein');

See http://www.codeigniter.com/userguide3/ge...aries.html

I hope this will help - you did not say what error you encountered.

ps - I am not aware of a PHP cPanel solution.
Reply

#4
Hello ciadmin ,

thanks for reply, i try this already but its not working as this library use name space, is there way how can i use namespaces or some thing like that in CI ?

Thanks
Reply

#5
(12-31-2014, 08:37 AM)irshad Wrote: thanks for reply, i try this already but its not working as this library use name space, is there way how can i use namespaces or some thing like that in CI ?

Did you try to remove the namespace?
Or you can also put the class in the third_party directory and include the file in your controller.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.