= sense. For the lower limit, // PRES - PAST <= PAST_LIMIT //and for the upper limit, // FUTU - PRES <= FUTURE_LIMIT //So, for example, a limit of one for both would allow one to view the past month and the next month. // define("CONFIG_SCHED_SCHEDACC_PREV_MO", 4 ); define("CONFIG_SCHED_SCHEDACC_FUTU_MO", 7 ); // //The lockout period where a user can't make reservations any fewer than this many hours before the //scheduled time. define("CONFIG_SCHED_RESV_BUFF_HRS", 12 ); // //The number of hours days that a reservation purely in the past can be modified by _anyone_. After some //period of time it becomes a historical record and should not be modified. define("CONFIG_SCHED_RESV_PAST_LOCK_DAYS", 2 ); // //The layout of the scheduling day view in terms of the hours of the day displayed. The hours of the day //are divided into panels, not necessarily non-overlapping. This array defines the panels. //The upper limits on the panels are "closed", i.e. 0,9 means midnight through 9:59 a.m. //The paneling scheme may not have a panel that crosses midnight (reservations may cross midnight, //of course, but one of the assumptions made in the reservation display code is that panels do not //cross midnight). $CONFIG_SCHED_DAY_PANELS = array( 0, 9, 7, 18, 14, 23 ); // //============================================================================================================== //============================================================================================================== //==== Logging Options ======================================================================================= //============================================================================================================== //============================================================================================================== //The number of log entries that should be retained in the log. 500,000 seems like a reasonable number. For //an FBO that gets 2,000 log entries per day, this gives a history of the better part of a year--seems good //enough. Disk space consumption has not been estimated. // define("CONFIG_LOG_MAX_ENTRIES", 500000); // //============================================================================================================== //============================================================================================================== //==== Login Recovery Options ================================================================================ //============================================================================================================== //============================================================================================================== //The number of minutes for which temporary passwords are valid. // define("CONFIG_LOGIN_REC_TEMP_PW_LIFETIME", 30); // //============================================================================================================== //============================================================================================================== //==== User Creation and Privilege Options =================================================================== //============================================================================================================== //============================================================================================================== //The array below represents the pecking order at the typical FBO. For each category of user, the array //contains, in order: // a)The security level of the category. (A smaller integer corresponds to more privilege.) // b)The text description of the category of user. This is suitable for drop-down lists in web forms. // c)A shorter text tag of the category of user. This must contain no spaces. // d)The privilege string to use when creating this category of user. // //Note that the integer index of the category of user is implied by its location in the table. // $CONFIG_FBO_USER_CATEGORIES = array( //-------------------------------------------------------------------------------- //The database administrator has even more privileges than the owner/operator of the FBO. //There may be technical changes to the database and so on that the DB admin may make but which //would be dangerous for non-technical users to make. 0, "Database Administrator", "CONFIG_FBO_USR_CAT_DBADMIN", "", //-------------------------------------------------------------------------------- //The owner/partner of the FBO has every non-technical privilege. Additionally, because //they have a security level with more privilege than any other category of user, nobody at //the business may alter their privileges. 1, "Owner/Partner", "CONFIG_FBO_USR_CAT_OWNERPARTNER", "\\canviewlogentries=\"\"" . //Can view logs. "\\canresetpasswords=\"\"" . //Can reset passwords. "\\canviewreservationdetails=\"\"" . //Can view reservation details. "\\sesslifetimedefault=\"900\"", //15 minutes default logout time. //-------------------------------------------------------------------------------- //The manager of the FBO is/are the individual(s) who run the FBO on a day-to-day //basis. 2, "Manager", "CONFIG_FBO_USR_CAT_MANAGER", "\\canviewlogentries=\"\"" . //Can view logs. "\\canresetpasswords=\"\"" . //Can reset passwords. "\\canviewreservationdetails=\"\"" . //Can view reservation details. "\\sesslifetimedefault=\"900\"", //15 minutes default logout time. //-------------------------------------------------------------------------------- //The office manager is typically below the manager. Just to prevent accidents, //this is probably the lowest-ranking employee that should be able to modify //resources. Other employees are certainly trustworthy, but human curiousity //is what it is, and computers are what they are. 3, "Office Manager", "CONFIG_FBO_USR_CAT_OFFICEMANAGER", "\\canviewlogentries=\"\"" . //Can view logs. "\\canresetpasswords=\"\"" . //Can reset passwords. "\\canviewreservationdetails=\"\"" . //Can view reservation details. "\\sesslifetimedefault=\"900\"", //15 minutes default logout time. //-------------------------------------------------------------------------------- //The flight instructors, office employees, and mechanics have quite liberal //privileges, but less than the office manager (to prevent accidents). 4, "Flight Instructor", "CONFIG_FBO_USR_CAT_FLIGHTINSTRUCTOR", "\\canviewlogentries=\"\"" . //Can view logs. "\\canresetpasswords=\"\"" . //Can reset passwords. "\\canviewreservationdetails=\"\"" . //Can view reservation details. "\\sesslifetimedefault=\"900\"", //15 minutes default logout time. //-------------------------------------------------------------------------------- //Office employee 4, "Office Employee", "CONFIG_FBO_USR_CAT_OFFICEEMPLOYEE", "\\canviewlogentries=\"\"" . //Can view logs. "\\canresetpasswords=\"\"" . //Can reset passwords. "\\canviewreservationdetails=\"\"" . //Can view reservation details. "\\sesslifetimedefault=\"900\"", //15 minutes default logout time. //-------------------------------------------------------------------------------- //Mechanic 4, "Mechanic", "CONFIG_FBO_USR_CAT_MECHANIC", "\\canviewlogentries=\"\"" . //Can view logs. "\\canresetpasswords=\"\"" . //Can reset passwords. "\\canviewreservationdetails=\"\"" . //Can view reservation details. "\\sesslifetimedefault=\"900\"", //15 minutes default logout time. //-------------------------------------------------------------------------------- //Line Employee: Fewer privileges than flight instructors and others. 5, "Line Employee", "CONFIG_FBO_USR_CAT_LINEEMPLOYEE", "\\canviewlogentries=\"\"" . //Can view logs. "\\canresetpasswords=\"\"" . //Can reset passwords. "\\canviewreservationdetails=\"\"" . //Can view reservation details. "\\sesslifetimedefault=\"900\"", //15 minutes default logout time. //-------------------------------------------------------------------------------- //Customer: fewest privileges of all. 20, "Customer", "CONFIG_FBO_USR_CAT_CUSTOMER", "\\sesslifetimedefault=\"1800\"", //30 minutes default logout time. ); //The session lifetime (seconds) to use if the user who logs in does not have the necessary //information in the permission string. define("CONFIG_SESS_LIFETIME_DEFAULT", 1200); //20 minutes // //-------------------------------------------------------------------------------------------------------------- //End of $RCSfile: config.inc,v $. //-------------------------------------------------------------------------------------------------------------- ?>