Welcome Guest, Not a member yet? Register   Sign In
Tiny MCE Image Manager Session Authentication
#1

[eluser]Cong Do[/eluser]
Hi,
I'm just wonder is there a way to check if the user is logined and is part of the admin from Tiny MCE. I try access $this->userauth, but there is anothing there. Any help would be greatly appreciated.

Regards,
Cong Do
#2

[eluser]ejangi[/eluser]
I'm not sure I fully understand what you're doing or which files you're editing etc... But do you have access to the CI instance?

Try doing this:
Code:
$this->CI =& get_instance();
$this->CI->userauth....
#3

[eluser]Cong Do[/eluser]
No I don't have access to the CI instance.

editing the authenticator.php from imagemanager(tiny_mce)

Regards,
Cong Do
#4

[eluser]ejangi[/eluser]
Hmmm... I can't say I'm very familiar with TinyMCE, but maybe have a look at the index.php file to include enough of the CI framework so you have access to the CI instance.

Otherwise you may have to try and emulate the way CI's userauth system works so you can get access to the session's etc... I'm shooting for the sky with this last suggestion but maybe you could look into something with XML-RPC??? (http://ellislab.com/codeigniter/user-gui...mlrpc.html).

Sorry I'm not much help, hopefully someone else chimes in.




Theme © iAndrew 2016 - Forum software by © MyBB