Changeset 1106:a4487f3ca4b4 for inc
- Timestamp:
- 02/25/13 10:18:08 (12 years ago)
- Branch:
- twig
- Parents:
- 1101:7273894e61b8 (diff), 1105:ce855d61f9ce (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/prepend.php
r1092 r1106 143 143 # Constants 144 144 define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 145 define('DC_VERSION','2.5- dev');145 define('DC_VERSION','2.5-RC'); 146 146 define('DC_DIGESTS',dirname(__FILE__).'/digests'); 147 147 define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); -
inc/prepend.php
r1105 r1106 12 12 13 13 /* ------------------------------------------------------------------------------------------- */ 14 # ClearBricks, DotClear classes auto-loader14 # ClearBricks, Twig, DotClear classes auto-loader 15 15 if (@is_dir('/usr/lib/clearbricks')) { 16 16 define('CLEARBRICKS_PATH','/usr/lib/clearbricks'); … … 46 46 $__autoload['dcWorkspace'] = dirname(__FILE__).'/core/class.dc.workspace.php'; 47 47 $__autoload['dcPrefs'] = dirname(__FILE__).'/core/class.dc.prefs.php'; 48 $__autoload['dcTwigPage'] = dirname(__FILE__).'/core/class.dc.twig.page.php'; 48 49 49 50 $__autoload['rsExtPost'] = dirname(__FILE__).'/core/class.dc.rs.extensions.php'; … … 52 53 $__autoload['rsExtUser'] = dirname(__FILE__).'/core/class.dc.rs.extensions.php'; 53 54 55 $__autoload['dcAdminContext'] = dirname(__FILE__).'/admin/class.dc.admincontext.php'; 54 56 $__autoload['dcMenu'] = dirname(__FILE__).'/admin/class.dc.menu.php'; 55 57 $__autoload['dcPage'] = dirname(__FILE__).'/admin/lib.dc.page.php'; … … 63 65 $__autoload['context'] = dirname(__FILE__).'/public/lib.tpl.context.php'; 64 66 $__autoload['dcUrlHandlers'] = dirname(__FILE__).'/public/lib.urlhandlers.php'; 67 $__autoload['dcForm'] = dirname(__FILE__).'/admin/class.dc.form.php'; 68 $__autoload['dcFormExtension'] = dirname(__FILE__).'/admin/class.dc.form.php'; 69 $__autoload['dcTabExtension'] = dirname(__FILE__).'/admin/class.dc.tab.php'; 65 70 66 71 # Clearbricks extensions 67 72 html::$absolute_regs[] = '/(<param\s+name="movie"\s+value=")(.*?)(")/msu'; 68 73 html::$absolute_regs[] = '/(<param\s+name="FlashVars"\s+value=".*?(?:mp3|flv)=)(.*?)(&|")/msu'; 74 75 if (@is_dir('/usr/lib/twig')) { 76 define('TWIG_PATH','/usr/lib/twig'); 77 } elseif (is_dir(dirname(__FILE__).'/libs/twig')) { 78 define('TWIG_PATH',dirname(__FILE__).'/libs/twig'); 79 } elseif (isset($_SERVER['TWIG_PATH']) && is_dir($_SERVER['TWIG_PATH'])) { 80 define('TWIG_PATH',$_SERVER['TWIG_PATH']); 81 } 82 83 if (!defined('TWIG_PATH') || !is_dir(TWIG_PATH)) { 84 exit('No Twig path defined'); 85 } 86 require TWIG_PATH.'/Autoloader.php'; 87 Twig_Autoloader::register(); 88 69 89 /* ------------------------------------------------------------------------------------------- */ 70 90
Note: See TracChangeset
for help on using the changeset viewer.