Fixed permission bug allowing all users to have access to any app

This commit is contained in:
jengo 2000-10-05 07:11:51 +00:00
parent 438d01c4aa
commit a2f7e6caaa

View File

@ -94,97 +94,6 @@
} // end for $i
echo "</TABLE>";
} // end function
/*
function weekday_short_name($w) {
switch($w)
{
case 0: return lang("Sun");
case 1: return lang("Mon");
case 2: return lang("Tue");
case 3: return lang("Wed");
case 4: return lang("Thu");
case 5: return lang("Fri");
case 6: return lang("Sat");
case 7: return lang("Jul");
}
return "unknown-weekday($w)";
}
function month_name ( $m ) {
switch ( $m ) {
case 0: return lang("January");
case 1: return lang("February");
case 2: return lang("March");
case 3: return lang("April");
case 4: return lang("May");
case 5: return lang("June");
case 6: return lang("July");
case 7: return lang("August");
case 8: return lang("September");
case 9: return lang("October");
case 10: return lang("November");
case 11: return lang("December");
}
return "unknown-month($m)";
}
function display_small_month($thismonth, $thisyear, $showyear)
{
global $phpgw, $phpgw_info;
echo "<TABLE BORDER=\"0\" CELLPADDING=\"1\" CELLSPACING=\"2\">";
if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "monday") {
$wkstart = get_monday_before($thisyear, $thismonth, 1);
} else {
$wkstart = get_sunday_before($thisyear, $thismonth, 1);
}
$monthstart = mktime(2,0,0,$thismonth,1,$thisyear);
$monthend = mktime(2,0,0,$thismonth + 1,0,$thisyear);
echo "<TR><TD COLSPAN=7 ALIGN=\"center\">"
. "<A HREF=\"month.php?year=$thisyear&month=$thismonth"
. $u_url . "\" CLASS=\"monthlink\">";
echo month_name ( $thismonth - 1 ) . "</A></TD></TR>";
echo "<TR>";
if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "sunday")
echo "<TD><FONT SIZE=\"-3\">" . weekday_short_name(0) . "</TD>";
for ($i = 1; $i < 7; $i++) {
echo "<TD><FONT SIZE=\"-3\">" . weekday_short_name ( $i ) . "</TD>";
}
if ($phpgw_info["user"]["preferences"]["weekdaystarts"] == "monday")
echo "<TD><FONT SIZE=\"-3\">" .
weekday_short_name(0) . "</TD>";
for ($i = $wkstart; date("Ymd",$i) <= date ("Ymd",$monthend); $i += (24 * 3600 * 7) ) {
echo "<TR>";
for ($j = 0; $j < 7; $j++) {
$date = $i + ($j * 24 * 3600);
if ( date("Ymd",$date) >= date ("Ymd",$monthstart) &&
date("Ymd",$date) <= date ("Ymd",$monthend) ) {
echo "<TD align=right><a href=\"day.php?year=" .
date("Y", $date) . "&month=" .
date("m", $date) . "&day=" . date("d", $date) . $u_url .
"\" CLASS=\"dayofmonthyearview\">";
echo "<FONT SIZE=\"-1\">" . date ( "j", $date ) .
"</a></FONT></TD>";
} else
echo "<TD></TD>";
} // end for $j
echo "</TR>";
} // end for $i
echo "</TABLE>";
}
*/
// LC: links back to an entry view for $id using $pic