Quote:
|
Originally Posted by locokaress hello
I want to directly link certain php pages from my website to other site for instance http://www.whateva.com/components/co...it/shoutit/php when i link directly to this site i get a promting sayin that i cannot access or view this page directly
SO my question is
Is there another way i can link these components and modules directly |

Accessing a mambo component from outside mambo is not a good idea.
In each file inside a mambo component (or any other addon) in mambo you should find the lines:
PHP Code:
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
This makes sure that the file is being accessed from within mambo or dies.

If you remove this line you can access the component from outsite mambo but open a security risk.
If you want to be able to use a component both in mambo and on another non-mambo site. It would be better to have the component run as a standalone script (hosted outsite mambo) and have the interface for using the script within mambo. That way if someone hacked into the component they are not hacking into your mambo site.
For example:
If you want the same shoutbox in mambo and a non-mambo site.
Have the shoutbox hosted outsite mambo. Then in mambo have a component (or in this case a module) that posts to the shoutbox (purely html for a shoutbox).
Managing the shoutbox can also be done from mambo. Configure your component to access the shoutbox database and manage the shoutbox. Remember to still include the lines:
PHP Code:
defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');
in your mambo component.