/[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.6 by joko, Thu Feb 27 16:35:03 2003 UTC
# Line 3  Line 3 
3  //  $Id$  //  $Id$
4  // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
5  //  $Log$  //  $Log$
6    //  Revision 1.6  2003/02/27 16:35:03  joko
7    //  + include path mungling now done via 'function add_include_path'
8    //
9  //  Revision 1.5  2003/02/22 16:17:56  joko  //  Revision 1.5  2003/02/22 16:17:56  joko
10  //  + include path for new sister library org.netfrag.app  //  + include path for new sister library org.netfrag.app
11  //  + autoloading abstract class for backend-communication  //  + autoloading abstract class for backend-communication
# Line 22  Line 25 
25  // ---------------------------------------------------------------------------  // ---------------------------------------------------------------------------
26    
27    
28  $smarty = $config['_startup'][path][lib][smarty];  // ------ override/expand php's 'include_path' setting ------
29  $pear = $config['_startup'][path][lib][pear];  function add_include_path($paths) {
30  $flib = $config['_startup'][path][lib][flib];      
31  $glib = $config['_startup'][path][lib][glib];    if (!is_array($paths)) {
32  $lib_app = $config['_startup'][path][lib][app];      $paths = array($paths);
33      }
34      array_push($paths, ini_get("include_path"));
35    // ------ override/expand php's 'include_path' setting ------    
36    // determine OS    // determine OS
37    $os = 'linux';    $os = 'linux';
38    if (stristr($_SERVER["SERVER_SOFTWARE"], 'win32')) {    if (stristr($_SERVER["SERVER_SOFTWARE"], 'win32')) {
# Line 40  $lib_app = $config['_startup'][path][lib Line 43  $lib_app = $config['_startup'][path][lib
43    // change path-delimiter for win32    // change path-delimiter for win32
44    if ($os == 'windows') { $path_delimiter = ';'; }    if ($os == 'windows') { $path_delimiter = ';'; }
45    // build new 'include_path'-string    // build new 'include_path'-string
46    $path_new = join($path_delimiter, array($pear, $flib, $glib, $lib_app, ini_get("include_path")));    $path_new = join($path_delimiter, $paths);
47    ini_set("include_path", $path_new);    ini_set("include_path", $path_new);
48    }
49    
50    $smarty = $config['_startup'][path][lib][smarty];
51    $pear = $config['_startup'][path][lib][pear];
52    $flib = $config['_startup'][path][lib][flib];
53    $glib = $config['_startup'][path][lib][glib];
54    $lib_app = $config['_startup'][path][lib][app];
55    
56    add_include_path(array($pear, $flib, $glib, $lib_app));
57    
58    
59    
60  // =======================================  // =======================================

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

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