Customizing SMF > SMF Coding Discussion
Hidden text! Bug?
The Hero:
Okay, so, for literally the last two days, I have been searching for a certain line of text. I'm using the adk blog mod which is working perfectly fine, however, what irritates me is their copyright. Not the copyright it's self, the grammar. It reads: Adk Blog by Adk portal customizers. I'm perfectly fine with the copyright itself because they dedicated the time to make it, but I hate that "portal customizers" is not capitalized. I'm trying to look more professional, and I need to change the p to a P and the c to a C. I might also want to add a "all rights reserved" statement, just to make it look a little more professional. Anyways, I cannot find the code anywhere! I've used programs to search through every file, everywhere, and it's not showing up! I can find it in the source code, but I cannot find it anywhere on my ftp manager. Now, php isn't my specialty, I develop Java apps, but I should be able to find a simple line of code. There has to be something i'm overlooking. Can someone help me out? This is what it looks like in the source code:
</table><br /><div class="smalltext" align="center">
<a href="http://www.smfpersonal.net [nofollow]" target="_blank">Adk Blog</a> by <a href="http://custom.simplemachines.org/mods/index.php?mod=2255" target="_blank">Adk portal customizers</a>
</div>
I've contacted the mod developer, but haven't heard anything yet =S.
MrPhil:
Maybe they encrypted the text, to keep people like you from monkeying with it? Look for something like a base64_decode() call, or strange strings of characters in their code changes, and see how to decrypt. Are they using something like Zend to completely prevent access to the source?
One thing you might be able to do is wrap the whole section (their output) in a <span style="text-transform: capitalize;"> and </span>. No matter what text they put out, you'll get the first letters capitalized (hopefully). Note that a span can't have divs inside it. If you have access to the <div class="smalltext"..., you might be able to add a style attribute right there.
The Hero:
Hi, thanks for the reply. There doesn't seem to be anything encrypted, i'm thinking maybe is coming from a third party source. I'm not sure though. I'll try the text transform and see if it makes a difference.
Kindred:
I have not decoded it... but I am betting this is is
--- Code: (find in Subs-adkblog.php) ---function adk_importandandbeautifulinfo(){
echo base64_decode('PGJyIC8+PGRpdiBjbGFzcz0ic21hbGx0ZXh0IiBhbGlnbj0iY2VudGVyIj4KPGEgaHJlZj0iaHR0cDovL3d3dy5zbWZwZXJzb25hbC5uZXQiIHRhcmdldD0iX2JsYW5rIj5BZGsgQmxvZzwvYT4gYnkgPGEgaHJlZj0iaHR0cDovL2N1c3RvbS5zaW1wbGVtYWNoaW5lcy5vcmcvbW9kcy9pbmRleC5waHA/bW9kPTIyNTUiIHRhcmdldD0iX2JsYW5rIj5BZGsgcG9ydGFsIGN1c3RvbWl6ZXJzPC9hPgo8L2Rpdj4=');
}
--- End code ---
since, from what I have seen, the ADK folks have the deplorable habit of encrypting their copyright statements....
which triggers the hacker flags on my site (since base64_decode is not used by any other VALID SMF file)
edit- just ran the decode on http://www.base64decode.org/ and it is indeed the copyright statement...
Seriously ADK folks? Get over it an just put it in plain text. If people care enough to search for it, encoding the damned thing is not going to stop them from finding and removing it.
if you want, this SHOULD be the re-encoded string, corrected with caps.
--- Code: ---PGJyIC8+PGRpdiBjbGFzcz0ic21hbGx0ZXh0IiBhbGlnbj0iY2VudGVyIj4NCjxhIGhyZWY9Imh0dHA6Ly93d3cuc21mcGVyc29uYWwubmV0IiB0YXJnZXQ9Il9ibGFuayI+QURLIEJsb2c8L2E+IGJ5IDxhIGhyZWY9Imh0dHA6Ly9jdXN0b20uc2ltcGxlbWFjaGluZXMub3JnL21vZHMvaW5kZXgucGhwP21vZD0yMjU1IiB0YXJnZXQ9Il9ibGFuayI+QURLIFBvcnRhbCBDdXN0b21pemVyczwvYT4NCjwvZGl2Pg==
--- End code ---
Arantor:
I always thought base64 stuff in mod code was somewhere between discouraged and forbidden.
* Arantor is very glad he never bothered with copyrights in his own mods, not even SimpleDesk.
Navigation
[0] Message Index
[#] Next page
Go to full version