| 1 | <?php |
|---|
| 2 | /*basic settings for Stud.IP |
|---|
| 3 | ---------------------------------------------------------------- |
|---|
| 4 | you find here the basic system settings. You shouldn't have to touch much of them... |
|---|
| 5 | please note the CONFIG.INC.PHP for the indivual settings of your installation!*/ |
|---|
| 6 | |
|---|
| 7 | $UNI_NAME_CLEAN = 'Stud.IP 2.3'; //the clean-name of your master-faculty (e.g. University of Göttingen), without html-entities (used for mail-system) |
|---|
| 8 | $STUDIP_INSTALLATION_ID='demo-installation'; //unique identifier for installation |
|---|
| 9 | $AUTH_LIFETIME = 60; //the length of a session in minutes, zero means unlimited lifetime |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | /*settings for database access |
|---|
| 13 | ---------------------------------------------------------------- |
|---|
| 14 | please fill in your database connection settings. |
|---|
| 15 | */ |
|---|
| 16 | |
|---|
| 17 | // default Stud.IP database (DB_Seminar) |
|---|
| 18 | $DB_STUDIP_HOST = "localhost"; |
|---|
| 19 | $DB_STUDIP_USER = ""; |
|---|
| 20 | $DB_STUDIP_PASSWORD = ""; |
|---|
| 21 | $DB_STUDIP_DATABASE = "studip"; |
|---|
| 22 | |
|---|
| 23 | /* |
|---|
| 24 | // optional Stud.IP slave database |
|---|
| 25 | $DB_STUDIP_SLAVE_HOST = "localhost"; |
|---|
| 26 | $DB_STUDIP_SLAVE_USER = ""; |
|---|
| 27 | $DB_STUDIP_SLAVE_PASSWORD = ""; |
|---|
| 28 | $DB_STUDIP_SLAVE_DATABASE = "studip-slave"; |
|---|
| 29 | */ |
|---|
| 30 | |
|---|
| 31 | ##### ## ##### # # #### |
|---|
| 32 | # # # # # # # # |
|---|
| 33 | # # # # # ###### #### |
|---|
| 34 | ##### ###### # # # # |
|---|
| 35 | # # # # # # # # |
|---|
| 36 | # # # # # # #### |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | // ABSOLUTE_PATH_STUDIP should end with a '/' |
|---|
| 40 | $ABSOLUTE_PATH_STUDIP = $STUDIP_BASE_PATH . '/public/'; |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | // CANONICAL_RELATIVE_PATH_STUDIP should end with a '/' |
|---|
| 44 | $CANONICAL_RELATIVE_PATH_STUDIP = dirname($_SERVER['PHP_SELF']); |
|---|
| 45 | |
|---|
| 46 | if (substr($CANONICAL_RELATIVE_PATH_STUDIP,-1) != "/"){ |
|---|
| 47 | $CANONICAL_RELATIVE_PATH_STUDIP .= "/"; |
|---|
| 48 | } |
|---|
| 49 | |
|---|
| 50 | // ABSOLUTE_URI_STUDIP: insert the absolute URL to your Stud.IP installation; it should end with a '/' |
|---|
| 51 | $ABSOLUTE_URI_STUDIP = ""; |
|---|
| 52 | |
|---|
| 53 | // automagically compute ABSOLUTE_URI_STUDIP if $_SERVER['SERVER_NAME'] is set |
|---|
| 54 | if (isset($_SERVER['SERVER_NAME'])) { |
|---|
| 55 | // work around possible bug in lighttpd |
|---|
| 56 | if (strpos($_SERVER['SERVER_NAME'], ':') !== false) { |
|---|
| 57 | list($_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']) = |
|---|
| 58 | explode(':', $_SERVER['SERVER_NAME']); |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | $ABSOLUTE_URI_STUDIP = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; |
|---|
| 62 | $ABSOLUTE_URI_STUDIP .= '://'.$_SERVER['SERVER_NAME']; |
|---|
| 63 | |
|---|
| 64 | if ($_SERVER['HTTPS'] == 'on' && $_SERVER['SERVER_PORT'] != 443 || |
|---|
| 65 | $_SERVER['HTTPS'] != 'on' && $_SERVER['SERVER_PORT'] != 80) { |
|---|
| 66 | $ABSOLUTE_URI_STUDIP .= ':'.$_SERVER['SERVER_PORT']; |
|---|
| 67 | } |
|---|
| 68 | |
|---|
| 69 | $ABSOLUTE_URI_STUDIP .= $CANONICAL_RELATIVE_PATH_STUDIP; |
|---|
| 70 | } |
|---|
| 71 | |
|---|
| 72 | // default ASSETS_URL, customize if required |
|---|
| 73 | $ASSETS_URL = $ABSOLUTE_URI_STUDIP . 'assets/'; |
|---|
| 74 | |
|---|
| 75 | // construct absolute URL for ASSETS_URL |
|---|
| 76 | if ($ASSETS_URL[0] === '/') { |
|---|
| 77 | $host = preg_replace('%^([a-z]+:/*[^/]*).*%', '$1', $ABSOLUTE_URI_STUDIP); |
|---|
| 78 | $ASSETS_URL = $host . $ASSETS_URL; |
|---|
| 79 | } else if (!preg_match('/^[a-z]+:/', $ASSETS_URL)) { |
|---|
| 80 | $ASSETS_URL = $ABSOLUTE_URI_STUDIP . $ASSETS_URL; |
|---|
| 81 | } |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | // absolute filesystem path to the plugin packages |
|---|
| 85 | $PLUGINS_PATH = $ABSOLUTE_PATH_STUDIP . 'plugins_packages'; |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | // path to uploaded documents (wwwrun needs write-perm there) |
|---|
| 89 | $UPLOAD_PATH = $STUDIP_BASE_PATH . "/data/upload_doc"; |
|---|
| 90 | // path to Stud.IP archive (wwwrun needs write-perm there) |
|---|
| 91 | $ARCHIV_PATH = $STUDIP_BASE_PATH . "/data/archiv"; |
|---|
| 92 | //path to store configs (wwwrun needs write-perm there) |
|---|
| 93 | $EXTERN_CONFIG_FILE_PATH = $STUDIP_BASE_PATH . "/data/extern_config/"; |
|---|
| 94 | |
|---|
| 95 | |
|---|
| 96 | // path and url for dynamically generated static content like smilies.. |
|---|
| 97 | $DYNAMIC_CONTENT_PATH = $ABSOLUTE_PATH_STUDIP . "pictures"; |
|---|
| 98 | $DYNAMIC_CONTENT_URL = $ABSOLUTE_URI_STUDIP . "pictures"; |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | //path to the temporary folder |
|---|
| 102 | $TMP_PATH ="/tmp"; //the system temp path |
|---|
| 103 | |
|---|
| 104 | //paths to the command line tools, used in Stud.IP |
|---|
| 105 | $ZIP_USE_INTERNAL = false; //set to true, if command-line zip/unzip is not available |
|---|
| 106 | $ZIP_PATH = "/usr/bin/zip"; //zip tool |
|---|
| 107 | $ZIP_OPTIONS = ""; //command line options for zip, e.g. when using SuSE try "-K" to correct long filenames for windows |
|---|
| 108 | $UNZIP_PATH = "/usr/bin/unzip"; |
|---|
| 109 | |
|---|
| 110 | //latexrender settings |
|---|
| 111 | $LATEX_PATH = "/usr/bin/latex"; |
|---|
| 112 | $DVIPS_PATH = "/usr/bin/dvips"; |
|---|
| 113 | |
|---|
| 114 | // media proxy settings |
|---|
| 115 | $MEDIA_CACHE_PATH = $STUDIP_BASE_PATH . '/data/media_cache'; |
|---|
| 116 | $MEDIA_CACHE_MAX_LENGTH = 1000000; |
|---|
| 117 | $MEDIA_CACHE_LIFETIME = 86400; |
|---|
| 118 | $MEDIA_CACHE_MAX_FILES = 3000; |
|---|
| 119 | |
|---|
| 120 | //ImageMagick, used by latexrender modul |
|---|
| 121 | $CONVERT_PATH = "/usr/bin/convert"; |
|---|
| 122 | $IDENTIFY_PATH = "/usr/bin/identify"; |
|---|
| 123 | |
|---|
| 124 | //path to Stud.IP modules (this folders only have to exist, if the corresponcing module is active) |
|---|
| 125 | $RELATIVE_PATH_RESOURCES = "lib/resources"; //Stud.IP module: resourge management |
|---|
| 126 | $RELATIVE_PATH_CALENDAR = "lib/calendar"; //Stud.IP module: calendar |
|---|
| 127 | $RELATIVE_PATH_CHAT = "lib/chat"; //Stud.IP module: chat |
|---|
| 128 | $RELATIVE_PATH_ADMIN_MODULES = "lib/admin"; //Stud.IP module: admin tools |
|---|
| 129 | $RELATIVE_PATH_EXTERN = "lib/extern"; //Stud.IP module: SRI-System for including Stud.IP data in other websites |
|---|
| 130 | $RELATIVE_PATH_ELEARNING_INTERFACE = "lib/elearning"; //Stud.IP module: Ilias 3 lerningmodules-connection / general E-Learning-interface |
|---|
| 131 | $RELATIVE_PATH_SOAP = "lib/soap"; |
|---|
| 132 | |
|---|
| 133 | $PATH_EXPORT = "lib/export"; //Stud.IP module: export |
|---|
| 134 | |
|---|
| 135 | //caching |
|---|
| 136 | $CACHING_ENABLE = true; |
|---|
| 137 | $CACHING_FILECACHE_PATH = $TMP_PATH . '/studip_cache'; |
|---|
| 138 | |
|---|
| 139 | /*Stud.IP modules |
|---|
| 140 | ---------------------------------------------------------------- |
|---|
| 141 | enable or disable the Stud.IP internal modules, set and basic settings*/ |
|---|
| 142 | |
|---|
| 143 | $CALENDAR_DRIVER = "MySQL"; //calendar driver: database to use (MySQL in default installation)*/ |
|---|
| 144 | |
|---|
| 145 | $CHAT_SERVER_NAME = "ChatShmServer"; |
|---|
| 146 | |
|---|
| 147 | $XSLT_ENABLE = TRUE; |
|---|
| 148 | $FOP_ENABLE = TRUE; |
|---|
| 149 | $FOP_SH_CALL = "/usr/local/fop-0.20.5rc/fop.sh"; //path to fop |
|---|
| 150 | |
|---|
| 151 | $EXTERN_SERVER_NAME = ""; //define name, if you use special setup |
|---|
| 152 | $EXTERN_SRI_ENABLE = TRUE; //allow the usage of SRI-interface (Stud.IP Remote Include) |
|---|
| 153 | $EXTERN_SRI_ENABLE_BY_ROOT = FALSE; //only root allows the usage of SRI-interface for specific institutes |
|---|
| 154 | $EXTERN_ALLOW_ACCESS_WITHOUT_CONFIG = FALSE; //free access to external pages (without the need of a configuration), independent of SRI settings above |
|---|
| 155 | |
|---|
| 156 | $SOAP_ENABLE = FALSE; |
|---|
| 157 | $SOAP_USE_PHP5 = FALSE; |
|---|
| 158 | |
|---|
| 159 | $WEBSERVICES_ENABLE = FALSE; //Stud.IP module: webservices |
|---|
| 160 | |
|---|
| 161 | $STUDIP_API_KEY=''; // webservice api key |
|---|
| 162 | |
|---|
| 163 | $ELEARNING_INTERFACE_MODULES = array( |
|---|
| 164 | "ilias3" => array( |
|---|
| 165 | "name" => "ILIAS 3", |
|---|
| 166 | "ABSOLUTE_PATH_ELEARNINGMODULES" => "http://<your Ilias3 installation>/", |
|---|
| 167 | "ABSOLUTE_PATH_SOAP" => "http://<your Ilias3 installation>/webservice/soap/server.php?wsdl", |
|---|
| 168 | "CLASS_PREFIX" => "Ilias3", |
|---|
| 169 | "auth_necessary" => true, |
|---|
| 170 | "USER_AUTO_CREATE" => false, |
|---|
| 171 | "USER_PREFIX" => "studip_", |
|---|
| 172 | "target_file" => "studip_referrer.php", |
|---|
| 173 | "logo_file" => "assets/images/logos/ilias_logo.png", |
|---|
| 174 | "soap_data" => array( |
|---|
| 175 | "username" => "<username>", //this credentials are used to communicate with your Ilias 3 installation over SOAP |
|---|
| 176 | "password" => "<password>", |
|---|
| 177 | "client" => "<ilias client id>"), |
|---|
| 178 | "types" => array( |
|---|
| 179 | "htlm" => array("name" => "HTML-Lerneinheit", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 180 | "sahs" => array("name" => "SCORM/AICC-Lerneinheit", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 181 | "lm" => array("name" => "ILIAS-Lerneinheit", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 182 | "glo" => array("name" => "ILIAS-Glossar", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 183 | "tst" => array("name" => "ILIAS-Test", "icon" => "assets/images/icons/16/grey/learnmodule.png") |
|---|
| 184 | ), |
|---|
| 185 | "global_roles" => array(4,5,14), // put here the ilias role-ids for User, Guest and Anonymous |
|---|
| 186 | "roles" => array( |
|---|
| 187 | "autor" => "4", |
|---|
| 188 | "tutor" => "4", |
|---|
| 189 | "dozent" => "4", |
|---|
| 190 | "admin" => "4", |
|---|
| 191 | "root" => "2" |
|---|
| 192 | ), |
|---|
| 193 | "crs_roles" => array( |
|---|
| 194 | "autor" => "member", |
|---|
| 195 | "tutor" => "tutor", |
|---|
| 196 | "dozent" => "admin", |
|---|
| 197 | "admin" => "admin", |
|---|
| 198 | "root" => "admin" |
|---|
| 199 | ) |
|---|
| 200 | ) |
|---|
| 201 | ); |
|---|
| 202 | |
|---|
| 203 | $ELEARNING_INTERFACE_MODULES = array( |
|---|
| 204 | "ilias4" => array( |
|---|
| 205 | "name" => "ILIAS 4", |
|---|
| 206 | "ABSOLUTE_PATH_ELEARNINGMODULES" => "http://<your Ilias3 installation>/", |
|---|
| 207 | "ABSOLUTE_PATH_SOAP" => "http://<your Ilias3 installation>/webservice/soap/server.php?wsdl", |
|---|
| 208 | "CLASS_PREFIX" => "Ilias4", |
|---|
| 209 | "auth_necessary" => true, |
|---|
| 210 | "USER_AUTO_CREATE" => true, |
|---|
| 211 | "USER_PREFIX" => "", |
|---|
| 212 | "target_file" => "studip_referrer.php", |
|---|
| 213 | "logo_file" => "assets/images/logos/ilias_logo.png", |
|---|
| 214 | "soap_data" => array( |
|---|
| 215 | "username" => "<username>", //this credentials are used to communicate with your Ilias 3 installation over SOAP |
|---|
| 216 | "password" => "<password>", |
|---|
| 217 | "client" => "<ilias client id>"), |
|---|
| 218 | "types" => array( |
|---|
| 219 | "htlm" => array("name" => "HTML-Lerneinheit", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 220 | "sahs" => array("name" => "SCORM/AICC-Lerneinheit", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 221 | "lm" => array("name" => "ILIAS-Lerneinheit", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 222 | "glo" => array("name" => "ILIAS-Glossar", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 223 | "tst" => array("name" => "ILIAS-Test", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 224 | "svy" => array("name" => "ILIAS-Umfrage", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 225 | "exc" => array("name" => "ILIAS-Übung", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 226 | "dbk" => array("name" => "ILIAS Digilib Book", "icon" => "assets/images/icons/16/grey/learnmodule.png") |
|---|
| 227 | ), |
|---|
| 228 | "global_roles" => array(4,5,14), // put here the ilias role-ids for User, Guest and Anonymous |
|---|
| 229 | "roles" => array( |
|---|
| 230 | "autor" => "4", |
|---|
| 231 | "tutor" => "4", |
|---|
| 232 | "dozent" => "4", |
|---|
| 233 | "admin" => "4", |
|---|
| 234 | "root" => "2" |
|---|
| 235 | ), |
|---|
| 236 | "crs_roles" => array( |
|---|
| 237 | "autor" => "member", |
|---|
| 238 | "tutor" => "tutor", |
|---|
| 239 | "dozent" => "admin", |
|---|
| 240 | "admin" => "admin", |
|---|
| 241 | "root" => "admin" |
|---|
| 242 | ) |
|---|
| 243 | ) |
|---|
| 244 | ); |
|---|
| 245 | |
|---|
| 246 | // example entry for wikifarm as server for elearning modules |
|---|
| 247 | // remember to activate studip-webservices with WEBSERVICES_ENABLE and to set STUDIP_INSTALLATION_ID |
|---|
| 248 | |
|---|
| 249 | $ELEARNING_INTERFACE_MODULES["pmwiki-farm"] = array( |
|---|
| 250 | "name" => "Wikifarm", |
|---|
| 251 | "ABSOLUTE_PATH_ELEARNINGMODULES" => "http://<your PmWiki farm server>/<path to wiki fields>/", |
|---|
| 252 | |
|---|
| 253 | "WEBSERVICE_CLASS" => "xml_rpc_webserviceclient", |
|---|
| 254 | "ABSOLUTE_PATH_SOAP" => "http://<your PmWiki farm server>/<path to PmWiki farm>/pmwiki.php", // url to farm webservices |
|---|
| 255 | "URL_PARAMS" => "action=xmlrpc", |
|---|
| 256 | |
|---|
| 257 | "CLASS_PREFIX" => "PmWiki", |
|---|
| 258 | "auth_necessary" => false, |
|---|
| 259 | |
|---|
| 260 | "field_script" => "field.php", |
|---|
| 261 | "logo_file" => $ASSETS_URL."/images/logos/pmwiki-32.gif", |
|---|
| 262 | |
|---|
| 263 | "soap_data" => array( |
|---|
| 264 | "api-key" => "<api-key for wiki webservices>", |
|---|
| 265 | ), |
|---|
| 266 | "types" => array( |
|---|
| 267 | "wiki" => array("name" => "PmWiki-Lernmodul", "icon" => "assets/images/icons/16/grey/learnmodule.png"), |
|---|
| 268 | ) |
|---|
| 269 | ); |
|---|
| 270 | |
|---|
| 271 | $PLUGINS_UPLOAD_ENABLE = TRUE; //Upload of Plugins is enabled |
|---|
| 272 | |
|---|
| 273 | $PLUGIN_REPOSITORIES = array( |
|---|
| 274 | 'http://plugins.studip.de/plugin-wiki.php' |
|---|
| 275 | ); |
|---|
| 276 | |
|---|
| 277 | /*system functions |
|---|
| 278 | ---------------------------------------------------------------- |
|---|
| 279 | activate or deactivate some basic system-functions here*/ |
|---|
| 280 | |
|---|
| 281 | $LATEXRENDER_ENABLE = TRUE; //enable to use the LaTexrenderer (Please note the further LaTeX template-settings below) |
|---|
| 282 | $SMILEY_COUNTER = FALSE; //enable Smiley-counter |
|---|
| 283 | |
|---|
| 284 | |
|---|
| 285 | /*domain name and path translation |
|---|
| 286 | ---------------------------------------------------------------- |
|---|
| 287 | to translate internal links (within Stud.IP) to the different |
|---|
| 288 | domain names. To activate this feature uncomment these lines |
|---|
| 289 | and add all used domain names. Below, some examples are given. |
|---|
| 290 | */ |
|---|
| 291 | |
|---|
| 292 | //server-root is stud.ip root dir, or virtual server for stud.ip |
|---|
| 293 | //$STUDIP_DOMAINS[1] = "<your.server.name>"; |
|---|
| 294 | //$STUDIP_DOMAINS[2] = "<your.server.ip>"; |
|---|
| 295 | //$STUDIP_DOMAINS[3] = "<your.virtual.server.name>"; |
|---|
| 296 | // |
|---|
| 297 | // or |
|---|
| 298 | // |
|---|
| 299 | //stud.ip root is a normal directory |
|---|
| 300 | //$STUDIP_DOMAINS[1] = "<your.server.name/studip>"; |
|---|
| 301 | //$STUDIP_DOMAINS[2] = "<your.server.ip/studip>"; |
|---|
| 302 | |
|---|
| 303 | |
|---|
| 304 | /*mail settings |
|---|
| 305 | ---------------------------------------------------------------- |
|---|
| 306 | possible settings for $MAIL_TRANSPORT: |
|---|
| 307 | smtp use smtp to deliver to $MAIL_HOST_NAME |
|---|
| 308 | php use php's mail() function |
|---|
| 309 | sendmail use local sendmail script |
|---|
| 310 | qmail use local Qmail MTA |
|---|
| 311 | debug mails are only written to a file in $TMP_PATH |
|---|
| 312 | */ |
|---|
| 313 | $MAIL_TRANSPORT = "smtp"; |
|---|
| 314 | |
|---|
| 315 | /*smtp settings |
|---|
| 316 | ---------------------------------------------------------------- |
|---|
| 317 | leave blank or try 127.0.0.1 if localhost is also the mailserver |
|---|
| 318 | ignore if you don't use smtp as transport*/ |
|---|
| 319 | $MAIL_HOST_NAME = ""; //which mailserver should we use? (must allow mail-relaying from $MAIL_LOCALHOST, defaults to SERVER_NAME) |
|---|
| 320 | |
|---|
| 321 | $MAIL_LOCALHOST = ""; //name of the mail sending machine (the web server) defaults to SERVER_NAME |
|---|
| 322 | $MAIL_CHARSET = ""; //character set of mail body, defaults to WINDOWS-1252 |
|---|
| 323 | $MAIL_ENV_FROM = ""; //sender mail adress, defaults to wwwrun @ $MAIL_LOCALHOST |
|---|
| 324 | $MAIL_FROM = ""; //name of sender, defaults to "Stud.IP" |
|---|
| 325 | $MAIL_ABUSE = ""; //mail adress to reply to in case of abuse, defaults to abuse @ $MAIL_LOCALHOST |
|---|
| 326 | |
|---|
| 327 | $MAIL_BULK_DELIVERY = FALSE; //try to improve the message queueing rate (experimental, does not work for php transport) |
|---|
| 328 | |
|---|
| 329 | $MAIL_VALIDATE_HOST = TRUE; //check for valid mail host when user enters email adress |
|---|
| 330 | $MAIL_VALIDATE_BOX = TRUE; //check for valid mail account when user enters email adress; set to false if the webserver got no valid MX record |
|---|
| 331 | |
|---|
| 332 | $MESSAGING_FORWARD_AS_EMAIL = TRUE; //enable to forward every internal message to the user-mail (the user is able to deactivate this function in his personal settings) |
|---|
| 333 | $MESSAGING_FORWARD_DEFAULT = 1; //the default setting: if 1, the user has to switch it on; if 2, every message will be forwarded; if 3 every message will be forwarded on request of the sender |
|---|
| 334 | |
|---|
| 335 | $ENABLE_EMAIL_TO_STATUSGROUP = TRUE; // enable to send messages to whole status groups |
|---|
| 336 | |
|---|
| 337 | $ENABLE_EMAIL_ATTACHMENTS = TRUE; // enable attachment functions for internal and external messages |
|---|
| 338 | |
|---|
| 339 | /*advanced system settings |
|---|
| 340 | ---------------------------------------------------------------- |
|---|
| 341 | this are some settings to activate some special features, special |
|---|
| 342 | behaviour of some features and other advanced options. Change on your |
|---|
| 343 | own risk :) */ |
|---|
| 344 | |
|---|
| 345 | $ALLOW_GROUPING_SEMINARS = TRUE; //if true, administrators can group seminars - students |
|---|
| 346 | //will only be able to register for one of the grouped seminars |
|---|
| 347 | |
|---|
| 348 | $ALLOW_SELFASSIGN_STUDYCOURSE = TRUE; //if true, students are allowed to set or change |
|---|
| 349 | //their studycourse (studiengang) |
|---|
| 350 | |
|---|
| 351 | $SHOW_TERMS_ON_FIRST_LOGIN = FALSE; //if true, the user has to accept the terms on his first login |
|---|
| 352 | //(this feature makes only sense, if you use disable $ENABLE_SELF_REGISTRATION). |
|---|
| 353 | |
|---|
| 354 | $USER_VISIBILITY_CHECK = FALSE; // enable presentation of visibility decision texts for users after first login |
|---|
| 355 | // see lib/include/header.php and lib/user_visible.inc.php for further info |
|---|
| 356 | |
|---|
| 357 | $CONVERT_IDNA_URL = TRUE; //if true, urls with german "umlauts" are converted |
|---|
| 358 | |
|---|
| 359 | /*language settings |
|---|
| 360 | ----------------------------------------------------------------*/ |
|---|
| 361 | |
|---|
| 362 | $INSTALLED_LANGUAGES["de_DE"] = array ("path"=>"de", "picture"=>"lang_de.gif", "name"=>"Deutsch"); |
|---|
| 363 | $INSTALLED_LANGUAGES["en_GB"] = array ("path"=>"en", "picture"=>"lang_en.gif", "name"=>"English"); |
|---|
| 364 | |
|---|
| 365 | $DEFAULT_LANGUAGE = "de_DE"; // which language should we use if we can gather no information from user? |
|---|
| 366 | |
|---|
| 367 | $_language_domain = "studip"; // the name of the language file. Should not be changed except in cases of individual translations or special terms. |
|---|
| 368 | |
|---|
| 369 | /*literature search plugins |
|---|
| 370 | ---------------------------------------------------------------- |
|---|
| 371 | If you write your own plugin put it in studip-htdocs/lib/classes/lit_search_plugins |
|---|
| 372 | and enable it here. The name of the plugin is the classname excluding "StudipLitSearchPlugin". |
|---|
| 373 | If the catalog your plugin is designed for offers the possibility to create a link to an entry, you |
|---|
| 374 | could provide the link here. Place templates for the needed attributes in curly braces. (see examples below)*/ |
|---|
| 375 | |
|---|
| 376 | //standard plugin, searches in Stud.IP Database (table lit_catalog), you should leave this one enabled ! |
|---|
| 377 | $_lit_search_plugins[] = array('name' => "Studip",'display_name' =>'Katalog der Stud.IP Datenbank', 'link' => ''); |
|---|
| 378 | |
|---|
| 379 | //Plugins derived from Z3950Abstract, used for querying Z39.50 Servers |
|---|
| 380 | //only activate these plugins, if your Version of PHP supports the YAZ extension! |
|---|
| 381 | |
|---|
| 382 | /* Gemeinsamer Verbundkatalog - GVK */ |
|---|
| 383 | //$_lit_search_plugins[] = array('name' => "Gvk",'display_name' =>'Gemeinsamer Verbundkatalog', 'link' => 'http://gso.gbv.de/DB=2.1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 384 | |
|---|
| 385 | /* Niedersächsische Staats- und Universitätsbibliothek Göttingen, OPAC */ |
|---|
| 386 | //$_lit_search_plugins[] = array('name' => "SUBGoeOpac",'display_name' => "Opac der SUB Göttingen" , 'link' => 'http://goopc4.sub.uni-goettingen.de:8080/DB=1/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 387 | |
|---|
| 388 | /* Göttinger Gesamtkatalog (Regionalkatalog Göttingen) */ |
|---|
| 389 | //$_lit_search_plugins[] = array('name' => 'Rkgoe', 'display_name' =>'Regionalkatalog Göttingen', 'link' => 'http://gso.gbv.de/DB=2.90/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 390 | |
|---|
| 391 | /* Bibliotheken der Wirtschafts- und Sozialwiss. Fakultäten Goettingen */ |
|---|
| 392 | //$_lit_search_plugins[] = array('name' => 'WisoFak', 'display_name' =>'Bibliotheken der Wirtschafts- und Sozialwiss. Fakultäten Goettingen', 'link' => 'http://goopc4.sub.uni-goettingen.de:8080/DB=2/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 393 | |
|---|
| 394 | /* Technische Informationsbibliothek / Universitätsbibliothek Hannover, OPAC */ |
|---|
| 395 | //$_lit_search_plugins[] = array('name' => 'TIBUBOpac', 'display_name' =>'Technische Informationsbibliothek / Universitätsbibliothek Hannover', 'link' => 'http://opc4.tib.uni-hannover.de:8080/DB=1/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}', 'display_name' => "UB Katalog"); |
|---|
| 396 | |
|---|
| 397 | /* Hannover Gesamtkatalog (Regionalkatalog Hannover) */ |
|---|
| 398 | //$_lit_search_plugins[] = array('name' => 'Rkhan', 'display_name' =>'Regionalkatalog Hannover', 'link' => 'http://gso.gbv.de/DB=2.92/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}', 'display_name' => "Gesamtkatalog Hannover"); |
|---|
| 399 | |
|---|
| 400 | /* Bibliotheken der Fachhochschule Hildesheim/Holzminden/Göttingen */ |
|---|
| 401 | //$_lit_search_plugins[] = array('name' => 'FHHIOpac', 'display_name' =>'Bibliotheken der FH Hildesheim/Holzminden/Göttingen', 'link' => 'http://hidbs2.bib.uni-hildesheim.de:8080/DB=2/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 402 | |
|---|
| 403 | /* Thüringer Universitäts- und Landesbibliothek Jena */ |
|---|
| 404 | //$_lit_search_plugins[] = array('name' => 'ThULB_Jena', 'display_name' =>'Thüringer Universitäts- und Landesbibliothek Jena', 'link' => 'http://jenopc4.thulb.uni-jena.de:8080/DB=1/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 405 | |
|---|
| 406 | /* Bibliothek der Fachhochschule Jena */ |
|---|
| 407 | //$_lit_search_plugins[] = array('name' => 'FH_Jena', 'display_name' =>'Bibliothek der FH Jena', 'link' => 'http://jenopc4.thulb.uni-jena.de:8080/DB=2/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 408 | |
|---|
| 409 | /* Universitätsbibliothek der Bauhaus-Universität Weimar */ |
|---|
| 410 | //$_lit_search_plugins[] = array('name' => 'UB_Weimar', 'display_name' =>'Universitätsbibliothek der Bauhaus-Universität Weimar', 'link' => 'http://weias.ub.uni-weimar.de:8080/DB=1/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 411 | |
|---|
| 412 | /* Herzogin Anna Amalia Bibliothek Weimar */ |
|---|
| 413 | //$_lit_search_plugins[] = array('name' => 'HAAB_Weimar', 'display_name' =>'Herzogin Anna Amalia Bibliothek Weimar', 'link' => 'http://weias.ub.uni-weimar.de:8080/DB=2/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 414 | |
|---|
| 415 | /* Bibliothek der Hochschule für Musik Franz Liszt Weimar */ |
|---|
| 416 | //$_lit_search_plugins[] = array('name' => 'HSfMFL_Weimar', 'display_name' =>'Bibliothek der Hochschule für Musik Franz Liszt Weimar', 'link' => 'http://weias.ub.uni-weimar.de:8080/DB=3/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 417 | |
|---|
| 418 | /* Universitätsbibliothek Erfurt */ |
|---|
| 419 | //$_lit_search_plugins[] = array('name' => 'UB_Erfurt', 'display_name' =>'Universitätsbibliothek Erfurt', 'link' => 'http://opac.uni-erfurt.de:8080/DB=1/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 420 | |
|---|
| 421 | /* Bibliothek der Fachhochschule Erfurt */ |
|---|
| 422 | //$_lit_search_plugins[] = array('name' => 'FH_Erfurt', 'display_name' =>'Bibliothek der FH Erfurt', 'link' => 'http://opac.uni-erfurt.de:8080/DB=4/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 423 | |
|---|
| 424 | /* Bibliothek der Fachhochschule Nordhausen */ |
|---|
| 425 | //$_lit_search_plugins[] = array('name' => 'FH_Nordhausen', 'display_name' =>'Bibliothek der FH Nordhausen', 'link' => 'http://opac.uni-erfurt.de:8080/DB=5/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 426 | |
|---|
| 427 | /* Universitätsbibliothek Ilmenau */ |
|---|
| 428 | //$_lit_search_plugins[] = array('name' => 'UB_Ilmenau', 'display_name' =>'Universitätsbibliothek Ilmenau', 'link' => 'http://ilmopc4.bibliothek.tu-ilmenau.de:8080/DB=1/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 429 | |
|---|
| 430 | /* Bibliothek der Fachhochschule Schmalkalden */ |
|---|
| 431 | //$_lit_search_plugins[] = array('name' => 'FH_Schmalkalden', 'display_name' =>'Bibliothek der FH Schmalkalden', 'link' => 'http://ilmopc4.bibliothek.tu-ilmenau.de:8080/DB=2/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 432 | |
|---|
| 433 | /* Universitäts- und Landesbibliothek Sachsen-Anhalt Halle */ |
|---|
| 434 | //$_lit_search_plugins[] = array('name' => "Ulb", 'display_name' =>'Universitäts- und Landesbibliothek Sachsen-Anhalt Halle', 'link' => 'http://haweb1.bibliothek.uni-halle.de:8080/DB=1/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 435 | |
|---|
| 436 | /* FB Technik ULB Halle und FH Merseburg */ |
|---|
| 437 | //$_lit_search_plugins[] = array('name' => "FBTechnik", 'display_name' =>'FB Technik ULB Halle und FH Merseburg', 'link' => 'http://haweb1.bibliothek.uni-halle.de:8080/DB=2/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 438 | |
|---|
| 439 | /* Deutsche Akademie der Naturforscher Leopoldina */ |
|---|
| 440 | //$_lit_search_plugins[] = array('name' => "Leopoldina", 'display_name' =>'Deutsche Akademie der Naturforscher Leopoldina', 'link' => 'http://haweb1.bibliothek.uni-halle.de:8080/DB=4/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 441 | |
|---|
| 442 | /* Universitätsbibliothek Trier */ |
|---|
| 443 | //$_lit_search_plugins[] = array('name' => 'UB_Trier', 'display_name' =>'BIB-KAT Universität Trier', 'link' => 'http://bibkat.uni-trier.de/F/?func=find-c&local_base=tri01&ccl_term={accession_number}'); |
|---|
| 444 | |
|---|
| 445 | /* Südwestdeutscher Bibliotheksverbund SWB Online */ |
|---|
| 446 | //$_lit_search_plugins[] = array('name' => "Swb", 'display_name' => "SWB Online Katalog", 'link' => 'http://swb.bsz-bw.de/DB=2.1/SET=1/TTL=2/CLK?IKT=12&TRM={accession_number}'); |
|---|
| 447 | |
|---|
| 448 | /* IWF Campusmedien */ |
|---|
| 449 | //$_lit_search_plugins[] = array('name' => "IWFdigiClips", 'display_name' => "IWF Campusmedien", 'link' => 'http://gso.gbv.de/DB=1.65/SET=1/TTL=1/CMD?ACT=SRCHA&IKT=12&SRT=YOP&TRM={accession_number}'); |
|---|
| 450 | |
|---|
| 451 | /*authentication plugins |
|---|
| 452 | ---------------------------------------------------------------- |
|---|
| 453 | the following plugins are available: |
|---|
| 454 | Standard authentication using the local Stud.IP database |
|---|
| 455 | StandardExtern authentication using an alternative Stud.IP database, e.g. another installation |
|---|
| 456 | Ldap authentication using an LDAP server, this plugin uses anonymous bind against LDAP to retrieve the user dn, |
|---|
| 457 | then it uses the submitted password to authenticate with this user dn |
|---|
| 458 | LdapReader authentication using an LDAP server, this plugin binds to the server using a given dn and a password, |
|---|
| 459 | this account must have read access to gather the attributes for the user who tries to authenticate. |
|---|
| 460 | CAS authentication using a central authentication server (CAS) |
|---|
| 461 | Shib authentication using a Shibboleth identity provider (IdP) |
|---|
| 462 | |
|---|
| 463 | If you write your own plugin put it in studip-htdocs/lib/classes/auth_plugins |
|---|
| 464 | and enable it here. The name of the plugin is the classname excluding "StudipAuth". |
|---|
| 465 | |
|---|
| 466 | You could also place your configuration here, name it $STUDIP_AUTH_CONFIG_<plugin name>, |
|---|
| 467 | all uppercase each item of the configuration array will become a member of your plugin class.*/ |
|---|
| 468 | |
|---|
| 469 | //$STUDIP_AUTH_PLUGIN[] = "LdapReadAndBind"; |
|---|
| 470 | //$STUDIP_AUTH_PLUGIN[] = "Ldap"; |
|---|
| 471 | //$STUDIP_AUTH_PLUGIN[] = "StandardExtern"; |
|---|
| 472 | $STUDIP_AUTH_PLUGIN[] = "Standard"; |
|---|
| 473 | // $STUDIP_AUTH_PLUGIN[] = "CAS"; |
|---|
| 474 | // $STUDIP_AUTH_PLUGIN[] = "Shib"; |
|---|
| 475 | /* |
|---|
| 476 | |
|---|
| 477 | $STUDIP_AUTH_CONFIG_LDAPREADANDBIND = array("host" => "localhost", |
|---|
| 478 | "base_dn" => "dc=studip,dc=de", |
|---|
| 479 | "protocol_version" => 3, |
|---|
| 480 | "start_tls" => false, |
|---|
| 481 | "send_utf8_credentials" => true, |
|---|
| 482 | "decode_utf8_values" => true, |
|---|
| 483 | "bad_char_regex" => '/[^0-9_a-zA-Z-]/', |
|---|
| 484 | "username_case_insensitiv" => true, |
|---|
| 485 | "username_attribute" => "uid", |
|---|
| 486 | "user_password_attribute" => "userpassword", |
|---|
| 487 | "reader_dn" => "uid=reader,dc=studip,dc=de", |
|---|
| 488 | "reader_password" => "<password>", |
|---|
| 489 | "error_head" => "LDAP read-and-bind plugin", |
|---|
| 490 | "user_data_mapping" => |
|---|
| 491 | array( "auth_user_md5.username" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 492 | "auth_user_md5.password" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 493 | "auth_user_md5.Email" => array("callback" => "doLdapMap", "map_args" => "email"), |
|---|
| 494 | "auth_user_md5.Nachname" => array("callback" => "doLdapMap", "map_args" => "sn"), |
|---|
| 495 | "auth_user_md5.Vorname" => array("callback" => "doLdapMap", "map_args" => "givenname") |
|---|
| 496 | ) |
|---|
| 497 | ); |
|---|
| 498 | |
|---|
| 499 | $STUDIP_AUTH_CONFIG_LDAP = array( "host" => "localhost", |
|---|
| 500 | "base_dn" => "dc=data-quest,dc=de", |
|---|
| 501 | "protocol_version" => 3, |
|---|
| 502 | "start_tls" => false, |
|---|
| 503 | "send_utf8_credentials" => true, |
|---|
| 504 | "decode_utf8_values" => true, |
|---|
| 505 | "bad_char_regex" => '/[^0-9_a-zA-Z-]/', |
|---|
| 506 | "username_case_insensitiv" => true, |
|---|
| 507 | "username_attribute" => "uid", |
|---|
| 508 | "anonymous_bind" => true, |
|---|
| 509 | "error_head" => "LDAP plugin", |
|---|
| 510 | "user_data_mapping" => |
|---|
| 511 | array( "auth_user_md5.username" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 512 | "auth_user_md5.password" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 513 | "auth_user_md5.Email" => array("callback" => "doLdapMap", "map_args" => "email"), |
|---|
| 514 | "auth_user_md5.Nachname" => array("callback" => "doLdapMap", "map_args" => "sn"), |
|---|
| 515 | "auth_user_md5.Vorname" => array("callback" => "doLdapMap", "map_args" => "givenname") |
|---|
| 516 | ) |
|---|
| 517 | ); |
|---|
| 518 | $STUDIP_AUTH_CONFIG_STANDARDEXTERN = array( "db_host" => "localhost", |
|---|
| 519 | "db_username" => "extern", |
|---|
| 520 | "db_name" => "extern_studip", |
|---|
| 521 | "db_password" => "<password>", |
|---|
| 522 | "error_head" => "Stud.IP extern plugin", |
|---|
| 523 | "user_data_mapping" => |
|---|
| 524 | array( "auth_user_md5.username" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 525 | "auth_user_md5.password" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 526 | "auth_user_md5.Email" => array("callback" => "doExternMap", "map_args" => "Email"), |
|---|
| 527 | "auth_user_md5.Nachname" => array("callback" => "doExternMap", "map_args" => "Nachname"), |
|---|
| 528 | "auth_user_md5.Vorname" => array("callback" => "doExternMap", "map_args" => "Vorname"), |
|---|
| 529 | "auth_user_md5.perms" => array("callback" => "doExternMapPerms", "map_args" => "perms"), |
|---|
| 530 | "user_info.privatnr" => array("callback" => "doExternMap", "map_args" => "privatnr"), |
|---|
| 531 | "user_info.privadr" => array("callback" => "doExternMap", "map_args" => "privadr"), |
|---|
| 532 | "user_info.geschlecht" => array("callback" => "doExternMap", "map_args" => "geschlecht"), |
|---|
| 533 | "user_info.hobby" => array("callback" => "doExternMap", "map_args" => "hobby"), |
|---|
| 534 | "user_info.lebenslauf" => array("callback" => "doExternMap", "map_args" => "lebenslauf"), |
|---|
| 535 | "user_info.title_front" => array("callback" => "doExternMap", "map_args" => "title_front"), |
|---|
| 536 | "user_info.title_rear" => array("callback" => "doExternMap", "map_args" => "title_rear"), |
|---|
| 537 | "user_info.publi" => array("callback" => "doExternMap", "map_args" => "publi"), |
|---|
| 538 | "user_info.schwerp" => array("callback" => "doExternMap", "map_args" => "schwerp"), |
|---|
| 539 | "user_info.Home" => array("callback" => "doExternMap", "map_args" => "Home"))); |
|---|
| 540 | |
|---|
| 541 | // create a config for your own user data mapping class |
|---|
| 542 | $CASAbstractUserDataMapping_CONFIG = array(); |
|---|
| 543 | $STUDIP_AUTH_CONFIG_CAS = array("host" => "cas.studip.de", |
|---|
| 544 | "port" => 8443, |
|---|
| 545 | "uri" => "cas", |
|---|
| 546 | "cacert" => "/path/to/server/cert", |
|---|
| 547 | "user_data_mapping_class" => "CASAbstractUserDataMapping", |
|---|
| 548 | "user_data_mapping" => // map_args are dependent on your own data mapping class |
|---|
| 549 | array( "auth_user_md5.username" => array("callback" => "getUserData", "map_args" => "username"), |
|---|
| 550 | "auth_user_md5.Vorname" => array("callback" => "getUserData", "map_args" => "givenname"), |
|---|
| 551 | "auth_user_md5.Nachname" => array("callback" => "getUserData", "map_args" => "surname"), |
|---|
| 552 | "auth_user_md5.Email" => array("callback" => "getUserData", "map_args" => "email"), |
|---|
| 553 | "auth_user_md5.perms" => array("callback" => "getUserData", "map_args" => "status"))); |
|---|
| 554 | |
|---|
| 555 | $STUDIP_AUTH_CONFIG_SHIB = array("session_initiator" => "https://sp.studip.de/Shibboleth.sso/WAYF/DEMO", |
|---|
| 556 | "validate_url" => "https://sp.studip.de/auth/studip-sp.php", |
|---|
| 557 | "local_domain" => "studip.de", |
|---|
| 558 | "user_data_mapping" => |
|---|
| 559 | array( "auth_user_md5.username" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 560 | "auth_user_md5.password" => array("callback" => "dummy", "map_args" => ""), |
|---|
| 561 | "auth_user_md5.Vorname" => array("callback" => "getUserData", "map_args" => "givenname"), |
|---|
| 562 | "auth_user_md5.Nachname" => array("callback" => "getUserData", "map_args" => "surname"), |
|---|
| 563 | "auth_user_md5.Email" => array("callback" => "getUserData", "map_args" => "email"))); |
|---|
| 564 | */ |
|---|
| 565 | |
|---|
| 566 | //some additional authification-settings |
|---|
| 567 | //NOTE: you MUST enable Standard authentication-plugin for this settings to take effect! |
|---|
| 568 | |
|---|
| 569 | $ALLOW_CHANGE_USERNAME = TRUE; //if true, users are allowed to change their username |
|---|
| 570 | $ALLOW_CHANGE_EMAIL = TRUE; //if true, users are allowed to change their email-address |
|---|
| 571 | $ALLOW_CHANGE_NAME = TRUE; //if true, users are allowed to change their name |
|---|
| 572 | $ALLOW_CHANGE_TITLE = TRUE; //if true, users are allowed to change their titles |
|---|
| 573 | $ENABLE_SELF_REGISTRATION = TRUE; //should it be possible for an user to register himself |
|---|
| 574 | |
|---|
| 575 | $ENABLE_REQUEST_NEW_PASSWORD_BY_USER = TRUE; //if true, users are able to request a new password themselves |
|---|
| 576 | $REQUEST_NEW_PASSWORD_SECRET = 'jh*d ajshHuwd7z237zd hGfaMhlf'; // if the above feature is used, set this to somthing different!!! |
|---|
| 577 | |
|---|
| 578 | $ENABLE_FREE_ACCESS = TRUE; //if true, courses with public access are available |
|---|
| 579 | |
|---|
| 580 | /*format templates for LaTex renderer |
|---|
| 581 | ----------------------------------------------------------------- |
|---|
| 582 | you can define specified templates, e.g. phonetic or arab fonts*/ |
|---|
| 583 | |
|---|
| 584 | $LATEX_FORMATS = array( |
|---|
| 585 | "math" => array("tag" => "tex", "template" => "\documentclass[12pt]{article}\n \usepackage[latin1]{inputenc}\n \usepackage{amsmath}\n \usepackage{amsfonts}\n \usepackage{amssymb}\n \pagestyle{empty}\n \begin{document}\n $%s$\n \end{document}\n")); |
|---|
| 586 | /* |
|---|
| 587 | Format of entries: |
|---|
| 588 | ------------------ |
|---|
| 589 | |
|---|
| 590 | Internal format name => array ( |
|---|
| 591 | Format tag (e.g. "tex" --> [tex]...[/tex]) |
|---|
| 592 | Format template (must contain structure of an entire valid LaTeX-document and must contain exactly one %s placeholder that will be replaced be the code entered between [tag]....[/tag]. |
|---|
| 593 | ) |
|---|
| 594 | |
|---|
| 595 | Examples for additional formats: |
|---|
| 596 | -------------------------------- |
|---|
| 597 | |
|---|
| 598 | IPA Phonetic font (needs LaTeX package tipa installed): |
|---|
| 599 | "ipa" => array("tag" => "ipa", "template" => "\documentclass[12pt]{article}\n \usepackage[latin1]{inputenc}\n \usepackage{tipa}\n \pagestyle{empty}\n \begin{document}\n \\textipa{%s}\n \end{document}\n") |
|---|
| 600 | |
|---|
| 601 | Arab font (needs LaTeX package arabtex installed): |
|---|
| 602 | "arab" => array("tag" => "arab", "template" => "\documentclass[12pt]{article}\n \usepackage[latin1]{inputenc}\n \usepackage{arabtex,atrans}\n \pagestyle{empty}\n \begin{document}\n \begin{arabtext}%s\end{arabtext}\n \end{document}\n") |
|---|
| 603 | */ |
|---|
| 604 | |
|---|
| 605 | // WIKI PLUGINS |
|---|
| 606 | // - plugins are loaded from the wiki module |
|---|
| 607 | // - plugins can define own wiki markup applied after general markup rules// |
|---|
| 608 | // uncomment/change below to activate |
|---|
| 609 | // |
|---|
| 610 | //$WIKI_PLUGINS=array( |
|---|
| 611 | // "wiki_lifters.inc.php", // Lifters Proposal System |
|---|
| 612 | // "wiki_steps.inc.php", // Stud.IP Enhancement Proposal System |
|---|
| 613 | // "wiki_biests.inc.php" // Bug and Inconsistency Detection System |
|---|
| 614 | // ); |
|---|
| 615 | $WIKI_PLUGINS = array(); |
|---|
| 616 | |
|---|
| 617 | /*path generation |
|---|
| 618 | ----------------------------------------------------------------- |
|---|
| 619 | (end of user defined settings)*/ |
|---|
| 620 | |
|---|
| 621 | |
|---|
| 622 | //create the html-version of $UNI_NAME clean |
|---|
| 623 | $UNI_NAME=htmlentities($UNI_NAME_CLEAN, ENT_QUOTES); |
|---|
| 624 | |
|---|
| 625 | require_once 'lib/phplib_local.inc.php'; |
|---|