You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.8 KiB
55 lines
2.8 KiB
<?php //$id: $
|
|
/* For licensing terms, see /dokeos_license.txt */
|
|
|
|
/**
|
|
* --------------------------------------
|
|
* DEBUGGING VARS
|
|
* --------------------------------------
|
|
*/
|
|
$DEBUG = TRUE;
|
|
|
|
/**
|
|
* --------------------------------------
|
|
* DATABASE TABLE VARIABLES
|
|
* --------------------------------------
|
|
*/
|
|
$dropbox_cnf['tbl_post'] = Database::get_course_table(TABLE_DROPBOX_POST);
|
|
$dropbox_cnf['tbl_file'] = Database::get_course_table(TABLE_DROPBOX_FILE);
|
|
$dropbox_cnf['tbl_person'] = Database::get_course_table(TABLE_DROPBOX_PERSON);
|
|
$dropbox_cnf['tbl_intro'] = Database::get_course_table(TABLE_TOOL_INTRO);
|
|
$dropbox_cnf['tbl_user'] = Database::get_main_table(TABLE_MAIN_USER);
|
|
$dropbox_cnf['tbl_course_user'] = Database::get_main_table(TABLE_MAIN_COURSE_USER);
|
|
$dropbox_cnf['tbl_category'] = Database::get_course_table(TABLE_DROPBOX_CATEGORY);
|
|
$dropbox_cnf['tbl_feedback'] = Database::get_course_table(TABLE_DROPBOX_FEEDBACK);
|
|
|
|
/**
|
|
* --------------------------------------
|
|
* INITIALISE OTHER VARIABLES & CONSTANTS
|
|
* --------------------------------------
|
|
*/
|
|
$dropbox_cnf["courseId"] = $_cid;
|
|
$dropbox_cnf["sysPath"] = api_get_path('SYS_COURSE_PATH') . $_course["path"] . "/dropbox"; //path to dropbox subdir in course containing the uploaded files
|
|
$dropbox_cnf["webPath"] = api_get_path('WEB_COURSE_PATH') . $_course["path"] . "/dropbox";
|
|
$dropbox_cnf["maxFilesize"] = api_get_setting("dropbox_max_filesize"); //file size limit as imposed by the platform admin (see Dokeos Config Settings on the platform administration section)
|
|
//$dropbox_cnf["version"] = "1.4";
|
|
$dropbox_cnf["allowOverwrite"] = string_2_boolean(api_get_setting("dropbox_allow_overwrite"));
|
|
$dropbox_cnf["allowJustUpload"] = string_2_boolean(api_get_setting("dropbox_allow_just_upload"));
|
|
$dropbox_cnf["allowStudentToStudent"] = string_2_boolean(api_get_setting("dropbox_allow_student_to_student"));
|
|
$dropbox_cnf["allowGroup"] = string_2_boolean(api_get_setting("dropbox_allow_group"));
|
|
|
|
/**
|
|
* --------------------------------------
|
|
* RH: INITIALISE MAILING VARIABLES
|
|
* --------------------------------------
|
|
*/
|
|
$dropbox_cnf["allowMailing"] = string_2_boolean(api_get_setting("dropbox_allow_mailing")); // false = no mailing functionality
|
|
$dropbox_cnf["mailingIdBase"] = 10000000; // bigger than any user_id,
|
|
// allowing enough space for pseudo_ids as uploader_id, dest_user_id, user_id:
|
|
// mailing pseudo_id = dropbox_cnf("mailingIdBase") + mailing id
|
|
$dropbox_cnf["mailingZipRegexp"] = '/^(.*)(STUDENTID|USERID|LOGINNAME)(.*)\.ZIP$/i';
|
|
$dropbox_cnf["mailingWhereSTUDENTID"] = "official_code";
|
|
$dropbox_cnf["mailingWhereUSERID"] = "username";
|
|
$dropbox_cnf["mailingWhereLOGINNAME"] = "username";
|
|
$dropbox_cnf["mailingFileRegexp"] = '/^(.+)\.\w{1,4}$/';
|
|
|
|
$dropbox_cnf['sent_received_tabs']=true; |