Changeset 2593:6741802596a0 for inc/prepend.php
- Timestamp:
- 11/27/13 16:32:38 (12 years ago)
- Branch:
- twig
- Children:
- 2612:1537212bd291, 2613:014098e27ea0
- Parents:
- 2468:d7fda5a0bd39 (diff), 2589:3d427735ca70 (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
r2468 r2593 35 35 $__autoload['dcPostMedia'] = dirname(__FILE__).'/core/class.dc.postmedia.php'; 36 36 $__autoload['dcModules'] = dirname(__FILE__).'/core/class.dc.modules.php'; 37 $__autoload['dcPlugins'] = dirname(__FILE__).'/core/class.dc.plugins.php'; 37 38 $__autoload['dcThemes'] = dirname(__FILE__).'/core/class.dc.themes.php'; 38 39 $__autoload['dcRestServer'] = dirname(__FILE__).'/core/class.dc.rest.php'; … … 335 336 } 336 337 } 337 ?> -
inc/prepend.php
r2567 r2593 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'); … … 47 47 $__autoload['dcWorkspace'] = dirname(__FILE__).'/core/class.dc.workspace.php'; 48 48 $__autoload['dcPrefs'] = dirname(__FILE__).'/core/class.dc.prefs.php'; 49 $__autoload['dcTwigPage'] = dirname(__FILE__).'/core/class.dc.twig.page.php'; 49 50 $__autoload['dcStore'] = dirname(__FILE__).'/core/class.dc.store.php'; 50 51 $__autoload['dcStoreReader'] = dirname(__FILE__).'/core/class.dc.store.reader.php'; … … 57 58 $__autoload['rsExtUser'] = dirname(__FILE__).'/core/class.dc.rs.extensions.php'; 58 59 60 $__autoload['dcAdminContext'] = dirname(__FILE__).'/admin/class.dc.admincontext.php'; 59 61 $__autoload['dcMenu'] = dirname(__FILE__).'/admin/class.dc.menu.php'; 60 62 $__autoload['dcPage'] = dirname(__FILE__).'/admin/lib.dc.page.php'; … … 75 77 $__autoload['dcCommentsActionsPage'] = dirname(__FILE__).'/admin/actions/class.dcactioncomments.php'; 76 78 $__autoload['dcActionsPage'] = dirname(__FILE__).'/admin/actions/class.dcaction.php'; 79 $__autoload['dcForm'] = dirname(__FILE__).'/admin/class.dc.form.php'; 80 $__autoload['dcFormExtension'] = dirname(__FILE__).'/admin/class.dc.form.php'; 81 $__autoload['dcTabExtension'] = dirname(__FILE__).'/admin/class.dc.tab.php'; 82 $__autoload['dcItemList'] = dirname(__FILE__).'/admin/class.dc.list.php'; 83 $__autoload['dcListFetcher'] = dirname(__FILE__).'/admin/class.dc.list.php'; 84 85 foreach (array('dcFilterSet', 'dcFilter','dcFilterCombo','dcFilterText','dcFilterBoolean') as $c) { 86 $__autoload[$c] = dirname(__FILE__).'/admin/class.dc.filter.php'; 87 } 77 88 78 89 # Clearbricks extensions 79 90 html::$absolute_regs[] = '/(<param\s+name="movie"\s+value=")(.*?)(")/msu'; 80 91 html::$absolute_regs[] = '/(<param\s+name="FlashVars"\s+value=".*?(?:mp3|flv)=)(.*?)(&|")/msu'; 92 93 if (@is_dir('/usr/lib/twig')) { 94 define('TWIG_PATH','/usr/lib/Twig'); 95 } elseif (is_dir(dirname(__FILE__).'/libs/Twig')) { 96 define('TWIG_PATH',dirname(__FILE__).'/libs/Twig'); 97 } elseif (isset($_SERVER['TWIG_PATH']) && is_dir($_SERVER['TWIG_PATH'])) { 98 define('TWIG_PATH',$_SERVER['TWIG_PATH']); 99 } 100 101 if (!defined('TWIG_PATH') || !is_dir(TWIG_PATH)) { 102 exit('No Twig path defined'); 103 } 104 require TWIG_PATH.'/Autoloader.php'; 105 Twig_Autoloader::register(); 106 81 107 /* ------------------------------------------------------------------------------------------- */ 82 108 … … 135 161 # Constants 136 162 define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 137 define('DC_VERSION','2. 7-dev');163 define('DC_VERSION','2.99-dev'); 138 164 define('DC_DIGESTS',dirname(__FILE__).'/digests'); 139 165 define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); … … 281 307 # 60 : template processing error 282 308 # 70 : blog is offline 283 309 284 310 if (CLI_MODE) 285 311 {
Note: See TracChangeset
for help on using the changeset viewer.