From: <cl...@us...> - 2004-05-24 01:39:52
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12243 Modified Files: admin.php print.php Log Message: Start of admin wiring. Removed unneeded things from print. Index: admin.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/admin.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** admin.php 19 May 2004 04:09:11 -0000 1.15 --- admin.php 24 May 2004 01:39:42 -0000 1.16 *************** *** 1,5 **** <?php - session_start(); - define('BASE', './'); require_once(BASE.'functions/admin_functions.php'); --- 1,3 ---- *************** *** 21,27 **** // Logout by clearing session variables if ((isset($action)) && ($action == "logout")) { ! $HTTP_SESSION_VARS['phpical_loggedin'] = FALSE; ! unset($HTTP_SESSION_VARS['phpical_username']); ! unset($HTTP_SESSION_VARS['phpical_password']); } --- 19,25 ---- // Logout by clearing session variables if ((isset($action)) && ($action == "logout")) { ! $_SESSION['phpical_loggedin'] = FALSE; ! unset($_SESSION['phpical_username']); ! unset($_SESSION['phpical_password']); } *************** *** 30,36 **** if ($auth_method == "none") { $is_loged_in = TRUE; ! } ! // Check if The User is Identified ! else { $is_loged_in = FALSE; --- 28,32 ---- if ($auth_method == "none") { $is_loged_in = TRUE; ! } else { $is_loged_in = FALSE; *************** *** 78,81 **** --- 74,78 ---- 'l_delete' => $lang['l_delete'], 'l_logout' => $lang['l_logout'], + 'l_login' => $lang['l_login'], 'l_submit' => $lang['l_submit'], 'l_addupdate_cal' => $lang['l_addupdate_cal'], *************** *** 85,88 **** --- 82,86 ---- )); + $page->draw_admin(); $page->output(); Index: print.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/print.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** print.php 23 May 2004 23:54:41 -0000 1.25 --- print.php 24 May 2004 01:39:42 -0000 1.26 *************** *** 5,13 **** require_once(BASE.'functions/list_functions.php'); require_once(BASE.'functions/template.php'); - $cal_displayname2 = $calendar_name . " $calendar_lang"; - if (strlen($cal_displayname2) > 24) { - $cal_displayname2 = substr("$cal_displayname2", 0, 21); - $cal_displayname2 = $cal_displayname2 . "..."; - } $start_week_time = strtotime(dateOfWeek($getdate, $week_start_day)); --- 5,8 ---- *************** *** 17,21 **** $cal_displayname = str_replace("32", " ", $cal); $events_week = 0; ! $unix_time = strtotime("$getdate"); if ($printview == 'day') { --- 12,16 ---- $cal_displayname = str_replace("32", " ", $cal); $events_week = 0; ! $unix_time = strtotime($getdate); if ($printview == 'day') { *************** *** 23,29 **** $next = date("Ymd", strtotime("+1 day", $unix_time)); $prev = date("Ymd", strtotime("-1 day", $unix_time)); - $zero_events = $no_events_day_lang; - $print_next_nav = $next_day_lang; - $print_prev_nav = $last_day_lang; $week_start = ''; $week_end = ''; --- 18,21 ---- *************** *** 36,49 **** $next = date("Ymd", strtotime("+1 week", $unix_time)); $prev = date("Ymd", strtotime("-1 week", $unix_time)); - $zero_events = $no_events_week_lang; - $print_next_nav = $next_week_lang; - $print_prev_nav = $last_week_lang; } elseif ($printview == 'month') { $display_date = localizeDate ($dateFormat_month, strtotime($getdate)); $next = date("Ymd", strtotime("+1 month", $unix_time)); $prev = date("Ymd", strtotime("-1 month", $unix_time)); - $zero_events = $no_events_month_lang; - $print_next_nav = $next_month_lang; - $print_prev_nav = $last_month_lang; $week_start = ''; $week_end = ''; --- 28,35 ---- |