ilosuna / phpsqlitecms

phpSQLiteCMS is a simple and lightweight web content management system based on PHP and SQLite.
phpsqlitecms.net
MIT License
138 stars 75 forks source link

Q: Adding static content to page #25

Open mingalsuo opened 9 years ago

mingalsuo commented 9 years ago

Hi!

I have two phpsqlitecms-sites on the same host and would like to serve static content shared by these two sites, embedded in a page on each site.

Is there a way to do this with the current revision, without compromising security and without changes to the source code? I'd keep the static content in some other place while symlinking the content to inside the webroot of each site.

Thanks!

sim2github commented 9 years ago

You can change:

define('MEDIA_DIR', 'static/media/');

for your purposes in definition.conf.php