forked from masondixon/Responsys-PHP-Soap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
70 lines (53 loc) · 1.41 KB
/
bootstrap.php
File metadata and controls
70 lines (53 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
require_once __DIR__ . '/Autoload.php';
/*
$DEBUG = false;
$USE_CONFIG = false;
// Lets be helpful and set up include paths with the proper separator based on OS
if ( ! defined( "PATH_SEPARATOR" ) )
{
if ( strpos( $_ENV[ "OS" ], "Win" ) !== false )
{
define( "PATH_SEPARATOR", ";" );
}
else
{
define( "PATH_SEPARATOR", ":" );
}
}
// Set base include path to directory containing this file
$base_include_path = __DIR__;
// set new runtime include path for requires includes
set_include_path( get_include_path() . PATH_SEPARATOR . $base_include_path . "/includes" . PATH_SEPARATOR . $base_include_path . "/objects" );
if($DEBUG){
echo " *** INCLUDING REQUIRED FILES/CLASSES *** \n";
}
//echo " New include path : " . get_include_path() . "\n";
//include base
if($DEBUG){
echo " Including interact base class interact.php \n";
}
include 'interact.php';
$include_paths = get_include_path();
$include_paths_array = explode( PATH_SEPARATOR, $include_paths );
foreach ( $include_paths_array as $path )
{
$includes = glob( $path . "/*.php" );
foreach( $includes as $include )
{
if($DEBUG){
echo " including " . $include . "\n";
}
include $include;
}
}
if($USE_CONFIG){
// Set up a global config file for api user values and soap client wsdl and endpoint values
global $config_file;
if($DEBUG){
echo " *** Loading config file *** \n";
}
$config_file = parse_ini_file( "config.inc", TRUE );
}
*/
?>