dokeos
[ class tree: dokeos ] [ index: dokeos ] [ all elements ]

Source for file dropbox_config.inc.php

Documentation is available at dropbox_config.inc.php

  1. <?php
  2. /*
  3. ==============================================================================
  4.     Dokeos - elearning and course management software
  5.  
  6.     Copyright (c) 2006 Dokeos S.A.
  7.     Copyright (c) 2006 Ghent University (UGent)
  8.     Copyright (c) various contributors
  9.  
  10.     For a full list of contributors, see "credits.txt".
  11.     The full license can be read in "license.txt".
  12.  
  13.     This program is free software; you can redistribute it and/or
  14.     modify it under the terms of the GNU General Public License
  15.     as published by the Free Software Foundation; either version 2
  16.     of the License, or (at your option) any later version.
  17.  
  18.     See the GNU General Public License for more details.
  19.  
  20.     Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  21.     Mail: info@dokeos.com
  22. ==============================================================================
  23. */
  24. /**
  25.  * --------------------------------------
  26.  *       DEBUGGING VARS
  27.  * --------------------------------------
  28.  */
  29. $DEBUG TRUE;
  30.  
  31. /**
  32.  * --------------------------------------
  33.  *       DATABASE TABLE VARIABLES
  34.  * --------------------------------------
  35.  */
  36. $dropbox_cnf['tbl_post']         Database::get_course_table(TABLE_DROPBOX_POST);
  37. $dropbox_cnf['tbl_file']         Database::get_course_table(TABLE_DROPBOX_FILE);
  38. $dropbox_cnf['tbl_person']         Database::get_course_table(TABLE_DROPBOX_PERSON);
  39. $dropbox_cnf['tbl_intro']         Database::get_course_table(TABLE_TOOL_INTRO);
  40. $dropbox_cnf['tbl_user']         Database::get_main_table(TABLE_MAIN_USER);
  41. $dropbox_cnf['tbl_course_user']    Database::get_main_table(TABLE_MAIN_COURSE_USER);
  42. $dropbox_cnf['tbl_category']     Database::get_course_table(TABLE_DROPBOX_CATEGORY);
  43. $dropbox_cnf['tbl_feedback']     Database::get_course_table(TABLE_DROPBOX_FEEDBACK);
  44.  
  45. /**
  46.  * --------------------------------------
  47.  *       INITIALISE OTHER VARIABLES & CONSTANTS
  48.  * --------------------------------------
  49.  */
  50. $dropbox_cnf["courseId"]                 $_cid;
  51. $dropbox_cnf["sysPath"]                 api_get_path('SYS_COURSE_PATH'$_course["path""/dropbox"//path to dropbox subdir in course containing the uploaded files
  52. $dropbox_cnf["webPath"]                 api_get_path('WEB_COURSE_PATH'$_course["path""/dropbox";
  53. $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)
  54. //$dropbox_cnf["version"]                 = "1.4";
  55. $dropbox_cnf["allowOverwrite"]             string_2_boolean(api_get_setting("dropbox_allow_overwrite"));
  56. $dropbox_cnf["allowJustUpload"]         string_2_boolean(api_get_setting("dropbox_allow_just_upload"));
  57. $dropbox_cnf["allowStudentToStudent"]     string_2_boolean(api_get_setting("dropbox_allow_student_to_student"));
  58. $dropbox_cnf["allowGroup"]                 string_2_boolean(api_get_setting("dropbox_allow_group"));
  59.  
  60. /**
  61.  * --------------------------------------
  62.  * RH:   INITIALISE MAILING VARIABLES
  63.  * --------------------------------------
  64.  */
  65. $dropbox_cnf["allowMailing"string_2_boolean(api_get_setting("dropbox_allow_mailing"));  // false = no mailing functionality
  66. $dropbox_cnf["mailingIdBase"10000000;  // bigger than any user_id,
  67. // allowing enough space for pseudo_ids as uploader_id, dest_user_id, user_id:
  68. // mailing pseudo_id = dropbox_cnf("mailingIdBase") + mailing id
  69. $dropbox_cnf["mailingZipRegexp"'/^(.*)(STUDENTID|USERID|LOGINNAME)(.*)\.ZIP$/i';
  70. $dropbox_cnf["mailingWhereSTUDENTID""official_code";
  71. $dropbox_cnf["mailingWhereUSERID""username";
  72. $dropbox_cnf["mailingWhereLOGINNAME""username";
  73. $dropbox_cnf["mailingFileRegexp"'/^(.+)\.\w{1,4}$/';
  74.  
  75. $dropbox_cnf['sent_received_tabs']=true;
  76.  
  77.  
  78.  
  79.  
  80. ?>

Documentation generated on Thu, 12 Jun 2008 13:21:12 -0500 by phpDocumentor 1.4.1