@@ -61,8 +61,8 @@ function sys_get_temp_dir()
61
61
}
62
62
63
63
require_once dirname (__FILE__ )."/../config.inc.php " ;
64
- import ('Dataface/PermissionsTool.php ' );
65
- import ('Dataface/LanguageTool.php ' );
64
+ import (XFROOT . 'Dataface/PermissionsTool.php ' );
65
+ import (XFROOT . 'Dataface/LanguageTool.php ' );
66
66
define ('DATAFACE_STRICT_PERMISSIONS ' , 100 );
67
67
// the minimum security level that is deemed as strict permissions.
68
68
// strict permissions mean that permissions must be explicitly granted to a
@@ -700,7 +700,7 @@ function __construct($conf = null) {
700
700
701
701
702
702
if ( isset ($ this ->_conf ['_modules ' ]) and count ($ this ->_conf ['_modules ' ])>0 ){
703
- import ('Dataface/ModuleTool.php ' );
703
+ import (XFROOT . 'Dataface/ModuleTool.php ' );
704
704
}
705
705
706
706
if ( isset ($ this ->_conf ['languages ' ]) ){
@@ -895,7 +895,7 @@ function __construct($conf = null) {
895
895
} else if (isset ( $ _COOKIE [$ prefix .'lang ' ]) ){
896
896
$ this ->_conf ['lang ' ] = $ _COOKIE [$ prefix .'lang ' ];
897
897
} else {
898
- import ('I18Nv2/I18Nv2.php ' );
898
+ import (XFLIB . 'I18Nv2/I18Nv2.php ' );
899
899
$ negotiator = I18Nv2::createNegotiator ($ this ->_conf ['default_language ' ], 'UTF-8 ' );
900
900
$ this ->_conf ['lang ' ] = $ this ->getLanguageCode (
901
901
$ negotiator ->getLocaleMatch (
@@ -934,11 +934,11 @@ function __construct($conf = null) {
934
934
define ('DATAFACE_USAGE_MODE ' , $ this ->_conf ['usage_mode ' ]);
935
935
936
936
if ( @$ this ->_conf ['enable_workflow ' ] ){
937
- import ('Dataface/WorkflowTool.php ' );
937
+ import (XFROOT . 'Dataface/WorkflowTool.php ' );
938
938
}
939
939
940
940
if (@$ _GET ['--url ' ]) {
941
- import ('actions/request_public_url.php ' );
941
+ import (XFROOT . 'actions/request_public_url.php ' );
942
942
// This allows the use of a public URL for setting
943
943
// both the query and the logged in user.
944
944
dataface_actions_request_public_url::apply_url ($ this );
@@ -1313,7 +1313,7 @@ function &getResultSet(){
1313
1313
// Do whatever we need to do before the request is handled.
1314
1314
$ applicationDelegate ->beforeLoadResultSet ();
1315
1315
}
1316
- import ('Dataface/QueryTool.php ' );
1316
+ import (XFROOT . 'Dataface/QueryTool.php ' );
1317
1317
$ this ->queryTool = Dataface_QueryTool::loadResult ($ this ->_query ['-table ' ], $ this ->db (), $ this ->_query );
1318
1318
}
1319
1319
return $ this ->queryTool ;
@@ -1491,7 +1491,7 @@ function recordLoaded(){
1491
1491
* @return array Action parameters (or null if action doesn't exist).
1492
1492
*/
1493
1493
function &getAction (){
1494
- import ('Dataface/ActionTool.php ' );
1494
+ import (XFROOT . 'Dataface/ActionTool.php ' );
1495
1495
$ actionTool = Dataface_ActionTool::getInstance ();
1496
1496
return $ actionTool ->getAction (array ('name ' =>$ this ->_query ['-action ' ]));
1497
1497
}
@@ -1814,7 +1814,7 @@ function &getAuthenticationTool(){
1814
1814
if ( !isset ($ this ->authenticationTool ) ){
1815
1815
1816
1816
if ( isset ($ this ->_conf ['_auth ' ]) ){
1817
- import ('Dataface/AuthenticationTool.php ' );
1817
+ import (XFROOT . 'Dataface/AuthenticationTool.php ' );
1818
1818
$ this ->authenticationTool = Dataface_AuthenticationTool::getInstance ($ this ->_conf ['_auth ' ]);
1819
1819
} else {
1820
1820
return $ null ;
@@ -2173,14 +2173,14 @@ function handleRequest($disableCache=false){
2173
2173
2174
2174
2175
2175
if ( !$ disableCache and (@$ _GET ['-action ' ] != 'getBlob ' ) and isset ( $ this ->_conf ['_output_cache ' ] ) and @$ this ->_conf ['_output_cache ' ]['enabled ' ] and count ($ _POST ) == 0 ){
2176
- import ('Dataface/OutputCache.php ' );
2176
+ import (XFROOT . 'Dataface/OutputCache.php ' );
2177
2177
$ oc = new Dataface_OutputCache ($ this ->_conf ['_output_cache ' ]);
2178
2178
$ oc ->ob_start ();
2179
2179
2180
2180
}
2181
- import ('Dataface/ActionTool.php ' );
2182
- import ('Dataface/PermissionsTool.php ' );
2183
- import ('Dataface/Table.php ' );
2181
+ import (XFROOT . 'Dataface/ActionTool.php ' );
2182
+ import (XFROOT . 'Dataface/PermissionsTool.php ' );
2183
+ import (XFROOT . 'Dataface/Table.php ' );
2184
2184
2185
2185
if ( isset ($ this ->_conf ['_modules ' ]) and count ($ this ->_conf ['_modules ' ]) > 0 ){
2186
2186
$ mt = Dataface_ModuleTool::getInstance ();
@@ -2687,7 +2687,7 @@ function _display($main_content_only=false, $disableCache=false){
2687
2687
* @private
2688
2688
*/
2689
2689
function _handleGetBlob ($ request ){
2690
- import ('Dataface/Application/blob.php ' );
2690
+ import (XFROOT . 'Dataface/Application/blob.php ' );
2691
2691
return Dataface_Application_blob::_handleGetBlob ($ request );
2692
2692
}
2693
2693
@@ -2973,7 +2973,7 @@ function testCondition($condition, $context=null){
2973
2973
*
2974
2974
*/
2975
2975
function url ($ query , $ useContext =true , $ forceContext =false ){
2976
- import ('Dataface/LinkTool.php ' );
2976
+ import (XFROOT . 'Dataface/LinkTool.php ' );
2977
2977
return Dataface_LinkTool::buildLInk ($ query , $ useContext , $ forceContext );
2978
2978
2979
2979
}
@@ -3227,7 +3227,7 @@ function refreshSchemas($tablename){
3227
3227
* @return array
3228
3228
*/
3229
3229
function _parseRelatedBlobRequest ($ request ){
3230
- import ('Dataface/Application/blob.php ' );
3230
+ import (XFROOT . 'Dataface/Application/blob.php ' );
3231
3231
return Dataface_Application_blob::_parseRelatedBlobRequest ($ request );
3232
3232
}
3233
3233
0 commit comments