•  » Engine
  •  » [RV Maps & Earth] map.php file and multisite

#1 2010-03-02 23:55:19

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
14094

[RV Maps & Earth] map.php file and multisite

Hi rvelices,

I'm currently working on a 1 Piwigo installation = N galleries running, related to [Forum, topic 15667] How to manage severals galleries with a single installation of piwigo.

I encounter a problem with the map.php file in your very popular [extension by rvelices] RV Maps & Earth.

During activation, a map.php file is created at the root of Piwigo installation. The content of this file is always the same:

Code:

<?php
define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH. 'plugins/rv_gmaps/map.php');
?>

I see the "problem" with several point of view:

1) wouldn't it be useful to have some kind of includer.php file in Piwigo core? Another plugin may also need to be called from the root of Piwigo installation and will also use the trick "create a my_plugin.php at the root of Piwigo installation during plugin activation".

2) could you try to first test if map.php doesn't already exist? (and with the appropriate md5sum, see function md5_file)

3) why does map.php needs to be at the root of Piwigo?

Bye

Offline

 

#2 2010-03-03 07:16:04

rvelices
Former Piwigo Team
2005-12-29
1960

Re: [RV Maps & Earth] map.php file and multisite

Hello,
I dont really see any problem as all the files at the root of piwigo are in the same style ...
but the answers are

2. i can do a simple test before overwriting map.php if it exists
3. it doesnt. but
- I didn'like the urls like .../plugins/rv_gmaps/map.php
- I have already seen so;e plugins that do not correctly build urls if its not at root and I didn't want to spend time on that

Note also that you can delete map.php at root and magically it will work afterwards (it was like that but i din't retest recently)

Offline

 
  •  » Engine
  •  » [RV Maps & Earth] map.php file and multisite

Board footer

Powered by FluxBB