I've noticed today that when viewing someone's profile (such as mine (https://www.aaroads.com/forum/index.php?action=profile;u=12695), for example), there's this string at the very top of the page:
Quote// Begin SMF Gallery $txt['whoall_gallery'] = 'In the Gallery'; // END SMF Gallery Strings
Any reason as to why that's showing up?
In some programming languages, two slashes in a row mean a comment, which means the program is not supposed to execute that code, and it is meant for the user to read while viewing code (usually to make it clearer). However, we still should not be able to see it.
Quote from: 1 on February 16, 2016, 03:11:22 PM
In some programming languages, two slashes in a row mean a comment, which means the program is not supposed to execute that code, and it is meant for the user to read while viewing code (usually to make it clearer). However, we still should not be able to see it.
I noticed that they looked like comments, as C++ uses that to comment lines out. I'm not sure how php code works though.
That looks like some code that was accidentally left out of the <?php ?> brackets. I believe it was meant to set sort of page header variable, but I'm not familiar with SMF.
I'll look into this.
Has been fixed. A new mod Alex installed this morning didn't properly put it's info in the right place (it put it after a '?>' instead of before it). I've manually fixed it in the PHP files.
So, this problem should no longer happen. :)