Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: pratik_1712 on February 08, 2011, 06:12:38 AM

Title: Retrive Env Variable Value inside the plugin
Post by: pratik_1712 on February 08, 2011, 06:12:38 AM
I have set an env variable and altered its value in JavaScript.. Now i need its value inside the plugin(.php).. How to retrieve it..

Thanks and Regards,
Pratik
Title: Retrive Env Variable Value inside the plugin
Post by: SKaero on February 08, 2011, 02:14:48 PM
You'd need to pass it to the php using a custom action http://trac.roundcube.net/wiki/Doc_Plugins#Customactions
Title: Retrive Env Variable Value inside the plugin
Post by: pratik_1712 on February 09, 2011, 12:15:18 AM
I added this code in my plugin

rcmail->output->set_env('user_value', 'myvalue');


And on certain event i am changing the value in the javascript as:

rcmail.env.user_value = 'newvalue';


Now how to get this value inside my plugin(.php)..??
Title: Retrive Env Variable Value inside the plugin
Post by: pratik_1712 on February 09, 2011, 01:50:26 AM
Found the solution..
Got the value through get_input_value

Thanks for help skaero