I know you cannot modify Sugar in a way that removes the "Powered by sugarCRM" text, or the logo from the bottom of the page and still be in accordance with the license agreement. I also know that even if you try, Sugar has quite a few hidden ticks and code obfuscation methods in place to make it quite difficult.
My question is does the license agreement actually say the copyright, etc has to be displayed, or simply that you cannot modify the code to remove it?
Apache has this neat module called mod_substitute. It is basically a tool that can search for and replace text after PHP has parsed the code, but before it is sent to the browser. You can search by any combination of plain-text strings or regular expressions. It's pretty neat!
This means instead of spending hours trying to find some obfuscated code, you simply view the html source of the page in your web browser, find the bit of code you want gone and use a string or regular expression in Apache to remove just that code.
Here's a little example of what would go in your httpd.conf or .htaccess file:
The code above would have to be tweaked to actually work, but you get the idea.Code:<Location /> AddOutputFilterByType SUBSTITUTE text/html Substitute "s|<div align='center'><img src=\"http://updates.sugarcrm.com/logo.php||in" </Location>


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks