[dev] patch: kronolith/shares prefs.php kronolith/templates/share
head.inc
Joel Vandal
jvandal@subi.to
Thu, 5 Sep 2002 00:05:51 -0400
This is a multi-part message in MIME format.
---------------------- multipart/alternative attachment
At end of this message, I've include a patch for kronolith that fix :
File: shares/prefs.php
- $share no more exist and replaced by $_shares
- $calendar conflict w/ the variable $calendar in status.php (renamed to =
$calendars)
File: template/share/head.inc
- Image filename is share.gif (not shared.gif)
Suggestion: move following images (private.gif, share.gif & public.gif) =
in horde/graphics since the same graphics will be used by other =
applications)
--
Joel Vandal
Infoteck Internet
Index: shares/prefs.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /repository/kronolith/shares/prefs.php,v
retrieving revision 1.4
diff -r1.4 prefs.php
52c52
< $calendar =3D '';
---
> $calendars =3D '';
55,57c55,57
< $calendar =3D $share->newShare(md5(microtime()));
< $calendar->setOwner(Auth::getAuth());
< $result =3D $share->addShare($calendar);
---
> $calendars =3D $_shares->newShare(md5(microtime()));
> $calendars->setOwner(Auth::getAuth());
> $result =3D $_shares->addShare($calendar);
59c59
< $calendar =3D &$_shares->getShare($edit_share);
---
> $calendars =3D &$_shares->getShare($edit_share);
63c63
< $calendar->setShareName($id);
---
> $calendars->setShareName($id);
69,70c69,70
< $calendar->setType(Horde::getFormData('type', 0));
< $calendar->setDescription(Horde::getFormData('description', ''));
---
> $calendars->setType(Horde::getFormData('type', 0));
> $calendars->setDescription(Horde::getFormData('description', ''));
Index: templates/share/head.inc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /repository/kronolith/templates/share/head.inc,v
retrieving revision 1.3
diff -r1.3 head.inc
16c16
< echo Horde::img('shared.gif', _("Shared"), =
'align=3D"absmiddle"') . ' ' . _("Shared");
---
> echo Horde::img('share.gif', _("Shared"), =
'align=3D"absmiddle"') . ' ' . _("Shared");
---------------------- multipart/alternative attachment
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2719.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>At end of this message, I've include a =
patch for=20
kronolith that fix :</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>File: shares/prefs.php</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>- $share no more exist and replaced by=20
$_shares</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>- $calendar conflict w/ the variable =
$calendar in=20
status.php (renamed to $calendars)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>File: =
template/share/head.inc</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>- Image filename is share.gif (not=20
shared.gif)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Suggestion: </FONT><FONT face=3DArial =
size=3D2>move=20
following images (private.gif, share.gif & public.gif) in =
horde/graphics=20
since the same graphics will be used by other applications)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>--</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Joel Vandal</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Infoteck Internet</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>Index:=20
shares/prefs.php<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<=
BR>RCS=20
file: /repository/kronolith/shares/prefs.php,v<BR>retrieving revision=20
1.4<BR>diff -r1.4 prefs.php<BR>52c52<BR>< =
$calendar =3D=20
'';<BR>---<BR>> $calendars =3D=20
'';<BR>55,57c55,57<BR><  =
;=20
$calendar =3D=20
$share->newShare(md5(microtime()));<BR>< &nb=
sp; =20
$calendar->setOwner(Auth::getAuth());<BR>< &=
nbsp; =20
$result =3D=20
$share->addShare($calendar);<BR>---<BR>> &nb=
sp; =20
$calendars =3D=20
$_shares->newShare(md5(microtime()));<BR>> &=
nbsp; =20
$calendars->setOwner(Auth::getAuth());<BR>> =
=20
$result =3D=20
$_shares->addShare($calendar);<BR>59c59<BR><  =
; =20
$calendar =3D=20
&$_shares->getShare($edit_share);<BR>---<BR>> =
=20
$calendars =3D=20
&$_shares->getShare($edit_share);<BR>63c63<BR>< &nbs=
p; =20
$calendar->setShareName($id);<BR>---<BR>> &n=
bsp; =20
$calendars->setShareName($id);<BR>69,70c69,70<BR><  =
; =20
$calendar->setType(Horde::getFormData('type',=20
0));<BR>< =20
$calendar->setDescription(Horde::getFormData('description',=20
''));<BR>---<BR>> =20
$calendars->setType(Horde::getFormData('type',=20
0));<BR>> =20
$calendars->setDescription(Horde::getFormData('description', =
''));<BR>Index:=20
templates/share/head.inc<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D<BR>RCS=20
file: /repository/kronolith/templates/share/head.inc,v<BR>retrieving =
revision=20
1.3<BR>diff -r1.3=20
head.inc<BR>16c16<BR>< =
echo=20
Horde::img('shared.gif', _("Shared"), 'align=3D"absmiddle"') .=20
'&nbsp;&nbsp;' .=20
_("Shared");<BR>---<BR>> &nbs=
p; echo=20
Horde::img('share.gif', _("Shared"), 'align=3D"absmiddle"') .=20
'&nbsp;&nbsp;' . _("Shared");<BR></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
---------------------- multipart/alternative attachment--