/[cvs]/nfo/php/libs/org.netfrag.glib/includes.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/includes.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by joko, Sat Feb 22 16:17:56 2003 UTC revision 1.14 by joko, Fri Apr 4 17:36:16 2003 UTC
# Line 1  Line 1 
1  <?  <?
2  // ---------------------------------------------------------------------------  /**
3  //  $Id$   * --- boot org.netfrag.glib
4  // ---------------------------------------------------------------------------   *
5  //  $Log$   * @author Andreas Motl <andreas.motl@ilo.de>
6  //  Revision 1.5  2003/02/22 16:17:56  joko   * @package org.netfrag.glib
7  //  + include path for new sister library org.netfrag.app   *
8  //  + autoloading abstract class for backend-communication   */
9  //  
10  //  Revision 1.4  2003/02/09 16:52:08  joko  /**
11  //  + updated, new modules in this library   * <b>Cvs-Log:</b>
12  //   *
13  //  Revision 1.3  2003/02/04 08:26:18  joko   * <pre>
14  //  + fixed comment   *
15  //   *  $Id$
16  //  Revision 1.2  2003/02/04 08:25:43  joko   *
17  //  + minor modification regarding configuration/resource variable hierarchy   *  $Log$
18  //   *  Revision 1.14  2003/04/04 17:36:16  joko
19  //  Revision 1.1  2003/02/03 14:39:58  joko   *  added new required file
20  //  + initial commit   *
21  //   *  Revision 1.13  2003/03/28 06:43:20  joko
22  // ---------------------------------------------------------------------------   *  initial commit: php_constants.php
23     *
24     *  Revision 1.12  2003/03/11 02:23:02  joko
25  $smarty = $config['_startup'][path][lib][smarty];   *  + fixed metadata for phpDocumentor
26  $pear = $config['_startup'][path][lib][pear];   *
27  $flib = $config['_startup'][path][lib][flib];   *  Revision 1.11  2003/03/11 02:14:17  joko
28  $glib = $config['_startup'][path][lib][glib];   *  + fixed metadata for phpDocumentor
29  $lib_app = $config['_startup'][path][lib][app];   *
30     *  Revision 1.10  2003/03/10 23:24:59  joko
31     *  + fixed metadata for phpDocumentor
32    // ------ override/expand php's 'include_path' setting ------   *
33    // determine OS   *  Revision 1.9  2003/03/10 23:05:24  joko
34    $os = 'linux';   *  + fixed metadata for phpDocumentor
35    if (stristr($_SERVER["SERVER_SOFTWARE"], 'win32')) {   *
36      $os = 'windows';   *  Revision 1.8  2003/03/03 22:13:45  joko
37    }   *  minor update regarding includes
38     *
39    $path_delimiter = ':';   *  Revision 1.7  2003/03/03 21:08:47  joko
40    // change path-delimiter for win32   *  updated
41    if ($os == 'windows') { $path_delimiter = ';'; }   *
42    // build new 'include_path'-string   *  Revision 1.6  2003/02/27 16:35:03  joko
43    $path_new = join($path_delimiter, array($pear, $flib, $glib, $lib_app, ini_get("include_path")));   *  + include path mungling now done via 'function add_include_path'
44    ini_set("include_path", $path_new);   *
45     *  Revision 1.5  2003/02/22 16:17:56  joko
46     *  + include path for new sister library org.netfrag.app
47     *  + autoloading abstract class for backend-communication
48     *
49     *  Revision 1.4  2003/02/09 16:52:08  joko
50     *  + updated, new modules in this library
51     *
52     *  Revision 1.3  2003/02/04 08:26:18  joko
53     *  + fixed comment
54     *
55     *  Revision 1.2  2003/02/04 08:25:43  joko
56     *  + minor modification regarding configuration/resource variable hierarchy
57     *
58     *  Revision 1.1  2003/02/03 14:39:58  joko
59     *  + initial commit
60     *
61     * </pre>
62     *
63     */
64    
65    
66    // some constant handling extension functions for php
67      require_once("php_constants.php");
68      require_once("php_errors.php");
69    
70    // some extension functions for php
71      global $PHP_EXTENSIONS_EXPORT;
72      //$PHP_EXTENSIONS_EXPORT = array( 'loadModule', array('mkObject' => 'mkInstance') );
73      $PHP_EXTENSIONS_EXPORT = array( 'loadModule', array('mkComponent' => 'mkObject') );
74      //$PHP_EXTENSIONS_EXPORT = array( 'loadModule' );
75    
76      require_once("php_extensions.php");
77      //$php->Dumper_mode = HTML;
78      //exit;
79        
80    // tune libpath
81      // FIXME: enhance! use constants here!!!
82      $smarty = $config['_startup'][path][lib][smarty];
83      $pear = $config['_startup'][path][lib][pear];
84      $flib = $config['_startup'][path][lib][flib];
85      $glib = $config['_startup'][path][lib][glib];
86      $lib_app = $config['_startup'][path][lib][app];
87      php::add_libpath(array($pear, $glib, $lib_app));
88    
89    
90    // PEAR modules
91    
92      // --- logging
93      require_once 'Log.php';
94      require_once 'Log/file.php';
95    
96      // --- benchmarking
97      require_once("Benchmark/Timer.php");
98      $timer = new Benchmark_Timer;
99      $timer->start();
100      $timer->setMarker("pear libraries: including");
101    
   
 // =======================================  
 // ------ pear libs ------  
   // benchmarking  
     require_once("Benchmark/Timer.php");  
     $timer = new Benchmark_Timer;  
     $timer->start();  
     $timer->setMarker("pear libraries: including");  
   
   // logging  
     require_once 'Log.php';  
     require_once 'Log/file.php';  
