"><tr> <td width="1%" rowspan="3"> </td> <td style="text-align:center; color:<?php echo $H2COLOR; ?> ; font-weight:bold;"><?php echo date_to_str($dateYmd, $DATE_FORMAT_MY, false); ?> </td> <td width="1%" rowspan="3"> </td></tr> <tr><td bgcolor="<?php echo $BGCOLOR; ?> "> <?php set_today($dateYmd); echo display_month(date('m'), date('Y'), true); ?> </td></tr> <tr><td> </td></tr> </table> <!-- END EXAMPLE MONTH --> </td></tr></table> </div> <!-- END COLORS --> <?php } // if $ALLOW_COLOR_CUSTOMIZATION ?> </div>
} } if (!empty($user)) { $u_url = "user={$user}&"; user_load_variables($user, "user_"); if ($user == "__public__") { $user_fullname = translate($PUBLIC_ACCESS_FULLNAME); } } else { $u_url = ""; $user_fullname = $fullname; if ($login == "__public__") { $user_fullname = translate($PUBLIC_ACCESS_FULLNAME); } } set_today($date); if ($categories_enabled == "Y") { if (!empty($cat_id)) { $cat_id = $cat_id; } elseif (!empty($CATEGORY_VIEW)) { $cat_id = $CATEGORY_VIEW; } else { $cat_id = ''; } } else { $cat_id = ''; } if (empty($cat_id)) { $caturl = ""; } else { $caturl = "&cat_id={$cat_id}";
include __WC_INCLUDEDIR . '/' . $user_inc; include __WC_INCLUDEDIR . '/site_extras.php'; $WebCalendar->initializeSecondPhase(); $debug = false; // Set to true to print debug info... $only_testing = false; // Just pretend to send -- for debugging. // Establish a database connection. $c = dbi_connect($db_host, $db_login, $db_password, $db_database, true); if (!$c) { echo translate('Error connecting to database') . ': ' . dbi_error(); exit; } load_global_settings(); $WebCalendar->setLanguage(); set_today(); if ($debug) { echo '<br />Include Path=' . ini_get('include_path') . "<br />\n"; } // Get a list of the email users in the system. // They must also have an email address. // Otherwise, we can't send them mail, so what's the point? $allusers = user_get_users(); $allusercnt = count($allusers); for ($i = 0; $i < $allusercnt; $i++) { $names[$allusers[$i]['cal_login']] = $allusers[$i]['cal_fullname']; $emails[$allusers[$i]['cal_login']] = $allusers[$i]['cal_email']; } $attachics = $htmlmail = $languages = $noemail = $t_format = $tz = array(); $res = dbi_execute('SELECT cal_login, cal_value, cal_setting FROM webcal_user_pref