Subversion Repositories oidplus

Rev

Rev 801 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 801 Rev 1050
1
<?php
1
<?php
2
 
2
 
3
/*
3
/*
4
 * OIDplus 2.0
4
 * OIDplus 2.0
5
 * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft
5
 * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft
6
 *
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
9
 * You may obtain a copy of the License at
10
 *
10
 *
11
 *     http://www.apache.org/licenses/LICENSE-2.0
11
 *     http://www.apache.org/licenses/LICENSE-2.0
12
 *
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
17
 * limitations under the License.
18
 */
18
 */
19
 
19
 
-
 
20
use ViaThinkSoft\OIDplus\OIDplus;
-
 
21
 
20
include __DIR__.'/../includes/oidplus.inc.php';
22
include __DIR__.'/../includes/oidplus.inc.php';
21
 
23
 
22
header('Content-Type:text/plain');
24
header('Content-Type:text/plain');
23
 
25
 
24
echo "localpath(null,false): ".OIDplus::localpath(null,false)."\n";
26
echo "localpath(null,false): ".OIDplus::localpath(null,false)."\n";
25
echo "localpath(null,true): ".OIDplus::localpath(null,true)."\n";
27
echo "localpath(null,true): ".OIDplus::localpath(null,true)."\n";
26
echo "localpath(__FILE__,false): ".OIDplus::localpath(__FILE__,false)."\n";
28
echo "localpath(__FILE__,false): ".OIDplus::localpath(__FILE__,false)."\n";
27
echo "localpath(__FILE__,true): ".OIDplus::localpath(__FILE__,true)."\n";
29
echo "localpath(__FILE__,true): ".OIDplus::localpath(__FILE__,true)."\n";
28
echo "localpath(__DIR__,false): ".OIDplus::localpath(__DIR__,false)."\n";
30
echo "localpath(__DIR__,false): ".OIDplus::localpath(__DIR__,false)."\n";
29
echo "localpath(__DIR__,true): ".OIDplus::localpath(__DIR__,true)."\n";
31
echo "localpath(__DIR__,true): ".OIDplus::localpath(__DIR__,true)."\n";
30
 
32
 
31
echo "webpath(null,OIDplus::PATH_ABSOLUTE): ".OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE)."\n";
33
echo "webpath(null,OIDplus::PATH_ABSOLUTE): ".OIDplus::webpath(null,OIDplus::PATH_ABSOLUTE)."\n";
32
echo "webpath(null,OIDplus::PATH_RELATIVE)): ".OIDplus::webpath(null,OIDplus::PATH_RELATIVE)."\n";
34
echo "webpath(null,OIDplus::PATH_RELATIVE)): ".OIDplus::webpath(null,OIDplus::PATH_RELATIVE)."\n";
33
echo "webpath(__FILE__,OIDplus::PATH_ABSOLUTE): ".OIDplus::webpath(__FILE__,OIDplus::PATH_ABSOLUTE)."\n";
35
echo "webpath(__FILE__,OIDplus::PATH_ABSOLUTE): ".OIDplus::webpath(__FILE__,OIDplus::PATH_ABSOLUTE)."\n";
34
echo "webpath(__FILE__,OIDplus::PATH_RELATIVE): ".OIDplus::webpath(__FILE__,OIDplus::PATH_RELATIVE)."\n";
36
echo "webpath(__FILE__,OIDplus::PATH_RELATIVE): ".OIDplus::webpath(__FILE__,OIDplus::PATH_RELATIVE)."\n";
35
echo "webpath(__DIR__,OIDplus::PATH_ABSOLUTE): ".OIDplus::webpath(__DIR__,OIDplus::PATH_ABSOLUTE)."\n";
37
echo "webpath(__DIR__,OIDplus::PATH_ABSOLUTE): ".OIDplus::webpath(__DIR__,OIDplus::PATH_ABSOLUTE)."\n";
36
echo "webpath(__DIR__,OIDplus::PATH_RELATIVE): ".OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE)."\n";
38
echo "webpath(__DIR__,OIDplus::PATH_RELATIVE): ".OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE)."\n";
37
 
39