Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
bc30b99d
Commit
bc30b99d
authored
10 months ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
remove ASSETS_URL from compact() and deactivate example configurations, re #4143
Merge request
studip/studip!3018
parent
7a6909c3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config_defaults.inc.php
+81
-76
81 additions, 76 deletions
config/config_defaults.inc.php
lib/bootstrap.php
+1
-1
1 addition, 1 deletion
lib/bootstrap.php
with
82 additions
and
77 deletions
config/config_defaults.inc.php
+
81
−
76
View file @
bc30b99d
...
...
@@ -78,86 +78,87 @@ $FOP_SH_CALL = "/usr/bin/fop"; //path to fop
$EXTERN_SERVER_NAME
=
""
;
//define name, if you use special setup
$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"
]
]
];
$ELEARNING_INTERFACE_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
$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"
],
]
];
// $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"
// ]
// ];
//
// $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
=
$_ENV
[
'STUDIP_PLUGIN_UPLOAD_ENABLE'
]
??
true
;
//Upload of Plugins is enabled
...
...
@@ -268,6 +269,10 @@ $STUDIP_AUTH_PLUGIN[] = "Standard";
// $STUDIP_AUTH_PLUGIN[] = "IP";
$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",
"base_dn" => "dc=studip,dc=de",
...
...
This diff is collapsed.
Click to expand it.
lib/bootstrap.php
+
1
−
1
View file @
bc30b99d
...
...
@@ -83,7 +83,7 @@ require __DIR__ . '/classes/StudipFileloader.php';
$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
)
{
$GLOBALS
[
$key
]
=
$value
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment