, jberanek
*/
///////////////////////
// Database settings //
///////////////////////
// Which database system: "pgsql"=PostgreSQL, "mysql"=MySQL
// "mysqli"=MySQL via the mysqli PHP extension
$dbsys = "mysql";
// Hostname of database server. For pgsql, can use "" instead of localhost
// to use Unix Domain Sockets instead of TCP/IP.
$db_host = "localhost";
// Database name:
$db_database = "schoorbs";
// Database login user name:
$db_login = "schoorbs";
// Database login password:
$db_password = '......please enter your own.......';
// Prefix for table names. This will allow multiple installations where only
// one database is available
$db_tbl_prefix = "schoorbs_";
// Uncomment this to NOT use PHP persistent (pooled) database connections:
$db_nopersist = 1;
/////////////////////////////////////
// Site identification information //
/////////////////////////////////////
$mrbs_admin = "Mr. Foo Bar";
$mrbs_admin_email = "foo.bar@example.com";
// This is the text displayed in the upper left corner of every page. Either
// type the name of your organization, or you can put your logo like this :
// $mrbs_company = "
//
";
$mrbs_company = 'Schoorbs';
// This is to fix URL problems when using a proxy in the environment.
// If links inside Schoorbs appear broken, then specify here the URL of
// your Schoorbs root directory, as seen by the users. For example:
// $url_base = "http://webtools.uab.ericsson.se/oam";
// It is also recommended that you set this if you intend to use email
// notifications, to ensure that the correct URL is displayed in the
// notification.
$url_base = "";
///////////////////////
// Calendar settings //
///////////////////////
// Note: Be careful to avoid specify options that displays blocks overlaping
// the next day, since it is not properly handled.
// This setting controls whether to use "clock" based intervals (FALSE and
// the default) or user defined periods (TRUE). If user-defined periods
// are used then $resolution, $morningstarts, $eveningends,
// $eveningends_minutes and $twentyfourhour_format are ignored.
$enable_periods = false;
// Resolution - what blocks can be booked, in seconds.
// Default is half an hour: 1800 seconds.
$resolution = 2700;
// Start and end of day, NOTE: These are integer hours only, 0-23, and
// morningstarts must be < eveningends. See also eveningends_minutes.
$morningstarts = 8;
$eveningends = 17;
// Minutes to add to $morningstarts to get to the real start of the day.
// Be sure to consider the value of $eveningends_minutes if you change
// this, so that you do not cause a day to finish before the start of
// the last period. For example if resolution=3600 (1 hour)
// morningstarts = 8 and morningstarts_minutes = 30 then for the last
// period to start at say 4:30pm you would need to set eveningends = 16
// and eveningends_minutes = 30
$morningstarts_minutes = 0;
// Minutes to add to $eveningends hours to get the real end of the day.
// Examples: To get the last slot on the calendar to be 16:30-17:00, set
// eveningends=16 and eveningends_minutes=30. To get a full 24 hour display
// with 15-minute steps, set morningstarts=0; eveningends=23;
// eveningends_minutes=45; and resolution=900.
$eveningends_minutes = 0;
// Define the name or description for your periods in chronological order
// For example:
// $periods[] = "Period 1"
// $periods[] = "Period 2"
// ...
// or
// $periods[] = "09:15 - 09:50"
// $periods[] = "09:55 - 10:35"
// ...
// is used to ensure that the name or description is not wrapped
// when the browser determines the column widths to use in day and week
// views
$periods[] = "08:00-08:45";
$periods[] = "08:45-09:30";
// Start of week: 0 for Sunday, 1 for Monday, etc.
$weekstarts = 1;
// Trailer date format: 0 to show dates as "Jul 10", 1 for "10 Jul"
$dateformat = 0;
// Time format in pages. 0 to show dates in 12 hour format, 1 to show them
// in 24 hour format
$twentyfourhour_format = 1;
/////////////////////////////
// Authentication settings //
/////////////////////////////
// How to get and keep the user ID. One of
// "http" "php" "cookie" "ip" "host" "nt" "omni"
// "remote_user"
$auth["session"] = "php";
// How to validate the user/password. One of "none"
// "config" "db" "db_ext" "pop3" "imap" "ldap" "nis"
// "nw" "ext".
$auth["type"] = "config";
// The list of administrators (can modify other peoples settings)
//
// localhost IP address. Useful with IP sessions.
$auth["admin"][] = "127.0.0.1";
// A user name from the user list. Useful with most other session schemes.
$auth["admin"][] = "admin";
// 'auth_config' user database
// Format: $auth["user"]["name"] = "password";
// 'session_http' configuration settings
$auth["realm"] = "Schoorbs";
// 'session_remote_user' configuration settings
// $auth['remote_user']['logout_link'] = '/logout/link.html';
// 'auth_ext' configuration settings(for a samba connection)
$auth["prog"] = "/usr/bin/smbclient";
$auth["params"] = " \\\\\\\\smb-host\\\\drive #PASSWORD# -U #USERNAME# -c 'quit' > /dev/null 2>&1";
// 'auth_db_ext' configuration settings
$auth['db_ext']['db_host'] = 'localhost';
$auth['db_ext']['db_username'] = 'authuser';
$auth['db_ext']['db_password'] = 'authpass';
$auth['db_ext']['db_name'] = 'authdb';
$auth['db_ext']['db_table'] = 'users';
$auth['db_ext']['column_name_username'] = 'name';
$auth['db_ext']['column_name_password'] = 'password';
// Either 'md5', 'sha1', 'crypt' or 'plaintext'
$auth['db_ext']['password_format'] = 'md5';
// 'auth_ldap' configuration settings
// Where is the LDAP server
// $ldap_host = "localhost";
// If you have a non-standard LDAP port, you can define it here
// $ldap_port = 389;
// If you want to use LDAP v3, change the following to true
$ldap_v3 = false;
// If you want to use TLS, change following to true
$ldap_tls = false;
// LDAP base distinguish name
// See AUTHENTICATION for details of how check against multiple base dn's
// $ldap_base_dn = "ou=organizationalunit,dc=my-domain,dc=com";
// Attribute within the base dn that contains the username
// $ldap_user_attrib = "uid";
// 'auth_ldap' extra configuration for ldap configuration of who can use
// the system
// If it's set, the $ldap_filter will be combined with the value of
// $ldap_user_attrib like this:
// (&($ldap_user_attrib=username)($ldap_filter))
// After binding to check the password, this check is used to see that
// they are a valid user of Schoorbs.
// $ldap_filter = "schoorbsuser=y";
// 'auth_imap' configuration settings
// See AUTHENTICATION for details of how check against multiple servers
// Where is the IMAP server
$imap_host = "imap-server-name";
// The IMAP server port
$imap_port = "143";
// 'auth_pop3' configuration settings
// See AUTHENTICATION for details of how check against multiple servers
// Where is the POP3 server
$pop3_host = "pop3-server-name";
// The POP3 server port
$pop3_port = "110";
//////////////
// Language //
//////////////
// Set this to 1 to use UTF-8 in all pages and in the database, otherwise
// text gets enterered in the database in different encodings, dependent
// on the users' language
$unicode_encoding = 1;
// Set this to a different language specifier to default to different
// language tokens. This must equate to a lang.* file in Schoorbs.
// e.g. use "fr" to use the translations in "lang.fr" as the default
// translations
$default_language_tokens = "en";
// Set this to 1 to disable the automatic language changing Schoorbs performs
// based on the user's browser language settings. It will ensure that
// the language displayed is always the value of $default_language_tokens,
// as specified above
$disable_automatic_language_changing = 0;
// Set this to a valid locale (for the OS you run the Schoorbs server on)
// if you want to override the automatic locale determination Schoorbs
// performs
$override_locale = "";
// faq file language selection. IF not set, use the default english file.
// IF your language faq file is available, set $faqfilelang to match the
// end of the file name, including the underscore (ie. for site_faq_fr.html
// use "_fr"
$faqfilelang = "";
// This next require must be done after the definitions above, as the definitions
// are used in the included file
require_once 'schoorbs-includes/lang/language.php';
/////////////////
// Entry Types //
/////////////////
// This array maps entry type codes (letters A through J) into descriptions.
// Each type has a color (see TD.x classes in the style sheet mrbs.css).
// A=Pink B=Blue-green C=Peach D=Yellow E=Light blue
// F=Tan G=Red H=Aqua I=Light green J=Gray
// The value for each type is a short (one word is best) description of the
// type. The values must be escaped for HTML output ("R&D").
// Please leave I and E alone for compatibility.
// If a type's entry is unset or empty, that type is not defined; it will not
// be shown in the day view color-key, and not offered in the type selector
// for new or edited entries.
// $typel["A"] = "A";
// $typel["B"] = "B";
// $typel["C"] = "C";
// $typel["D"] = "D";
$typel["E"] = get_vocab("external");
// $typel["F"] = "F";
// $typel["G"] = "G";
// $typel["H"] = "H";
$typel["I"] = get_vocab("internal");
// $typel["J"] = "J";
////////////////////////////
// Miscellaneous settings //
////////////////////////////
// Maximum repeating entrys (max needed +1):
$max_rep_entrys = 365 + 1;
// Default report span in days:
$default_report_days = 60;
// Results per page for searching:
$search["count"] = 20;
// Page refresh time (in seconds). Set to 0 to disable
$refresh_rate = 0;
// should areas be shown as a list or a drop-down select box?
$area_list_format = "list";
// $area_list_format = "select";
// Entries in monthly view can be shown as start/end slot, brief description or
// both. Set to "description" for brief description, "slot" for time slot and
// "both" for both. Default is "both", but 6 entries per day are shown instead
// of 12.
$monthly_view_entries_details = "both";
// To view weeks in the bottom (trailer.php) as week numbers (42) instead of
// 'first day of the week' (13 Oct), set this to TRUE
$view_week_number = false;
// To display times on right side in day and week view, set to TRUE;
$times_right_side = false;
// Control the active cursor in day/week/month views.
//
// Change to false if clients have old browsers
// incompatible with JavaScript.
$javascript_cursor = true;
// Define default starting view (month, week or day)
// Default is day
$default_view = "day";
// Define default room to start with (used by index.php)
// Room numbers can be determined by looking at the Edit or Delete URL for a
// room on the admin page.
// Default is 0
$default_room = 0;
// Set the content of the Subject field for added/changed entries.
$mail["subject"] = "Entry added/changed for $mrbs_company MRBS";
// Set the content of the Subject field for deleted fields.
$mail["subject_delete"] = "Entry deleted for $mrbs_company MRBS";
// Set the content of the message when a new entry is booked. What you type
// here will be added at the top of the message body.
$mail["new_entry"] = "A new entry has been booked, here are the details:";
// Set the content of the message when an entry is modified. What you type
// here will be added at the top of the message body.
$mail["changed_entry"] = "An entry has been modified, here are the details:";
// Set the content of the message when an entry is deleted. What you type
// here will be added at the top of the message body.
$mail["deleted_entry"] = "An entry has been deleted, here are the details:";
////////////////////////////////////////////////////////////
// PHP System Configuration - internal use, do not change //
////////////////////////////////////////////////////////////
// Disable magic quoting on database returns:
set_magic_quotes_runtime(0);
// Make sure notice errors are not reported, they can break Schoorbs code:
// Subject to be fixed!
error_reporting (E_ALL ^ E_NOTICE);
// These variables specify the names of the tables in the database
// These should not need to be changed. Please change $db_tbl_prefix
// in the database section above.
$tbl_area = $db_tbl_prefix . "area";
$tbl_entry = $db_tbl_prefix . "entry";
$tbl_repeat = $db_tbl_prefix . "repeat";
$tbl_room = $db_tbl_prefix . "room";
$tbl_users = $db_tbl_prefix . "users";