Skip to content
Snippets Groups Projects
Commit f0599f5e authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

remove ASSETS_URL from compact() and deactivate example configurations, re #4143

Merge request studip/studip!3018
parent a76fd9a3
No related branches found
No related tags found
No related merge requests found
...@@ -78,86 +78,87 @@ $FOP_SH_CALL = "/usr/bin/fop"; //path to fop ...@@ -78,86 +78,87 @@ $FOP_SH_CALL = "/usr/bin/fop"; //path to fop
$EXTERN_SERVER_NAME = ""; //define name, if you use special setup $EXTERN_SERVER_NAME = ""; //define name, if you use special setup
$ELEARNING_INTERFACE_MODULES = [ $ELEARNING_INTERFACE_MODULES = [];
"ilias5" => [
"name" => "ILIAS 5",
"ABSOLUTE_PATH_ELEARNINGMODULES" => "http://<your Ilias installation>/",
"ABSOLUTE_PATH_SOAP" => "http://<your Ilias installation>/webservice/soap/server.php?wsdl",
"CLASS_PREFIX" => "Ilias5",
"auth_necessary" => true,
"USER_AUTO_CREATE" => true,
"USER_PREFIX" => "",
"target_file" => "studip_referrer.php",
"logo_file" => "assets/images/logos/ilias_logo.png",
"soap_data" => [
"username" => "<username>", //this credentials are used to communicate with your Ilias 3 installation over SOAP
"password" => "<password>",
"client" => "<ilias client id>"],
"types" => [
"webr" => ["name" => "ILIAS-Link", "icon" => "learnmodule"],
"htlm" => ["name" => "HTML-Lerneinheit", "icon" => "learnmodule"],
"sahs" => ["name" => "SCORM/AICC-Lerneinheit", "icon" => "learnmodule"],
"lm" => ["name" => "ILIAS-Lerneinheit", "icon" => "learnmodule"],
"glo" => ["name" => "ILIAS-Glossar", "icon" => "learnmodule"],
"tst" => ["name" => "ILIAS-Test", "icon" => "learnmodule"],
"svy" => ["name" => "ILIAS-Umfrage", "icon" => "learnmodule"],
"exc" => ["name" => "ILIAS-Übung", "icon" => "learnmodule"]
],
"global_roles" => [4,5,14], // put here the ilias role-ids for User, Guest and Anonymous
"roles" => [
"autor" => "4",
"tutor" => "4",
"dozent" => "4",
"admin" => "4",
"root" => "2"
],
"crs_roles" => [
"autor" => "member",
"tutor" => "tutor",
"dozent" => "admin",
"admin" => "admin",
"root" => "admin"
]
]
];
// example entry for wikifarm as server for elearning modules // example entry for wikifarm as server for elearning modules
// Copy them into your customized config_local.inc.php and adjust them.
// remember to activate studip-webservices with WEBSERVICES_ENABLE and to set STUDIP_INSTALLATION_ID // remember to activate studip-webservices with WEBSERVICES_ENABLE and to set STUDIP_INSTALLATION_ID
$ELEARNING_INTERFACE_MODULES["pmwiki-farm"] = [ // $ELEARNING_INTERFACE_MODULES["ilias5"] = [
"name" => "Wikifarm", // "name" => "ILIAS 5",
"ABSOLUTE_PATH_ELEARNINGMODULES" => "http://<your PmWiki farm server>/<path to wiki fields>/", // "ABSOLUTE_PATH_ELEARNINGMODULES" => "http://<your Ilias installation>/",
// "ABSOLUTE_PATH_SOAP" => "http://<your Ilias installation>/webservice/soap/server.php?wsdl",
"WEBSERVICE_CLASS" => "xml_rpc_webserviceclient", // "CLASS_PREFIX" => "Ilias5",
"ABSOLUTE_PATH_SOAP" => "http://<your PmWiki farm server>/<path to PmWiki farm>/pmwiki.php", // url to farm webservices // "auth_necessary" => true,
"URL_PARAMS" => "action=xmlrpc", // "USER_AUTO_CREATE" => true,
// "USER_PREFIX" => "",
"CLASS_PREFIX" => "PmWiki", // "target_file" => "studip_referrer.php",
"auth_necessary" => false, // "logo_file" => "assets/images/logos/ilias_logo.png",
// "soap_data" => [
"field_script" => "field.php", // "username" => "<username>", //this credentials are used to communicate with your Ilias 3 installation over SOAP
"logo_file" => $ASSETS_URL."/images/logos/pmwiki-32.gif", // "password" => "<password>",
// "client" => "<ilias client id>"],
"soap_data" => [ // "types" => [
"api-key" => "<api-key for wiki webservices>", // "webr" => ["name" => "ILIAS-Link", "icon" => "learnmodule"],
], // "htlm" => ["name" => "HTML-Lerneinheit", "icon" => "learnmodule"],
"types" => [ // "sahs" => ["name" => "SCORM/AICC-Lerneinheit", "icon" => "learnmodule"],
"wiki" => ["name" => "PmWiki-Lernmodul", "icon" => "learnmodule"], // "lm" => ["name" => "ILIAS-Lerneinheit", "icon" => "learnmodule"],
] // "glo" => ["name" => "ILIAS-Glossar", "icon" => "learnmodule"],
]; // "tst" => ["name" => "ILIAS-Test", "icon" => "learnmodule"],
// "svy" => ["name" => "ILIAS-Umfrage", "icon" => "learnmodule"],
$ELEARNING_INTERFACE_MODULES["loncapa"] = // "exc" => ["name" => "ILIAS-Übung", "icon" => "learnmodule"]
[ // ],
"name" => "LonCapa", // "global_roles" => [4,5,14], // put here the ilias role-ids for User, Guest and Anonymous
"ABSOLUTE_PATH_ELEARNINGMODULES" => "http://127.0.0.1/loncapa", // "roles" => [
"CLASS_PREFIX" => "LonCapa", // "autor" => "4",
"auth_necessary" => false, // "tutor" => "4",
"logo_file" => "assets/images/logos/lon-capa.gif", // "dozent" => "4",
"types" => [ // "admin" => "4",
"loncapa" => ["name" => "LonCapa-Lernmodul", // "root" => "2"
"icon" => "learnmodule"], // ],
] // "crs_roles" => [
]; // "autor" => "member",
// "tutor" => "tutor",
// "dozent" => "admin",
// "admin" => "admin",
// "root" => "admin"
// ]
// ];
//
// $ELEARNING_INTERFACE_MODULES["pmwiki-farm"] = [
// "name" => "Wikifarm",
// "ABSOLUTE_PATH_ELEARNINGMODULES" => "http://<your PmWiki farm server>/<path to wiki fields>/",
//
// "WEBSERVICE_CLASS" => "xml_rpc_webserviceclient",
// "ABSOLUTE_PATH_SOAP" => "http://<your PmWiki farm server>/<path to PmWiki farm>/pmwiki.php", // url to farm webservices
// "URL_PARAMS" => "action=xmlrpc",
//
// "CLASS_PREFIX" => "PmWiki",
// "auth_necessary" => false,
//
// "field_script" => "field.php",
// "logo_file" => $ASSETS_URL."/images/logos/pmwiki-32.gif",
//
// "soap_data" => [
// "api-key" => "<api-key for wiki webservices>",
// ],
// "types" => [
// "wiki" => ["name" => "PmWiki-Lernmodul", "icon" => "learnmodule"],
// ]
// ];
//
// $ELEARNING_INTERFACE_MODULES["loncapa"] =
// [
// "name" => "LonCapa",
// "ABSOLUTE_PATH_ELEARNINGMODULES" => "http://127.0.0.1/loncapa",
// "CLASS_PREFIX" => "LonCapa",
// "auth_necessary" => false,
// "logo_file" => "assets/images/logos/lon-capa.gif",
// "types" => [
// "loncapa" => ["name" => "LonCapa-Lernmodul",
// "icon" => "learnmodule"],
// ]
// ];
$PLUGINS_UPLOAD_ENABLE = TRUE; //Upload of Plugins is enabled $PLUGINS_UPLOAD_ENABLE = TRUE; //Upload of Plugins is enabled
...@@ -268,6 +269,10 @@ $STUDIP_AUTH_PLUGIN[] = "Standard"; ...@@ -268,6 +269,10 @@ $STUDIP_AUTH_PLUGIN[] = "Standard";
// $STUDIP_AUTH_PLUGIN[] = "IP"; // $STUDIP_AUTH_PLUGIN[] = "IP";
$STUDIP_AUTH_CONFIG_STANDARD = ["error_head" => "intern"]; $STUDIP_AUTH_CONFIG_STANDARD = ["error_head" => "intern"];
// Example configurations
// Copy them into your customized config_local.inc.php and adjust them.
/* /*
$STUDIP_AUTH_CONFIG_LDAPREADANDBIND = array("host" => "localhost", $STUDIP_AUTH_CONFIG_LDAPREADANDBIND = array("host" => "localhost",
"base_dn" => "dc=studip,dc=de", "base_dn" => "dc=studip,dc=de",
......
...@@ -79,7 +79,7 @@ require __DIR__ . '/classes/StudipFileloader.php'; ...@@ -79,7 +79,7 @@ require __DIR__ . '/classes/StudipFileloader.php';
$added_configs = []; $added_configs = [];
StudipFileloader::load('config_defaults.inc.php config_local.inc.php', $added_configs, compact('STUDIP_BASE_PATH', 'ABSOLUTE_URI_STUDIP', 'ASSETS_URL', 'CANONICAL_RELATIVE_PATH_STUDIP'), true); StudipFileloader::load('config_defaults.inc.php config_local.inc.php', $added_configs, compact('STUDIP_BASE_PATH', 'ABSOLUTE_URI_STUDIP', 'CANONICAL_RELATIVE_PATH_STUDIP'), true);
foreach($added_configs as $key => $value) { foreach($added_configs as $key => $value) {
$GLOBALS[$key] = $value; $GLOBALS[$key] = $value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment