PDA

View Full Version : Navigation not working!


pati
04-08-2004, 10:09 AM
Hi!

I downloaded and installed the calendar (v. 5.2) on my server, but I cant get the navigation arrows to work, not even w/ the demo.php file. The link is http://www.manskorenman.com/httpdocs/escal/demo.php

It just returns a 404 and thats all that happens.

the link displayed on mouse over is (hitting previous month, for example) http://www.manskorenman.com/httpdocs/escal/php?mo=3&yr=2004, that is, it seems to drop the name of the file right after the folder name "escal/".

Any quick fixes suggested?

regards,

Patrick

Brian
04-08-2004, 10:38 AM
Open the config.inc.php file and directly below:

$thisFile = $_SERVER['SCRIPT_NAME'];
$thisFile = explode("/",trim($thisFile));
$thisFile = $thisFile[count($thisFile)-1];

add this one line:

if (!file_exists($thisFile)) $thisFile = $_SERVER['PHP_SELF'];

Please let me know if this helps.

pati
04-08-2004, 10:49 AM
...works like a charm :)

Thanks!

/patrick

Brian
04-08-2004, 10:54 AM
Great! This is included in Version 5.3 which helps with some web servers that may not report the correct PHP variables to the calendar script.