[ Index ] |
|
Code source de Claroline 188 |
1 <?php // $Id: CLMAIN.def.conf.inc.php,v 1.70 2006/12/21 15:42:59 mathieu Exp $ 2 if ( count( get_included_files() ) == 1 ) die( '---' ); 3 /** 4 * CLAROLINE 5 * This file describe the parameter for Claroline main config file 6 * 7 * @version 1.8 $Revision: 1.70 $ 8 * 9 * @copyright 2001-2006 Universite catholique de Louvain (UCL) 10 * 11 * @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE 12 * 13 * @see http://www.claroline.net/wiki/config_def/ 14 * 15 * @author Claro Team <cvs@claroline.net> 16 * 17 * @package Kernel 18 */ 19 20 // CONFIG HEADER 21 22 $conf_def['config_code']='CLMAIN'; 23 $conf_def['config_file']='claro_main.conf.php'; 24 $conf_def['config_name']=' Main settings'; 25 $conf_def['config_class']='platform'; 26 27 // SECTION 28 29 $conf_def['section']['ADMINISTRATIVE_SETTING']['label']='General'; 30 $conf_def['section']['ADMINISTRATIVE_SETTING']['description']='Information about your platform and your organisation'; 31 $conf_def['section']['ADMINISTRATIVE_SETTING']['properties'] = 32 array ( 'siteName' 33 , 'institution_name' 34 , 'institution_url' 35 ); 36 37 $conf_def['section']['LAYOUT']['label']='Layout'; 38 $conf_def['section']['LAYOUT']['properties'] = 39 array ( 'claro_stylesheet' 40 , 'siteLogo' 41 , 'institutionLogo' 42 ); 43 44 $conf_def['section']['LANGUAGE']['label']='Language'; 45 $conf_def['section']['LANGUAGE']['description']=''; 46 $conf_def['section']['LANGUAGE']['properties'] = 47 array ( 'platformLanguage' 48 , 'language_to_display' 49 , 'CLAROLANG' 50 ); 51 52 $conf_def['section']['ADMINISTRATOR_SETTING']['label']='Contact'; 53 $conf_def['section']['ADMINISTRATOR_SETTING']['description']='These informations are displayed on the footer of the platform'; 54 $conf_def['section']['ADMINISTRATOR_SETTING']['properties'] = 55 array ( 'administrator_name' 56 , 'administrator_email' 57 , 'administrator_phone' 58 ); 59 60 $conf_def['section']['FILE_SYSTEM_SETTING']['label']='File system settings'; 61 $conf_def['section']['FILE_SYSTEM_SETTING']['properties'] = 62 array ( 'rootWeb' 63 , 'rootSys' 64 , 'urlAppend' 65 , 'mysqlRepositorySys' 66 , 'tmpPathSys' 67 , 'cacheRepository' 68 , 'garbageRepositorySys' 69 , 'clarolineRepositoryAppend' 70 , 'coursesRepositoryAppend' 71 , 'rootAdminAppend' 72 , 'imgRepositoryAppend' 73 , 'userImageRepositoryAppend' 74 ); 75 76 $conf_def['section']['DB_CONNECT_SETTING']['label']= 'MySQL database settings'; 77 $conf_def['section']['DB_CONNECT_SETTING']['properties'] = 78 array ( 'dbHost' 79 , 'dbLogin' 80 , 'dbPass' 81 , 'mainDbName' 82 , 'statsDbName' 83 , 'singleDbEnabled' 84 , 'mainTblPrefix' 85 , 'statsTblPrefix' 86 , 'dbNamePrefix' 87 , 'dbGlu' 88 , 'courseTablePrefix' 89 ); 90 91 $conf_def['section']['SMTP']['label']='SMTP'; 92 $conf_def['section']['SMTP']['description']='Mail server configuration'; 93 $conf_def['section']['SMTP']['properties'] = 94 array ( 'smtp_host' 95 , 'smtp_username' 96 , 'smtp_password' 97 ); 98 99 $conf_def['section']['RIGHT']['label']='Right'; 100 $conf_def['section']['RIGHT']['properties'] = 101 array ( 'allowSelfReg' 102 , 'allowToSelfEnroll' 103 ); 104 105 $conf_def['section']['ADVANCED']['label']='Advanced settings'; 106 $conf_def['section']['ADVANCED']['properties'] = 107 array ( 'userPasswordCrypted' 108 , 'is_trackingEnabled' 109 , 'claro_editor' 110 , 'claro_texRendererUrl' 111 , 'platform_id' 112 , 'CLARO_DEBUG_MODE' 113 , 'CLARO_PROFILE_SQL' 114 , 'DEVEL_MODE' 115 , 'warnSessionLost' 116 , 'claro_brailleViewMode' 117 , 'secureDocumentDownload' 118 ); 119 120 // Platform 121 122 $conf_def_property_list['siteName'] = 123 array ('label' => 'Platform name' 124 ,'description' => '' 125 ,'default' => 'Claroline' 126 ,'type' => 'string' 127 ,'display' => TRUE 128 ,'readonly' => FALSE 129 ); 130 131 $conf_def_property_list['siteLogo'] = 132 array ('label' => 'Platform logo url' 133 ,'description' => 'Display the logo of the platform. (http://www.domain.tld/logo.gif)' 134 ,'default' => '' 135 ,'type' => 'string' 136 ,'display' => TRUE 137 ,'readonly' => FALSE 138 ); 139 140 // Institution 141 $conf_def_property_list['institution_name'] = 142 array ('label' => 'Organisation Name' 143 ,'default' => '' 144 ,'description' => 'Name displayed in the top banner.' 145 ,'type' => 'string' 146 ,'display' => TRUE 147 ,'readonly' => FALSE 148 ); 149 $conf_def_property_list['institution_url'] = 150 array ('label' => 'Organisation website' 151 ,'default' => '' 152 ,'type' => 'string' 153 ,'display' => TRUE 154 ,'readonly' => FALSE 155 ); 156 $conf_def_property_list['institutionLogo'] = 157 array ('label' => 'Organisation logo url' 158 ,'description' => 'Display the logo of the organisation. (http://www.domain.tld/logo.gif)' 159 ,'default' => '' 160 ,'type' => 'string' 161 ,'display' => TRUE 162 ,'readonly' => FALSE 163 ); 164 165 // Language 166 167 $conf_def_property_list['platformLanguage'] = 168 array ('label' => 'Platform language' 169 ,'description' => 'Set the default language of the platform. It doesn\'t prevent course managers to set an other language for each course they create.' 170 ,'default' => 'english' 171 ,'type' => 'enum' 172 , 'acceptedValueType' => 'lang' 173 ,'display' => TRUE 174 ,'readonly' => FALSE 175 ); 176 177 $conf_def_property_list['language_to_display'] = 178 array ('label' => 'Personal language selector' 179 ,'description' => 'For multilingual platform. Allow user to select his language from the list.' 180 ,'default' => array() 181 ,'type' => 'multi' 182 ,'display' => true 183 ,'acceptedValueType' => 'lang' 184 ,'readonly' => FALSE 185 ); 186 187 $conf_def_property_list['CLAROLANG'] = 188 array('label' => 'Language mode' 189 ,'description' => 'Translation: use a single language file'."\n".'Production: each script use its own language file.' 190 ,'default' => 'TRANSLATION' 191 ,'type' => 'enum' 192 ,'display' => TRUE 193 ,'readonly' => FALSE 194 ,'container' => 'CONST' 195 ,'acceptedValue' => array ('TRANSLATION'=>'Translation' 196 ,'PRODUCTION'=>'Production' 197 ) 198 ); 199 200 // Database settings 201 202 $conf_def_property_list['dbHost'] = 203 array ('label' => 'Host name' 204 ,'default' => 'localhost' 205 ,'type' => 'string' 206 ,'display' => TRUE 207 ,'readonly' => FALSE 208 ,'technicalInfo' => 'The hostname of mysql server' 209 ); 210 211 212 $conf_def_property_list['dbLogin'] = 213 array ('label' => 'Login' 214 ,'default' => 'root' 215 ,'type' => 'string' 216 ,'display' => TRUE 217 ,'readonly' => FALSE 218 ,'technicalInfo' => 'The login given by your administrator to connect on the mysql server' 219 ,'description' => '' 220 ); 221 222 223 $conf_def_property_list['dbPass'] = 224 array ('label' => 'Password' 225 ,'default' => '' 226 ,'type' => 'string' 227 ,'display' => TRUE 228 ,'readonly' => FALSE 229 ,'technicalInfo' => 'The clear password' 230 ); 231 232 $conf_def_property_list['dbNamePrefix'] = 233 array ('label' => 'Prefix for course table / db names' 234 ,'default' => 'c_' 235 ,'type' => 'string' 236 ,'display' => TRUE 237 ,'readonly' => FALSE 238 ,'description' => 'This prefix could allow to order more easily the tables / DB in the user interface of your server technical back office ' 239 ,'technicalInfo' => 'Prefix all created base (for courses) with this string' 240 ); 241 242 $conf_def_property_list['mainDbName'] = 243 array ('label' => 'Main database name' 244 ,'default' => 'claroline' 245 ,'type' => 'string' 246 ,'display' => TRUE 247 ,'readonly' => FALSE 248 ,'description' => 'Change this setting only if it\'s absolutely required.' 249 ); 250 251 $conf_def_property_list['mainTblPrefix'] = 252 array ('label' => 'Prefix for main table names' 253 ,'default' => '' 254 ,'type' => 'string' 255 ,'display' => TRUE 256 ,'readonly' => TRUE 257 ); 258 259 260 $conf_def_property_list['statsDbName'] = 261 array ( 'label' => 'Tracking database name' 262 , 'description' => 'This is where tracking and statistics data are stored. This database can be the same as the main database.' 263 ,'default' => 'claroline' 264 , 'type' => 'string' 265 , 'display' => TRUE 266 , 'readonly' => FALSE 267 ); 268 269 $conf_def_property_list['statsTblPrefix'] = 270 array ( 'label' => 'Prefix for tracking table names' 271 , 'description' => '' 272 , 'default' => '' 273 , 'type' => 'string' 274 , 'display' => TRUE 275 , 'readonly' => TRUE 276 ); 277 278 $conf_def_property_list['platform_id'] = 279 array ('label' => 'unique id of the platform' 280 ,'type' => 'string' 281 ,'technicalDesc' => 'id for this campus. Would be unique' 282 ,'default' => md5(realpath(__FILE__)) 283 ,'display' => FALSE 284 ,'readonly' => TRUE 285 ); 286 287 $conf_def_property_list['is_trackingEnabled'] = 288 array ('label' => 'Tracking' 289 ,'description' => 'Log of user activities on the whole platform (course access, tool use, ...).' 290 ,'default' => TRUE 291 ,'type' => 'boolean' 292 ,'display' => TRUE 293 ,'readonly' => FALSE 294 ,'acceptedValue' => array ('TRUE'=>'On', 'FALSE' => 'Off') 295 ); 296 297 $conf_def_property_list['singleDbEnabled'] = 298 array ('label' => 'Database mode' 299 ,'default' => TRUE 300 ,'type' => 'boolean' 301 ,'display' => TRUE 302 ,'readonly' => TRUE 303 ,'acceptedValue' => array ('TRUE'=>'Single', 'FALSE' => 'Multiple') 304 ); 305 306 $conf_def_property_list['dbGlu'] = 307 array ('label' => 'db glu' 308 ,'description' => 'To find a table name, the choose database name is prepend to the table name.'."\n" 309 .'db glu is use between these two name.'."\n"."\n" 310 .'In multi db mode, IT MUST be a dot.'."\n" 311 .'In single db mode, IT CAN\'T be a dot.'."\n" 312 ,'default' => '' 313 ,'type' => 'string' 314 ,'display' => FALSE 315 ,'readonly' => TRUE 316 ); 317 318 $conf_def_property_list['courseTablePrefix'] = 319 array ('label' => 'Course name table prefix' 320 ,'description' => 'This prefix is added to each course table name. It\'s usefull in single database mode as it groups all course tables together.' 321 ,'default' => '' 322 ,'type' => 'string' 323 ,'display' => FALSE 324 ,'readonly' => FALSE 325 ); 326 327 $conf_def_property_list['mysqlRepositorySys'] = 328 array ('label' => 'Mysql Base Path' 329 ,'description' => 'This is the physical path to databases storage. This path is optional, use by the quota and size.' 330 ,'default' => '' 331 ,'type' => 'syspath' 332 ,'display' => FALSE 333 ,'readonly' => FALSE 334 ); 335 336 // SMTP 337 338 $conf_def_property_list['smtp_host'] = 339 array ('label' => 'SMTP server(s)' 340 ,'description' => 'Give a SMTP server name to turn on SMTP mode. (e.g. smtp1.site.com or smtp1.site.com;smtp2.site.com)' 341 ,'default' => '' 342 ,'type' => 'string' 343 ,'display' => TRUE 344 ); 345 346 $conf_def_property_list['smtp_username'] = 347 array ('label' => 'Username' 348 ,'description' => 'Give a username and password to turn on SMTP authentication.' 349 ,'default' => '' 350 ,'type' => 'string' 351 ,'display' => TRUE 352 ); 353 354 $conf_def_property_list['smtp_password'] = 355 array ('label' => 'Password' 356 ,'description' => '' 357 ,'default' => '' 358 ,'type' => 'string' 359 ,'display' => TRUE 360 ); 361 362 // Path 363 364 $conf_def_property_list['rootWeb'] = 365 array ('label' => 'Platform web URL' 366 ,'description' => 'Example : http://www.yourdomain.tld/mycampus/' 367 ,'default' => 'http://www.yourdomain.tld/mycampus/' 368 ,'type' => 'urlpath' 369 ,'display' => TRUE 370 ,'readonly' => FALSE 371 ); 372 373 $conf_def_property_list['urlAppend'] = 374 array ('label' => 'URL trail' 375 ,'description' => 'Common part of both parameters above.' 376 ,'default' => 'mycampus' 377 ,'type' => 'string' 378 ,'display' => TRUE 379 ,'readonly' => FALSE 380 ,'technicalInfo' => 'no trailing / in this value' 381 ); 382 383 $conf_def_property_list['rootSys'] = 384 array ('label' => 'Platform local path ' 385 ,'description' => 'Relative to the complete platform url' 386 ,'default' => '' 387 ,'type' => 'syspath' 388 ,'display' => TRUE 389 ,'readonly' => FALSE 390 ,'technicalInfo' => 'The hostname of mysql server' 391 ); 392 393 394 $conf_def_property_list['tmpPathSys'] = 395 array ('label' => 'Repository for temporary files and dirs' 396 , 'description' => 'Note : this repository should be protected with a .htaccess or 397 be placed outside the web. Because there contain data of private courses. Claroline Would be able to read and write in this dir' 398 ,'default' => 'tmp/' 399 ,'display' => true 400 ,'type' => 'relpath' 401 ); 402 403 $conf_def_property_list['cacheRepository'] = 404 array ('label' => 'Repository for cache files and dirs' 405 , 'description' => 'Note : this repository should be protected with a .htaccess or 406 be placed outside the web. Because there contain data of private courses. Claroline Would be able to read and write in this dir' 407 ,'default' => 'tmp/cache/' 408 ,'display' => true 409 ,'type' => 'relpath' 410 ); 411 412 $conf_def_property_list['garbageRepositorySys'] = 413 array ('label' => 'Garbage' 414 ,'description' => 'Absolute sys path to the place where are move data of a deleted course.' 415 ,'default' => 'tmp/garbage/' 416 ,'type' => 'syspath' 417 ,'display' => FALSE 418 ,'readonly' => FALSE 419 ); 420 421 // Layout 422 423 $conf_def_property_list['claro_stylesheet'] = 424 array ('label' => 'Theme' 425 ,'description' => 'Set the Cascading Style Sheet (CSS) layout.' 426 ,'default' => 'default.css' 427 ,'type' => 'enum' 428 ,'acceptedValueType' => 'css' 429 ,'display' => TRUE 430 ,'readonly' => FALSE 431 ); 432 433 $conf_def_property_list['claro_editor'] = 434 array ('label' => 'Editor' 435 ,'description' => 'Set the editor that will replace standard html textarea.' 436 ,'default' => 'tiny_mce' 437 ,'type' => 'enum' 438 ,'acceptedValueType' => 'editor' 439 ,'display' => TRUE 440 ,'readonly' => FALSE 441 ); 442 443 // Administrator 444 445 $conf_def_property_list['administrator_name'] = 446 array ('label' => 'Name' 447 ,'description' => '' 448 ,'default' => '' 449 ,'type' => 'string' 450 ,'display' => TRUE 451 ,'readonly' => FALSE 452 ); 453 454 $conf_def_property_list['administrator_email'] = 455 array ('label' => 'E-mail' 456 ,'description' => '' 457 ,'type' => 'string' 458 ,'display' => TRUE 459 ,'readonly' => FALSE 460 ); 461 $conf_def_property_list['administrator_phone'] = 462 array ('label' => 'Phone' 463 ,'default' => '' 464 ,'type' => 'string' 465 ,'display' => TRUE 466 ,'readonly' => FALSE 467 ); 468 469 // Latex 470 471 $conf_def_property_list['claro_texRendererUrl'] = 472 array ('label' => 'Mathematical renderer URL' 473 ,'description' => 'This renderer is used for TEX/LaTEX expressions. It is available into the \'claroline/inc/lib/\' directory and has to be copied on a server location where CGI programs are expected.' 474 ,'technicalInfo' => 475 'Put above the complete url of your TEX renderer. This url doesn\'t have to be 476 specially on the same server than Claroline. 477 478 Claroline uses the MIMETEX renderer created by John Forkosh and available 479 under the GNU licences at http://www.forkosh.com. 480 481 MIMETEX parses TEX/LaTEX mathematical expressions and emits gif images from 482 them. You\'ll find precompilated versions of MIMETEX for various platform in 483 the "claroline/inc/lib/" directory. Move the executable file that 484 corresponding to your platform into its "cgi-bin/" directory, where cgi 485 programs are expected (this directory are typically of the form 486 "somewhere/www/cgi-bin/"), and change the execution permissions if necessary. 487 488 If you\'re not able or allowed to set MIMETEX on a server, leave the setting 489 below to "false". Claroline will then try to use another method for rendering 490 TEX/LaTEX mathematical expression, relying on a plug-in client side this 491 time. For this, user has to install the TECHEXPLORER plug-in, freely 492 available for both Windows, Macintosh and Linux at 493 http://www.integretechpub.com/.' 494 ,'default' => '' 495 ,'type' => 'string' 496 ,'display' => TRUE 497 ,'readonly' => FALSE 498 ); 499 500 $conf_def_property_list['userPasswordCrypted'] = 501 array ('label' => 'Crypt passwords' 502 ,'technical' => 'By default use claroCrypt as authType' 503 ,'default' => FALSE 504 ,'type' => 'boolean' 505 ,'display' => false 506 ,'readonly' => True 507 ,'acceptedValue' => array('TRUE' => 'Yes', 'FALSE' => 'No') 508 ); 509 510 $conf_def_property_list['allowSelfReg'] = 511 array ('label' => 'User account creation allowed' 512 ,'description' => 'Display link "Create user account" on the platform homepage.' 513 ,'default' => TRUE 514 ,'type' => 'boolean' 515 ,'display' => TRUE 516 ,'readonly' => FALSE 517 ,'acceptedValue' => array('TRUE' => 'Yes', 'FALSE' => 'No') 518 ); 519 520 $conf_def_property_list['clarolineRepositoryAppend'] = 521 array ('label' => 'Relative path from root campus to claroline code' 522 ,'type' => 'relpath' 523 ,'default' => 'claroline/' 524 ,'display' => false 525 ); 526 $conf_def_property_list['coursesRepositoryAppend'] = 527 array ( 'label' => 'relative path from root campus to courses' 528 , 'type' => 'relpath' 529 , 'default' => 'courses/' 530 ,'display' => false 531 ); 532 533 $conf_def_property_list['rootAdminAppend'] = 534 array ('label' => 'Relative path from claroline kernel to root of admin section' 535 ,'type' => 'relpath' 536 ,'default' => 'admin/' 537 ,'display' => false 538 ); 539 $conf_def_property_list['imgRepositoryAppend'] = 540 array ('label' => 'Relative path from claroline web to icon set' 541 ,'type' => 'relpath' 542 ,'default' => 'img/' 543 ,'display' => FALSE 544 ,'readonly' => TRUE 545 ); 546 547 $conf_def_property_list['userImageRepositoryAppend'] = 548 array ('label' => 'relative path from root web to user pic repository' 549 ,'type' => 'relpath' 550 ,'display' => FALSE 551 ,'default' => 'platform/img/users/' 552 ); 553 554 $conf_def_property_list['CLARO_DEBUG_MODE'] = 555 array ('label' => 'Debug mode' 556 ,'description' => 'More verbose when error occurs.' 557 ,'type' => 'boolean' 558 ,'default' => false 559 ,'container' => 'CONST' 560 ,'display' => TRUE 561 ,'readonly' => FALSE 562 , 'acceptedValue' => array('TRUE' => 'On', 'FALSE' => 'Off') 563 ); 564 565 $conf_def_property_list['CLARO_PROFILE_SQL'] = 566 array ('label' => 'Profile SQL' 567 ,'description' => 'Profile SQL in DEBUG MODE.' ."\n" . 'Display for each request :duration, counter, statement ' 568 ,'type' => 'boolean' 569 ,'default' => false 570 ,'container' => 'CONST' 571 ,'display' => TRUE 572 ,'readonly' => FALSE 573 , 'acceptedValue' => array('TRUE' => 'On', 'FALSE' => 'Off') 574 ); 575 576 $conf_def_property_list['warnSessionLost'] = 577 array ('label' => 'Session lost warning' 578 ,'description' => 'Warn users when they loose their session on the platform' 579 ,'type' => 'boolean' 580 ,'default' => TRUE 581 ,'display' => TRUE 582 ,'readonly' => FALSE 583 , 'acceptedValue' => array('TRUE' => 'On', 'FALSE' => 'Off') 584 ); 585 586 $conf_def_property_list['DEVEL_MODE'] = 587 array ('label' => 'Development mode' 588 ,'description' => 'Add addtionnal tools in the SDK section of the platform administration.' 589 ,'type' => 'boolean' 590 ,'default' => false 591 ,'container' => 'CONST' 592 ,'display' => TRUE 593 ,'readonly' => FALSE 594 ,'acceptedValue' => array ('TRUE'=>'On' 595 ,'FALSE'=>'Off') 596 ); 597 598 $conf_def_property_list['allowToSelfEnroll'] 599 = array ('label' => 'Allow enrolment/unenrolment to courses by the users' 600 ,'description' => 'Display links to enrol/unenrol to course on the homepage of the user' 601 ,'default' => TRUE 602 ,'type' => 'boolean' 603 ,'display' => TRUE 604 ,'readonly' => FALSE 605 ,'acceptedValue' => array ( 'TRUE'=> 'Yes', 'FALSE'=>'No' ) 606 ); 607 608 609 $conf_def_property_list['module_cache_filename'] 610 = array ('label' => 'filename for one file module inclusion' 611 ,'description' => '' 612 ,'default' => 'moduleCache.inc.php' 613 ,'type' => 'filename' 614 ,'display' => FALSE 615 ,'readonly' => TRUE 616 ,'acceptedValue' => array ( 'pattern'=> '*.inc.php') 617 ); 618 619 $conf_def_property_list['claro_brailleViewMode'] = 620 array ('label' => 'Display banner' 621 ,'description' => 'This feature is use for institute with blind users. ' . "\n" . ' I fact, System would be ehanced to activate this view user by user' 622 ,'default' => false 623 ,'type' => 'boolean' 624 ,'display' => false 625 ,'readonly' => false 626 ,'acceptedValue' => array ('FALSE' => 'on top', 'TRUE'=>'on bottom') 627 ); 628 629 $conf_def_property_list['secureDocumentDownload'] = 630 array ( 'description' => 'Increase the security of file download. This option only works on Apache Server. To be really secure, this option have to be completed by an .htaccess file on the course folders.' 631 , 'label' => 'Secure document download' 632 , 'default' => FALSE 633 , 'type' => 'boolean' 634 , 'acceptedValue' => array ('TRUE'=>'On' 635 ,'FALSE'=>'Off' 636 ) 637 , 'display' => TRUE 638 , 'readonly' => FALSE 639 ); 640 641 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 14:38:42 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |