From ac6acd28d66a04e4381871c962b1f41ba07de6d4 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 23 Nov 2003 19:53:29 +0000 Subject: Tightened up login.php with less html, removed unneeded things from config and list_icals. --- config.inc.php | 16 ++++-------- functions/list_icals.php | 28 +------------------- includes/login.php | 68 ++++++++++++++++++++---------------------------- 3 files changed, 34 insertions(+), 78 deletions(-) diff --git a/config.inc.php b/config.inc.php index c7fe55c..72325ad 100644 --- a/config.inc.php +++ b/config.inc.php @@ -46,8 +46,8 @@ $show_search = 'yes'; // Show the search box in the sidebar. $allow_preferences = 'yes'; // Allow visitors to change various preferences via cookies. $printview_default = 'no'; // Set print view as the default view. day, week, and month only supported views for $default_view (listed well above). $show_todos = 'yes'; // Show your todo list on the side of day and week view. -$show_completed = 'yes'; // Show completed todos on your todo list. -$show_login = 'no'; // Set to yes to prompt for login to unlock calendars. +$show_completed = 'no'; // Show completed todos on your todo list. +$show_login = 'yes'; // Set to yes to prompt for login to unlock calendars. // Administration settings $allow_admin = 'no'; // Set to yes to allow the admin page - remember to change the default password if using 'internal' as the $auth_method @@ -69,23 +69,17 @@ $list_webcals[] = ''; // or webcal:// and the filename should contain the . $list_webcals[] = ''; // $allow_webcals does *not* need to be "yes" for these to show up and work // add more lines as necessary -$locked_cals[] = ''; // Fill in-between the quotes the names of the calendars you wish to hide +$locked_cals[] = 'Home'; // Fill in-between the quotes the names of the calendars you wish to hide $locked_cals[] = ''; // unless unlocked by a username/password login. This should be the $locked_cals[] = ''; // exact calendar filename without the .ics suffix. $locked_cals[] = ''; // // add more lines as necessary -$locked_map[] = ''; // Map username:password accounts to locked calendars that should be +$locked_map['celittle:simboo2'] = array('Home'); // Map username:password accounts to locked calendars that should be $locked_map[] = ''; // unlocked if logged in. Calendar names should be the same as what is $locked_map[] = ''; // listed in the $locked_cals, again without the .ics suffix. $locked_map[] = ''; // Example: $locked_map['username:password'] = array('Locked1', 'Locked2'); // add more lines as necessary -$color_cals[] = 'silver'; // Fill in between the quotes the colors you want to display -$color_cals[] = 'red'; // multiple calendars in. -$color_cals[] = 'orange'; // The first color will be used if no color is selected. -$color_cals[] = 'grey'; // -$color_cals[] = 'green'; // -$color_cals[] = 'tan'; // -// add more lines as necessary + ?> diff --git a/functions/list_icals.php b/functions/list_icals.php index f739e07..c4d5211 100644 --- a/functions/list_icals.php +++ b/functions/list_icals.php @@ -1,46 +1,23 @@ tag echo " print ""; } ?> diff --git a/includes/login.php b/includes/login.php index 81854cb..43cf105 100644 --- a/includes/login.php +++ b/includes/login.php @@ -1,65 +1,53 @@ -
- - '; + echo ''; foreach (array_keys($HTTP_GET_VARS) as $key) { - if ($key == 'action' || - $key == 'username' || - $key == 'password') - { + if ($key == 'action' || $key == 'username' || $key == 'password') { continue; } - echo "\n"; + echo ''; } - ?> - + +echo << -
- - - - - - - - - + + + + - - -
 Login
Login
+
+ - - - - - + + - - - - - + + - - - + +
Username:Username:
Password:Password:
 
+

- -- cgit v1.2.3