Subversion Repositories oidplus

Rev

Rev 801 | Details | Compare with Previous | Last modification | View Log | RSS feed

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