[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"') . '&nbsp;&nbsp;' . _("Shared");
---
>         echo Horde::img('share.gif', _("Shared"), =
'align=3D"absmiddle"') . '&nbsp;&nbsp;' . _("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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>File: shares/prefs.php</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>File: =
template/share/head.inc</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Suggestion: </FONT><FONT face=3DArial =
size=3D2>move=20
following images (private.gif, share.gif &amp; 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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&lt;&nbsp;&nbsp;&nbsp;&nbsp; =
$calendar =3D=20
'';<BR>---<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; $calendars =3D=20
'';<BR>55,57c55,57<BR>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
$calendar =3D=20
$share-&gt;newShare(md5(microtime()));<BR>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
$calendar-&gt;setOwner(Auth::getAuth());<BR>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
$result =3D=20
$share-&gt;addShare($calendar);<BR>---<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
$calendars =3D=20
$_shares-&gt;newShare(md5(microtime()));<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
$calendars-&gt;setOwner(Auth::getAuth());<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;=20
$result =3D=20
$_shares-&gt;addShare($calendar);<BR>59c59<BR>&lt;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
$calendar =3D=20
&amp;$_shares-&gt;getShare($edit_share);<BR>---<BR>&gt;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$calendars =3D=20
&amp;$_shares-&gt;getShare($edit_share);<BR>63c63<BR>&lt;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
$calendar-&gt;setShareName($id);<BR>---<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;=20
$calendars-&gt;setShareName($id);<BR>69,70c69,70<BR>&lt;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
$calendar-&gt;setType(Horde::getFormData('type',=20
0));<BR>&lt;&nbsp;&nbsp;&nbsp;&nbsp;=20
$calendar-&gt;setDescription(Horde::getFormData('description',=20
''));<BR>---<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
$calendars-&gt;setType(Horde::getFormData('type',=20
0));<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;=20
$calendars-&gt;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>&lt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 echo=20
Horde::img('shared.gif', _("Shared"), 'align=3D"absmiddle"') .=20
'&amp;nbsp;&amp;nbsp;' .=20
_("Shared");<BR>---<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p; echo=20
Horde::img('share.gif', _("Shared"), 'align=3D"absmiddle"') .=20
'&amp;nbsp;&amp;nbsp;' . _("Shared");<BR></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

---------------------- multipart/alternative attachment--