[GRASS5] Grass 6 screenshots link broken

Markus Neteler neteler at itc.it
Fri Mar 11 08:05:20 EST 2005


On Fri, Mar 11, 2005 at 10:02:37AM -0500, Martin Wegmann wrote:
> On Thursday 10 March 2005 13:51, Jack Varga wrote:
> > The link http://grass.itc.it/grass60/screenshots/index.php
> >
> > ...produces...
> >
> > Warning: Failed opening '../menu_top.inc' for inclusion
> > (include_path='.:/usr/share/pear') in
> > /hardmnt/grass1/html/grass60/screenshots/index.php on line 60
> 
> sorry, that was my fault. 
> I tried to fix the broken links in the top menu 
> in .../grass/60/screenshots/index.php by setting the ../../menu_top.inc 
> to ../menu_top.inc but this probably caused  the problem you just reported.

This doesn't work. Relative links are only implemented for
the first subdirectory level. Since grass60/screenshots/* live
in at subsubdirectory level, it crashes. Currentl, instead of
using the include() function, stuff must be hardcoded in the
file.

As I don't know much about PHP, is there a way to fix this
with a PHP function? A sort of on-the-fly update for PHP files
at subsubdirectory level?


> I fixed it in cvs and reset the line 60 of index.php in ..grass60/screenshots 
> to the previous settings, hence broken links in top menu will be present 
> again but better than this error message. 

Have a look at
 http://grass.itc.it/grass60/screenshots/gui.php
which is correct. From this you can derive the fixes for the
other php pages in that directory.

Markus




More information about the grass-dev mailing list