102    // date-handling and -manipulation ... 0.02 execution time for inclusion    // date-handling and -manipulation ... 0.02 execution time for inclusion
103      require_once 'Date.php';      require_once 'Date.php';
104    // database... 0.03 execution time for inclusion    // database... 0.03 execution time for inclusion
105      require_once 'DB.php';      require_once 'DB.php';
   // rpc - standard  
   require_once 'XML/RPC/RPC.php';  
106    
107      $timer->setMarker("pear libraries: ready");      $timer->setMarker("pear libraries: ready");
108    
# Line 70  $lib_app = $config['_startup'][path][lib Line 112  $lib_app = $config['_startup'][path][lib
112  // ------ glib libraries/classes/components ------  // ------ glib libraries/classes/components ------
113        
114    // abstract base classes - lowlevel    // abstract base classes - lowlevel
115      require_once("DesignPattern/Object.php");  
116      loadModule('DesignPattern::Logger');      // old ones, got refactored somehow
117      loadModule('DesignPattern::Bridge');      //loadModule('DesignPattern::Object');
118      loadModule('DesignPattern::Loader');      //loadModule('DesignPattern::Logger');
119          //loadModule('DesignPattern::Bridge');
120        //loadModule('DesignPattern::Loader');
121    
122    // abstract base classes - application level    // abstract base classes - application level
123      loadModule('Application::AbstractBase');      loadModule('Application::AbstractBase');
124      loadModule('Application::AbstractRequest');      loadModule('Application::AbstractRequest');
# Line 91  $lib_app = $config['_startup'][path][lib Line 135  $lib_app = $config['_startup'][path][lib
135      loadModule('Data::Validator::CreditCard');      loadModule('Data::Validator::CreditCard');
136    
137      // core/transport: rpc-xml communication      // core/transport: rpc-xml communication
138      loadModule('Data::Driver::Proxy');      //loadModule('Data::Driver::Proxy');
139      loadModule('Data::Driver::RPC::Remote');      //loadModule('Data::Driver::RPC::Remote');
   
140    
141    
142  // =======================================  // =======================================
143  // ------ flib libraries/classes ------  // ------ flib libraries/classes ------
144    // error handling      php::add_libpath($flib);
145     require_once("Application/ErrorHandler.php");      require_once('includes.php');
146    // misc  
    require_once("utils/helper.php");  
    require_once("utils/shortcuts.php");  
   // array manipulation  
    require_once("utils/Array_Manip.php");  
   
   // utf8-encodings (Internationalization)  
   // iso <-> utf8  
    //require_once("Application/i18n/TextEncode.php");  
   // language (Localization)  
    require_once("Application/l10n/LocaleText.php");  
   // site  
    require_once("Site.php");  
   // user  
    require_once("Tracker/Session.php");  
    require_once("Tracker/User.php");  
   // tablebrowser  
    require_once("$flib/Site/Widget/TableBrowser.php");  
147    
148  // ------ local libs - abstract ------  // ------ local libs - abstract ------
149    // site    // site
# Line 128  $lib_app = $config['_startup'][path][lib Line 154  $lib_app = $config['_startup'][path][lib
154     define(SMARTY_DIR, $smarty);     define(SMARTY_DIR, $smarty);
155     require_once(SMARTY_DIR . 'Smarty.class.php');     require_once(SMARTY_DIR . 'Smarty.class.php');
156    
   
157  ?>  ?>

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.14

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed