linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file define.php

Documentation is available at define.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage config_files
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //BE CAREFULL THIS FILE IS A SYSTEM FILE : use define_release.ini and define_db.ini for settings
  12.  
  13. /////////////////////////////////////
  14. //    VARIABLES GLOABLES
  15. /////////////////////////////////////
  16.  
  17. define('END_LINE',        "\n");
  18. define('TAB_LINE',        "\t");
  19.  
  20. $GLOBALS['authorized_theme_sections'array ('THEME_SETTINGS');
  21. $GLOBALS['authorized_db_sections'array ('DATABASE');
  22. $GLOBALS['authorized_release_sections'array ('LANGUAGE_SETTINGS','LOCALES_SETTINGS','MODULES_SETTINGS','DEBUG_SETTINGS''SYSTEM_SETTINGS''SERVER_SETTINGS','MAIL_SETTINGS','MAIL_INFORMATIONS''SUPPORT_SETTINGS','LOGS_SETTINGS');
  23.  
  24. $GLOBALS['current_title'array()// HTML <title> tag
  25.  
  26. $GLOBALS['links'array()// Localized variables
  27. $GLOBALS['filters'array()// Localized (filters) variables
  28.  
  29. $GLOBALS['menuitems'array (
  30.                         'news'
  31.                         'project'
  32.                         'dashboard',
  33.                         'workgroup'
  34.                         'publication',
  35.                         'directory'
  36.                         );
  37.  
  38. //inclusion des paramètres configurés  dans les fichiers *.ini
  39. include_once ("../class/class.config_file.php");
  40.  
  41. if(!isset($CONFIG))
  42. {
  43.   $CONFIG new config_file;
  44.   $CONFIG->initializeIniParams();
  45. }
  46.  
  47. define('THEME_ADMIN_PATH',        "../".THEME_DIRECTORY."/admin/".THEME_ADMIN."/");
  48. define('THEME_PUBLIC_PATH',        "../".THEME_DIRECTORY."/public/".THEME_PUBLIC."/");
  49.  
  50.  
  51. // Include ONLY the desired language PRODUCTION mode
  52. include_once ('../languages/' .LANGUAGE'/define.php');
  53. $GLOBALS['links'array_merge($GLOBALS['links']$l10n_links);
  54. $GLOBALS['filters'array_merge($GLOBALS['filters']$l10n_filters);
  55.  
  56. // Include ALL languages for demonstration - not tested yet
  57. //$a = availableLanguages();
  58. //foreach ($a as &$value) {
  59. //  include_once ('../languages/' .LANGUAGE. '/define.php');
  60. //  $GLOBALS['links'] = array_merge($GLOBALS['links'], $l10n_links);
  61. //  $GLOBALS['filters'] = array_merge($GLOBALS['filters'], $l10n_filters);
  62. //}
  63.  
  64.  
  65. /**
  66.  * These globals have to be declared after $GLOBALS['links'] array.
  67.  */ 
  68. $GLOBALS['datePicker_includes'array('project|add''project|mod',
  69.                'dashboard|add''dashboard|mod',
  70.                'workshop|add_cal''workshop|mod_cal'
  71.                'prefs-utilisateur|');
  72.  
  73. $GLOBALS['multiSelect_includes'array('project|add''project|mod');
  74.  
  75. ?>

Documentation generated on Fri, 16 Oct 2009 09:31:08 +0200 by phpDocumentor 1.4.1