/[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.2 by joko, Tue Feb 4 08:25:43 2003 UTC revision 1.16 by joko, Wed Jul 21 12:56:45 2004 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.2  2003/02/04 08:25:43  joko   * @package org.netfrag.glib
7  //  + minor modification regarding configuration/resource variable hierarchy   *
8  //   */
9  //  Revision 1.1  2003/02/03 14:39:58  joko  
10  //  + initial commit  /**
11  //   * <b>Cvs-Log:</b>
12  // ---------------------------------------------------------------------------   *
13     * <pre>
14     *
15  $smarty = $config['_startup'][path][lib][smarty];   *  $Id$
16  $pear = $config['_startup'][path][lib][pear];   *
17  $flib = $config['_startup'][path][lib][flib];   *  $Log$
18  $glib = $config['_startup'][path][lib][glib];   *  Revision 1.16  2004/07/21 12:56:45  joko
19     *  minor change to hash-key use
20     *
21  // ================== includes =================   *  Revision 1.15  2003/04/05 19:55:24  joko
22     *  moved some code to utils/includes.php
23    // ------ override localized pear-libraries ------   *
24    // determine OS   *  Revision 1.14  2003/04/04 17:36:16  joko
25    $os = 'linux';   *  added new required file
26    if (stristr($_SERVER["SERVER_SOFTWARE"], 'win32')) {   *
27      $os = 'windows';   *  Revision 1.13  2003/03/28 06:43:20  joko
28    }   *  initial commit: php_constants.php
29     *
30    $path_delimiter = ':';   *  Revision 1.12  2003/03/11 02:23:02  joko
31    // change path-delimiter for win32   *  + fixed metadata for phpDocumentor
32    if ($os == 'windows') { $path_delimiter = ';'; }   *
33    // build new 'include_path'-string   *  Revision 1.11  2003/03/11 02:14:17  joko
34    $path_new = join($path_delimiter, array($pear, $flib, $glib, ini_get("include_path")));   *  + fixed metadata for phpDocumentor
35    ini_set("include_path", $path_new);   *
36     *  Revision 1.10  2003/03/10 23:24:59  joko
37     *  + fixed metadata for phpDocumentor
38  // ------ pear libs ------   *
39    // benchmarking   *  Revision 1.9  2003/03/10 23:05:24  joko
40      require_once("Benchmark/Timer.php");   *  + fixed metadata for phpDocumentor
41      $timer = new Benchmark_Timer;   *
42      $timer->start();   *  Revision 1.8  2003/03/03 22:13:45  joko
43      $timer->setMarker("pear libraries: including");   *  minor update regarding includes
44     *
45    // logging   *  Revision 1.7  2003/03/03 21:08:47  joko
46      require_once 'Log.php';   *  updated
47      require_once 'Log/file.php';   *
48     *  Revision 1.6  2003/02/27 16:35:03  joko
49     *  + include path mungling now done via 'function add_include_path'
50     *
51     *  Revision 1.5  2003/02/22 16:17:56  joko
52     *  + include path for new sister library org.netfrag.app
53     *  + autoloading abstract class for backend-communication
54     *
55     *  Revision 1.4  2003/02/09 16:52:08  joko
56     *  + updated, new modules in this library
57     *
58     *  Revision 1.3  2003/02/04 08:26:18  joko
59     *  + fixed comment
60     *
61     *  Revision 1.2  2003/02/04 08:25:43  joko
62     *  + minor modification regarding configuration/resource variable hierarchy
63     *
64     *  Revision 1.1  2003/02/03 14:39:58  joko
65     *  + initial commit
66     *
67     * </pre>
68     *
69     */
70    
71    
72    // utility- and helper functions- and classes
73    require_once("utils/includes.php");
74        
75    // tune libpath
76      // FIXME: enhance! use constants here!!!
77      $smarty = $config['_startup']['path']['lib']['smarty'];
78      $pear = $config['_startup']['path']['lib']['pear'];
79      $flib = $config['_startup']['path']['lib']['flib'];
80      $glib = $config['_startup']['path']['lib']['glib'];
81      $lib_app = $config['_startup']['path']['lib']['app'];
82      php::add_libpath(array($pear, $glib, $lib_app));
83    
84    
85    // PEAR modules
86    
87      // --- logging
88      require_once 'Log.php';
89      require_once 'Log/file.php';
90    
91      // --- benchmarking
92      require_once("Benchmark/Timer.php");
93      $timer = new Benchmark_Timer;
94      $timer->start();
95      $timer->setMarker("pear libraries: including");
96    
97    // date-handling and -manipulation ... 0.02 execution time for inclusion    // date-handling and -manipulation ... 0.02 execution time for inclusion
98      require_once 'Date.php';      require_once 'Date.php';
99    // database... 0.03 execution time for inclusion    // database... 0.03 execution time for inclusion
100      require_once 'DB.php';      require_once 'DB.php';
   // rpc - standard  
   require_once 'XML/RPC/RPC.php';  
101    
102      $timer->setMarker("pear libraries: ready");      $timer->setMarker("pear libraries: ready");
103    
104    
105  // ------ glib libraries/classes ------  
106    // =======================================
107    // ------ glib libraries/classes/components ------
108        
109    // abstract base classes - lowlevel    // abstract base classes - lowlevel
110    require_once("DesignPattern/Object.php");  
111    loadModule('DesignPattern::Logger');      // old ones, got refactored somehow
112    loadModule('DesignPattern::Bridge');      //loadModule('DesignPattern::Object');
113    loadModule('DesignPattern::Loader');      //loadModule('DesignPattern::Logger');
114          //loadModule('DesignPattern::Bridge');
115        //loadModule('DesignPattern::Loader');
116    
117    // abstract base classes - application level    // abstract base classes - application level
118    loadModule('Application::AbstractRequest');      loadModule('Application::AbstractBase');
119    loadModule('Application::AbstractHandler');      loadModule('Application::AbstractRequest');
120        loadModule('Application::AbstractHandler');
121        loadModule('Application::AbstractBackend');
122        
123    // concrete base classes    // concrete classes
   loadModule('Data::Encode');  
   loadModule('Data::Deep');  
124    
125        // helper: data-manipulation and -encoding
126        loadModule('Data::Encode');
127        loadModule('Data::Deep');
128    
129        // helper: CreditCard Validator
130        loadModule('Data::Validator::CreditCard');
131    
132  // ------ flib libraries/classes ------      // core/transport: rpc-xml communication
133    // error handling      //loadModule('Data::Driver::Proxy');
134     require_once("Application/ErrorHandler.php");      //loadModule('Data::Driver::RPC::Remote');
   // misc  
    require_once("utils/helper.php");  
    require_once("utils/shortcuts.php");  
    // CreditCard class (some useful functions)  
    require_once("utils/CreditCard.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");  
135    
136    
137    // =======================================
138    // ------ flib libraries/classes ------
139        php::add_libpath($flib);
140        require_once('includes.php');
141    
 // ------ middleware libs ------  
   // rpc via mysql  
   //require_once ("$lib"."message/msgpd.php.inc");  
   require_once("Application/RPC/Remote.php");  
   require_once("Application/RPC/ProxyObject.php");  
142    
143  // ------ local libs - abstract ------  // ------ local libs - abstract ------
144    // site    // site
# Line 113  $glib = $config['_startup'][path][lib][g Line 148  $glib = $config['_startup'][path][lib][g
148     //define(SMARTY_DIR, $lib . 'external/smarty/');     //define(SMARTY_DIR, $lib . 'external/smarty/');
149     define(SMARTY_DIR, $smarty);     define(SMARTY_DIR, $smarty);
150     require_once(SMARTY_DIR . 'Smarty.class.php');     require_once(SMARTY_DIR . 'Smarty.class.php');
151      
152  ?>  ?>

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.16

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