/[cvs]/nfo/php/libs/org.netfrag.elib/lib_loader.php.inc
ViewVC logotype

Contents of /nfo/php/libs/org.netfrag.elib/lib_loader.php.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Wed Jan 23 17:40:34 2002 UTC (22 years, 5 months ago) by cvsjoko
Branch: nfo, MAIN
CVS Tags: v003, HEAD
Changes since 1.1: +0 -0 lines
initial

1 <?
2 function pla_Init($lib_basepath) {
3 global $pla_cfg;
4 $pla_cfg['path']['base'] = $lib_basepath;
5 }
6
7 function pla_LoadModule($modulename, $args2 = array(), $globals2 = array()) {
8
9 global $pla_cfg;
10 global $benchmark;
11
12 // prevent multiple loads because this (redeclares!) would trigger errors
13 if (isset($pla_cfg['loaded'][$modulename])) {
14 //print "cancel.";
15 return;
16 } else {
17 //print "do.";
18 $pla_cfg['loaded'][$modulename] = 1;
19 }
20
21 if ( isset($benchmark) ) { $benchmark->setMarker("pla_LoadModule($modulename, $args, $globals) - begin"); }
22
23 switch ($modulename) {
24
25 case 'Variables':
26 include($pla_cfg['path']['base'] . 'lib_variables.php.inc');
27 break;
28 case 'misc':
29 include($pla_cfg['path']['base'] . 'lib_misc.php.inc');
30 break;
31 case 'Http':
32 include($pla_cfg['path']['base'] . 'lib_http.php.inc');
33 break;
34
35 case 'Site':
36 include($pla_cfg['path']['base'] . 'dagl/lib_site.php.inc');
37 break;
38 case 'Tracking':
39 include($pla_cfg['path']['base'] . 'dagl/lib_tracking.php.inc');
40 include($pla_cfg['path']['base'] . 'dagl/lib_tracking_state.php.inc');
41 include($pla_cfg['path']['base'] . 'dagl/lib_tracking_process.php.inc');
42 include($pla_cfg['path']['base'] . 'dagl/lib_tracking_persistency.php.inc');
43 break;
44
45 case 'Database':
46 include($pla_cfg['path']['base'] . 'storage/lib_database_sql.php.inc');
47 include($pla_cfg['path']['base'] . 'storage/lib_database_query.php.inc');
48 include($pla_cfg['path']['base'] . 'storage/lib_database.php.inc');
49 break;
50 case 'DataStore':
51 include($pla_cfg['path']['base'] . 'vops/engine.php.inc');
52 include($pla_cfg['path']['base'] . 'vops/objects.php.inc');
53 include($pla_cfg['path']['base'] . 'vops/pdl/pdl_engine.php.inc');
54 include($pla_cfg['path']['base'] . 'vops/pdl/pdl_model.php.inc');
55 include($pla_cfg['path']['base'] . 'vops/pdl/pdl_reader.php.inc');
56 include($pla_cfg['path']['base'] . 'vops/pdl/pdl_writer.php.inc');
57 break;
58
59 case 'HTMLGUI':
60 include($pla_cfg['path']['base'] . 'html/lib_htmlgui.php.inc');
61 include($pla_cfg['path']['base'] . 'html/lib_htmlgui_table.php.inc');
62 break;
63 case 'HTMLWidgets':
64 include($pla_cfg['path']['base'] . 'html/lib_htmlwidgets.php.inc');
65 include($pla_cfg['path']['base'] . 'html/lib_htmlwidgets_treeview.php.inc');
66 include($pla_cfg['path']['base'] . 'html/lib_htmlwidgets_listview.php.inc');
67 break;
68 case 'JavaScript':
69 include($pla_cfg['path']['base'] . 'javascript/lib_javascript.php.inc');
70 break;
71 case 'Mail':
72 include($pla_cfg['path']['base'] . 'smtp/smtpmail.class');
73 break;
74 case 'WddxEngine':
75 include($pla_cfg['path']['base'] . 'xml/wddx/wddx_engine.library');
76 include($pla_cfg['path']['base'] . 'xml/wddx/wddx_serializer.library');
77 include($pla_cfg['path']['base'] . 'xml/wddx/wddx_recordset.library');
78 include($pla_cfg['path']['base'] . 'xml/wddx/wddx_datastructure2recordset.library');
79 break;
80 case 'Wddx_Datastructure2Recordset':
81 //include($pla_cfg['path']['base'] . 'xml/wddx/wddx_datastructure2recordset.library');
82 break;
83
84
85 case 'Smtp':
86 include($pla_cfg['path']['base'] . 'comm/smtp.php.inc');
87 break;
88
89
90
91 default:
92 print "<font color=\"red\">Couldn't load eLib-library \"$modulename\"</font><br>";
93 break;
94
95
96 /*
97 case 'TableRenderer':
98 include($pla_cfg['path']['base'] . 'lib_tablerenderer.php.inc');
99 break;
100 case 'Formhandler':
101 include($pla_cfg['path']['base'] . 'lib_formhandler.php.inc');
102 break;
103 */
104 }
105
106 if ( isset($benchmark) ) { $benchmark->setMarker("pla_LoadModule($modulename, $args, $globals) - end"); }
107
108 }
109
110 ?>

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