, Suchi & Berg GmbH , // Ralf Stockmann , André Noack André Noack // +---------------------------------------------------------------------------+ // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation; either version 2 // of the License, or any later version. // +---------------------------------------------------------------------------+ // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // +---------------------------------------------------------------------------+ global $INST_ADMIN_DATAFIELDS_VIEW, $INST_MODULES, $INST_TYPE, $NAME_FORMAT_DESC, $PERS_TERMIN_KAT, $SCM_PRESET, $SYMBOL_SHORT, $TERMIN_TYP, $TITLE_FRONT_TEMPLATE, $TITLE_REAR_TEMPLATE, $UNI_CONTACT, $UNI_INFO, $UNI_LOGIN_ADD, $UNI_LOGOUT_ADD, $UNI_URL, $UPLOAD_TYPES, $SEM_TREE_TYPES, $NOT_HIDEABLE_FIELDS, $TEILNEHMER_IMPORT_DATAFIELDS, $DEFAULT_TITLE_FOR_STATUS; /*basic settings for Stud.IP ---------------------------------------------------------------- you find here the indivdual settings for your installation. ! for the basic system settings, please edit the file config_local.inc.php in the same folder !*/ //Some more basic data //Note: The the clean-name of your institution ($UNI_NAME_CLEAN) is stored in the config_local.inc.php $UNI_URL = "http://www.studip.de"; $UNI_LOGIN_ADD=''; $UNI_LOGOUT_ADD=sprintf(_("Und hier geht's zur %sStud.IP Portalseite%s "), "", ""); $UNI_CONTACT = ""; $UNI_INFO = "Stud.IP 5.5 - Studienbegleitender Internetsupport von Präsenzlehre"; /* $SEM_CLASS and $SEM_TYPE configuration moved to database => Admin/Global settings/Course categories ----------------------------------------------------------------*/ // define default names for status groups $DEFAULT_TITLE_FOR_STATUS = array( 'dozent' => array(_('Lehrende'), _('Lehrende')), 'deputy' => array(_('Vertretung'), _('Vertretungen')), 'tutor' => array(_('Tutor/-in'), _('Tutor/-innen')), 'autor' => array(_('Studierende'), _('Studierende')), 'user' => array(_('Leser/-in'), _('Leser/-innen')), 'accepted' => array(_('Vorläufig akzeptierte Person'), _('Vorläufig akzeptierte Personen'))); /* possible types of sem_tree ("Veranstaltungshierarchie") types the "editable" flag could be used to prevent modifications, e.g. imported data the "hidden" flag could be used to hide entries that are no longer in use */ $SEM_TREE_TYPES[0] = array("name" => "", "editable" => true); //default type, must be present //$SEM_TREE_TYPES[1] = array("name" => _("Studienmodul") , "editable" => true); /* Set the allowed and prohibited file types for the types given above. * If nothing is configured for a specific type, the values of the "default" setting are taken. * * "type"=>"deny" means: only the listed "file_types" are allowed * "type"=>"allow" means: all, but the listed "file_types" are allowed * * "file_sizes" determines how much each user class can upload per file (multiple of 1 MB = 1048576 Bytes) */ $UPLOAD_TYPES=array( "default" => array( "type"=>"allow", "file_types" => array ("exe"), "file_sizes" => array ( "root" => 250 * 1048576, "admin" => 250 * 1048576, "dozent" => 100 * 1048576, "tutor" => 50 * 1048576, "autor" => 50 * 1048576, "nobody" => 1 * 1048576 ) ), // rules for futher course-types can be added below (please adhere exactly to the structure given above) ); /* Set the allowed and prohibited file types for mail attachments (if activated by ENABLE_MAIL_ATTACHMENTS). * * "type"=>"deny" means: only the listed "file_types" are allowed * "type"=>"allow" means: all, but the listed "file_types" are allowed * * "file_sizes" determines how much each user class can upload per file (multiple of 1 MB = 1048576 Bytes) */ $UPLOAD_TYPES["attachments"] = array( "type" => "allow", "file_types" => array ("exe"), "file_sizes" => array ( "root" => 7 * 1048576, "admin" => 7 * 1048576, "dozent" => 7 * 1048576, "tutor" => 7 * 1048576, "autor" => 7 * 1048576, "nobody" => 1.38 * 1048576 ) ); /* Set the allowed and prohibited file types for personal files (like in blubber-upload). * * "type"=>"deny" means: only the listed "file_types" are allowed * "type"=>"allow" means: all, but the listed "file_types" are allowed * * "file_sizes" determines how much each user class can upload per file (multiple of 1 MB = 1048576 Bytes) */ $UPLOAD_TYPES["personalfiles"] = array( "type" => "allow", "file_types" => array ("exe"), "file_sizes" => array ( "root" => 250 * 1048576, "admin" => 250 * 1048576, "dozent" => 100 * 1048576, "tutor" => 50 * 1048576, "autor" => 50 * 1048576, "nobody" => 0 ) ); /* * set allowed designations of institutes / divisions / administrative units */ $INST_TYPE[1]=array("name"=>_("Einrichtung")); $INST_TYPE[2]=array("name"=>_("Zentrum")); $INST_TYPE[3]=array("name"=>_("Lehrstuhl")); $INST_TYPE[4]=array("name"=>_("Abteilung")); $INST_TYPE[5]=array("name"=>_("Fachbereich")); $INST_TYPE[6]=array("name"=>_("Seminar")); $INST_TYPE[7]=array("name"=>_("Fakultät")); $INST_TYPE[8]=array("name"=>_("Arbeitsgruppe")); // ...can be continued accordingly //define the used modules for instiutes $INST_MODULES["default"] = array( "forum"=>TRUE, //forum, this module is stud_ip core; always available "documents"=>TRUE, //documents, this module is stud_ip core; always available "personal"=>TRUE, //personal, this module is stud_ip core; always available "literature"=>FALSE, //literature, this module is stud_ip core; always available "scm"=>FALSE, //simple content module, this modul is stud_ip core; always available "wiki"=>FALSE, //wikiwiki-web, this module is stud_ip core; always available ); //you can add more specific presets for the different types // Set presets for course appointment types /* * The first array element is used for the designation of regular meetings and will be labeled * accordingly in the schedule. * The second array element is always used to denominate preliminary discussions. * Both names can be chosen freely. * The appointment types marked as "sitzung"=>1 are shown in the course creation assistent and * while editing dates as templates for the description of regular turnus meetings. */ $TERMIN_TYP[1]=array("name"=>_("Sitzung"), "sitzung"=>1); $TERMIN_TYP[2]=array("name"=>_("Vorbesprechung"), "sitzung"=>0); $TERMIN_TYP[3]=array("name"=>_("Klausur"), "sitzung"=>0); $TERMIN_TYP[4]=array("name"=>_("Exkursion"), "sitzung"=>0); $TERMIN_TYP[5]=array("name"=>_("anderer Termin"), "sitzung"=>0); $TERMIN_TYP[6]=array("name"=>_("Sondersitzung"), "sitzung"=>0); $TERMIN_TYP[7]=array("name"=>_("Vorlesung"), "sitzung"=>1); // more types can be added here //Configuration for the date categories in the personal calendar: $PERS_TERMIN_KAT = [ '1' => [ 'name' => _('Sonstiges'), 'border_color' => '#682C8B', 'bgcolor' => '#682C8B', 'fgcolor' => '#ffffff' ], '2' => [ 'name' => _('Sitzung'), 'border_color' => '#B02E7C', 'bgcolor' => '#B02E7C', 'fgcolor' => '#000000' ], '3' => [ 'name' => _('Vorbesprechung'), 'border_color' => '#D60000', 'bgcolor' => '#D60000', 'fgcolor' => '#ffffff' ], '4' => [ 'name' => _('Klausur'), 'border_color' => '#F26E00', 'bgcolor' => '#F26E00', 'fgcolor' => '#000000' ], '5' => [ 'name' => _('Exkursion'), 'border_color' => '#FFBD33', 'bgcolor' => '#FFBD33', 'fgcolor' => '#000000' ], '6' => [ 'name' => _('Sondersitzung'), 'border_color' => '#6EAD10', 'bgcolor' => '#6EAD10', 'fgcolor' => '#000000' ], '7' => [ 'name' => _('Prüfung'), 'border_color' => '#008512', 'bgcolor' => '#008512', 'fgcolor' => '#000000' ], '8' => [ 'name' => _('Telefonat'), 'border_color' => '#129C94', 'bgcolor' => '#129C94', 'fgcolor' => '#000000' ], '9' => [ 'name' => _('Besprechung'), 'border_color' => '#A85D45', 'bgcolor' => '#A85D45', 'fgcolor' => '#000000' ], '10' => [ 'name' => _('Verabredung'), 'border_color' => '#A480B9', 'bgcolor' => '#A480B9', 'fgcolor' => '#000000' ], '11' => [ 'name' => _('Geburtstag'), 'border_color' => '#D082B0', 'bgcolor' => '#D082B0', 'fgcolor' => '#000000' ], '12' => [ 'name' => _('Familie'), 'border_color' => '#E76666', 'bgcolor' => '#E76666', 'fgcolor' => '#000000' ], '13' => [ 'name' => _('Urlaub'), 'border_color' => '#F7A866', 'bgcolor' => '#F7A866', 'fgcolor' => '#000000' ], '14' => [ 'name' => _('Reise'), 'border_color' => '#FFD785', 'bgcolor' => '#FFD785', 'fgcolor' => '#000000' ], '15' => [ 'name' => _('Vorlesung'), 'border_color' => '#A8CE70', 'bgcolor' => '#A8CE70', 'fgcolor' => '#000000' ], '16' => [ 'name' => _('Videokonferenz'), 'border_color' => '#8bbd40', 'bgcolor' => '#8bbd40', 'fgcolor' => '#000000' ], '255' => [ 'name' => _('Sonstige'), 'border_color' => '#A7ABAF', 'bgcolor' => '#A7ABAF', 'fgcolor' => '#000000' ] //More categories can be added here. ]; //preset for academic titles - add further titles to the array, if necessary $TITLE_FRONT_TEMPLATE = array("","Prof.","Prof. Dr.","Dr.","PD Dr.","Dr. des.","Dr. med.","Dr. rer. nat.","Dr. forest.", "Dr. sc. agr.","Dipl.-Biol.","Dipl.-Chem.","Dipl.-Ing.","Dipl.-Sozw.","Dipl.-Geogr.", "Dipl.-Geol.","Dipl.-Geophys.","Dipl.-Ing. agr.","Dipl.-Kfm.","Dipl.-Math.","Dipl.-Phys.", "Dipl.-Psych.","M. Sc","B. Sc"); $TITLE_REAR_TEMPLATE = array("","M.A.","B.A.","M.S.","MBA","Ph.D.","Dipl.-Biol.","Dipl.-Chem.","Dipl.-Ing.","Dipl.-Sozw.","Dipl.-Geogr.", "Dipl.-Geol.","Dipl.-Geophys.","Dipl.-Ing. agr.","Dipl.-Kfm.","Dipl.-Math.","Dipl.-Phys.", "Dipl.-Psych.","M. Sc","B. Sc"); // name templates for the list of currently active users ("who is online") $NAME_FORMAT_DESC['full'] = _("Titel1 Vorname Nachname Titel2"); $NAME_FORMAT_DESC['full_rev'] = _("Nachname, Vorname, Titel1, Titel2"); $NAME_FORMAT_DESC['no_title'] = _("Vorname Nachname"); $NAME_FORMAT_DESC['no_title_rev'] = _("Nachname, Vorname"); $NAME_FORMAT_DESC['no_title_short'] = _("Nachname, V."); $NAME_FORMAT_DESC['no_title_motto'] = _("Vorname Nachname, Motto"); //preset names for scm (simple content module) $SCM_PRESET[1] = array("name"=>_("Informationen")); //the first entry is the default label for scms, it'll be used if the user give no information for another label $SCM_PRESET[2] = array("name"=>_("Literatur")); $SCM_PRESET[3] = array("name"=>_("Links")); $SCM_PRESET[4] = array("name"=>_("Verschiedenes")); //you can add more presets here //Shortcuts for symbols $SYMBOL_SHORT = array( "=)" => "⇒" , "(=" => "⇐" , "(c)" => "©" , "(r)" => "®" , " tm " => "™" ); /*configuration for additional modules ---------------------------------------------------------------- this options are only needed, if you are using the addional Stud.IP modules (please see in config_local.inc.php which modules are activated). It's a good idea to leave this settings untouched...*/ /* * use this to customize the fields shown in the standard/extended view on the instiute member page * valid values are 'raum', 'sprechzeiten', 'telefon', 'email', 'homepage' and userinstrole datafield ids * default for 'default' is to show all builtin fields except 'homepage', 'extended' shows all builtin fields */ $INST_ADMIN_DATAFIELDS_VIEW = array( 'default' => array(), 'extended' => array() ); /* * Fields that may not be hidden by users in their privacy settings. * Can be configured per permission level. * @see lib/edit_about.inc.php in function get_homepage_elements for * available fields. * Entries look like "'field_name' => true". */ $NOT_HIDEABLE_FIELDS = array( 'user' => array(), 'autor' => array(), 'tutor' => array(), 'dozent' => array(), 'admin' => array(), 'root' => array() ); //Add ids of datafields to use for import on teilnehmer.php $TEILNEHMER_IMPORT_DATAFIELDS = array();