forked from ZwiiCMS-Team/ZwiiCampus
1700 Gestion des partages dissoiant home et courseId
This commit is contained in:
parent
dd194e2488
commit
6d42f792e4
@ -1,4 +1,4 @@
|
||||
# ZwiiCampus 1.6.02
|
||||
# ZwiiCampus 1.7.00
|
||||
|
||||
ZwiiCampus (Learning Management System) est logiciel auteur destiné à mettre en ligne des tutoriels. Il dispose de plusieurs modalités d'ouverture et d'accès des contenus. Basé sur la version 13 du CMS Zwii, la structure logicielle est solide, le framework de Zwii est éprouvé.
|
||||
|
||||
|
@ -51,7 +51,7 @@ class common
|
||||
const ACCESS_TIMER = 1800;
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '1.6.02';
|
||||
const ZWII_VERSION = '1.7.00';
|
||||
|
||||
// URL autoupdate
|
||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/campus-update/raw/branch/master/';
|
||||
|
@ -64,7 +64,7 @@ class init extends common
|
||||
]
|
||||
],
|
||||
'core' => [
|
||||
'dataVersion' => 1000,
|
||||
'dataVersion' => 1700,
|
||||
'lastBackup' => 0,
|
||||
'lastClearTmp' => 0,
|
||||
'lastAutoUpdate' => 0,
|
||||
@ -261,7 +261,8 @@ class init extends common
|
||||
'copycut' => false,
|
||||
'chmod' => false,
|
||||
'share' => false,
|
||||
'path' => null,
|
||||
'coursePath' => '',
|
||||
'homePath' => ''
|
||||
],
|
||||
'page' => [
|
||||
'add' => false,
|
||||
@ -356,7 +357,8 @@ class init extends common
|
||||
'copycut' => false,
|
||||
'chmod' => false,
|
||||
'share' => true,
|
||||
'path' => '/site/file/source/partage/',
|
||||
'coursePath' => '/site/file/source/partage/',
|
||||
'homePath' => '/site/file/source/partage/'
|
||||
],
|
||||
'page' => [
|
||||
'add' => false,
|
||||
@ -456,7 +458,8 @@ class init extends common
|
||||
'copycut' => false,
|
||||
'chmod' => false,
|
||||
'share' => true,
|
||||
'path' => '',
|
||||
'coursePath' => '',
|
||||
'homePath' => '/site/file/source/partage/'
|
||||
],
|
||||
'page' => [
|
||||
'add' => false,
|
||||
@ -552,7 +555,8 @@ class init extends common
|
||||
'copycut' => true,
|
||||
'chmod' => true,
|
||||
'share' => true,
|
||||
'path' => '',
|
||||
'coursePath' => '',
|
||||
'homePath' => '/site/file/source/partage/'
|
||||
],
|
||||
'page' => [
|
||||
'add' => true,
|
||||
|
Binary file not shown.
2
core/vendor/filemanager/config/config.php
vendored
2
core/vendor/filemanager/config/config.php
vendored
@ -71,6 +71,8 @@ if (!is_null($u) && !is_null($g) && !is_null($userId)) {
|
||||
$uploadDir = empty($sharedPath) ? '/site/file/source/' . $courseId . '/' : $sharedPath;
|
||||
|
||||
$currentPath = '../../..' . $uploadDir . '/';
|
||||
|
||||
// Affiche un message d'erreur du le dossier partagé a été supprimé.
|
||||
if (is_dir($uploadDir) == false ) {
|
||||
exit("<h1 style='color: red'>Le dossier partagé est inexistant, contactez l'administrateur.</h1>");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user