For those who wish to use shared calendars in a multiple-domain setup. Quick
and dirty trivial patch to hide the interface options for public calendars.
--- admin_interface.php.orig 2006-02-24 08:47:27.000000000 +0000
+++ admin_interface.php 2006-02-24 08:47:33.000000000 +0000
@@ -85,9 +85,9 @@
. _("<b>Shared</b> calendars can be assigned to users with read only or
read/write access. To manage user access to your shared calendars, use the
\"Users\" button.")
. "</td></tr><tr><td align=\"left\">"
- . "<br>"
+//CAS: . "<br>"
- . _("<b>Public</b> calendars are available to all users in addition to
their private personal calendar.")
+//CAS: . _("<b>Public</b> calendars are available to all users in
addition to their private personal calendar.")
. "</td></tr></table><br>\n"
. "<form action=\"admin_options.php\" method=\"post\">\n"
. "<table align=\"center\" width=\"80%\" bgcolor=\"" . $color[9] .
"\">\n"
@@ -115,31 +115,31 @@
. "</td></tr><tr><td align=\"center\">\n"
. "<b>" . _("No Shared Calendars Defined") . "</b></td></tr>\n";
}
- echo "</table><br>\n";
-
- if (!empty($publicList))
- {
- echo "<table align=\"center\" width=\"100%\" bgcolor=\"" . $color[12] .
"\">\n"
- . "<tr bgcolor=\"" . $color[9] . "\"><td align=\"center\"></td>"
- . "<td align=\"center\">\n"
- . "<b>" . _("Public Calendars") . "</b>\n"
- . "</td></tr>\n";
-
- foreach ($publicList as $calendar)
- {
- echo "<tr><td align=\"center\">\n"
- . "<input type=\"checkbox\" name=\"delitem[" .
$calendar->getID() . "]\" id=\"delitem" . $calendar->getID() . "\"
value=\"1\" />\n"
- . "</td><td align=\"center\"><label for=\"delitem" .
$calendar->getID() . "\">" . $calendar->getName() . "</label></td></tr>\n";
- }
- }
- else
- {
- echo "<table align=\"center\" width=\"100%\" bgcolor=\"" . $color[12] .
"\">\n"
- . "<tr bgcolor=\"" . $color[9] . "\"><td align=\"center\">\n"
- . "<b>" . _("Public calendars") . "</b>\n"
- . "</td></tr><tr><td align=\"center\">\n"
- . "<b>" . _("No Public Calendars Defined") . "</b></td></tr>\n";
- }
+//CAS: echo "</table><br>\n";
+//CAS:
+//CAS: if (!empty($publicList))
+//CAS: {
+//CAS: echo "<table align=\"center\" width=\"100%\" bgcolor=\"" .
$color[12] . "\">\n"
+//CAS: . "<tr bgcolor=\"" . $color[9] . "\"><td
align=\"center\"></td>"
+//CAS: . "<td align=\"center\">\n"
+//CAS: . "<b>" . _("Public Calendars") . "</b>\n"
+//CAS: . "</td></tr>\n";
+//CAS:
+//CAS: foreach ($publicList as $calendar)
+//CAS: {
+//CAS: echo "<tr><td align=\"center\">\n"
+//CAS: . "<input type=\"checkbox\" name=\"delitem[" .
$calendar->getID() . "]\" id=\"delitem" . $calendar->getID() . "\"
value=\"1\" />\n"
+//CAS: . "</td><td align=\"center\"><label for=\"delitem" .
$calendar->getID() . "\">" . $calendar->getName() . "</label></td></tr>\n";
+//CAS: }
+//CAS: }
+//CAS: else
+//CAS: {
+//CAS: echo "<table align=\"center\" width=\"100%\" bgcolor=\"" .
$color[12] . "\">\n"
+//CAS: . "<tr bgcolor=\"" . $color[9] . "\"><td align=\"center\">\n"
+//CAS: . "<b>" . _("Public calendars") . "</b>\n"
+//CAS: . "</td></tr><tr><td align=\"center\">\n"
+//CAS: . "<b>" . _("No Public Calendars Defined") .
"</b></td></tr>\n";
+//CAS: }
echo "</table><br>\n"
. "</td></tr><tr><td> <input
type=\"submit\" value=\""
. _("Delete") . "\" /></td></tr></table>\n";
@@ -156,8 +156,8 @@
. '<input type="hidden" name="cal_action" value="'
. SM_CAL_EDIT_CALENDARS . "\" />\n"
. "<input type=\"hidden\" name=\"add_action\" value=\"Add\" />\n"
- . "<input type=\"checkbox\" id=\"public\" name=\"public\"
value=\"yes\" />\n"
- . " <label for=\"public\">" . _("make <b>PUBLIC</b>
(read/write for all users)")
+//CAS: . "<input type=\"checkbox\" id=\"public\" name=\"public\"
value=\"yes\" />\n"
+//CAS: . " <label for=\"public\">" . _("make <b>PUBLIC</b>
(read/write for all users)")
. "</label>\n"
. "</tr></td><tr><td align=\"center\"><input type=\"submit\" value=\""
. _("Add") . "\" />\n"
--
Casey Allen Shobe | [EMAIL PROTECTED] | 206-381-2800
SeattleServer.com, Inc. | http://www.seattleserver.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
--
squirrelmail-users mailing list
Posting Guidelines:
http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: [email protected]
List Archives:
http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users