This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

How to pass admin variables?
#1

Hi,

We have a copy of the files behind our own system admin firewall, and want to know how we can pass admin variables into commentics so we don't need to login twice.

How can we do this please?

Thx.
Reply
#2

Hi,

If I understand your question, you want to pass the login credentials from your system firewall into the username and password fields for the Commentics admin panel login form.

So let's say you have the login credentials from your system firewall in session variables such as $_SESSION['system_firewall_username'] and $_SESSION['system_firewall_password'].

What you would do is open /comments/admin/includes/auth.php and add the parts in red:

<input type="text" required autofocus name="username" style="width:150px" value="<?php echo $_SESSION['system_firewall_username']; ?>"/>

<input type="password" required name="password" style="width:150px" value="<?php echo $_SESSION['system_firewall_password']; ?>"/>

Now when you go to the Commentics admin panel the username and password fields will be pre-filled and all you would need to do is click the 'Login' button.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Toeb
29-Sep-2021, 07:26 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)