From: Pong <po...@pe...> - 2002-11-03 20:34:53
|
The smallcal plugin can be brought to work with rg=0 by changing the function smallcal_save to: function smallcal_save() { global $username,$data_dir,$color; if (!check_php_version(4,1)) { global $_POST; } $ShowSmallcal=$_POST['ShowSmallcal']; $smallcal_cheader=$_POST['smallcal_cheader']; $smallcal_cday=$_POST['smallcal_cday']; $smallcal_ctoday=$_POST['smallcal_ctoday']; $smallcal_cevent=$_POST['smallcal_cevent']; $smallcal_cshared=$_POST['smallcal_cshared']; $smallcal_ccalendar=$_POST['smallcal_ccalender']; $smallcal_csize=$_POST['smallcal_csize']; $smallcal_cdefault=$_POST['smallcal_cdefault']; if (isset($ShowSmallcal)) { setPref($data_dir, $username, 'smallcal_show', '1'); } else { setPref($data_dir, $username, 'smallcal_show', ''); } . . etc SM < 1.2.9 lacks check_php_version so you will have to do something like (float)substr(PHP_VERSION,0,3) < 4.1 which does not work with all locales. Peter Stubbe |