include( 'ThreadsPHPLib.php' ); $errMsg = $Message = ''; ?>
if( ! $_COOKIE['threads_login'] ) echo ''; $gID = getUsersGroup($_COOKIE['threads_login']); $groupID = ""; $AdminUser = isAdminUser($_COOKIE['threads_login']); if( $_SERVER['QUERY_STRING'] ){ // something on the URL if adding a user to a task deal with it parse_str($_SERVER['QUERY_STRING'],$URL ); if( $URL['SI'] == 'a' ) // user signing up for a task $errMsg = AddParticipant( $URL['mID'], $_COOKIE['threads_login'] ); if ( $URL['dmID'] ){ // deleting the meeting being viewed $errMsg = DeleteMeetingDate($URL['dmID']); if( ! $errMsg )$Message = "The meeting has been deleted"; } if( $URL['gID'] ) // use group id if specified otherwise default to users group $groupID = $URL['gID']; } if( $gID!=$groupID && ! isSiteAdmin() ) // prevent user from looking at group other than their own, unless site admin $groupID = $gID; if( ! $groupID ){ // if no group id if( isSiteAdmin() ){ // site admin does not have to be associated with a group if( ! $URL['calID'] || ($groupID=getCalendarGroup($URL['calID'])) == -1 ) echo ""; } else // should never get here, but just in case echo ""; } if( $_POST['Renig'] ){ if( $_POST['delTask'] ){ $errMsg = renigTasks($_COOKIE['threads_login'], $_POST['delTask']); if( $errMsg )break; } else $Message = "You must select the check box next to your name to remove yourself from the task"; } $MeetingDates = getAllMeetingDates($groupID,0); // get all meeting dates $today = date( "Y-m-d" ); // the date for today $key = array(); // initialization if( $URL['calID'] ) // determine if calendar id on the command line $calID = $URL['calID']; // ID of calendar being viewed else $calID = $key['current']; if( ! $calID ){ // nothing on command line, get meetins, previous, closest to today, next $key = findClosestMeeting( $today, $MeetingDates ); } else{ // get specified meeting with previous and next from passed list contained in MeetingDates $key = findSurroundingMeetings( $calID, $MeetingDates ); } $cal = getMeeting($key['current']); // get meeting information for specified meeting ?>
|
|
|||||||||||||||
| Home | • | Tachrichim | • | Privacy | ||||||||||||