Members: 16,996
Threads: 38,831
Posts: 159,349
Online: 40

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 25.10.2004, 03:28   #1 (permalink)
Expert Mamber
 
idigital's Avatar
 
Join Date: Apr 2004
Location: Blenheim, Queensland, Australia
Posts: 283
idigital is on a distinguished road
Send a message via ICQ to idigital Send a message via MSN to idigital
Lightbulb How to remove the Mambo Meta Generator Copyright tag (without breaking GPL)

After a long night of hacking the core, I realised that I didn't really want to have the new meta generator copyright tag "feature" in every page of my site.

If you hadn't noticed it, the tag is included with the mosShowHead function in 4.5.1 series, and puts this in:

PHP Code:
<meta name="Generator" content="Mambo - Copyright 2000 - 2004 Miro International Pty Ltd.  All rights reserved." /> 
There are various reasons you may want to do this, none of which have anything to do with attempting to "rip off mambo" as Brian put it when this feature was first discussed.

For instance, if you do have that tag, it makes it a whole lot easier for unscrupulous script kiddies to find your Mambo site when a security hole is announced.

So, it's as easy as commenting out one line. Go into includes/frontend.php and do a search for "mosShowHead", then comment out this line:

PHP Code:
162  $mainframe->addMetaTag'Generator'$_VERSION->PRODUCT " - " $_VERSION->COPYRIGHT); 
It's line 162 in 4.5.1a, but this will likely change in future versions.

There you go, removing the tag completely, without removing the copyright notice in the source. 8-)

Cheers,

Damian

NOTE: This was a side effect of hacking the mosShowHead function to replace &nbsp; in titles (which turned out to be in mambo.php), as my menu system uses &nbsp; spaces to add some spacing to the ends of some menu items. It'll make sense when you see the finished product

I posted this to both forums, as I thought it might be a handy tip for some people, and it could be a security issue.
idigital is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best methods for managing multiple Mambo installs. coling Mambo 4.5 'How Do I' Questions 7 14.12.2005 09:20
Draft Press Statement unity Community Smalltalk 50 30.09.2004 20:53
Im Mambo 1.0.2 <title> Tag mit Artikelüberschrift Tekknotrip Mambo 4.5 Allgemein 2 28.09.2004 13:29
Mamsites for Future Mambo (5.0 maybe) labanex Mambo 5.0 Wishlist 4 03.09.2004 22:22
MOS no more - Mambo for sure ;) idigital Community Announcements 16 25.07.2004 05:14


All times are GMT +2. The time now is 04:55.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.