Is it possible to hide the database password exposed under Administration >> System Information in OJS3.x? At the moment it’s listed alongside the other variables in the database section under OJS Configuration.
My first through was to either comment out the call being made to display the password in that cell on the table (i.e. <td>) or comment out the whole “Password” row (<tr>). However, I’ve exported out a copy of our webserver and have hunted through the php files to work out where the call’s being made to read out the variables from config.inc.php but can’t find it.
If someone could point me in the right direction for where the SSI is stored I’ll proceed with commenting it out and do so with the understanding we’ll have to rinse/repeat for subsequent software updates.
This being said, if others have tackled similar issues in the past and have a smarter way of achieving this it would be great to hear from you!
Good question. I’m wondering if you could give your specific version number that you’re working with (e.g. 3.3.0-8), as the database structure may vary in various versions of 3.x. From there, I’ll run this by some of our dev team to see if they can offer suggestions.
@kerimsarigul Thank you so much for pointing me in the right direction! I was having trouble locating where the template files were located and had missed that spot. We’ll experiment with the code and will report back on how we go in case others find themselves in a similar spot!
Wanted to say another big thank you to @kerimsarigul - can confirm we have eliminated the table thanks to the advice and am working on a few tweaks. Happy to post and share our result if others are interested once we’ve finished it up?
In good news it looks like everything’s running as expected when pushing our solution into production.
If others are in a similar boat, what I did was add some additional if statements in the nested foreach loop to return generic entries for selected variables. This way we can otherwise keep the table visible but hide what we want to.
Here’s the source if you want to incorporate this into your installation: